Astronomy and Space Exploration ES

Simulators / Stellar structure: Lane–Emden

Stellar structure: Lane–Emden

Higher

Polytropes of index n: θ(ξ), density profile θⁿ, dimensionless radius ξ₁, concentration ρ_c/ρ̄ and the Sun modeled as a polytrope.

1ξ2ddξ(ξ2dθdξ)=−θn,ρcρˉ=−ξ13θ′(ξ1)\frac{1}{\xi^2}\frac{d}{d\xi}\left(\xi^2\frac{d\theta}{d\xi}\right) = -\theta^n,\quad \frac{\rho_c}{\bar\rho} = -\frac{\xi_1}{3\theta'(\xi_1)}
ξ₁
6.89685
−ξ₁² θ′(ξ₁)
2.01824
ρ_c / ρ̄
54.182
Sun: ρ_c
7.64×10⁴ kg/m³ (0.51 × actual)
Sun: P_c
1.24×10¹⁶ Pa
Sun: K
3.84×10⁹ SI
Lane–Emden θ″ + (2/ξ)θ′ + θⁿ = 0, θ(0)=1, θ′(0)=0 (series for ξ ≪ 1 + adaptive RK4). Lower panel: the Sun (M☉, R☉) modeled as a polytrope of index n; actual central density ≈ 1.5×10⁵ kg/m³ (standard solar model). Faint curves: n = 0, 1, 3 and n = 5 (infinite radius).

Library: src/lib/math/polytrope.tssrc/lib/math/integrators.ts