Snowmelt
- NoahSnowEnergy
model
land_surface
noah
The snow-pack surface energy balance of WRF's unified Noah land-surface model, SUBROUTINE SNOPAC of phys/module_sf_noahlsm.F (WRF 4.8, sf_surface_physics = 2): the linearised snow-surface temperature t12, the branch it selects, the skin temperature and ground heat flux that follow, and the melt rate. THE CLOSURE. SNOPAC solves the surface balance over a slab of thickness dtot = snowh + half the top soil layer, treating the snow and that half-layer as one conductive path of conductivity df1. Writing the balance about the air temperature gives t12 = (sfctmp + t12a + t12b)/denom, where t12a carries the radiative and turbulent forcing per unit rch and per unit rr, t12b the conduction from the top soil layer, and denom = 1 + df1/(dtot rr rch) the strength of that conduction relative to the atmospheric coupling. t12 is the temperature the snow surface WOULD reach with no melting. THE BRANCH. If t12 is at or below freezing the pack simply cools: the skin temperature is t12 itself, nothing melts, and the pack loses only what sublimates. If t12 is above freezing the surface is pinned near freezing instead -- t1 is a cover-weighted blend of the freezing point and t12, with the weight max(0.01, sncovr^2), so a thin pack lets the surface run warm while a full one holds it at 273.15 K -- and the energy the balance cannot dispose of becomes melt. THE MELT RATE IS REFERENCED BEFORE ITS LIMITER, not after, and that distinction is the same one FORTRAN_BUGS N97 forced for the frozen-soil sink. flx3 is the residual of the balance evaluated at the blended skin temperature, floored at zero, and the melt rate is ex = flx3/(rho_w lsubf). That rate is a rate: it needs no differencing and has no dt dependence. WRF then applies TWO projections on top of it, both explicitly finite-dt, and this component reports each as an indicator rather than folding it into the rate. `pack_exhausted` is WRF's `esd - esnow2 <= esdmin` test, which zeroes the whole melt block when a step's sublimation would finish the pack; esnow2 is a sublimation AMOUNT, esnow1 dt, so the test is dt-dependent and in the dt -> 0 limit reduces to esd <= esdmin. `melt_limited` is WRF's `esd - snomlt < esdmin` test, which rewrites ex as esd/dt when a step's melt would overshoot the remaining pack -- a rate manufactured from an amount, and the clearest finite-dt artefact in the routine. A consumer integrating ex must apply both as projections of the state after its step, exactly as it would the supersaturation redistribution in soil_moisture.esm; neither belongs in a tendency. NOT TRANSCRIBED: the whole UA_PHYS branch (flx4, etpn and the canopy-shading adjustment to the melt energy), which is off in every reference run; SNOWPACK's compaction of the pack, which is a separate routine and a separate component; and EVAPO itself, whose snow-free evapotranspiration enters as the input eta_nosnow (evapotranspiration.esm's eta_kinematic). THE EVAPORATION SPLIT (module_sf_noahlsm.F:3136-3203) is transcribed: where PENMAN's etp is downward (etp <= 0) SNOPAC first rescales it over a stable surface -- ribb >= 0.1 and fdown > 150 W/m^2 -- to (min(etp (1 - ribb), 0) sncovr/0.98 + etp (0.98 - sncovr))/0.98, then books the whole of it as frost, dew = -0.001 etp_adj, and charges the balance etanrg = etp_adj ((1 - sncovr) lsubc + sncovr lsubs); where it is upward the snow-covered fraction sublimates at esnow = etp sncovr, the bare fraction evaporates at etns = (1 - sncovr) eta_nosnow, and etanrg = esnow lsubs + etns lsubc. The pack projections read esnow2_rate, which is ESNOW1 on the upward branch and the (negative) frost rate on the downward one, as SNOPAC's ESNOW2 is. Consumer-supplied column fields are rewrite-target ops `input_<name>` lowered by the consumer, in the inline tests through per-test expression_template_imports libraries generated by tools/fill_tests.py.