← Back to David’s website

Global Atmosphere Lab

PLANETARY EXPERIMENT · REDUCED MODEL
BARE PLANET

Initial conditions

0.0MODEL DAYS
Drag to orbit · scroll to zoom · Q / E to roll
No atmosphere
Orange · Low-altitude wind1.5 km
Blue · High-altitude wind10.5 km
Atmosphere off
NIGHTSUNLIGHT ON ROCKDAY

Dust and craters remain until Oceans & land is enabled.

0.25×
Slower · 0.05×Faster · 16×

1 model day / 16 real seconds

Target rate · 1× = 1 day / 4s. Physics unchanged.

PEAK WIND—Across all four levels
THERMAL RANGE—Potential-temperature anomaly
MODEL4 × 1,280Independent atmospheric levels
STATENo fluidNo wind is being computed
LAND / ROCK AVERAGE—
OCEAN AVERAGE—
GLOBAL CONDENSATION—

Optional surface and water-cycle diagnostics.

A bare sphere with no atmosphere, Sun or rotation. Add the features individually below, or choose “Heat a still planet” to begin the day–night experiment.

LOOK INSIDE

North–south circulation

On the globe, orange arrows: low-altitude wind at 1.5 km. Blue arrows: high-altitude wind at 10.5 km. Each level’s wind is computed independently. Contours integrate actual northward mass transport; arrows show longitude-mean northward and upward winds on separate scales.

The equator-to-pole experiment makes thermally direct Hadley-like cells easiest to see. Day/night circulation can partly cancel in a longitude average. No realistic Ferrel cells or weather eddies are resolved.

What the model does, and what it leaves out

Wind arrows follow a continuous, display-only reconstruction of each computed layer. Small trail corners are rounded on the sphere; this adds no physical viscosity or model resolution. Arrowheads point along the current reconstructed wind.

Four independently evolving levels, with linearized momentum. This hydrostatic Boussinesq teaching model computes winds and potential-temperature anomalies in four 3 km layers. It is not calibrated to forecast Earth’s weather, Hadley-cell extent or jet speeds.

  • Each level has its own horizontal wind and buoyancy. No lower wind is set to the negative of an upper wind.
  • Hydrostatic pressure couples the levels. A common pressure solve enforces zero depth-integrated divergence, and continuity diagnoses vertical velocity with closed top and bottom boundaries.
  • Temperature anomalies and optional vapor are transported horizontally and vertically by those computed flows. A stable background stratification resists vertical displacement.
  • Momentum is linearized: nonlinear momentum transport, resolved convection and eddy momentum fluxes are absent. A conservative adjustment mixes heat and vapor in statically unstable columns; convective momentum transport is omitted. Thermally direct Hadley-like overturning can emerge; realistic angular-momentum-conserving jets and Ferrel cells cannot be claimed.
  • Rotation changes illumination and Coriolis separately. Camera orbit and roll never change the physics.

Heating and the circulation section

“Sunlit side / dark side” retains the fixed-Sun experiment. “Equator-to-pole” uses an idealized, longitude-uniform heating target: 12(1/3 − sin² latitude) K at every level, relaxed over 4 model days. It represents averaged heating, not the globe’s instantaneous shaded day/night boundary. Solar heating scales this target from 0% to 200%; 100% retains the original 12 K reference. This is an illustrative forcing amplitude, not an absolute solar-flux calibration of the atmosphere. The Sun switch sets the input to zero and restores the last nonzero selection when switched on.

The latitude–height section uses longitude averages and a trailing time average built from the simulated run. Its streamfunction is cumulative northward mass transport, derived from finite-volume divergence and fractional latitude-band overlap. It is zero at the poles and bottom, and closes at the top to pressure-solver tolerance. The average restarts when physics settings change or the atmosphere resets. Contours are calculated from the data, not drawn as preset loops.

Earth geography and the optional surface

Real coastlines come from Natural Earth, with public-domain data. Display and physics share that mask; each fluid layer has only 1,280 cells, so the atmosphere resolves fewer coastal details. Mountain elevation remains illustrative. It adds lower-level drag and an elevation correction to saturation, but does not resolve blocked flow or mountain waves. Relief shading is exaggerated 50×.

