Boundary Conditions for Stellar Models

The four equations of stellar structure — mass continuity, hydrostatic equilibrium, energy generation, and energy transport — are first-order ordinary differential equations, and by themselves they are useless. They describe how the pressure, radius, luminosity, and temperature of a star change as you move outward through its mass, but a differential equation with no boundary data admits infinitely many solutions, the way "the slope is 2" describes a whole family of parallel lines. What turns this open-ended system into a single physical star is the imposition of boundary conditions, and their placement is peculiar: two conditions belong at the center and two at the surface. This two-point boundary value problem — that split — is the source of everything hard and interesting about computing stellar models. At the center the conditions are pure regularity: a mathematical point encloses no volume and no energy source, so the radius and interior luminosity must both vanish, r=0r=0 and L=0L=0. Crucially, the central pressure and temperature are not handed to us — they are eigenvalue-like numbers the global solution must discover. At the surface the naive move is to set pressure, density, and temperature to zero at the stellar radius, but a real star has no sharp edge; it fades into a photosphere at optical depth τ≈2/3\tau\approx 2/3 where photons finally escape carrying the imprint of the effective temperature. Because the constraints live at opposite ends, no single integration can thread them — the whole apparatus of shooting and relaxation methods exists to solve exactly this. This article closes the stellar-structure system that its prerequisites opened.

Key takeaways
  • The four stellar-structure ODEs form a two-point boundary value problem: two conditions at the center, two at the surface — you cannot integrate them in one pass from either end.
  • The central conditions are regularity statements: as m→0m\to 0, r=0r=0 and L=0L=0, because a point holds no volume and no enclosed source. Central PcP_c and TcT_c are unknowns fixed by the global fit.
  • The crude surface conditions P=T=ρ=0P=T=\rho=0 at r=Rr=R are analytically handy (polytropes) but unphysical for the outer layers.
  • Realistic surface conditions live at the photosphere, τ=2/3\tau=2/3, where the Eddington gray law gives T=TeffT=T_{\rm eff} and hydrostatic balance gives Pphot≈23 g/κP_{\rm phot}\approx \tfrac{2}{3}\,g/\kappa.
  • Because data are split between two points, the system is solved by shooting (integrate from both ends, match at a fitting point) or by Henyey relaxation (linearize the whole grid and iterate).
  • Together with the equation of state, opacity, and energy generation, the boundary conditions select a unique model for a given mass and composition — the content of the Vogt–Russell theorem.
  • Key idea: two regularity conditions at the center (r=0r=0, L=0L=0) and two physical conditions at the photosphere (T=TeffT=T_{\rm eff}, P≈23g/κP\approx\tfrac{2}{3}g/\kappa) close the four stellar-structure ODEs as a two-point boundary value problem with a unique solution.
The core insight

Two regularity conditions at the center (r=0r=0, L=0L=0) and two physical conditions at the surface — a photospheric T=TeffT=T_{\rm eff} and P≈23g/κP\approx\tfrac{2}{3}g/\kappa, or the crude T→0T\to 0, P→0P\to 0 — close the four stellar-structure ODEs as a two-point boundary value problem.

Where this lives today

Every modern stellar-evolution code — MESA, the Geneva and Padova grids, GARSTEC — is at bottom a solver for this two-point boundary value problem, re-run as the composition slowly changes over a star's life. The workhorse is Henyey relaxation: the four ODEs are discretized on a mass grid of hundreds to thousands of shells, the boundary conditions are appended as extra equations, and the whole block-tridiagonal system is Newton-iterated to convergence at each timestep. The surface is where the physics is still refined: instead of the one-line Eddington relation, current codes attach precomputed non-gray model atmospheres (PHOENIX, MARCS, ATLAS grids in TeffT_{\rm eff} and log⁡g\log g) at a fitting depth τ∼10\tau\sim 10–100100, capturing line blanketing and near-surface convection the gray law omits. This matters observationally: it sets the predicted radii and colors that asteroseismology (Kepler, TESS) and interferometry (CHARA, VLTI) now measure to better than a percent. The same problem, ported to the outer layers of neutron stars and the irradiated atmospheres of hot Jupiters, remains an active frontier.

The physical picture

