Open
Description
the code in TOVSolver.solverTOV
is unclear / potentially incorrect.
The code reads
r = 4.441e-16 * unit.cm
dr = 10.0 * unit.cm
pcent = eos(center_rho)
P0 = (
pcent
- (4.0 * pi / 3.0) * (pcent + center_rho) * (3.0 * pcent + center_rho) * r**2.0
)
m0 = 4.0 / 3.0 * pi * center_rho * r**3.0
stateTOV = np.array([P0, m0])
Guessing the P0
is the pressure at the current integration radius r
and m0
is the mass below r
and assuming that the authors assume constant density and pressure from 0..r
then the expression used for P0
seems to be missing a division by r-2*m0
in the second term.
See https://en.wikipedia.org/wiki/Tolman%E2%80%93Oppenheimer%E2%80%93Volkoff_equation the last term .
Metadata
Metadata
Assignees
Labels
No labels