1. Motivation: the energy bottleneck

The Sun generates W in its core, but a photon emitted at the center does not come straight out: the mean free path in the interior is of the order of a millimeter, and the energy takes of the order of years to reach the surface. The opacity of the material controls how steep the temperature gradient must be for the luminosity to cross each layer; if the required gradient is too large, the gas becomes unstable and convection takes over. The Sun has a radiative interior and a convective envelope that begins at (Basu & Antia 1997, from helioseismology). This lesson derives the tools needed to understand that value.
2. Radiative transport: from the transfer equation to diffusion

2.1 Transfer equation
Let be the specific intensity (W m⁻² Hz⁻¹ sr⁻¹) in the direction . Along a ray, with the opacity (m² kg⁻¹) and the emissivity per unit mass,
In the stellar interior the mean free path is minuscule compared with the scale of variation of , so that the radiation field is almost isotropic and almost Planckian: in local thermodynamic equilibrium (LTE) (Kirchhoff’s law), with the Planck function.
2.2 Diffusion approximation
Let us write with a small anisotropic correction. In spherical symmetry, with the cosine of the angle with respect to the radial direction, , and to first order the transfer equation gives
The monochromatic radial flux is the angular integral of ; the isotropic term does not contribute and
This is a Fick’s law: the flux is proportional to the gradient of the energy density, with diffusion coefficient . The key assumption, , is equivalent to , which fails only in the atmosphere.
2.3 Rosseland mean opacity
The total flux is . To write it with a single opacity we define the Rosseland mean by
Then (1) integrated over frequency gives
with . Two observations:
- is a harmonic mean: it weights the transparent frequencies (where is large). The radiation escapes through the “windows” of the spectrum, like water through the holes of a bucket.
- The weight (not ) has its maximum at , somewhat above the Planck peak (): what matters is where the spectrum changes most with .
Observe in the simulator how the maximum of shifts with temperature and, mentally, where the Rosseland weight would be (toward somewhat higher frequencies, that is, shorter wavelengths). At K (base of the solar convection zone) the weight falls in the soft X-ray range, nm.
- T
- 5,772 K
- λmax
- 502 nm
- B−V
- 0.65
- σT⁴
- 6.29 × 10⁷ W/m²
- L/L☉
- 1.00
- Mbol
- 4.74
2.4 Radiative gradient and Eddington luminosity
With the logarithmic gradient and hydrostatic equilibrium (lesson 0, exercise 1):
If (very massive stars), , and since for the radiation pressure not to be inverted, the luminosity is bounded by the Eddington luminosity
with for . Above it, radiation expels the envelope.
3. Sources of opacity and Kramers’ law

3.1 Electron (Thomson) scattering
Each free electron scatters with cross section m² (CODATA 2018), independent of frequency. With for a fully ionized gas (exercise 2),
It depends on neither nor : it is the floor of the opacity at high temperatures.
3.2 Bound-free and free-free absorption: Kramers
Photoionization (bound-free, bf) and inverse bremsstrahlung (free-free, ff) have cross sections (Kramers 1923). Averaging with Rosseland (exercise 6) yields Kramers’ law . With the fits of Carroll & Ostlie (§9.2), converted to SI:
with in kg m⁻³, in K, the Gaunt factors (quantum correction) and – the “guillotine” factor, which corrects for the loss of bound electrons at high ionization. The factor in is decisive: the metals, even though they are 2 % of the mass, dominate the bound-free opacity because H and He are already completely ionized above K.
3.3 The H⁻ ion and the limits of Kramers
In cool atmospheres ( K) the dominant opacity is that of the negative ion H⁻ (binding energy 0.754 eV), whose abundance grows with the density of free electrons, supplied by the metals of low ionization potential. The result is : the opacity increases with temperature, the opposite of Kramers. Below K molecules and dust dominate. The modern tables (OPAL, OP) integrate millions of transitions; Kramers remains the useful analytic approximation between and K.
Example (center of the Sun). With kg m⁻³, K, , (BP2000): , () and m² kg⁻¹. With the three contributions are comparable, – m² kg⁻¹ (1–2 cm² g⁻¹): the center of the Sun is only one order of magnitude more opaque than pure Thomson scattering.
4. Convection I: the Schwarzschild criterion

