Snow-Density
- NoahSnowCompaction
model
land_surface
noah
Snow-pack compaction in WRF's unified Noah land-surface model, SUBROUTINE SNOWPACK of phys/module_sf_noahlsm.F (WRF 4.8, sf_surface_physics = 2): the densification of an existing pack under its own weight, and the melt water it retains once its surface reaches freezing. THE PHYSICS. Anderson's compaction equation (NOAA Technical Report NWS 19, eq. 3.29) makes the density at a point in the pack grow exponentially in the water equivalent lying above it, at a rate that rises with temperature and falls with the density already reached: d(rho)/dt = rho c1 exp(ctemp tavgc - c2 rho) w. Koren's 1995 approximate solution integrates that over the DEPTH of the pack rather than over time, so the pack-mean density after a step of dtsec is sndens (exp(x) - 1)/x with x = bfac esdcx, and bfac carries the whole of the step length. WRF evaluates (exp(x) - 1)/x through its Taylor series to four terms, because the closed form is 0/0 at x = 0 -- its own comment says so at length. Once the snow surface reaches freezing a second process runs: 13 % of the pack's pore space per day fills with melt water, which relaxes the density towards that of water. The depth is not integrated at all; it is the quotient esd/sndens at the end. HOW IT JOINS AN ODE DOCUMENT. SNOWPACK is an in-place sub-step, not a rate -- Koren's solution is a closed form in the step length and there is no dt-free rate inside it -- so this component takes dtsec as a PARAMETER OF THE SCHEME and exposes `dsndens_dt` = increment/dtsec as the observed a consumer integrating the pack adds, which is the same shape WSM6's operator-split stages use. A mounting document must prescribe dtsec and couple it in; it is not the integrator's step, and the result differs from the dtsec -> 0 limit by xarg/3 + O(xarg^2), measured at 2.2e-6 relative at WRF's own 60 s step. WHY THE INCREMENT IS NEVER FORMED AS A DIFFERENCE. The compaction moves the density by a factor 1 + O(dtsec): 9.4e-5 of it at WRF's 60 s step on the wettest reference column, 4.5e-9 on the thinnest pack, and 7.5e-17 at a 1e-6 s step. Writing the increment as sndens_out - sndens_in therefore returns round-off at any step small enough to be a dt -> 0 reference, and writing it as sndens (pexp - 1) is no better because pexp is stored as 1 + O(1e-13). Both the component and its reference form it instead as sndens_in pexp_m1 + dw (1 - dsx), an exact rearrangement in which nothing cancels, and the reference is taken from a publisher that emits the series sum BEFORE WRF adds one to it (FORTRAN_BUGS N99, the same move N97 and N98 forced for the frozen-soil sink and the melt rate one routine over). REFERENCE STEP. Because nothing is differenced there is no cancellation floor pushing the reference step down, and the usual 'shrink dt until the increment is the derivative' recipe is actively WRONG here: the compaction increment is proportional to dtsec, so a SMALLER step puts LESS of an assertion's budget on the physics. The primary regime is therefore WRF's own 60 s step, where a rel 1e-9 assertion on sndens_out tests the compaction to between 1e-5 and 2e-1 of itself, and a second regime at 1e-6 s pins the tendency in the dt -> 0 limit, where the naive form would be 100 % noise. NOT TRANSCRIBED: the whole UA_PHYS branch (the snomlt-limited retention fraction), which is off in every reference run; SNOW_NEW, which sets the density of freshly fallen snow and is a separate routine; and the caller's own esd > 0 guard, which belongs to SNOPAC and is reported here as the indicator `pack_present`. MEASURED AGREEMENT: every one of the 1659 assertions passes at rel 3e-15, a few ulps of binary64, over all 134 tests of both regimes; the published bound is the 1e-9 the project sets for a double-precision kernel reference, and the six orders between them are headroom, not accuracy that was needed.
- NoahSnowNew
model
land_surface
noah
The density and depth of freshly fallen snow in WRF's unified Noah land-surface model, SUBROUTINE SNOW_NEW of phys/module_sf_noahlsm.F (WRF 4.8, sf_surface_physics = 2): how much depth a step's snowfall occupies, and what it does to the density of the pack it lands on. THE PHYSICS, IN TWO PARTS. First, how dense the falling snow is: Gottlib's (1980) fit makes it a floor plus a 3/2 power of how far the air is above -15 C, so warm snow falls denser (0.077 at -8.7 C, 0.122 at -2.9 C over this reference set) and cold snow is capped at the floor. Second, how it combines with what is already there: the water equivalent newsn expands into a physical depth hnewc = newsn/dsnew, that depth is ADDED to the pack, and the new density is the DEPTH-WEIGHTED average of old and new -- the only combination that conserves depth times density, i.e. water. Because fresh snow is always lighter than a settled pack, a snowfall step always lowers the mean density, and SNOWPACK's compaction then works against that. The two routines are the pack's density budget between them, which is why this component is authored beside `snow_compaction.esm` and shares its constants. WHAT IT DOES NOT DO. It does not add the water equivalent -- SFLX does that (`SNEQV = SNEQV + SN_NEW`) before calling -- so this component conserves nothing on its own and is not a closed budget. Nor does it decide WHETHER it runs: SFLX calls it only when SNOWNG (frozen precipitation) or FRZGRA (freezing rain onto a sub-freezing surface), and the guard belongs to the caller. That guard is load-bearing here in a way it is not for most routines, because this component is the identity at newsn = 0 ONLY while the pack is thicker than par.snow_new_hmin; below that WRF's degenerate-average branch would RAISE the density to the fresh-snow value out of nothing. A consumer must therefore reproduce the guard rather than mount this unconditionally, and `thin_pack` reports when it would matter. THE REFERENCE STEP IS THE LARGEST AVAILABLE, for the reason FORTRAN_BUGS N99 states as a rule and this is the second Noah component to meet. Nothing here is recovered by differencing -- both outputs are published where they form, at full magnitude -- so there is no cancellation floor pushing the step down. Meanwhile newsn is proportional to the step, so the fresh layer's weight in the density average is too: 0.0010 to 0.13 at WRF's own 60 s step, and about 2e-11 of that at 1e-6 s. A smaller step would leave a rel 1e-9 assertion testing nothing at all. So the reference is the 60 s replay pass. NOT TRANSCRIBED: nothing. SNOW_NEW has no UA_PHYS branch and no options; the whole routine is here.