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)=∫0Pε(P′)+P′dP′,α(r)=1−2M/Re−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.
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.
Find a plausible mass that fails the sound-speed test
Open the APR4 test at 1.80×1015gcm−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.
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.