4.1 Derivation
Consider a bubble of gas at that moves upward by fast enough not to exchange heat (adiabatic) and slowly enough to maintain pressure equilibrium with the surroundings (subsonic). Its density changes according to
while the surroundings change according to . The bubble keeps rising (instability) if it remains less dense than the surroundings, . For an ideal gas (at fixed ), , and
Since , the condition becomes , that is, the Schwarzschild criterion (1906):
where we have set because the actual gradient is the radiative one as long as there is no convection. For an ideal monatomic gas . If varies with (composition gradients), the condition is corrected with the Ledoux term, , which stabilizes the layers where increases inward.
4.2 Where a star convects
By (4), is large where , or are:
- Convective cores (): CNO burning, with , concentrates in a small mass, and shoots up.
- Convective envelopes (): in the partial-ionization layers of H and He, is enormous (H⁻ and bf) and moreover drops well below because part of the heat goes into ionizing (). Both effects push toward (7).
In the Sun, with , (mass interior to the base of the convection zone, BP2000) and , the criterion (7) reads (SI). At the base of the convection zone, K (BP2000), the threshold is Pa m² kg⁻¹. Going downward grows faster than (Kramers: ) and the layer becomes radiative again; going upward partial ionization sends soaring and sinks . This is why the boundary is where it is, and why it is so sensitive to the opacity: 10 % in between and K moves enough to distinguish between the old and new solar abundances (Bahcall, Serenelli & Basu 2005).
5. Convection II: mixing-length theory

The criterion (7) says whether there is convection, not how much energy it transports nor what the actual gradient is (between and ). Mixing-length theory (Prandtl; Böhm-Vitense 1958) answers with a model with a single free constant.
Assumption. The bubbles travel a distance before dissolving, with the pressure scale height and a parameter of order unity; the temperature excess and the velocity are those accumulated over on average.
Temperature excess. An adiabatic bubble that rises is hotter than the surroundings by
Velocity. The buoyancy force per unit mass is (ideal gas, pressure equalized). Integrating the work over , with an additional factor for friction and the inefficiency customary in this theory:
Convective flux. The bubbles transport heat per unit volume with velocity ; averaging over the path ():
Closure. In the interior, (convection transports almost everything); (9) is solved for . Estimate at the base of the solar convection zone (, K, m s⁻², as in BP2000, with , and kg m⁻³ as an order of magnitude):
The actual gradient exceeds the adiabatic one by one part in four million, and (sound speed m s⁻¹). Important conclusion: in the deep interior convection is so efficient that is an excellent approximation and the details of the theory do not matter. Near the photosphere, where drops to kg m⁻³, becomes of order unity, km s⁻¹ (the solar granules) and the value of does affect the radius of the model: this is why is calibrated with the Sun ( in most codes).
6. Numerical and error analysis

