Skip to main content
Sandbox Physics
Inside a neutron star

Repeat the TOV calculation and check it against NICER and GW170817

Begin with one star whose answer you can check independently. The downloadable program integrates in radius. The Lab integrates in enthalpy, a pressure coordinate that lets the solver land directly at the surface.

Match two integrations at a known mass

Unzip the materials in a fresh directory and install the listed Python dependencies. The pressure fits are Read’s selected Table III rows with a common SLy-like crust. The JSON contains the exact inputs. The fit uses rest-mass density in grams per cubic centimeter and pressure in dynes per square centimeter. The integrator converts pressure and total energy density into inverse square kilometers.

Run the first command from the extracted directory. The Python solver advances radius with an adaptive high-order step and stops at each pressure boundary. It solves for the metric perturbation and its derivative separately. The browser uses a transformed enthalpy coordinate and integrates the derivative-to-value ratio. Both formulas are regularized near the center.

Look at SLy in the at1p4 block. Its radius is 11.7061 km, its Love number is 0.07617, and its dimensionless deformability is 295.63. The independent radius calculation stops at a geometric pressure of ten to the minus 22 inverse square kilometers. In the browser, the enthalpy reaches zero. A constant-density benchmark instead gives the interior lapses exactly and exposes any errors in the matching to the exterior clock.

h(P)=∫0PdP′ε(P′)+P′,α(r)=1−2M/R e−h(P(r))h(P)=\int_0^P\frac{\mathrm{d}P'}{\varepsilon(P')+P'},\qquad \alpha(r)=\sqrt{1-2M/R}\,e^{-h(P(r))}
The lapse is the rate of a stationary clock relative to a distant clock. It is determined up to the normalization at the surface.
python -B scripts/astronomy/ac54/replay_reference.py --eos src/scripts/physics-lab/experiments/neutron-star-interior/model/read-eos.json --output rerun.json

Read et al. (2009), Phys. Rev. D 79, 124032 · Hinderer (2008), with the 2009 erratum · Typel et al. (2022), CompOSE reference manual

Extract the two published comparisons

For NICER, the chosen J0030+0451 run uses Riley’s hot spot plus crescent surface model. The equal-weight table has 12,242 rows. Use its second and third columns, gravitational mass and equatorial radius. The radius percentiles at 16, 50 and 84 percent are about 11.52, 12.71 and 13.84 km. These are marginal percentiles. Preserve the paired values when you draw the mass-radius plot.

For GW170817, use the official GWTC-1 v5 HDF5 table named in the source record. Use the detector-frame mass pair and the two component tidal values to compute the mass ratio and combined tide. A common factor in both masses cancels. Of 8,078 draws, 60 are outside the plotted window. Quantiles use every draw. For this fixed low-spin waveform, the 5th and 95th percentiles of the combined tide are 144.6 and 892.2.

The frozen model curve holds the source chirp mass at 1.186 solar masses and varies the mass ratio. Both predicted stars in that curve use one shared EOS. The measured samples keep the published low-spin posterior. Compare the overlap by eye. Assigning probabilities to fits would require a joint inference with specified priors and likelihoods.

python -B scripts/astronomy/ac54/extract_posteriors.py --nicer-range --members-output nicer-members --gw-hdf5 GW170817_GWTC-1.hdf5 --output posterior-rerun.json

Riley et al., Zenodo 3386449 v1.0.0 · LIGO–Virgo GWTC-1, P1800370 v5

Find a plausible mass that fails the sound-speed test

Open the APR4 test at 1.80×1015 g cm−31.80\times10^{15}\,\mathrm{g\,cm^{-3}}. The mathematical solution here has a mass of 2.183 solar masses. Its central sound speed squared is 1.300 times light speed squared. The model rejects that state, so this mass cannot be reported as a physical maximum of the fit. A new high-density extension would need another assumption and a new calculation.

For a subtler check, compare the n equals one Love number against Hinderer’s corrected table. At compactness 0.20, the integration gives 0.045886 compared with 0.0459. At compactness 0.15, the reference result is 0.078371 versus the listed 0.0776. The replay records both residuals. The analytic weak-gravity check is a separate test of the tidal matching.

Read et al. (2009), Phys. Rev. D 79, 124032 · Hinderer (2008), with the 2009 erratum

Files to run locally

Compare the stars in the Lab

Select APR4 and request the highest central density. Compare the sound-speed limit on the screen with the failed offline trial. Export the selected star and check the requested density against the actual integrated density.

Sources

Keep reading

What this page links to directly

See this series on the content map →

Inside a neutron star · Reading path

Inside a neutron star

  1. ArticleWhy a neutron star has a maximum mass
  2. ArticleDegeneracy pressure and the cold nuclear equation of state
  3. ArticleThe TOV equations for a static neutron star
  4. ArticleFrom a neutron star’s Love number to a binary tide
  5. You are hereRepeat the TOV calculation and check it against NICER and GW170817
  6. ArticleHow to read a hybrid-star phase diagram and joint EOS constraints
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy