PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Astronomy & The Sky

Other simulators in this category — or see all 51.

View category →
NewSchool

Galaxy Rotation Curve

Keplerian decline vs flat v(r); toy halo slider (dark matter motivation).

Launch Simulator
NewSchool

Stellar Life Cycle

Cloud → MS → giant/SN → WD / NS / BH vs initial mass (schematic).

Launch Simulator
NewSchool

Exoplanet Radial Velocity

K from masses & P; sinusoidal V_r(t); M sin i.

Launch Simulator
NewSchool

Exoplanet Transit (light curve)

Uniform disk overlap; R_p/R_*; impact b; F(t) vs period.

Launch Simulator
NewSchool

Exoplanet Transit (limb darkening u₁, u₂)

Quadratic limb-darkened disk; grid-integrated F(t); TESS-like solar preset vs uniform-disk page.

Launch Simulator
NewUniversity / research

Sphere of Influence (Hill)

r_H ≈ a (m/3M)^(1/3): schematic secondary orbit and Hill radius vs masses and a.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Astronomy & The Sky/Neutron star TOV: toy M–R (polytrope)

Neutron star TOV: toy M–R (polytrope)

The Tolman–Oppenheimer–Volkoff (TOV) equations describe hydrostatic equilibrium of a spherically symmetric self-gravitating fluid in general relativity using the Schwarzschild metric. In the mass–radius plane, realistic neutron-star models depend sensitively on the cold dense-matter equation of state above nuclear saturation density. This toy page fixes a simple polytropic closure P = K ρ^Γ with Γ = 2 (polytropic index n = 1) or Γ = 5/3 (n = 3/2), integrates outward in radius with RK4, and normalizes K separately for each choice so that scanning central density yields a maximum mass near ~2 M☉ — a pedagogical anchor, not a nuclear-physics fit. Rotation, magnetic fields, finite temperature, crust physics, and causal EOS constraints are omitted.

Who it's for: Advanced undergraduate GR / astrophysics after the Chandrasekhar white-dwarf page; prelude to tabulated neutron-star EOS discussions.

Key terms

  • TOV equation
  • neutron star
  • mass–radius relation
  • polytrope
  • Schwarzschild metric
  • compact object

Polytropic EOS (toy)

Active polytropic index n = 1.5. K is pre-set so the ρ_c scan peaks near ~2 M☉ for this toy model.

Central density sweep

16.5
19
17.6

Shortcuts

  • •Choose polytrope n = 1 or 1.5
  • •Drag log₁₀ ρ_c range and marker
  • •R — reset

Measured values

Peak M (curve)2.000M☉
R at peak16.83km
M at marker1.761M☉
R at marker23.59km

How it works

This is a minimal Tolman–Oppenheimer–Volkoff integrator in Schwarzschild geometry for a cold polytrope P = K ρ^Γ with Γ = 2 (n = 1) or Γ = 5/3 (n = 3/2). K is fixed per choice so that scanning central density ρ_c gives a maximum mass near ~2 M☉ — a teaching normalization, not a fit to nuclear physics. dm/dr = 4π r² ρ and the standard pressure gradient with (ρ + p/c²) and (m + 4π r³ p/c²) are included; no crust, no rotation, no realistic EOS tabulated from QCD. The plotted branch truncates at the mass peak along the ρ_c sequence to emphasize the stable segment before collapse.

Frequently asked questions

Why does the cyan curve stop at a peak?
Along increasing central density the stable sequence typically reaches a maximum mass; beyond that, configurations are secularly unstable toward collapse. The plot truncates at the largest mass found on the scanned ρ_c grid to emphasize the stable segment.
Is ~2 M☉ from nuclear data?
No — K is hand-tuned for each polytrope so the scan peaks near 2 M☉. Observed high-mass pulsars (~2 M☉) constrain real EOS models, which are much stiffer and structured than a single polytrope.