Physics guide
The two-stream equations
The two-stream method replaces the full angular distribution of radiance in a plane-parallel cloud by two hemispheric averages, an upward intensity I↑ and a downward intensity I↓. The fluxes are F↑ = πI↑ and F↓ = πI↓; this app shows them as fractions of the flux incident on the cloud top. Within a homogeneous layer, with single-scatter albedo ω₀ and asymmetry parameter g, the solutions are sums of eΓτ and e−Γτ, with
Γ = 2 √(1 − ω₀) √(1 − ω₀g) ρ∞ = [√(1 − ω₀g) − √(1 − ω₀)] / [√(1 − ω₀g) + √(1 − ω₀)]
Γ sets how fast the light dies away with depth, and ρ∞ is the albedo of a cloud so thick that nothing reaches its base. See Chapter 14, "The Two-Stream Method" and "Semi-Infinite Cloud".
The flux profiles
For a layer of optical thickness τ⋆ lit from above by I₀ over a black surface, the book's solution is
I↑(τ) = ρ∞ I₀ [eΓ(τ⋆−τ) − e−Γ(τ⋆−τ)] / (eΓτ⋆ − ρ∞² e−Γτ⋆)
I↓(τ) = I₀ [eΓ(τ⋆−τ) − ρ∞² e−Γ(τ⋆−τ)] / (eΓτ⋆ − ρ∞² e−Γτ⋆)
At ω₀ = 1 these become 0/0, and the app uses the nonabsorbing-cloud solution instead: I↑ = I₀(1 − g)(τ⋆ − τ)/[1 + (1 − g)τ⋆] and I↓ = I₀[1 + (1 − g)(τ⋆ − τ)]/[1 + (1 − g)τ⋆]. Both are straight lines, and the net flux is the same at every depth.
Light reaching a layer from below (from the surface, or from a lower cloud) gives the mirror image of the same solution. Because the equations are linear, a layer lit from both sides has the sum of the two profiles. That is how the app draws the profiles over a reflecting surface and through two stacked layers. See Chapter 14, "Solution" and "Nonabsorbing Cloud".
The direct beam and the 60° angle
The book's two-stream does not track the unscattered sunlight separately. Through a layer that only absorbs, its transmittance is e−τ⋆/μ̄ with μ̄ = 0.5, exactly Beer's law for a beam at 60°. The dashed curve e−τ/μ̄ is that direct beam, which is part of the total F↓; the green curve F↓ − e−τ/μ̄ is the rest, the diffuse (scattered) downward flux. The diffuse transmittance is what remains: 𝓣diff = 𝓣 − 𝓣dir. There is no solar-angle control, because the book's two-stream answer does not depend on the angle. See Chapter 14, "Direct and diffuse transmittance".
Heating
−dFnet/dτ = 2(1 − ω₀)(F↑ + F↓)
The net downward flux Fnet = F↓ − F↑ falls with depth only where light is absorbed. The heating panel shows the fraction of the incident flux absorbed per unit optical depth, and the area under it across a layer is the light absorbed in that layer. For one cloud alone over a black surface that is its absorptance 𝓐; light coming back up from below adds more. Absorption is strongest where both streams are bright, usually near the top of the cloud, and it jumps where one layer meets another with a different ω₀. Turning it into a heating rate in K per day would also need the solar flux and the layer's geometric thickness and air density, which this app leaves out. See Chapter 14, "Solution".
The bounce series
A cloud over a reflecting surface, or above another cloud, sends part of its transmitted light back up to itself. The step control builds this up one reflection at a time. Step k includes the light that has been turned back upward k times by something below it. At step 0 the cloud is seen alone over a black surface; each further step adds one more round trip. For one cloud over a surface of albedo A, the reflectance builds up as
𝓡 = 𝓡 + 𝓣²A + 𝓡𝓣²A² + 𝓡²𝓣²A³ + … = 𝓡 + 𝓣²A / (1 − 𝓡A) 𝓣 = 𝓣 / (1 − 𝓡A)
Two stacked clouds follow the same pattern, with the lower cloud's 𝓡₂ in place of A: 𝓡 = 𝓡₁ + 𝓣₁²𝓡₂/(1 − 𝓡₁𝓡₂) and 𝓣 = 𝓣₁𝓣₂/(1 − 𝓡₁𝓡₂). After a finite number of steps some light is still travelling back upward, and the "still in transit" row shows it, so that reflection, absorption and light in transit always add up to 1. That light has not yet re-entered a cloud, so it is missing from the profiles: below the cloud, F↑ falls short of A·𝓣, and where two clouds meet, F↑ jumps from one cloud to the next. Both gaps close as the steps go on. The ∞ setting uses the closed forms directly. With bright, nonabsorbing layers the series converges slowly, which is exactly why the closed forms are worth having. See Chapter 14, "Clouds over Nonblack Surfaces" and "Stacked Cloud Layers".
Similarity scaling
In the two-stream approximation 𝓡, 𝓣 and 𝓐 depend on ω₀ and g only through ρ∞ and Γτ⋆. A cloud with asymmetry parameter g therefore has the same 𝓡, 𝓣 and 𝓐 as an isotropic cloud (g′ = 0) with
τ⋆′ = (1 − ω₀g) τ⋆ ω₀′ = ω₀(1 − g) / (1 − ω₀g)
Forward scattering barely turns light back, so a forward-scattering cloud is optically thinner for the purpose of reflection: it behaves like an isotropic cloud with fewer scatterers. The collapse plot draws that: for one ω₀′ the curves of 𝓡 and 𝓣 against τ⋆ spread out as g grows, and against τ⋆′ they coincide. Only the total 𝓡 and 𝓣 collapse. The direct beam e−τ⋆/μ̄ does not, because unscattered light is removed by the real τ⋆, not the scaled one. See Chapter 14, "Similarity Transformations".
ω₀ and g from droplet radius and wavelength
In droplet mode a cloud's ω₀ and g are computed by Mie theory for liquid water droplets with a gamma size distribution of effective radius reff and effective variance 0.1, at the wavelength you choose, using the same engine as the Mie explorer. In the visible, water barely absorbs, so 1 − ω₀ is of order 10−7, and g is about 0.86. In the near infrared, where liquid water absorbs (around 1.6, 2.1 and 3.7 µm), ω₀ falls to about 0.99 or below, and it falls further as the droplets get larger, because a large drop has more water to absorb in per unit of extinction. Because 1 − ω₀ is the number that matters for absorption, the readout shows it. The optical depth is still set by the slider. For a real cloud it would be nearly the same at every wavelength, since Qext ≈ 2. The solar two-stream model is not meant for wavelengths beyond about 4 µm, where the cloud's own thermal emission matters. See Chapter 14, and Chapter 13 for Mie theory.
What this app leaves out
This is the book's two-stream approximation, not an exact solution. The Monte Carlo app shows how far it is from the exact answer, adds an absorbing gas and geometric heights, and lets the solar angle vary. ω₀ and g can be set directly or computed for water droplets, but the app does not include gas absorption, aerosol or ice crystals.