WHAT THIS LAB DOES, AND WHAT IT DOESN’T
A weather-ingredients laboratory.
Place initial air masses, impose a circulation, and watch temperature and water vapor travel, stretch, and mix. The map shows where a simplified lifting model could produce cloud condensate, precipitation, and the combination of ingredients associated with thunderstorms.
There is no connection to current observations. The basemap shows the contiguous United States at geographic scale. The weather is an invented experiment, not conditions at those locations. The low/high markers specify winds; they are not solutions of a pressure or momentum equation. Do not use this lab for flight planning or weather decisions.
The U.S. map and the empty workspace
The lab opens without placed air masses, lows, highs, or background wind. A uniform ambient thermodynamic baseline is necessary for the calculations, but it contains no fronts, rain, or thunder ingredients. “Clear to empty map” returns to that state. The example scenarios are opt-in. “Replay” only restarts the setup you have already built.
The state outlines use a spherical Lambert conformal conic projection centered on 39°N, 96°W, with 33°N and 45°N standard parallels. The 48 contiguous states and Washington, DC are included. Alaska and Hawaii are omitted rather than put into misleadingly rescaled insets. City anchors and state outlines help you judge the size of your systems.
The scale bar is calibrated to ground distance at 39°N. Projection scale varies by less than about 3.5% across 25–50°N. The model uses projected meters for distances, wind transport, grid spacing, and air-mass/circulation radii. The geographic north direction varies slightly across this projection; the north indicator represents the central meridian. This is not a navigation chart.
1. The part that genuinely evolves
A 96 × 64 finite-volume grid transports air-weight, temperature-weight, vapor, condensate, an idealized lifted-parcel-height tracer, and a separate identity weight for each placed air mass plus the ambient air. The map and solver share a 5,200 × 3,400 km projected-meter domain. Grid spacing is about 54.17 × 53.13 km. The time step is capped at 120 seconds and further limited by an outgoing-flux Courant number of 0.42. Donor-cell upwind fluxes keep the transported weights nonnegative. Physics steps use model time, independent of the drawing frame rate.
∂(Aχ)/∂t + ∇ · (uAχ) = sources
χ = temperature, vapor mixing ratio, cloud mixing ratio, lifted height, or source fraction
A is a bookkeeping weight that permits conservative transport in the imposed, converging flow. It is not a solved atmospheric column mass or surface pressure. Temperature is a passive near-surface tracer. Vapor plus cloud condensate plus cumulative fallout, adjusted for signed water exchange through the open boundaries, is conserved to floating-point accuracy. Re-seeding starts a new budget.
The map edges are open, not connected to one another. Air leaving an edge exits the experiment. Inflow carries the uniform ambient baseline: 17°C (63°F), 5°C (41°F) dew point, no cloud condensate, and zero lifted height. Temperature and air-weight boundary exchanges are tracked too. Initial air-mass stamps do not wrap. The geographic coastlines and state borders are visual references only; terrain, land–sea effects, radiation, and surface evaporation do not alter the model. Upwind transport causes numerical mixing, so small, sharp features diffuse. Runs stop at 48 model hours; long-lived features are particularly sensitive to these assumptions.
2. Rotation and surface inflow
Each center imposes a smooth rotational velocity whose tangential speed peaks at the chosen radius. Strength is the peak tangential speed of that individual center. The surface radial speed is the selected fraction of that rotational profile. Circulations have a single center on the map and do not repeat across edges. Individual centers and the uniform background wind add together; combined speed is capped at 65 m/s for numerical and visual practicality. This cap modifies the net air velocity only at extreme combined winds; exact shared translation is tested with local circulation disabled and below the cap.
In this Northern Hemisphere experiment, a low rotates counterclockwise with inward flow; a high rotates clockwise with outward flow. Setting inward/outward flow to zero creates pure rotation. The strongest wind is not at the center. In fixed-center mode, markers stay where you put them while the air around them moves. The default “Move with westerly flow” mode uses the same uniform eastward velocity for the bulk air transport and each complete circulation. Local rotation and radial flow are added to that background for air transport, so air still turns and deforms around a moving center. The background is included once in the air velocity; moving the center does not add it a second time. Fixed-center mode holds centers in place while the air can still move.
The model does not calculate Coriolis acceleration, pressure evolution, geostrophic adjustment, latent-heating feedback on winds, or cyclone growth. Adjacent warm and cold air does not spontaneously create a low. You supply the wind field.
Coupled westerly motion and optional independent steering
By default the westerly slider controls both background-air velocity and system translation, from 0 to 20 m/s (displayed in knots). At zero, neither has bulk drift, although a nonzero local circulation can still transport air. The traveling-low example starts with 10 m/s for both. Fixed-center mode is available explicitly. The closing-warm-sector comparison retains fixed centers to preserve its calibrated demonstration.
“Independent steering · advanced” exposes a separate 0–30 m/s system speed and direction. This mode can deliberately move a circulation ahead of, behind, or across its background air; it does not add steering wind to the air. Use the default coupled mode for shared bulk motion. In this advanced mode, direction means travel toward the selected map direction, not meteorological wind-from direction. North is upward and east is rightward in the projected grid; these are not exact true bearings everywhere on the Lambert map. At each CFL-limited model step, air tracers are transported with the wind at the current circulation positions. The complete centers then translate by steering velocity × model seconds, and all wind components, face flux velocities, the CFL limit, and lift diagnostics are rebuilt for the next state. This is first-order prescribed time-dependent flow, consistent with the first-order transport scheme.
Advanced: dcx/dt = S sin(θ) / domain width
dcy/dt = −S cos(θ) / domain height
θ = travel-toward map bearing; S = independent system speed
Changing speed, direction, or motion mode does not reset time or jump a center. Fixed mode and zero effective system speed hold current positions. Centers continue beyond the open map edges, without wrapping, clamping to the edge, or being deleted; the remaining circulation influence decays smoothly with distance. Reversing direction can bring a center back. A status note counts centers outside the map. Replay restores the original placed or manually dragged positions and current control settings.
Steering represents an externally prescribed system track, not solved upper-air winds, pressure evolution, or momentum balance. Actual surface pressure systems are influenced by upper-air flow and development. The lab does not predict their tracks. The empty workspace and ordinary examples use coupled westerly motion. The closing-warm-sector example retains fixed centers; the motion mode is shown explicitly in the control. Older setup objects without steering settings retain fixed centers. There is no saved-session or file-import feature.
3. Calculated fronts and diagnosed lifting
Fronts follow the evolving contacts between different air masses. Every initial stamp contributes an extensive source-identity weight, transported by exactly the same conservative fluxes as the air. The weights sum to the local air-weight; inflow receives ambient identity. A source label alone cannot make a front. The analysis also checks the current temperature contrast across the contact and the actual local thermal gradient.
Every ten model minutes, the analysis traces equal-fraction contacts between locally dominant sources. Their combined fraction must exceed 62%. Ordinary frontal symbols require an initial source contrast of at least 6°C, a current cross-boundary contrast of 3°C sampled two grid cells to either side, and a local gradient of 0.6°C per 100 km. Weaker or well-mixed contacts are not drawn as ordinary fronts. These coarse-grid thresholds are educational choices, not operational analysis criteria.
- Cold: the tracked contact advances toward its warm side. Blue triangles point that way.
- Warm: the tracked contact advances toward its cold side. Red semicircles face that way.
- Stationary: normal motion stays below 2.5 m/s for 30 model minutes. Alternating blue triangles and red semicircles sit on opposite sides. Along-front wind may still be strong. A 3 m/s exit threshold limits flicker.
- Occluded: a previously tracked cold front closes on a warm front enclosing the same warm sector, and the two distinct cooler air masses subsequently make contact. Purple triangles and semicircles alternate on the same motion side.
Contact motion comes from the change in transported source fractions along the cold-to-warm normal, with a short smoothing filter. It is not assigned from the direction of rotation or the tangential wind. A moving type must persist for 20 model minutes; dashed gray contacts are still collecting motion evidence. Segment tracking and every persistence threshold use model seconds, independent of animation speed.
Occlusion has an extra history requirement. The same parent cold/warm segment identities must show consecutive closing observations for at least 30 model minutes, with at least 0.7 grid cell of narrowing. Opposing normals, closure faster than 0.8 m/s, a common warm sector, and simultaneous warm fraction ≥50% and diagnosed lifted height ≥250 m are required. Gaps or different parent identities cannot accumulate that evidence. After this continuous approach is established, its location is transported for at most six model hours to look for actual contact of the two cooler sources within three cells. The former warm fraction must then fall below 35% and lose at least 25 percentage points, while a current temperature contrast of at least 1.5°C remains.
This is a two-dimensional occlusion diagnostic, not a resolved layer of warm air aloft. The lifted-height tracer is evidence of parameterized lifting; warm surface-fraction loss includes numerical mixing. There is no solved vertical frontal slope, three-dimensional cyclone, or elevated warm-air reservoir. The method cannot reliably distinguish real warm-type versus cold-type occlusions. A purple symbol means this model’s specified history and contact tests were met. In the optional “closing warm sector” example, small purple contact segments first appear around 13–16 model hours; they are intentionally local rather than a decorative long purple line. It is deliberately absent when merely placing two cool air masses next to each other. Fronts do not guarantee rain, and clouds or rain do not automatically create a front.
The local wind-gradient tensor provides a deformation/frontogenesis measure: how rapidly the prescribed flow would strengthen the temperature gradient. Low-level convergence provides another lifting ingredient. A deliberately simple parameterization turns those into a vertical-velocity proxy:
w* = clamp[1,200 m × (−∇ · u) + 2,500 m × F × min(G / 3, 2), −0.15, 0.35] m/s
G = |∇T| in °C per 100 km
Dz/Dt = w* − z / (4 hours), with 0 ≤ z ≤ 4,500 m
Those lengths and the four-hour relaxation are pedagogical choices, not a calibrated weather parameterization. The height tracer gives sustained lifting time to act. It is not terrain, cloud-base altitude, or a forecast of an air parcel’s exact path. The map’s lift layer includes sinking as well as rising.
4. Moisture-limited rain, separate thunder ingredients
An approximate lifting-condensation level is 125 m per °C of temperature–dew-point spread. The diagnostic parcel cools at 9.8°C/km below that level and a fixed 6°C/km above it, with pressure decreasing exponentially using an 8 km scale height. Vapor in excess of saturation becomes cloud condensate. Unsaturated air can re-evaporate available condensate. Condensate falls out with a one-hour timescale. This conserves the modeled water budget.
Green shading is a relative rain proxy from that fallout per unit transported air weight. It is not rain rate in mm/hour, radar reflectivity, accumulation, or a probability. “Rain-proxy area” counts cells above 0.1 g/kg/hour in this internal diagnostic. Snow, hail, lightning, evaporation below cloud, and detailed microphysics are not resolved.
Gold hatching requires all three modeled ingredients: adequate vapor, positive diagnosed lift with parcel height near the approximate condensation level, and a parcel at 3 km warmer than the chosen environmental temperature there. Environmental cooling is the lapse-rate control. The fixed moist lapse rate and simplified parcel calculation are not a sounding, CAPE, CIN, or a forecast thunderstorm probability.
The normalized ingredient product ranges from 0 to 1; hatching and the displayed area require a value above 0.25. Dry air or a stable profile can suppress it even where a sharp front and lift remain. The lab does not resolve thunderstorm cells, gust fronts, storm organization, severe-weather potential, or vertical wind shear.
5. Time rate and controls
The time-rate slider selects 0.1, 0.25, 0.5, 1, 2, 4, or 8 model hours per real second. The requested rate and the achieved model-hours per real second are shown above the map. Achieved rate is measured over roughly half-second windows. Stable physics substeps are unchanged. Each visible animation interval adds the corresponding model seconds to a queue; at most 12 substeps are processed per frame so controls stay responsive. If computation cannot keep up, “Catching up” shows the queued hours instead of silently dropping elapsed time. Rate changes affect only newly queued time.
Pause stops at the currently displayed model state and explicitly discards pending wall-time backlog, so Resume does not produce a catch-up burst. “+30 min” pauses and advances exactly 30 model minutes, or the remaining time before the 48-hour limit. Replay, Clear, and air-mass edits start a new experiment and clear the queue. Hiding the browser tab intentionally pauses and clears pending time; return and press Play to continue.
- Choose an air-mass tool, then tap the map. A stamp blends temperature and vapor into the initial field. Later stamps take precedence where they overlap. Paused badges labeled “start” show these initial stamps, not tracked air-mass centroids; the color field and diagnosed fronts show the evolving air. Air-mass edits and dragging re-seed the full experiment and reset the clock.
- Choose a low or high, then tap the map. Select its marker to change rotational strength, radius, and inward/outward flow. Circulation edits take effect without resetting time.
- At most 12 air masses and centers can be placed. “Replay” returns to your current initial air masses and placed center positions, preserving the current circulation strengths, environment, and steering settings. Dragging a moving center pauses playback and changes its replay starting position; edits to strength or radius do not move its starting point.
- On phones, the map remains visible as you scroll into the placement and editing controls. Use the point inspector to connect the color shading to temperature, dew point, wind speed, and diagnosed lift.
- For keyboard use, Tab to the map, use arrow keys to move the cursor, and Enter to place or select a marker. Space toggles Play/Pause.
Basemap source
Made with Natural Earth public-domain map data. State geometry comes from its 1:50m state/province polygons; neighboring land comes from the 1:110m country polygons. Great Lakes and Great Salt Lake water outlines use Natural Earth’s 1:50m lake data. Geometry is bundled with the lab, so no map API key or live map service is required. City anchors are approximate city-center coordinates.
Teaching references
The model itself is custom and intentionally simpler than the atmosphere. These primary sources support the qualitative mechanisms:
- NOAA JetStream: Weather Maps — cold, warm, stationary, and occluded definitions, chart colors, symbol placement, and the warm air lifted during occlusion.
- NOAA JetStream: Air Masses — contrasting air masses, fronts, lifting, and differences in frontal structure.
- National Weather Service: Pressure Systems, Fronts, Jet Streams, and Precipitation — Northern Hemisphere circulation, surface inflow, moisture and instability.
- National Weather Service: Thunderstorm Ingredients — moisture, lift, instability, and the additional role of shear in organized severe storms.
Steering context: NOAA JetStream: Upper Air and NWS: Pressure Systems and Upper-Air Patterns. Sources reviewed October 16, 2026. This is an independent educational lab; no NOAA endorsement is implied.
← Return to the weather map