Path: blob/main/Group exercises/Group Exercise 3.ipynb
968 views
Neutron star
Reference: Silbar & Reddy, Neutron Stars for Undergraduates (https://arxiv.org/abs/nucl-th/0309041)
Background
In this exercise, we solve for the mass-radius relation for neutron stars. We assume that the neutron star material is in hydrostatic equilibrium, i.e., assuming that the outward pressure and inward gravitational forces balance. In the Newtonian limit of weak gravitational fields and nonrelativistic velocities, the equation for hydrostatic equilibrium is
where is the pressure, is the density, is the enclosed mass within a radius , and is Newton's constant. Here and henceforth we work in cgs units, where and the speed of light is .
We have also assumed spherical symmetry, such that all quantities depend on only.
The enclosed mass can be calculated by integrating the density over the volume of a sphere of radius
However, it is more helpful to take the derivative of this relation and relate and through a differential equation
In General Relativity, Eq. (1) is modified to have the following form
known as the Tolman-Oppenheimer-Volkov equation. This equation looks very similar to Eq. (1) except for the extra correction factors being multiplied on the right-hand side.
To solve for the structure of a neutron star, we need to solve for
by solving either Eqs. (1) and (2) in the Newtonian limit, or Eqs. (1) and (3) in full General Relativity. Since we have three unknown functions, we must also impose a third relation, known as the equation of state, which is a relationship between pressure and density.
Here, we adopt a quadratic equation of state following the reference given above (see Eq. (96) therein and converting to cgs units)
where the constant for , given in cgs units.
In solving these equations, we need to impose boundary conditions. The strategy is to fix the boundary conditions at the origin, , and solve for and for . The boundary conditions are
Since is negative, the pressure will decrease with . Where the pressure goes to zero, that defines the radius of the neutron star , i.e.,
The total mass of the neutron star is the mass enclosed within , i.e.,
The values of - that one obtains, as a function of the initial conditions, is the mass-radius relation.
Part A
Solve the system of coupled ODEs (1) and (2) corresponding to neutron stars in the Newtonian limit, taking a central density .
Compute the total mass and radius . Note: Values of will be in units of grams. Convert to units of solar masses. Also, will be in units of ; convert to units of .
Next, repeat the calculation above in the case of full General relativity, by solving the coupled ODEs (2) and (3), with the same initial conditions.
Make a log-log plot that shows as a function of for the two cases (Newtonian and General Relativity).
Hints:
You can write your own ODE solver, or you can use
solve_ivp(see documentation here). Forsolve_ivp, note that here the independent variabletis , and the dependent variableyisSince Eq. (1) is ill-defined exactly at (dividing by 0), impose your boundary condition at a small nonzero radius . Take for your initial conditions, and solve for and for .
You want to stop your ODE solver when the pressure drops to zero, i.e., you go from to , where is defined by . This can be accomplished in
solve_ivpusing theeventskeyword, as follows. First, define a functionevent_function(t,y)that returns the pressure. Second, include the line of code
which tells solve_ivp to stop the integration if the pressure changes sign. Third, include the keyword events=event_func in solve_ivp.
Part B
Consider a range of central densty values defined by the following array:
i.e., values of between . For all values of given above, compute the values of (in solar masses) and (in ) for both cases of Newtonian and General Relativistic neutron stars. Make a plot of (on the y-axis) and (on the x-axis), labeling the two cases. Use a log-scale for the y-axis and a linear scale for the x-axis.
Determine the maximum neutron star mass according to your calculations in the case of full General Relativity.
Hint: You should find that the Newton radius is independent of , and that there is no maximum mass.