Calculation of Neutron star pressure/mass using 4th order Runge-Kutta

Click For Summary

Discussion Overview

The discussion revolves around the calculation of pressure and mass in neutron stars using the 4th order Runge-Kutta method, specifically referencing a project that involves applying equations from a textbook. Participants are addressing implementation challenges related to mass-energy density parametrization and numerical integration techniques.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • Mary seeks assistance with implementing the Bethe and Johnson parametrization for mass-energy density in her code for neutron star calculations.
  • One participant suggests using the known pressure to find the number density and then calculate the mass-energy density, proposing functions to streamline this process.
  • Mary expresses confusion about starting the calculations from the surface of the star, questioning how to determine the initial pressure at the center of the neutron star.
  • Another participant advises starting from the center by assuming a central density value, from which pressure can be calculated using specific equations, and suggests integrating outward until pressure reaches zero.

Areas of Agreement / Disagreement

Participants generally agree on the approach of starting calculations from the center of the neutron star and using parametrizations to derive necessary values, but there are differing views on the initial conditions and methods for calculating pressure.

Contextual Notes

Limitations include the need for clarity on the assumptions regarding central density and the specific equations referenced, which may not be fully detailed in the discussion.

Who May Find This Useful

This discussion may be useful for students and researchers working on neutron star modeling, numerical methods in astrophysics, or those interested in applying the Runge-Kutta method to complex physical systems.

mary1986
Messages
2
Reaction score
0
Hi all, this is my first post here and i apologize if some rules aren't followed.

I have to complete the Project 13.1 (studies of neutron stars: p 346-350)
http://www.cec.uchile.cl/cinetica/pcordero/MC_libros/Hjorth-Jensen2008.pdf

When browsing using pdf pages 346 to 350, assignments 1 through 9.

I am using c for solving this problem but am having problems with implementing the mass-energy density is given by a simple parametrization from Bethe and Johnson:
ρ(n) = 236 × n2.54 + nmn

here is the code: http://snipt.org/AAK4
My code is suprisingly similar, but i can't seem to figure out how the Bethe and Johnson parametrization comes in this code.

Any help is greatley appreciated
Mary
 
Last edited by a moderator:
Astronomy news on Phys.org
What you need to do is as follows:

At each step, you know P. Given P, you can invert equation 13.104 to find n. Then you insert this value of n into equation 13.102 to find rho. This value of rho is then used in the Runge-Kutta to take the next step.

You could set up a function to calculate n given P, and another function to calculate rho given n, or you could just set up one function to calculate rho given P.

Does this help?
 
You have helped a lot, but more questions came up.
That would mean i must start from the surface of the star where P=0,

If I was to start from center, how could I calculate pressure for the first step (at the center of neutron star)?
 
You do want to start from the center. You assume a value for rho-s, the density at the center. Then you can calculate P at the center from 13-102 and 13-104, as well as the constants R0 and M0. Then you integrate out until P=0. This will give you values for the mass and radius of the star. You will get a family of curves with different mass and radius parameterized by the parameter rho-s.

At least, this is how I would attack it.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
7K