Think of the star as a rope stretched between two anchors. The four differential equations describe the shape the rope takes under tension, but a shape is only pinned down once you nail both ends. Half the nails are at the center — pure regularity, the demand that nothing blow up at the origin — and half at the surface, where the star meets vacuum and photons leak out. The center speaks geometry (a point holds zero mass and zero light); the surface speaks physics (photons escape where the gas turns transparent). The first figure lays out this two-anchor structure and shows why you must integrate from both ends toward a meeting point in the middle.

Figure
Two-point boundary value problem for a star: two regularity conditions anchor the center (r = 0, L = 0) and two physical conditions anchor the photosphere at optical depth τ = 2/3 (T = T_eff = 5772 K, P = (2/3) g/κ, with g = 274 m/s² for the Sun); shooting integrates from both ends toward a fitting shell where r, P, L, T must all match
Two anchors close the four ODEs: regularity at the center, a photosphere at the surface r = 0, L = 0 center: guess P_c, T_c fitting shell photosphere τ = 2/3 Sun: g = 274 m/s², T_eff = 5772 K CENTER known r = 0, L = 0 guess P_c, T_c SURFACE known T = T_eff P = (2/3) g/κ, guess R, L integrate out integrate in fit point match r, P, L, T

The center is not where the drama is; the surface is. Deep inside, the pressure is so enormous — of order 1016 Pa10^{16}\ \mathrm{Pa} in the Sun — that whether you set the surface pressure to zero or to its true photospheric value of ∼104 Pa\sim 10^4\ \mathrm{Pa} makes a difference of one part in 101210^{12} for the interior. That is why the crude "zero" surface condition is fine for the deep structure and for polytropes, yet fatal for the radius and near-surface temperature: the outermost layers, where a photon finally random-walks to freedom, are exactly the ones it mishandles. Photons escape not from a mathematical edge but from the photosphere, where the optical depth reaches order unity — precisely τ=2/3\tau=2/3 in the gray approximation, and there the local temperature equals the effective temperature. The second figure shows the temperature law that pins this down.

Figure
The Eddington gray-atmosphere law T⁴ = (3/4) T_eff⁴ (τ + 2/3): the local temperature equals the effective temperature exactly at τ = 2/3, marked at T = 5772 K for the Sun, while the true surface τ = 0 is cooler, T = (1/2)^(1/4) T_eff = 0.841 T_eff = 4854 K
The punchline: the gray T–τ law fixes T = T_eff at the photosphere τ = 2/3 0.9 1.0 1.1 1.2 1.3 1.4 0 2/3 2 3 4 5 optical depth τ (measured inward from space) T / T_eff τ = 2/3 → T = T_eff = 5772 K τ = 0 → T = 0.841 T_eff = 4854 K T⁴ = (3/4) T_eff⁴ (τ + 2/3)

The core equations

The starting point is the closed set of four structure equations in Lagrangian form, with the mass mm interior to radius rr as the independent variable. The mechanical pair balances gravity against pressure and relates radius to enclosed mass; write them together.

drdm=14πr2ρ,dPdm=−Gm4πr4(1)\frac{\mathrm{d}r}{\mathrm{d}m}=\frac{1}{4\pi r^2\rho},\qquad \frac{\mathrm{d}P}{\mathrm{d}m}=-\frac{Gm}{4\pi r^4} \qquad (1)

