The Dynamical Core
Staggered grids, hybrid levels, and the three-step dance that moves the sky forward.
The engine under everything
Strip away the preprocessing, the nests, the physics menu, and what remains is the dynamical core: the numerical machinery that takes the equations of motion from the intro arc and actually advances them, step by step, without detonating. WRF’s ARW core has a reputation as one of the best in the business, and this course is about the three design decisions that earn it: where variables live on the grid, how the vertical coordinate follows the terrain, and how time moves without the fastest waves in the atmosphere setting the pace for everyone.
One property frames it all: ARW is fully compressible and non-hydrostatic (non_hydrostatic = .true. in frothy’s namelist, all three domains). Global models classically assume hydrostatic balance — vertical accelerations are negligible, air columns just sit on their pressure — and at 25 km cells that is nearly true. At 667 m it is false in exactly the interesting places: air slamming into a ridge and vaulting over it, a thermal punching upward, the violent vertical dance inside a convergence zone. A non-hydrostatic core computes vertical motion honestly, which is much of why a fine WRF nest can do things its parent can’t.
Where the numbers live
This looks like bookkeeping and is actually physics. The wind through a cell face is driven by the pressure difference across that face; put u on the face and the difference of the two adjacent cell-center pressures is exactly the force it needs, one half-cell away on either side. Center everything instead and each wind must reach across a whole cell for its pressure gradient, skipping the cell it sits in — which lets a checkerboard error pattern live undetected in the pressure field, and smears the small-scale waves a fine nest exists to capture. The C-grid’s tighter stencil is a large part of ARW’s good manners at high resolution. You will meet it again as a practical matter in course 6: u, v, and mass fields come out of the model with different array shapes, and post-processing must de-stagger them before they can share a map.
The vertical: eta, then hybrid eta
The intro arc showed levels hugging terrain. Now the specifics: ARW’s vertical coordinate eta runs from 1 at the surface to 0 at the model top, following the ground at the bottom and flattening with height. frothy fixes its 52 levels explicitly in the namelist (eta_levels = 1.0000, 0.9975, 0.9935, …) rather than accepting defaults, and the spacing is the whole story: the first layer is about 20 m thick, there are roughly a dozen levels in the lowest kilometer — the boundary layer, where a surface-wind forecast is won or lost — and the spacing relaxes to over a kilometer aloft, up to the 50 hPa top (p_top_requested = 5000, about 20 km up).
Pure terrain-following has a known vice: over steep mountains, every level inherits a ghost of the terrain’s shape far above it, and computing horizontal gradients along those corrugated surfaces manufactures spurious circulations over exactly the topography the PNW specializes in. Hence hybrid_opt = 2: the hybrid sigma-pressure coordinate, which behaves like classic eta near the ground and smoothly hands over to flat isobaric surfaces aloft, so Mount Baker’s outline stops haunting the stratosphere. It became the WRF default for a reason; frothy states it explicitly.
Moving time without waking the fast waves
A compressible atmosphere carries sound waves, and sound is fast — ~340 m/s against the ~10 m/s winds you actually care about. The CFL condition binds the timestep to the fastest signal on the grid, so a naive compressible core would take timesteps ~30× smaller than the weather needs, purely to keep acoustic modes — meteorologically irrelevant — from blowing up. ARW’s answer is split-explicit time integration: a third-order Runge–Kutta scheme advances the meteorology at the big timestep, in three sub-stages of increasing accuracy, while the acoustic and gravity-wave terms are integrated separately inside it with small, cheap sub-steps. The expensive physics runs at the pace of weather; only the trivial wave arithmetic runs at the pace of sound. This is the trick that makes compressible non-hydrostatic modeling affordable at all.
RK3’s stability also sets the actual speed limit you tune against: with ARW’s standard 5th-order advection, the safe Courant number is about 1.4 rather than 1.0, and the old rule of thumb — timestep in seconds ≤ 6× the grid spacing in km — is this limit with a safety margin baked in. For frothy’s 10 km d01 that rule says 60 s; the namelist caps the adaptive stepper at 75 s and lets measured winds, not folklore, set the margin. Course 6 shows that machinery at work.
The quiet stabilizers
zdamp = 5000., 5000., 5000. non_hydrostatic = .true., .true., .true.
Notice the shape of these decisions: none of them changes the equations, all of them change whether the discrete version of the equations stays truthful for 15 straight hours. The gwd_opt line is the arc’s recurring lesson in miniature — every sub-grid stand-in must be switched off at the resolution where the grid starts resolving the real thing. Course 5 is that lesson, applied to an entire menu.
What to keep
- ARW is fully compressible and non-hydrostatic — vertical motion is computed, not assumed away, which is what fine nests are for.
- The Arakawa C-grid puts winds on cell faces, exactly where their driving pressure differences are — and gives wrfout its staggered array shapes.
- Vertical levels are currency: frothy spends ~a dozen of its 52 on the lowest kilometer; hybrid_opt=2 stops terrain from haunting the levels aloft.
- Split-explicit RK3 lets weather set the timestep while sound waves are handled in cheap sub-steps; dt ≈ 6×dx(km) is the folklore form of its stability limit.
- Damping, positive-definite advection, and resolution-aware drag are the difference between equations that are right and a simulation that survives.