Heat-Flux
- FireFluxToAtmosphereWRFFire
model
wildland_fire
fire_behavior
Fire -> atmosphere feedback of NCAR fire_behavior within WRF (io/wrf_mod.F90: Provide_atm_feedback and Fire_tendency). (1) Aggregation: the sensible and latent heat fluxes of the sr_x x sr_y fire cells under an atmosphere cell are averaged, grnhfx = mean_s fgrnhfx_s (W/m^2); the canopy fluxes canhfx/canqfx are inputs (0 in fire_behavior, which has no crown fire). (2) Vertical distribution: the surface flux decays exponentially with height above ground with the extinction depth alfg (fire_ext_grnd), the canopy flux is constant up to z1can (fire_crwn_hgt) and decays with alfc above it; the kinematic fluxes on the w-levels are F_h(z) = f grnhfx e^(-z/alfg)/cp + canhfx c(z)/cp and F_q(z) = f grnqfx e^(-z/alfg)/xlv + canqfx c(z)/xlv with f = fire_atm_feedback, which scales the surface fluxes only (WRF Fire_tendency); for f <= 0 WRF returns zero tendencies (early return, canopy terms included), carried by the gate feedback_on. (3) The layer tendencies are the flux divergence, written as the PDE dtheta/dt = -(1/rho) dF_h/dz and lowered on the column_nonuniform_1d grid (ze = WRF z_at_w) by the face-flux rule, which reproduces WRF's (F_{k+1} - F_k)/dz8w_k exactly; WRF stores them mass-weighted, rthfrten = (c1h mu + c2h) dtheta/dt (Pa K/s; the hybrid-coordinate column mass factor replaces calculate_phy_tend), and leaves the top layer at 0 (its loop stops at kde - 2): rthfrten_wrf makes that truncation explicit, rthfrten itself also fills the top layer, from the top-face flux F_h[NLEV+1] evaluated from the decay profile at the top w-level ze[NLEV+1] (a face WRF never forms). Note WRF divides the heat flux by cp and calls the result a theta tendency (theta ~ T, no Exner factor), transcribed as written. Compared with WRF-SFIRE's fire_tendency (phys/module_fr_fire_atm.F, ifire = 2): the aggregation is identical (test7/wrf.nc GRNHFX reproduced to 0), but SFIRE multiplies the profile by a prop_heat(i,k,j) factor, so its RTHFRTEN differs from this component by 0.7-1.5 % in test7/wrf.nc. Tests: fire_behavior's Provide_atm_feedback replayed by the EarthSciML feedback driver (data/eqwefic/fire_build/feedback_driver, instrumented firelib 8d519c6, real32) on the atmosphere columns of test7/wrf.nc frames 5 and 10 (t = 5, 10 s) with (a) the fire-mesh fluxes stored in wrf.nc and (b) fire_behavior's own fluxes of the standalone test7 run at step 10 (the CFBM-consistent coupled chain); rel 1e-5.