- Rosseland mean on a finite grid. has narrow peaks in the windows between photoionization edges and lines; with Simpson’s rule on a uniform grid the error is , but is enormous at the edges. A logarithmic grid in is used and refined around the edges . The harmonic mean is moreover sensitive to the small values of : a 10 % error in a dominant window carries over almost entirely to .
- Propagation of to the structure. From (4), , and the radius of the convective base responds to it approximately linearly: the OPAL and OP tables differ by – % in the solar interior and that moves by , of the same order as the helioseismic precision (). Opacities are today the precision limit of the solar model.
- Stiffness of the transport. In efficient convection zones, (9) forces one to resolve with : subtracting two nearly equal numbers costs 7 digits. The codes solve the cubic mixing-length equation directly in the variable and never as the difference .
- Validity of diffusion. The relative error of (1) is with . In the solar interior m and m: . In the photosphere and the full transfer equation must be solved.
Problems
1. Diffusion flux. Show, from and the transfer equation in LTE, equation (1), and check that the diffusion coefficient of the energy density is .
Show solution
With and : . At zeroth order ; at first order, , hence . Flux: . Since , with , the diffusion coefficient of a random walk with step and speed .
2. Electron scattering. Prove that for a fully ionized gas and deduce (5). What is for pure helium gas?
Show solution
Per unit mass there are protons (1 electron each), He nuclei (2 electrons) and, for metals with , nuclei with electrons, that is, electrons. Total: using . Then m² kg⁻¹. For pure He (): m² kg⁻¹, half that for pure hydrogen.
3. Eddington threshold. Show that if dominates, the condition (radiation cannot push harder than gravity) is equivalent to , and evaluate for a star of with , .
Show solution
, so by (3). The condition gives , that is, ; at the surface . Numerically: W per solar mass; for , . The most massive known stars are close to this limit.
4. Adiabatic gradient with ionization. For a partially ionized hydrogen gas with ionization degree , show that drops below and compute its approximate minimum value at with (hint: use an effective including from the Saha equation, ).
Show solution
Sketch. With (Kippenhahn et al. §4.3) where . In partial ionization, raising at fixed ionizes more gas: the number of particles increases ( drops, ) and moreover must be paid for each ionized atom ( grows a lot). With the Saha equation at constant one obtains (Kippenhahn et al., §14.3) . For or it recovers . For , : numerator ; denominator ; , less than a third of the value without ionization. This, together with the H⁻ opacity, is what makes the envelopes of cool stars convective.
5. Scale of the convection zone. With the data of §5, show that the turnover time of a bubble, , is of weeks at the base of the convection zone and compare it with the Kelvin–Helmholtz time of the envelope.
Show solution
m; m s⁻¹; s days. The thermal time of the convective envelope (, radius ) is s years. Convection is much faster than the thermal adjustment: the envelope is well mixed and, for the structure, the gradient is the adiabatic one.
6. (Computational) Rosseland mean of a Kramers opacity. Let for and below (photoionization edge at ). Compute numerically as a function of with Simpson’s rule on a logarithmic grid, and check that for const (the origin of the of Kramers together with the factor and the density of states).
Show solution
With , (exercise: derive it from Planck). Then
import numpy as np
def w(u): return u**4*np.exp(-u)/np.expm1(-u)**2 # stable form for large u
def simpson_log(f, a, b, n=2000): # Simpson in x = ln u (n even)
x = np.linspace(np.log(a), np.log(b), n+1); u = np.exp(x)
g = f(u)*u # du = u dx
return (x[1]-x[0])/3*(g[0]+g[-1]+4*g[1:-1:2].sum()+2*g[2:-1:2].sum())
norm = 4*np.pi**4/15
for u0 in [0.1, 0.5, 1, 2, 4, 8]:
num = simpson_log(w, 1e-6, u0) + simpson_log(lambda u: (u/u0)**3*w(u), u0, 60)
print(u0, norm/num) # kappa_R / kappa_0Results: (), (), (), (), for . For all the weight lies in the region and with (check: ). Since , this is . Since moreover (free-electron density and thermal velocity in the ff process), the result is : Kramers. Simpson error: doubling changes the result by less than relative (the integrand is smooth on a logarithmic scale); the upper cutoff at loses .
7. Convective core. For a star with CNO burning, , show that near the center and that . Explain qualitatively why the convective core extends beyond the point where becomes negligible.
Show solution
By lesson 0, and , hence and (4) gives the result. The convective core extends to where ; since has already reached almost its total value where drops, keeps decreasing only as , slowly, and stays high as long as does not fall: the convective boundary lies well outside the burning region (in , % of the mass versus a few percent where the energy is generated). Moreover, the inertia of the bubbles produces overshooting beyond the formal boundary.
✦ Self-assessment
Further reading
- Kippenhahn, Weigert & Weiss (2012), Stellar Structure and Evolution, ch. 5 (radiative and conductive transport), 6 (stability: Schwarzschild and Ledoux), 7 (mixing length), 17 (opacities).
- Carroll & Ostlie (2017), §9.2 (sources of opacity, Kramers’ law) and §10.4 (transport and the convection criterion).
- Hansen, Kawaler & Trimble (2004), Stellar Interiors, ch. 4 (opacities) and 5 (energy transport, mixing length).
- Böhm-Vitense (1958), Z. Astrophys. 46, 108 — original formulation of mixing-length theory.
- Basu & Antia (1997), MNRAS 287, 189, DOI 10.1093/mnras/287.1.189 — depth of the solar convection zone from helioseismology.
- Bahcall, Serenelli & Basu (2005), ApJ 621, L85, DOI 10.1086/428929 — sensitivity of the solar model to the opacity.
- Iglesias & Rogers (1996), ApJ 464, 943, DOI 10.1086/177381 — OPAL opacity tables.
🍎 Teacher guide
- Time
- 2 classes of 90 min
- Learning outcome
- By the end, the student derives the diffusion approximation and the radiative gradient, interprets the Rosseland mean and Kramers' law, deduces the Schwarzschild criterion and applies mixing-length theory to estimate the superadiabaticity of the solar interior.
- Evidence of learning
- Submission of computational problem (6) with the Simpson convergence analysis, and of proofs 1 and 3.
Materials
- Python 3 with NumPy
- Blackbody simulator to discuss the Rosseland weight
- Tables 5–6 of the BP2000 model (Bahcall, Pinsonneault & Basu 2001)
Suggested sequence
Class 1 (90 min). Opening (10 min): how long does a photon take to leave the Sun? Random-walk estimate with ℓ ~ 1 mm. Development (65 min): transfer equation and diffusion approximation (§2.1–2.2); definition of the Rosseland mean with the blackbody simulator projected; radiative gradient (3)–(4) and Eddington luminosity; sources of opacity and Kramers, with the numerical example of the center of the Sun. Closing (15 min): problem 2 in pairs.
Class 2 (90 min). Opening (10 min): the bubble thought experiment. Development (60 min): derivation of the Schwarzschild criterion; where a star convects (CNO cores versus cool envelopes) and the threshold computation at the base of the solar convection zone; mixing length (8)–(9) with the numerical estimate of Δ∇ and v. Closing (20 min): mini-quiz; problem 6 with the convergence analysis is assigned.
Note on the data. The Kramers constants (6) are the fits of Carroll & Ostlie §9.2 converted from cgs to SI (κ[m²/kg] = 0.1 κ[cm²/g]; ρ[kg/m³] = 10³ ρ[g/cm³]). The estimate of §5 uses ρ ~ 10² kg m⁻³ as an order of magnitude at the base of the convection zone; T = 2.18×10⁶ K and m = 0.976 M☉ are from the BP2000 model, and α = 2.04 is the calibrated value of that model. The value 0.713 ± 0.001 R☉ of the convective base is from Basu & Antia (1997).
Common mistakes
- Averaging the opacity with an arithmetic mean. Do the thought experiment of the bucket with holes: the flux is set by the windows, hence the harmonic mean.
- Believing that convection appears "because it is very hot". Stress that the criterion compares two gradients and that the Sun is radiative precisely in its hottest part.
- Taking ∇_ad = 2/5 as universal. Show with problem 4 that partial ionization reduces it to ≈ 0.1.
- Interpreting mixing-length theory as a "derived" theory. It is a phenomenological model with one parameter calibrated on the Sun; in the deep interior its details do not matter because ∇ ≈ ∇_ad.
- Confusing the Eddington luminosity with an absolute maximum luminosity. It depends on κ: with smaller κ (helium, low metals) the limit rises.