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

AI Thread Summary
The discussion focuses on calculating neutron star pressure and mass using the 4th order Runge-Kutta method, specifically referencing a project involving equations from a provided PDF. The user is implementing a mass-energy density equation from Bethe and Johnson but is struggling with its integration into their code. Guidance is provided on how to derive density and pressure values using the equations, emphasizing starting from the center of the star with an assumed central density. The approach involves calculating pressure and density iteratively until reaching the surface where pressure is zero, ultimately yielding mass and radius values for the neutron star. This method allows for the exploration of different mass and radius configurations based on varying central densities.
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.
 
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
Thread 'Could gamma-ray bursts have an intragalactic origin?'
This is indirectly evidenced by a map of the distribution of gamma-ray bursts in the night sky, made in the form of an elongated globe. And also the weakening of gamma radiation by the disk and the center of the Milky Way, which leads to anisotropy in the possibilities of observing gamma-ray bursts. My line of reasoning is as follows: 1. Gamma radiation should be absorbed to some extent by dust and other components of the interstellar medium. As a result, with an extragalactic origin, fewer...
Both have short pulses of emission and a wide spectral bandwidth, covering a wide variety of frequencies: "Fast Radio Bursts (FRBs) are detected over a wide range of radio frequencies, including frequencies around 1400 MHz, but have also been detected at lower frequencies, particularly in the 400–800 MHz range. Russian astronomers recently detected a powerful burst at 111 MHz, expanding our understanding of the FRB range. Frequency Ranges: 1400 MHz: Many of the known FRBs have been detected...

Similar threads

Back
Top