where: rr — radius enclosing mass mm; mm — interior mass, the independent variable; ρ\rho — local density; PP — total pressure (gas plus radiation); GG — gravitational constant. Reading: the first is geometry (radius grows as you add shells); the second is hydrostatic equilibrium (each shell's weight held up by the pressure gradient). The thermal pair carries the energy budget: luminosity is generated by the enclosed sources, and temperature falls outward at a rate set by whichever transport mechanism — radiation or convection — actually carries the flux.

dLdm=ε,dTdm=−Gm T4πr4P ∇(2)\frac{\mathrm{d}L}{\mathrm{d}m}=\varepsilon,\qquad \frac{\mathrm{d}T}{\mathrm{d}m}=-\frac{Gm\,T}{4\pi r^4 P}\,\nabla \qquad (2)

where: LL — luminosity crossing the shell at mm; ε\varepsilon — specific energy generation rate (nuclear minus neutrino, plus gravothermal terms); TT — temperature; ∇≡dln⁡T/dln⁡P\nabla\equiv\mathrm{d}\ln T/\mathrm{d}\ln P, equal to ∇rad\nabla_{\rm rad} if radiative, ≈∇ad\approx\nabla_{\rm ad} if convective. Reading: four coupled first-order ODEs need four boundary conditions. At the center, regularity fixes two of them. A mathematical point encloses zero volume and zero source, so both the radius and the interior luminosity must vanish as the enclosed mass goes to zero.

as m→0:r→0,L→0(3)\text{as } m\to 0:\qquad r\to 0,\qquad L\to 0 \qquad (3)

where: r→0r\to 0 — a point encloses no volume; L→0L\to 0 — a point encloses no source. Reading: notice what is not fixed — the central PcP_c and TcT_c are unknowns, eigenvalue-like numbers the global solution must select so the surface conditions come out right. The surface reference is the optical depth, counted inward from space, which measures how many photon mean free paths of material lie above a given layer.

τ(r)=∫r∞κ ρ dr′(4)\tau(r)=\int_r^{\infty}\kappa\,\rho\,\mathrm{d}r' \qquad (4)

where: τ\tau — optical depth measured inward from outside; κ\kappa — Rosseland mean opacity per unit mass. Reading: τ=0\tau=0 is deep space, τ\tau grows inward, and τ≈2/3\tau\approx 2/3 is the photosphere from which the emergent light effectively originates. The two physical surface conditions then live at the photosphere. The temperature there equals the effective temperature, and the luminosity is fixed by the blackbody area law.

τphot=23 ⇒ T=Teff,L=4πR2σTeff4(5)\tau_{\rm phot}=\frac{2}{3}\ \Rightarrow\ T=T_{\rm eff},\qquad L=4\pi R^2\sigma T_{\rm eff}^4 \qquad (5)

where: TeffT_{\rm eff} — effective temperature; RR — photospheric radius; σ\sigma — Stefan–Boltzmann constant. Reading: this replaces the crude T(R)=0T(R)=0 with a finite, observable temperature at finite radius. The fourth condition is the photospheric pressure, obtained by integrating hydrostatic balance across the thin surface layers down to τ=2/3\tau=2/3; Derivation 3 supplies it.

Pphot≃23 gκ,g=GMR2(6)P_{\rm phot}\simeq \frac{2}{3}\,\frac{g}{\kappa},\qquad g=\frac{GM}{R^2} \qquad (6)

where: gg — surface gravity; MM — total stellar mass; κ\kappa — surface-layer opacity. Reading: the surface pressure is how much material one mean free path of opacity holds up against gravity — it ties the outer boundary to MM, RR, and κ\kappa.

Derivation AWhy the center forces r = 0 and L = 0, and the near-center series

The goal is to show that the two central boundary conditions are not choices but forced consequences of regularity, and then to extract the leading behavior near the origin — the small-mass expansions that supply the starting values for an outward integration. We assume only that the central density, pressure, temperature, and energy-generation rate are finite, and follow the mass-continuity and energy equations into the limit m→0m\to 0, watching what stays finite and what would have to diverge.

Step 1. Near the center the density is nearly uniform at its central value ρc\rho_c, so the enclosed mass of a small sphere is m≈43πr3ρcm\approx\tfrac{4}{3}\pi r^3\rho_c. As r→0r\to 0 this drives m→0m\to 0 too, and inverting gives r≈(3m/4πρc)1/3r\approx(3m/4\pi\rho_c)^{1/3}. Why: with finite ρc\rho_c the radius and the enclosed mass must vanish together — a point holds no volume, so r=0r=0 at m=0m=0 is forced, not assumed.

Step 2. Integrate the energy equation with ε≈εc\varepsilon\approx\varepsilon_c constant over the innermost shells: L(m)=∫0mε dm′≈εc mL(m)=\int_0^m\varepsilon\,\mathrm{d}m'\approx\varepsilon_c\,m, so L→0L\to 0 as m→0m\to 0. Why: a mathematical point encloses no source; a nonzero central luminosity would demand an infinite energy-generation rate, so L=0L=0 is likewise forced.

Step 3. Feed the radius expansion into hydrostatic balance: dP/dm=−Gm/4πr4=−G4π(4πρc/3)4/3m−1/3\mathrm{d}P/\mathrm{d}m=-Gm/4\pi r^4=-\tfrac{G}{4\pi}\left(4\pi\rho_c/3\right)^{4/3}m^{-1/3}. Integrating from the center gives P(m)≈Pc−3G8π(4πρc/3)4/3m2/3P(m)\approx P_c-\tfrac{3G}{8\pi}\left(4\pi\rho_c/3\right)^{4/3}m^{2/3}. Why: the pressure approaches its central value smoothly as m2/3m^{2/3}, with zero slope at the origin — the regular behavior a physical core must have.

Step 4. Combine the radiative gradient with L∝mL\propto m to get the temperature series, T4(m)≈Tc4−12acκcεc(4π)2(4πρc/3)4/3m2/3T^4(m)\approx T_c^4-\tfrac{1}{2ac}\tfrac{\kappa_c\varepsilon_c}{(4\pi)^2}\left(4\pi\rho_c/3\right)^{4/3}m^{2/3}, where aa is the radiation constant and cc the speed of light. Why: this confirms T→TcT\to T_c smoothly and, with P(m)P(m), gives the four starting values a shooting code needs to lift off from the singular point m=0m=0. The result reproduces the standard central expansions (Kippenhahn, Weigert & Weiss; Hansen, Kawaler & Trimble): L∝mL\propto m and Pc−P∝m2/3P_c-P\propto m^{2/3} are the leading regular terms, and any other choice at m=0m=0 demands a divergent density or source.

Go deeper · Derivation B · 1 minThe Eddington gray-atmosphere temperature law
Derivation BThe Eddington gray-atmosphere temperature law

The goal is to derive the surface temperature condition from first principles: to show that a plane-parallel, gray, radiative-equilibrium atmosphere obeys T4(τ)=34Teff4(τ+2/3)T^4(\tau)=\tfrac{3}{4}T_{\rm eff}^4(\tau+2/3), so the local temperature equals the effective temperature at exactly τ=2/3\tau=2/3. This is what justifies placing the outer boundary at the photosphere rather than at a fictitious zero-temperature edge. We work with the first two angular moments of the radiative transfer equation and close them with the Eddington approximation.

Step 1. In radiative equilibrium the total flux carried by radiation is constant with depth and defines the effective temperature, F=σTeff4=constF=\sigma T_{\rm eff}^4=\text{const}. Why: no energy is created or destroyed in the atmosphere, so whatever flux leaves the top must pass through every layer — this constant flux is the anchor of the whole derivation.

Step 2. The first moment of the transfer equation gives dPrad/dτ=F/c\mathrm{d}P_{\rm rad}/\mathrm{d}\tau=F/c, and the Eddington closure relates radiation pressure to temperature, Prad=134σcT4=a3T4P_{\rm rad}=\tfrac{1}{3}\tfrac{4\sigma}{c}T^4=\tfrac{a}{3}T^4. Why: the moment hierarchy of transfer never closes on its own; the Eddington approximation (isotropic-enough radiation, so Prad=13uP_{\rm rad}=\tfrac{1}{3}u) supplies the missing relation and makes the system solvable.

Step 3. Substitute and integrate in τ\tau: 4σ3cT4=Fcτ+C\tfrac{4\sigma}{3c}T^4=\tfrac{F}{c}\tau+C. The integration constant is set by the surface condition on the emergent radiation, which in the Eddington limit gives C=23F/cC=\tfrac{2}{3}F/c (the Hopf constant 2/32/3). Why: the surface is where half the sky is dark space, and enforcing that half-open geometry is exactly what pins the constant — the boundary condition on the atmosphere feeds the boundary condition on the star.

Step 4. Collect terms: T4(τ)=34Teff4(τ+23)T^4(\tau)=\tfrac{3}{4}T_{\rm eff}^4\left(\tau+\tfrac{2}{3}\right). Setting T=TeffT=T_{\rm eff} gives 1=34(τ+2/3)1=\tfrac{3}{4}(\tau+2/3), i.e. τ=2/3\tau=2/3; setting τ=0\tau=0 gives the true surface temperature T(0)=(1/2)1/4Teff≈0.841 TeffT(0)=(1/2)^{1/4}T_{\rm eff}\approx 0.841\,T_{\rm eff}. Why: this is the payoff — the photosphere is not put in by hand at τ=2/3\tau=2/3, it emerges as the depth where the gray atmosphere reaches the effective temperature. This is the standard gray-atmosphere result (Carroll & Ostlie Ch. 9). The Hopf constant 2/32/3 is exact only in the Eddington approximation; the true value from the Hopf function is 0.71040.7104, a few-percent correction detailed atmospheres carry.

Go deeper · Derivation C · 1 minPhotospheric pressure from hydrostatic balance in optical depth
Derivation CPhotospheric pressure from hydrostatic balance in optical depth

The goal is to derive the fourth boundary condition, the photospheric pressure Pphot≈23g/κP_{\rm phot}\approx\tfrac{2}{3}g/\kappa, and show why it is the natural partner of the temperature condition. The trick is to change the integration variable in the hydrostatic equation from radius to optical depth, whereupon the density cancels and the equation integrates almost trivially across the thin, high-gravity surface layers, tying the outer pressure directly to surface gravity and atmospheric opacity.

Step 1. Write hydrostatic balance in the plane-parallel surface layers as dP/dr=−ρg\mathrm{d}P/\mathrm{d}r=-\rho g, with g=GM/R2g=GM/R^2 effectively constant because the atmosphere is a razor-thin skin compared with the stellar radius. Why: near the surface the enclosed mass is essentially the whole mass MM and the radius is essentially RR, so gravity stops varying and the geometry flattens.

Step 2. Change variable using the optical-depth definition dτ=−κρ dr\mathrm{d}\tau=-\kappa\rho\,\mathrm{d}r. Dividing the two relations, the density cancels: dPdτ=gκ\dfrac{\mathrm{d}P}{\mathrm{d}\tau}=\dfrac{g}{\kappa}. Why: this is the key simplification — the unknown run of density with depth drops out entirely, and pressure becomes a simple function of optical depth controlled only by gravity and opacity.

Step 3. Integrate from the top (τ=0\tau=0, P≈0P\approx 0) to τ=2/3\tau=2/3, treating gg and κ\kappa as roughly constant across the thin layer: Pphot=∫02/3gκ dτ≈23gκP_{\rm phot}=\displaystyle\int_0^{2/3}\frac{g}{\kappa}\,\mathrm{d}\tau\approx\frac{2}{3}\frac{g}{\kappa}. Why: this delivers a finite, physically motivated surface pressure that replaces P(R)=0P(R)=0 and, paired with T=TeffT=T_{\rm eff}, completes the outer boundary conditions. The result is standard (Kippenhahn, Weigert & Weiss Ch. 11). For the Sun, g=274 m/s2g=274\ \mathrm{m/s^2} and a photospheric κ≈0.02 m2/kg\kappa\approx 0.02\ \mathrm{m^2/kg} give Pphot≈9×103 PaP_{\rm phot}\approx 9\times 10^3\ \mathrm{Pa}, within a factor of the observed ∼104 Pa\sim 10^4\ \mathrm{Pa} — the discrepancy is the crudeness hiding in a single constant κ\kappa.

Limiting cases

The surface treatment can be posed at increasing levels of fidelity; the center barely notices the difference, but the radius and colors depend on it critically.

CaseResultMeaning
Zero (simple) surface conditionsP(R)=0, T(R)=0, ρ(R)=0P(R)=0,\ T(R)=0,\ \rho(R)=0Analytically convenient (polytropes, Lane–Emden); fine for the deep interior, but misplaces the radius and the near-surface temperature
Eddington gray photosphereT4(τ)=34Teff4 ⁣(τ+23)T^4(\tau)=\tfrac{3}{4}T_{\rm eff}^4\!\left(\tau+\tfrac{2}{3}\right)At τ=2/3\tau=2/3 gives T=TeffT=T_{\rm eff}; a clean analytic surface temperature condition
Photospheric pressure conditionPphot=23 g/κP_{\rm phot}=\tfrac{2}{3}\,g/\kappaHydrostatic balance integrated to τ=2/3\tau=2/3; ties surface PP to gravity and opacity
Full model atmosphere{T,P}∣fit\{T,P\}\big\vert_{\rm fit} from a non-gray integrationNon-gray, line-blanketed, partly convective atmosphere matched at τfit∼10\tau_{\rm fit}\sim 10–100100; most accurate
Center (always)r→0, L→0r\to 0,\ L\to 0Regularity; Pc, TcP_c,\ T_c remain free eigenvalues fixed by the global fit

Worked examples

1 · The effective temperature of the Sun from the surface flux condition (fully worked)

The Sun radiates L⊙=3.828×1026 WL_\odot=3.828\times 10^{26}\ \mathrm{W} from a photospheric radius R⊙=6.957×108 mR_\odot=6.957\times 10^8\ \mathrm{m}. Use the photospheric boundary condition L=4πR2σTeff4L=4\pi R^2\sigma T_{\rm eff}^4 to find TeffT_{\rm eff}, and then locate the photosphere and the true surface temperature in the Eddington law.

Step 1. Solve the surface luminosity condition for the effective temperature: Teff=(L/4πR2σ)1/4T_{\rm eff}=\left(L/4\pi R^2\sigma\right)^{1/4}. The emitting area is 4πR⊙2=6.08×1018 m24\pi R_\odot^2=6.08\times10^{18}\ \mathrm{m^2}, and with σ=5.670×10−8 W m−2K−4\sigma=5.670\times10^{-8}\ \mathrm{W\,m^{-2}K^{-4}} the denominator is 4πR2σ=3.45×1011 W K−44\pi R^2\sigma=3.45\times10^{11}\ \mathrm{W\,K^{-4}}.

Step 2. Divide and take the fourth root: Teff4=3.828×1026/3.45×1011=1.11×1015 K4T_{\rm eff}^4=3.828\times10^{26}/3.45\times10^{11}=1.11\times10^{15}\ \mathrm{K^4}, so Teff=(1.11×1015)1/4=5772 KT_{\rm eff}=(1.11\times10^{15})^{1/4}=\mathbf{5772\ K}. This is the number the boundary condition sets at the photosphere — not a free parameter but the temperature the surface flux demands.

Step 3. Place the photosphere. In the Eddington law T4=34Teff4(τ+2/3)T^4=\tfrac{3}{4}T_{\rm eff}^4(\tau+2/3), setting T=TeffT=T_{\rm eff} gives τ=2/3\tau=2/3 exactly. The true top of the atmosphere (τ=0\tau=0) is cooler: T(0)=(1/2)1/4Teff=0.841×5772=4854 KT(0)=(1/2)^{1/4}T_{\rm eff}=0.841\times 5772=\mathbf{4854\ K} — so the gas the crude condition would set to T=0T=0 is in fact at nearly 4900 K. T_eff = 5772 K at τ = 2/3, with the τ = 0 surface at 4854 K — never zero.

2 · The photospheric pressure of the Sun (fully worked)

Estimate the pressure at the base of the solar photosphere using Pphot≈23g/κP_{\rm phot}\approx\tfrac{2}{3}g/\kappa, taking a Rosseland mean opacity of κ≈0.02 m2/kg\kappa\approx 0.02\ \mathrm{m^2/kg} for the H⁻-dominated surface layers.

Step 1. Surface gravity: g=GM⊙/R⊙2=(6.674×10−11)(1.989×1030)/(6.957×108)2g=GM_\odot/R_\odot^2=(6.674\times10^{-11})(1.989\times10^{30})/(6.957\times10^8)^2. The numerator is 1.327×10201.327\times10^{20} and the denominator is 4.84×10174.84\times10^{17}, so g=274 m/s2g=\mathbf{274\ m/s^2} — about 28 times Earth's gravity.

Step 2. Photospheric pressure: Pphot=23 g/κ=23×274/0.02=9.1×103 PaP_{\rm phot}=\tfrac{2}{3}\,g/\kappa=\tfrac{2}{3}\times 274/0.02=\mathbf{9.1\times10^{3}\ Pa}, roughly one-tenth of an Earth atmosphere. The observed value is ∼104 Pa\sim 10^4\ \mathrm{Pa}, so the estimate lands within tens of percent.

Step 3. Read the sensitivity: every uncertainty rides in the single opacity κ\kappa, so halving it doubles PphotP_{\rm phot} — the whole reason detailed models replace this one-line condition with a tabulated non-gray atmosphere. Note too how far this is from the center: with Pc∼2×1016 PaP_c\sim 2\times10^{16}\ \mathrm{Pa}, the ratio Pphot/Pc∼5×10−13P_{\rm phot}/P_c\sim 5\times10^{-13}. P_phot ≈ 9×10³ Pa, about 10⁻¹² of the central pressure — negligible for the core, decisive for the radius.

Physics of the portrait

The boundary conditions that close a stellar model are, more than anything, the legacy of one person's decision to treat a star's interior as a problem in radiation and its surface as a problem in atmospheres — and to insist the two match.

Origins · 1 minArthur Eddington and how this was discovered
AE
Arthur Eddington
1882–1944 · the gray atmosphere and the internal constitution of the stars

Arthur Stanley Eddington turned stellar structure from speculation into physics. His 1926 masterwork The Internal Constitution of the Stars established that a star is a self-regulating ball of gas in which radiation pressure and radiative transport — not just gas pressure — govern the balance, and that the run of temperature is set by how photons diffuse outward against opacity. Two of his ideas sit at the heart of this article. First, the Eddington approximation for a gray atmosphere, which closes the transfer moment equations and yields T4=34Teff4(τ+2/3)T^4=\tfrac{3}{4}T_{\rm eff}^4(\tau+2/3) — the relation that lets us place the outer boundary at the photosphere τ=2/3\tau=2/3 where T=TeffT=T_{\rm eff}, rather than at an unphysical zero-temperature edge. Second, his mass–luminosity relation showed that once the interior and surface physics are fixed, a star's luminosity follows from its mass — an early glimpse of the uniqueness later formalized as the Vogt–Russell theorem. Eddington computed by hand what would later take supercomputers, and he did it by taking the boundary conditions seriously: regularity at the center, a real radiating atmosphere at the top. He was also the observer who, in 1919, tested general relativity at a solar eclipse.

History
1870
— Lane treats the Sun as a gaseous sphere in hydrostatic equilibrium, opening the theory of stellar interiors
1906
— Schwarzschild formulates radiative equilibrium in a stellar atmosphere and the criterion for convection
1926
— Eddington publishes The Internal Constitution of the Stars with the gray-atmosphere approximation
1926
— Vogt and Russell argue that mass and composition fix a unique equilibrium structure
1959
— Henyey and collaborators introduce the relaxation scheme for the stellar-structure boundary value problem

Going further

Texts. Carroll & Ostlie, An Introduction to Modern Astrophysics, 2nd ed., Ch. 9–11 (atmospheres, structure equations, boundary conditions) · Kippenhahn, Weigert & Weiss, Stellar Structure and Evolution, 2nd ed., Ch. 10–11 · Hansen, Kawaler & Trimble, Stellar Interiors, 2nd ed. · Prialnik, An Introduction to the Theory of Stellar Structure and Evolution, 2nd ed. · Mihalas, Stellar Atmospheres, for the non-gray surface treatment.

Provenance. The structure equations and central/surface conditions follow Carroll & Ostlie Ch. 10–11 and Kippenhahn, Weigert & Weiss Ch. 10–11. A verifier should confirm: (1) the central regularity conditions r=L=0r=L=0 and the leading expansions L∝mL\propto m, Pc−P∝m2/3P_c-P\propto m^{2/3}; (2) the Eddington law T4=34Teff4(τ+2/3)T^4=\tfrac{3}{4}T_{\rm eff}^4(\tau+2/3) giving T=TeffT=T_{\rm eff} at τ=2/3\tau=2/3 and T(0)=0.841 TeffT(0)=0.841\,T_{\rm eff}; (3) Pphot≈23g/κP_{\rm phot}\approx\tfrac{2}{3}g/\kappa from integrating hydrostatic balance in τ\tau; (4) the solar checks g⊙=274 m/s2g_\odot=274\ \mathrm{m/s^2}, Teff,⊙=5772 KT_{\rm eff,\odot}=5772\ \mathrm{K} from L=4πR2σTeff4L=4\pi R^2\sigma T_{\rm eff}^4, and Pphot∼104 PaP_{\rm phot}\sim 10^4\ \mathrm{Pa}. The Hopf constant 2/32/3 is exact only in the Eddington approximation (true value 0.71040.7104). No fabricated numerical values are used.

Prerequisites. Equations of Stellar Structure · Hydrostatic Equilibrium in Stars · Mass Continuity Equation · Opacity and Radiative Transfer in Stars · Equation of State for Stellar Matter. Leads to. Radiative Temperature Gradient · Convective Energy Transport · Mixing-Length Theory.

Ask the tutor: Ask me to walk through a shooting-method iteration by hand, or to show exactly how the Eddington 2/3 turns into a photospheric temperature for a star of your choice.

Why exactly two conditions at the center and two at the surface?

Because the system is four first-order ODEs, and a well-posed problem needs exactly four boundary conditions — no more, no fewer. The physics decides where they go. The center offers two: regularity forbids a nonzero radius or interior luminosity at a point, so r=0r=0 and L=0L=0. The surface offers the other two: the star must radiate a definite flux (T=TeffT=T_{\rm eff}, i.e. L=4πR2σTeff4L=4\pi R^2\sigma T_{\rm eff}^4) and support a definite atmospheric pressure (P≈23g/κP\approx\tfrac{2}{3}g/\kappa). The central pressure and temperature are left unspecified — they are the unknowns the global solution solves for, which is why the problem is genuinely two-sided.

What actually goes wrong if I just set P and T to zero at the surface?

For the deep interior, essentially nothing: the true surface pressure is about 10−1210^{-12} of the central pressure, so zeroing it barely perturbs the core. The trouble is in the outermost layers. The zero condition corresponds to τ=0\tau=0, the top of the atmosphere, whereas the light you see comes from τ≈2/3\tau\approx 2/3, where the gas is at TeffT_{\rm eff} and a finite pressure. Anchoring at τ=0\tau=0 therefore misplaces the radius and distorts the temperature run of the envelope — exactly the region that governs convection and the emergent spectrum. So the zero condition is fine for a polytrope or a first estimate, and wrong for predicting a star's size or color.

Why is the photosphere at τ = 2/3 rather than τ = 1?

The factor 2/32/3 falls out of the gray atmosphere, not out of a hand-waving "one mean free path." Solving the transfer moments with the Eddington closure gives T4=34Teff4(τ+2/3)T^4=\tfrac{3}{4}T_{\rm eff}^4(\tau+2/3), and asking where the local temperature equals TeffT_{\rm eff} returns τ=2/3\tau=2/3 precisely. Physically, the emergent flux is a weighted average of the source function over a range of depths, corresponding to looking down to about τ=2/3\tau=2/3. A more exact transfer calculation (the Hopf function) shifts the constant to 0.71040.7104, a few-percent correction. So 2/32/3 is the clean analytic answer; τ=1\tau=1 is only a rough mnemonic for "where the star becomes opaque."

What is the difference between the shooting method and Henyey relaxation?

Both solve the same two-point BVP from opposite philosophies. Shooting treats it as a root-find over the unknown boundary data: guess the missing values (central Pc,TcP_c,T_c; surface R,LR,L), integrate from both ends toward a fitting mass, and adjust by Newton–Raphson until the two integrations agree. It is simple but can be numerically stiff. Henyey relaxation instead discretizes all four equations on the entire mass grid at once, appends the boundary conditions as extra rows, linearizes about a trial model, and solves the block-tridiagonal system globally, iterating to convergence. Relaxation is more robust and is the standard for evolution, because it handles the whole star at once and marches stably over billions of years of timesteps.

How does the Vogt–Russell theorem connect to boundary conditions?

The Vogt–Russell theorem states that, given the constitutive physics (equation of state, opacity, energy generation as functions of state), the total mass and the chemical composition profile determine a unique equilibrium structure. The boundary conditions are the mechanism by which that uniqueness is enforced: they are what remove the residual freedom in the ODE solutions. Two central and two surface conditions pin down the otherwise free constants, so for a given MM and composition there is one self-consistent set of {Pc,Tc,R,L}\{P_c,T_c,R,L\} that satisfies them all. The theorem is not a rigorous mathematical proof — counterexamples exist for certain evolved configurations — but as a working principle it is why a single model emerges from the calculation rather than a family.

Does the central pressure really come out of nowhere, or is it constrained?

It is fully constrained, just not locally at the center. Unlike rr and LL, which regularity fixes at m=0m=0, the central pressure and temperature are global quantities: their correct values are the ones that make the outward integration satisfy the surface conditions, so you can think of them as eigenvalues. Guess them wrong and the model misses the photosphere; the iteration adjusts them until it lands. Order-of-magnitude they follow the virial-like scaling Pc∼GM2/R4P_c\sim GM^2/R^4 (about 2×1016 Pa2\times10^{16}\ \mathrm{Pa} for the Sun), but the precise value comes only from solving the full BVP — the deep reason the problem is two-point and not an initial-value march.

Before this

Where this leads