Surface storage solves C ΔT/Δt = absorbed sunlight − εσ(T_new⁴−3⁴) − LᵥE. Heat capacities are 2×10⁵ J m⁻² K⁻¹ on land and 2.1×10⁷ for the 5 m ocean slab; all start at 260 K. Mean-free surface-temperature contrasts supply one-way atmospheric heating. In equator-to-pole mode, surface sunlight is averaged over longitude. With surface storage, the same percentage instead scales incoming sunlight: 100% uses the existing 1,361 W m⁻² solar constant before incidence and albedo. It is not a calibrated prediction of Earth temperature. Surface heat, vapor and winds are retained when the input changes. There is no atmospheric back-radiation or closed surface–air heat budget.

Ocean water is held liquid and externally replenished. Freezing, boiling, sea ice and ocean currents are omitted, including in the no-air sandbox. The cratered surface remains visible when air, sunlight, rotation or surface storage is added. Only Oceans & land switches the base to the Earth map. Scalar colors are smoothed, translucent render overlays, not extra simulation resolution; their blending does not change numeric diagnostics. The cratered surface and its display lighting do not heat or force the fluid.

Four-level toy water cycle

Each level transports its own vapor reservoir in kg/m², with reference dry-air mass ρ₀Δz = 2,400 kg/m². Ocean evaporation supplies the lowest level and removes LᵥE from the slab. Excess vapor condenses on a one-hour timescale; actual removed water supplies precipitation and, when enabled, local buoyancy heating g Lᵥ ΔW/(Θ₀ c_p ρ₀Δz). The atmospheric water source/sink ledger is tracked. No latent mean is removed in this four-level model.

If a column becomes statically unstable, adjacent unstable levels are pooled to a neutral total-potential-temperature profile. The same blocks mix vapor. This instantaneous convective adjustment conserves column heat and water, retains positive vapor, and cannot increase perturbation potential energy. It does not resolve thunderstorms or mix momentum. Whole-layer convective events can be sensitive to timestep and vertical resolution; wet results are illustrative, not precision predictions.

Saturation uses an illustrative altitude-dependent temperature/pressure profile plus the layer anomaly, with a 180–340 K formula clamp and 5% humidity cap. This is a parameterized water cycle, not cloud microphysics. White patches show relative condensation, not forecast cloud cover.

Numerics and limits

The spherical C grid has adjoint pressure-gradient/divergence operators and a skew-adjoint Coriolis operator. Four-stage Runge–Kutta advances the hydrostatic core with a 600 s dry step and 300 s moist step; the barotropic pressure is solved by nullspace-safe conjugate gradients. Conservative donor-cell scalar transport subcycles on the full horizontal-plus-vertical outflow CFL. Surface/transport/moist physics are split first-order steps. The collocated vertical grid has a checkerboard buoyancy mode damped by radiative relaxation; vertical-refinement tests check that the displayed overturning is not that mode.

∂uₖ/∂t = −∇φₖ − f k×uₖ − rₖuₖ
φₖ₊₁ − φₖ = Δz(bₖ + bₖ₊₁)/2
∇·uₖ + (wₖ₊₁ − wₖ)/Δz = 0
Dbₖ/Dt = −N²w_center + (b_eq − bₖ)/τ + latent heat

Reference values: Θ₀ = 300 K, ρ₀ = 0.8 kg/m³, N = 0.008 s⁻¹, depth = 12 km, radius = 6,371 km. Drag is 8 days aloft with an additional 1-day drag averaged over the lowest 3 km. These values define a mechanism experiment, not an Earth calibration. The previous single-mode solver remains in the source as a tested baseline. For smooth animation, the display interpolates rotation and wind velocities together between completed solver snapshots and reuses its drawing buffers. This does not change the model timestep, circulation, or time averages. Numeric readouts show the latest computed state.

Method background: MITgcm hydrostatic pressure method · GFDL idealized atmosphere hierarchy · Isca framework. This lab is an independent reduced implementation, not a reproduction of those solvers.

Numerical diagnostics loading…