FireFluxToAtmosphereWRFFire
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.
Description
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.
Reference
- NCAR Community Fire Behavior Model (fire_behavior), develop @ eb77580; instrumented fork ctessum-claude/fire_behavior branch earthsciml-instrumented (8d519c6: coupling dumps). WRF v4.8.0 registry.fire defaults fire_ext_grnd = fire_ext_crwn = 50 m, fire_crwn_hgt = 15 m, fire_atm_feedback = 1.
Parameters
| Name | Units | Default | Description |
|---|---|---|---|
fgrnhfx_block | W/m^2 | 0.0 | Sensible heat flux of the fire cells under the atmosphere cell (fire_behavior fgrnhfx = FireHeatFlux phi_h per fire cell, Fortran order over the sr_x x sr_y block). Consumer-supplied: a coupling target in a mounting document, a parameter_overrides array in a test. |
fgrnqfx_block | W/m^2 | 0.0 | Latent heat flux of the fire cells (fgrnqfx = FireHeatFlux phi_q). Consumer-supplied: a coupling target in a mounting document, a parameter_overrides array in a test. |
s_coupled | 1 | 0.0 | Coupling hook: index (1-based) of the fire cell whose fluxes are taken from phi_h_in/phi_q_in instead of the block (0 = none). Lets a coupled document drive one fire cell’s flux from a FireHeatFlux model. |
phi_h_in | W/m^2 | 0.0 | Coupling target: sensible heat flux of fire cell s_coupled (variable_map from FireHeatFlux.phi_h). |
phi_q_in | W/m^2 | 0.0 | Coupling target: latent heat flux of fire cell s_coupled (variable_map from FireHeatFlux.phi_q). |
canhfx | W/m^2 | 0.0 | Canopy (crown fire) sensible heat flux on the atmosphere cell; 0 in fire_behavior. |
canqfx | W/m^2 | 0.0 | Canopy latent heat flux; 0 in fire_behavior. |
mu | Pa | 80000.0 | Dry air mass of the column (WRF mut = mu + mub). |
alfg | m | 50.0 | Extinction depth of the surface fire heat (fire_ext_grnd). |
alfc | m | 50.0 | Extinction depth of the crown fire heat above z1can (fire_ext_crwn). |
z1can | m | 15.0 | Height of the crown fire heat release (fire_crwn_hgt). |
fire_atm_feedback | 1 | 1.0 | Multiplier of the surface (ground) fluxes fed back to the atmosphere (namelist fire_atm_feedback). It scales grnhfx/grnqfx only: WRF’s Fire_tendency (phys/fire_behavior/io/wrf_mod.F90) forms hfx = fact_g grnhfx fire_atm_feedback + fact_c canhfx, so the canopy fluxes canhfx/canqfx enter unscaled whenever it is positive. A value <= 0 switches the whole feedback off: Fire_tendency zeroes rthfrten/rqvfrten and returns before distributing any flux (if (fire_atm_feedback <= 0.0) return), canopy terms included; feedback_on carries that gate. The aggregation grnhfx/grnqfx (Provide_atm_feedback) is not gated. |
ze | m | 0.0 | Height of the w-levels (WRF z_at_w, above sea level), the grid’s geometry input. Consumer-supplied: a coupling target in a mounting document, a parameter_overrides array in a test. |
rho | kg/m^3 | 0.0 | Layer air density (WRF rho). Consumer-supplied: a coupling target in a mounting document, a parameter_overrides array in a test. |
c1h | 1 | 0.0 | Hybrid-coordinate weight c1h of the mass levels. Consumer-supplied: a coupling target in a mounting document, a parameter_overrides array in a test. |
c2h | Pa | 0.0 | Hybrid-coordinate weight c2h of the mass levels. Consumer-supplied: a coupling target in a mounting document, a parameter_overrides array in a test. |
Observed
| Name | Units | Default | Description |
|---|---|---|---|
fgrnhfx_eff | W/m^2 | Block fluxes with cell s_coupled replaced by phi_h_in. | |
fgrnqfx_eff | W/m^2 | Block fluxes with cell s_coupled replaced by phi_q_in. | |
feedback_on | 1 | 1 if fire_atm_feedback > 0, else 0: WRF Fire_tendency’s early return for fire_atm_feedback <= 0, which zeroes both the surface and the canopy contributions to F_h/F_q (and hence every tendency). | |
dz | m | Layer thickness ze[k+1] - ze[k] (WRF dz8w), from the grid template. | |
avgw | 1 | 1/(sr_x sr_y), the averaging weight of the fire cells. | |
grnhfx | W/m^2 | Surface sensible heat flux on the atmosphere cell: mean of the fire-cell fluxes (Provide_atm_feedback grnhfx). | |
grnqfx | W/m^2 | Surface latent heat flux on the atmosphere cell (grnqfx). | |
z_w | m | Height of the w-levels above ground, ze - ze[1]. | |
decay_g | 1 | Surface-fire decay e^(-z_w/alfg). | |
decay_c | 1 | Crown-fire profile: 1 below z1can, e^(-(z_w - z1can)/alfc) above. | |
F_h | K*kg/m^2/s | Kinematic sensible heat flux on the w-levels (Fire_tendency hfx): feedback_on (fire_atm_feedback grnhfx decay_g + canhfx decay_c)/cp. | |
F_q | kg/m^2/s | Kinematic moisture flux on the w-levels (Fire_tendency qfx): feedback_on (fire_atm_feedback grnqfx decay_g + canqfx decay_c)/xlv. | |
dtheta_dt | K/s | Potential-temperature tendency -(1/rho) dF_h/dz of each layer (the physics; layer NLEV uses the top-face flux F_h[NLEV+1], evaluated from the profile at the top w-level ze[NLEV+1], which WRF never forms). | |
dqv_dt | 1/s | Water-vapour tendency -(1/rho) dF_q/dz. | |
mass_factor | Pa | c1h mu + c2h, the hybrid-coordinate column mass WRF multiplies the tendencies by. | |
rthfrten | Pa*K/s | Mass-weighted theta tendency in WRF’s storage convention, (c1h mu + c2h) dtheta_dt, on every layer including the top one (which WRF itself leaves at 0, see rthfrten_wrf). | |
rqvfrten | Pa/s | Mass-weighted qv tendency, (c1h mu + c2h) dqv_dt. | |
rthfrten_wrf | Pa*K/s | rthfrten with the top layer set to 0, as WRF’s Fire_tendency leaves it (loop k = kts .. kde - 2). | |
rqvfrten_wrf | Pa/s | rqvfrten with the top layer set to 0 (WRF truncation). |
Observed expressions
$$ fgrnhfx_{eff} = \mathrm{faq}\left(\right) $$Block fluxes with cell s_coupled replaced by phi_h_in.
$$ fgrnqfx_{eff} = \mathrm{faq}\left(\right) $$Block fluxes with cell s_coupled replaced by phi_q_in.
$$ feedback_{on} = \mathrm{ifelse}\left(\mathrm{>}\left(fire_{atm\,feedback}, 0.0\right), 1.0, 0.0\right) $$1 if fire_atm_feedback > 0, else 0: WRF Fire_tendency’s early return for fire_atm_feedback <= 0, which zeroes both the surface and the canopy contributions to F_h/F_q (and hence every tendency).
$$ dz = \mathrm{column_cell_thickness}\left(ze=ze\right) $$Layer thickness ze[k+1] - ze[k] (WRF dz8w), from the grid template.
$$ avgw = \frac{1.0}{NSUB} $$1/(sr_x sr_y), the averaging weight of the fire cells.
$$ grnhfx = avgw \cdot \mathrm{faq}\left(\right) $$Surface sensible heat flux on the atmosphere cell: mean of the fire-cell fluxes (Provide_atm_feedback grnhfx).
$$ grnqfx = avgw \cdot \mathrm{faq}\left(\right) $$Surface latent heat flux on the atmosphere cell (grnqfx).
$$ z_{w} = \mathrm{faq}\left(\right) $$Height of the w-levels above ground, ze - ze[1].
$$ decay_{g} = \mathrm{faq}\left(\right) $$Surface-fire decay e^(-z_w/alfg).
$$ decay_{c} = \mathrm{faq}\left(\right) $$Crown-fire profile: 1 below z1can, e^(-(z_w - z1can)/alfc) above.
$$ F_{h} = \frac{feedback_{on} \cdot \left(fire_{atm\,feedback} \cdot grnhfx \cdot decay_{g} + canhfx \cdot decay_{c}\right)}{wrf.cp} $$Kinematic sensible heat flux on the w-levels (Fire_tendency hfx): feedback_on (fire_atm_feedback grnhfx decay_g + canhfx decay_c)/cp.
$$ F_{q} = \frac{feedback_{on} \cdot \left(fire_{atm\,feedback} \cdot grnqfx \cdot decay_{g} + canqfx \cdot decay_{c}\right)}{wrf.xlv} $$Kinematic moisture flux on the w-levels (Fire_tendency qfx): feedback_on (fire_atm_feedback grnqfx decay_g + canqfx decay_c)/xlv.
$$ dtheta_{dt} = \left(-1.0\right) \cdot \frac{\mathrm{D}\left(F_{h}\right)}{rho} $$Potential-temperature tendency -(1/rho) dF_h/dz of each layer (the physics; layer NLEV uses the top-face flux F_h[NLEV+1], evaluated from the profile at the top w-level ze[NLEV+1], which WRF never forms).
$$ dqv_{dt} = \left(-1.0\right) \cdot \frac{\mathrm{D}\left(F_{q}\right)}{rho} $$Water-vapour tendency -(1/rho) dF_q/dz.
$$ mass_{factor} = c1h \cdot mu + c2h $$c1h mu + c2h, the hybrid-coordinate column mass WRF multiplies the tendencies by.
$$ rthfrten = mass_{factor} \cdot dtheta_{dt} $$Mass-weighted theta tendency in WRF’s storage convention, (c1h mu + c2h) dtheta_dt, on every layer including the top one (which WRF itself leaves at 0, see rthfrten_wrf).
$$ rqvfrten = mass_{factor} \cdot dqv_{dt} $$Mass-weighted qv tendency, (c1h mu + c2h) dqv_dt.
$$ rthfrten_{wrf} = \mathrm{faq}\left(\right) $$rthfrten with the top layer set to 0, as WRF’s Fire_tendency leaves it (loop k = kts .. kde - 2).
$$ rqvfrten_{wrf} = \mathrm{faq}\left(\right) $$rqvfrten with the top layer set to 0 (WRF truncation).
Raw .esm
Raw .esm JSON (this component)
{
"expression_template_imports": [
{
"ref": "${ESD_ROOT}/grids/column_nonuniform_1d/grid.esm",
"bindings": {
"NLEV": "NLEV"
}
},
{
"ref": "${ESD_ROOT}/grids/column_nonuniform_1d/rules/face_flux_D_lev_supplied_faces.esm",
"bindings": {
"NLEV": "NLEV"
}
}
],
"subsystems": {
"wrf": {
"ref": "../../../lib/wrf_constants.esm"
}
},
"variables": {
"fgrnhfx_block": {
"type": "parameter",
"default": 0.0,
"units": "W/m^2",
"shape": [
"subcell"
],
"description": "Sensible heat flux of the fire cells under the atmosphere cell (fire_behavior fgrnhfx = FireHeatFlux phi_h per fire cell, Fortran order over the sr_x x sr_y block). Consumer-supplied: a coupling target in a mounting document, a `parameter_overrides` array in a test."
},
"fgrnqfx_block": {
"type": "parameter",
"default": 0.0,
"units": "W/m^2",
"shape": [
"subcell"
],
"description": "Latent heat flux of the fire cells (fgrnqfx = FireHeatFlux phi_q). Consumer-supplied: a coupling target in a mounting document, a `parameter_overrides` array in a test."
},
"s_coupled": {
"type": "parameter",
"units": "1",
"default": 0.0,
"description": "Coupling hook: index (1-based) of the fire cell whose fluxes are taken from phi_h_in/phi_q_in instead of the block (0 = none). Lets a coupled document drive one fire cell's flux from a FireHeatFlux model."
},
"phi_h_in": {
"type": "parameter",
"units": "W/m^2",
"default": 0.0,
"description": "Coupling target: sensible heat flux of fire cell s_coupled (variable_map from FireHeatFlux.phi_h)."
},
"phi_q_in": {
"type": "parameter",
"units": "W/m^2",
"default": 0.0,
"description": "Coupling target: latent heat flux of fire cell s_coupled (variable_map from FireHeatFlux.phi_q)."
},
"fgrnhfx_eff": {
"type": "unknown",
"units": "W/m^2",
"shape": [
"subcell"
],
"description": "Block fluxes with cell s_coupled replaced by phi_h_in."
},
"fgrnqfx_eff": {
"type": "unknown",
"units": "W/m^2",
"shape": [
"subcell"
],
"description": "Block fluxes with cell s_coupled replaced by phi_q_in."
},
"canhfx": {
"type": "parameter",
"units": "W/m^2",
"default": 0.0,
"description": "Canopy (crown fire) sensible heat flux on the atmosphere cell; 0 in fire_behavior."
},
"canqfx": {
"type": "parameter",
"units": "W/m^2",
"default": 0.0,
"description": "Canopy latent heat flux; 0 in fire_behavior."
},
"mu": {
"type": "parameter",
"units": "Pa",
"default": 80000.0,
"description": "Dry air mass of the column (WRF mut = mu + mub)."
},
"alfg": {
"type": "parameter",
"units": "m",
"default": 50.0,
"description": "Extinction depth of the surface fire heat (fire_ext_grnd)."
},
"alfc": {
"type": "parameter",
"units": "m",
"default": 50.0,
"description": "Extinction depth of the crown fire heat above z1can (fire_ext_crwn)."
},
"z1can": {
"type": "parameter",
"units": "m",
"default": 15.0,
"description": "Height of the crown fire heat release (fire_crwn_hgt)."
},
"fire_atm_feedback": {
"type": "parameter",
"units": "1",
"default": 1.0,
"description": "Multiplier of the surface (ground) fluxes fed back to the atmosphere (namelist fire_atm_feedback). It scales grnhfx/grnqfx only: WRF's Fire_tendency (phys/fire_behavior/io/wrf_mod.F90) forms hfx = fact_g grnhfx fire_atm_feedback + fact_c canhfx, so the canopy fluxes canhfx/canqfx enter unscaled whenever it is positive. A value <= 0 switches the whole feedback off: Fire_tendency zeroes rthfrten/rqvfrten and returns before distributing any flux (`if (fire_atm_feedback <= 0.0) return`), canopy terms included; feedback_on carries that gate. The aggregation grnhfx/grnqfx (Provide_atm_feedback) is not gated."
},
"feedback_on": {
"type": "unknown",
"units": "1",
"description": "1 if fire_atm_feedback > 0, else 0: WRF Fire_tendency's early return for fire_atm_feedback <= 0, which zeroes both the surface and the canopy contributions to F_h/F_q (and hence every tendency)."
},
"ze": {
"type": "parameter",
"default": 0.0,
"units": "m",
"shape": [
"lev_nodes"
],
"description": "Height of the w-levels (WRF z_at_w, above sea level), the grid's geometry input. Consumer-supplied: a coupling target in a mounting document, a `parameter_overrides` array in a test."
},
"dz": {
"type": "unknown",
"units": "m",
"shape": [
"lev"
],
"description": "Layer thickness ze[k+1] - ze[k] (WRF dz8w), from the grid template."
},
"rho": {
"type": "parameter",
"default": 0.0,
"units": "kg/m^3",
"shape": [
"lev"
],
"description": "Layer air density (WRF rho). Consumer-supplied: a coupling target in a mounting document, a `parameter_overrides` array in a test."
},
"c1h": {
"type": "parameter",
"default": 0.0,
"units": "1",
"shape": [
"lev"
],
"description": "Hybrid-coordinate weight c1h of the mass levels. Consumer-supplied: a coupling target in a mounting document, a `parameter_overrides` array in a test."
},
"c2h": {
"type": "parameter",
"default": 0.0,
"units": "Pa",
"shape": [
"lev"
],
"description": "Hybrid-coordinate weight c2h of the mass levels. Consumer-supplied: a coupling target in a mounting document, a `parameter_overrides` array in a test."
},
"avgw": {
"type": "unknown",
"units": "1",
"description": "1/(sr_x sr_y), the averaging weight of the fire cells."
},
"grnhfx": {
"type": "unknown",
"units": "W/m^2",
"description": "Surface sensible heat flux on the atmosphere cell: mean of the fire-cell fluxes (Provide_atm_feedback grnhfx)."
},
"grnqfx": {
"type": "unknown",
"units": "W/m^2",
"description": "Surface latent heat flux on the atmosphere cell (grnqfx)."
},
"z_w": {
"type": "unknown",
"units": "m",
"shape": [
"lev_nodes"
],
"description": "Height of the w-levels above ground, ze - ze[1]."
},
"decay_g": {
"type": "unknown",
"units": "1",
"shape": [
"lev_nodes"
],
"description": "Surface-fire decay e^(-z_w/alfg)."
},
"decay_c": {
"type": "unknown",
"units": "1",
"shape": [
"lev_nodes"
],
"description": "Crown-fire profile: 1 below z1can, e^(-(z_w - z1can)/alfc) above."
},
"F_h": {
"type": "unknown",
"units": "K*kg/m^2/s",
"shape": [
"lev_nodes"
],
"description": "Kinematic sensible heat flux on the w-levels (Fire_tendency hfx): feedback_on (fire_atm_feedback grnhfx decay_g + canhfx decay_c)/cp."
},
"F_q": {
"type": "unknown",
"units": "kg/m^2/s",
"shape": [
"lev_nodes"
],
"description": "Kinematic moisture flux on the w-levels (Fire_tendency qfx): feedback_on (fire_atm_feedback grnqfx decay_g + canqfx decay_c)/xlv."
},
"dtheta_dt": {
"type": "unknown",
"units": "K/s",
"shape": [
"lev"
],
"description": "Potential-temperature tendency -(1/rho) dF_h/dz of each layer (the physics; layer NLEV uses the top-face flux F_h[NLEV+1], evaluated from the profile at the top w-level ze[NLEV+1], which WRF never forms)."
},
"dqv_dt": {
"type": "unknown",
"units": "1/s",
"shape": [
"lev"
],
"description": "Water-vapour tendency -(1/rho) dF_q/dz."
},
"mass_factor": {
"type": "unknown",
"units": "Pa",
"shape": [
"lev"
],
"description": "c1h mu + c2h, the hybrid-coordinate column mass WRF multiplies the tendencies by."
},
"rthfrten": {
"type": "unknown",
"units": "Pa*K/s",
"shape": [
"lev"
],
"description": "Mass-weighted theta tendency in WRF's storage convention, (c1h mu + c2h) dtheta_dt, on every layer including the top one (which WRF itself leaves at 0, see rthfrten_wrf)."
},
"rqvfrten": {
"type": "unknown",
"units": "Pa/s",
"shape": [
"lev"
],
"description": "Mass-weighted qv tendency, (c1h mu + c2h) dqv_dt."
},
"rthfrten_wrf": {
"type": "unknown",
"units": "Pa*K/s",
"shape": [
"lev"
],
"description": "rthfrten with the top layer set to 0, as WRF's Fire_tendency leaves it (loop k = kts .. kde - 2)."
},
"rqvfrten_wrf": {
"type": "unknown",
"units": "Pa/s",
"shape": [
"lev"
],
"description": "rqvfrten with the top layer set to 0 (WRF truncation)."
}
},
"equations": [
{
"lhs": "feedback_on",
"rhs": {
"op": "ifelse",
"args": [
{
"op": ">",
"args": [
"fire_atm_feedback",
0.0
]
},
1.0,
0.0
]
}
},
{
"lhs": "fgrnhfx_eff",
"rhs": {
"op": "faq",
"output_idx": [
"s"
],
"args": [],
"ranges": {
"s": {
"from": "subcell"
}
},
"expr": {
"op": "ifelse",
"args": [
{
"op": "==",
"args": [
"s",
"s_coupled"
]
},
"phi_h_in",
{
"op": "index",
"args": [
"fgrnhfx_block",
"s"
]
}
]
}
}
},
{
"lhs": "fgrnqfx_eff",
"rhs": {
"op": "faq",
"output_idx": [
"s"
],
"args": [],
"ranges": {
"s": {
"from": "subcell"
}
},
"expr": {
"op": "ifelse",
"args": [
{
"op": "==",
"args": [
"s",
"s_coupled"
]
},
"phi_q_in",
{
"op": "index",
"args": [
"fgrnqfx_block",
"s"
]
}
]
}
}
},
{
"lhs": "avgw",
"rhs": {
"op": "/",
"args": [
1.0,
"NSUB"
]
}
},
{
"lhs": "grnhfx",
"rhs": {
"op": "*",
"args": [
"avgw",
{
"op": "faq",
"output_idx": [],
"args": [],
"ranges": {
"s": {
"from": "subcell"
}
},
"expr": {
"op": "index",
"args": [
"fgrnhfx_eff",
"s"
]
}
}
]
}
},
{
"lhs": "grnqfx",
"rhs": {
"op": "*",
"args": [
"avgw",
{
"op": "faq",
"output_idx": [],
"args": [],
"ranges": {
"s": {
"from": "subcell"
}
},
"expr": {
"op": "index",
"args": [
"fgrnqfx_eff",
"s"
]
}
}
]
}
},
{
"lhs": "dz",
"rhs": {
"op": "apply_expression_template",
"args": [],
"name": "column_cell_thickness",
"bindings": {
"ze": "ze"
}
}
},
{
"lhs": "z_w",
"rhs": {
"op": "faq",
"output_idx": [
"n"
],
"args": [],
"ranges": {
"n": {
"from": "lev_nodes"
}
},
"expr": {
"op": "-",
"args": [
{
"op": "index",
"args": [
"ze",
"n"
]
},
{
"op": "index",
"args": [
"ze",
1
]
}
]
}
}
},
{
"lhs": "decay_g",
"rhs": {
"op": "faq",
"output_idx": [
"n"
],
"args": [],
"ranges": {
"n": {
"from": "lev_nodes"
}
},
"expr": {
"op": "exp",
"args": [
{
"op": "-",
"args": [
{
"op": "/",
"args": [
{
"op": "index",
"args": [
"z_w",
"n"
]
},
"alfg"
]
}
]
}
]
}
}
},
{
"lhs": "decay_c",
"rhs": {
"op": "faq",
"output_idx": [
"n"
],
"args": [],
"ranges": {
"n": {
"from": "lev_nodes"
}
},
"expr": {
"op": "ifelse",
"args": [
{
"op": "<",
"args": [
{
"op": "index",
"args": [
"z_w",
"n"
]
},
"z1can"
]
},
1.0,
{
"op": "exp",
"args": [
{
"op": "-",
"args": [
{
"op": "/",
"args": [
{
"op": "-",
"args": [
{
"op": "index",
"args": [
"z_w",
"n"
]
},
"z1can"
]
},
"alfc"
]
}
]
}
]
}
]
}
}
},
{
"lhs": "F_h",
"rhs": {
"op": "/",
"args": [
{
"op": "*",
"args": [
"feedback_on",
{
"op": "+",
"args": [
{
"op": "*",
"args": [
"fire_atm_feedback",
"grnhfx",
"decay_g"
]
},
{
"op": "*",
"args": [
"canhfx",
"decay_c"
]
}
]
}
]
},
"wrf.cp"
]
}
},
{
"lhs": "F_q",
"rhs": {
"op": "/",
"args": [
{
"op": "*",
"args": [
"feedback_on",
{
"op": "+",
"args": [
{
"op": "*",
"args": [
"fire_atm_feedback",
"grnqfx",
"decay_g"
]
},
{
"op": "*",
"args": [
"canqfx",
"decay_c"
]
}
]
}
]
},
"wrf.xlv"
]
}
},
{
"lhs": "dtheta_dt",
"rhs": {
"op": "*",
"args": [
-1.0,
{
"op": "/",
"args": [
{
"op": "D",
"args": [
"F_h"
],
"wrt": "lev"
},
"rho"
]
}
]
}
},
{
"lhs": "dqv_dt",
"rhs": {
"op": "*",
"args": [
-1.0,
{
"op": "/",
"args": [
{
"op": "D",
"args": [
"F_q"
],
"wrt": "lev"
},
"rho"
]
}
]
}
},
{
"lhs": "mass_factor",
"rhs": {
"op": "+",
"args": [
{
"op": "*",
"args": [
"c1h",
"mu"
]
},
"c2h"
]
}
},
{
"lhs": "rthfrten",
"rhs": {
"op": "*",
"args": [
"mass_factor",
"dtheta_dt"
]
}
},
{
"lhs": "rqvfrten",
"rhs": {
"op": "*",
"args": [
"mass_factor",
"dqv_dt"
]
}
},
{
"lhs": "rthfrten_wrf",
"rhs": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "ifelse",
"args": [
{
"op": "<",
"args": [
"k",
"NLEV"
]
},
{
"op": "index",
"args": [
"rthfrten",
"k"
]
},
0.0
]
}
}
},
{
"lhs": "rqvfrten_wrf",
"rhs": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "ifelse",
"args": [
{
"op": "<",
"args": [
"k",
"NLEV"
]
},
{
"op": "index",
"args": [
"rqvfrten",
"k"
]
},
0.0
]
}
}
}
],
"tests": [
{
"id": "frame5_wrfnc_fluxes_col_6_16",
"description": "Reference: fire_behavior's Provide_atm_feedback/Fire_tendency (io/wrf_mod.F90) replayed by the EarthSciML feedback driver (data/eqwefic/fire_build/feedback_driver, instrumented firelib 8d519c6, default real32; alfg = alfc = 50 m, z1can = 15 m, fire_atm_feedback = 1, canopy fluxes 0) on the atmosphere column of test7/wrf.nc (WRF 4.x, 19 x 19 x 44 layers, dx = 100 m, sr = 4) with the strongest surface heat flux. The column geometry (z_at_w, dz8w, rho, mut, c1h, c2h) is the frame's end-of-step state. Single precision: rel 1e-5; Linf tolerances are 1e-5 of the column maximum. Regime: frame 5 (t = 5 s), atmosphere cell (i,j) = (6,16), fire-mesh fluxes as stored in wrf.nc (WRF-SFIRE's FGRNHFX; grnhfx 1.10e5 W/m^2).",
"parameter_overrides": {
"mu": 79500.8203125,
"alfg": 50.0,
"alfc": 50.0,
"z1can": 15.0,
"fire_atm_feedback": 1.0,
"canhfx": 0.0,
"canqfx": 0.0,
"fgrnhfx_block": [
214126.984375,
237147.171875,
104804.6875,
0.0,
241639.234375,
241480.46875,
207932.40625,
0.0,
226059.046875,
219803.125,
72333.3984375,
0.0,
0.0,
0.0,
0.0,
0.0
],
"fgrnqfx_block": [
19652.564453125,
21765.357421875,
9618.970703125,
0.0,
22177.638671875,
22163.068359375,
19084.02734375,
0.0,
20747.689453125,
20173.5234375,
6638.7568359375,
0.0,
0.0,
0.0,
0.0,
0.0
],
"ze": [
1530.231201171875,
1562.3775634765625,
1594.4110107421875,
1626.837646484375,
1660.46630859375,
1695.9232177734375,
1734.227294921875,
1776.1405029296875,
1822.5015869140625,
1874.144287109375,
1931.6409912109375,
1995.894287109375,
2067.55615234375,
2147.612548828125,
2236.930419921875,
2336.469970703125,
2447.315185546875,
2570.66943359375,
2707.81494140625,
2860.008056640625,
3028.7587890625,
3215.770751953125,
3422.876708984375,
3652.05615234375,
3905.655029296875,
4186.537109375,
4497.80908203125,
4843.34033203125,
5227.517578125,
5655.61962890625,
6134.392578125,
6672.111328125,
7278.03759765625,
7962.7060546875,
8736.9072265625,
9611.748046875,
10600.052734375,
11713.8076171875,
12915.392578125,
14170.5400390625,
15457.896484375,
16768.8984375,
18112.912109375,
19495.9609375,
20907.867553710938
],
"rho": [
0.9338042140007019,
0.93668133020401,
0.9373258352279663,
0.9366375207901001,
0.934982180595398,
0.9331261515617371,
0.9309040307998657,
0.9284204244613647,
0.9256535172462463,
0.9225828647613525,
0.919191300868988,
0.915429949760437,
0.9102004766464233,
0.9042115807533264,
0.8974348306655884,
0.889761745929718,
0.8811367750167847,
0.8713973760604858,
0.8611222505569458,
0.8498607873916626,
0.8373511433601379,
0.8236055374145508,
0.8085129261016846,
0.7918990254402161,
0.773600697517395,
0.7534741759300232,
0.7315000891685486,
0.7076438069343567,
0.6816049218177795,
0.6528741121292114,
0.6208957433700562,
0.586013674736023,
0.5485986471176147,
0.5087850093841553,
0.4668313264846802,
0.4213181138038635,
0.3714534342288971,
0.3211057186126709,
0.27527567744255066,
0.2324129194021225,
0.19120778143405914,
0.15224462747573853,
0.11848937720060349,
0.09250997751951218
],
"c1h": [
1.0081133842468262,
1.0241780281066895,
1.0401463508605957,
1.056450366973877,
1.0731921195983887,
1.0909066200256348,
1.1099413633346558,
1.130528450012207,
1.1529827117919922,
1.1773890256881714,
1.2041479349136353,
1.2329989671707153,
1.264328956604004,
1.2978992462158203,
1.3337310552597046,
1.3714842796325684,
1.4109569787979126,
1.4515864849090576,
1.4927101135253906,
1.533423900604248,
1.5725204944610596,
1.6085113286972046,
1.6395677328109741,
1.6634162664413452,
1.6774479150772095,
1.6787004470825195,
1.663811206817627,
1.6292389631271362,
1.571335792541504,
1.4865795373916626,
1.371860146522522,
1.2248448133468628,
1.044358730316162,
0.8308578133583069,
0.58689945936203,
0.31758570671081543,
0.05377238988876343,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0
],
"c2h": [
-770.771484375,
-2296.91259765625,
-3813.9033203125,
-5362.78466796875,
-6953.25146484375,
-8636.12890625,
-10444.4296875,
-12400.203125,
-14533.357421875,
-16851.95703125,
-19394.0546875,
-22134.90234375,
-25111.25,
-28300.427734375,
-31704.451171875,
-35291.0078125,
-39040.9140625,
-42900.71484375,
-46807.4609375,
-50675.26953125,
-54389.4453125,
-57808.578125,
-60758.93359375,
-63024.546875,
-64357.55078125,
-64476.54296875,
-63062.06640625,
-59777.703125,
-54276.8984375,
-46225.0546875,
-35326.71484375,
-21360.2578125,
-4214.07958984375,
16068.5078125,
39244.55078125,
64829.359375,
89891.625,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0
]
},
"time_span": {
"start": 0,
"end": 1
},
"tolerance": {
"rel": 1e-05
},
"assertions": [
{
"variable": "grnhfx",
"time": 0.0,
"expected": 110332.90625,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "grnqfx",
"time": 0.0,
"expected": 10126.349609375,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "rthfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
137739.640625,
72040.28125,
37683.52734375,
19443.494140625,
9749.4130859375,
4671.7998046875,
2101.6943359375,
873.73681640625,
330.2054748535156,
111.85107421875,
33.4923210144043,
8.729217529296875,
1.9527802467346191,
0.36793866753578186,
0.05738754943013191,
0.007269253488630056,
0.0007319336291402578,
5.723633148591034e-05,
3.390333404240664e-06,
1.4839815776213072e-07,
4.660875685402743e-09,
1.0162617969378118e-10,
1.4847642429774432e-12,
1.3979486818626544e-14,
8.096908380301045e-17,
2.7292265964273675e-19,
5.032120237904295e-22,
4.703707886010921e-25,
2.0438861719849056e-28,
3.716904027218854e-32,
2.4585651964496935e-36,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 2.0
}
},
{
"variable": "rqvfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
5.079450607299805,
2.6566431522369385,
1.3896620273590088,
0.7170215249061584,
0.35953089594841003,
0.1722828447818756,
0.07750456035137177,
0.03222096338868141,
0.012177047319710255,
0.004124753177165985,
0.0012351025361567736,
0.0003219090576749295,
7.201304833870381e-05,
1.3568545909947716e-05,
2.1162913981243037e-06,
2.6806958430825034e-07,
2.6991655133201675e-08,
2.1107149361654365e-09,
1.25025961805747e-10,
5.472507429854501e-12,
1.718799934194784e-13,
3.7476875342477584e-15,
5.4753923628747184e-17,
5.155241867517297e-19,
2.9859123888858073e-21,
1.0064621905833482e-23,
1.8557045297134507e-26,
1.734595274333271e-29,
7.537276389628231e-33,
1.3720196221073372e-36,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 0.0001
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 137739.640625,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 72040.28125,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 3
},
"expected": 37683.52734375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 9749.4130859375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 8
},
"expected": 873.73681640625,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 8.729217529296875,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 20
},
"expected": 1.4839815776213072e-07,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 3.716904027218854e-32,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 43
},
"expected": -0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 5.079450607299805,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 2.6566431522369385,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 0.35953089594841003,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 0.0003219090576749295,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 1.3720196221073372e-36,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
}
]
},
{
"id": "frame10_wrfnc_fluxes_col_5_16",
"description": "Reference: fire_behavior's Provide_atm_feedback/Fire_tendency (io/wrf_mod.F90) replayed by the EarthSciML feedback driver (data/eqwefic/fire_build/feedback_driver, instrumented firelib 8d519c6, default real32; alfg = alfc = 50 m, z1can = 15 m, fire_atm_feedback = 1, canopy fluxes 0) on the atmosphere column of test7/wrf.nc (WRF 4.x, 19 x 19 x 44 layers, dx = 100 m, sr = 4) with the strongest surface heat flux. The column geometry (z_at_w, dz8w, rho, mut, c1h, c2h) is the frame's end-of-step state. Single precision: rel 1e-5; Linf tolerances are 1e-5 of the column maximum. Regime: frame 10 (t = 10 s), atmosphere cell (5,16), fire-mesh fluxes as stored in wrf.nc (grnhfx 7.1e5 W/m^2, rthfrten up to 9.3e5 Pa K/s).",
"parameter_overrides": {
"mu": 79477.9375,
"alfg": 50.0,
"alfc": 50.0,
"z1can": 15.0,
"fire_atm_feedback": 1.0,
"canhfx": 0.0,
"canqfx": 0.0,
"fgrnhfx_block": [
235382.03125,
215030.953125,
170661.765625,
136985.78125,
1646774.0,
1230381.0,
183089.890625,
150681.859375,
1266718.375,
1346696.75,
209504.609375,
180184.109375,
322476.96875,
1544528.625,
1331645.125,
1201910.625
],
"fgrnqfx_block": [
21603.353515625,
19735.53125,
15663.3310546875,
12572.5498046875,
151140.84375,
112924.3125,
16803.984375,
13829.57421875,
116259.375,
123599.765625,
19228.32421875,
16537.291015625,
29596.921875,
141756.78125,
122218.34375,
110311.3125
],
"ze": [
1528.524169921875,
1562.8890380859375,
1596.03076171875,
1629.0269775390625,
1662.9530029296875,
1698.564208984375,
1736.9459228515625,
1778.895263671875,
1825.271240234375,
1876.9176025390625,
1934.4122314453125,
1998.6605224609375,
2070.32177734375,
2150.36865234375,
2239.671875,
2339.1943359375,
2450.011962890625,
2573.3359375,
2710.427734375,
2862.556884765625,
3031.23876953125,
3218.179443359375,
3425.200927734375,
3654.302490234375,
3907.79541015625,
4188.5419921875,
4499.64599609375,
4844.99853515625,
5228.9794921875,
5656.86669921875,
6135.41455078125,
6672.9033203125,
7278.60546875,
7963.05810546875,
8737.0625,
9611.7529296875,
10599.966796875,
11713.7080078125,
12915.3037109375,
14170.466796875,
15457.8447265625,
16768.869140625,
18112.9140625,
19496.0,
20907.945068359375
],
"rho": [
0.8732414245605469,
0.9050167202949524,
0.9208261966705322,
0.9281055927276611,
0.9306119680404663,
0.9308744072914124,
0.9297622442245483,
0.9277722835540771,
0.925225019454956,
0.9222463369369507,
0.9189021587371826,
0.9150339961051941,
0.909909725189209,
0.9039482474327087,
0.897163987159729,
0.889546811580658,
0.8808987736701965,
0.8712722063064575,
0.8610178232192993,
0.8497192859649658,
0.8371734619140625,
0.8234429955482483,
0.8082825541496277,
0.7917286157608032,
0.7734792232513428,
0.7533949017524719,
0.7314136624336243,
0.7075685858726501,
0.6815468668937683,
0.6528237462043762,
0.6208552122116089,
0.585981547832489,
0.5485785007476807,
0.5087780952453613,
0.46682655811309814,
0.421317994594574,
0.37145233154296875,
0.32110294699668884,
0.2752722203731537,
0.23240919411182404,
0.1912045180797577,
0.15224121510982513,
0.11848610639572144,
0.09250736236572266
],
"c1h": [
1.0081133842468262,
1.0241780281066895,
1.0401463508605957,
1.056450366973877,
1.0731921195983887,
1.0909066200256348,
1.1099413633346558,
1.130528450012207,
1.1529827117919922,
1.1773890256881714,
1.2041479349136353,
1.2329989671707153,
1.264328956604004,
1.2978992462158203,
1.3337310552597046,
1.3714842796325684,
1.4109569787979126,
1.4515864849090576,
1.4927101135253906,
1.533423900604248,
1.5725204944610596,
1.6085113286972046,
1.6395677328109741,
1.6634162664413452,
1.6774479150772095,
1.6787004470825195,
1.663811206817627,
1.6292389631271362,
1.571335792541504,
1.4865795373916626,
1.371860146522522,
1.2248448133468628,
1.044358730316162,
0.8308578133583069,
0.58689945936203,
0.31758570671081543,
0.05377238988876343,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0
],
"c2h": [
-770.771484375,
-2296.91259765625,
-3813.9033203125,
-5362.78466796875,
-6953.25146484375,
-8636.12890625,
-10444.4296875,
-12400.203125,
-14533.357421875,
-16851.95703125,
-19394.0546875,
-22134.90234375,
-25111.25,
-28300.427734375,
-31704.451171875,
-35291.0078125,
-39040.9140625,
-42900.71484375,
-46807.4609375,
-50675.26953125,
-54389.4453125,
-57808.578125,
-60758.93359375,
-63024.546875,
-64357.55078125,
-64476.54296875,
-63062.06640625,
-59777.703125,
-54276.8984375,
-46225.0546875,
-35326.71484375,
-21360.2578125,
-4214.07958984375,
16068.5078125,
39244.55078125,
64829.359375,
89891.625,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0
]
},
"time_span": {
"start": 0,
"end": 1
},
"tolerance": {
"rel": 1e-05
},
"assertions": [
{
"variable": "grnhfx",
"time": 0.0,
"expected": 710790.75,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "grnqfx",
"time": 0.0,
"expected": 65236.35546875,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "rthfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
930068.0625,
454838.0,
229968.578125,
116589.65625,
57929.046875,
27629.361328125,
12399.9794921875,
5149.5087890625,
1945.25146484375,
658.8323974609375,
197.27931213378906,
51.42643356323242,
11.503874778747559,
2.1679344177246094,
0.33823513984680176,
0.04285815730690956,
0.004317828454077244,
0.0003378485271241516,
2.0033543478348292e-05,
8.780387474871532e-07,
2.761578699050915e-08,
6.029974297661056e-10,
8.824897410053545e-12,
8.32185543891105e-14,
4.830258850672443e-16,
1.6325660499410488e-18,
3.0202278635064703e-21,
2.833247583642819e-24,
1.235955623271295e-27,
2.2573088548501436e-31,
1.5179728793202155e-35,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 10.0
}
},
{
"variable": "rqvfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
34.29829788208008,
16.773151397705078,
8.480595588684082,
4.29949951171875,
2.1362602710723877,
1.0188932418823242,
0.4572765529155731,
0.18989944458007812,
0.07173541188240051,
0.024295886978507042,
0.007275108247995377,
0.0018964626360684633,
0.0004242305876687169,
7.994733459781855e-05,
1.2473163224058226e-05,
1.5804885151737835e-06,
1.5922938700896339e-07,
1.2458905018775113e-08,
7.387808143022312e-10,
3.237960594093536e-11,
1.018392726918893e-12,
2.223684933834024e-14,
3.2543744340361106e-16,
3.0688663355561812e-18,
1.781263655768761e-20,
6.020445695861271e-23,
1.1137754557492449e-25,
1.0448220503961795e-28,
4.557856506153759e-32,
8.334417811842736e-36,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 0.0005
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 930068.0625,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 454838.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 3
},
"expected": 229968.578125,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 57929.046875,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 8
},
"expected": 5149.5087890625,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 51.42643356323242,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 20
},
"expected": 8.780387474871532e-07,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 2.2573088548501436e-31,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 43
},
"expected": -0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 34.29829788208008,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 16.773151397705078,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 2.1362602710723877,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 0.0018964626360684633,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 8.334417811842736e-36,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
}
]
},
{
"id": "frame5_cfbm_fluxes_col_6_16",
"description": "Reference: fire_behavior's Provide_atm_feedback/Fire_tendency (io/wrf_mod.F90) replayed by the EarthSciML feedback driver (data/eqwefic/fire_build/feedback_driver, instrumented firelib 8d519c6, default real32; alfg = alfc = 50 m, z1can = 15 m, fire_atm_feedback = 1, canopy fluxes 0) on the atmosphere column of test7/wrf.nc (WRF 4.x, 19 x 19 x 44 layers, dx = 100 m, sr = 4) with the strongest surface heat flux. The column geometry (z_at_w, dz8w, rho, mut, c1h, c2h) is the frame's end-of-step state. Single precision: rel 1e-5; Linf tolerances are 1e-5 of the column maximum. Regime: frame 5 (t = 5 s), atmosphere cell (6,16), fire-mesh fluxes = fire_behavior's own grnhft/grnqft of the standalone test7 run at step 10 (fire_flux dump; the CFBM-consistent coupled chain used by couplings/fire_atmosphere_column.esm).",
"parameter_overrides": {
"mu": 79500.8203125,
"alfg": 50.0,
"alfc": 50.0,
"z1can": 15.0,
"fire_atm_feedback": 1.0,
"canhfx": 0.0,
"canqfx": 0.0,
"fgrnhfx_block": [
215173.421875,
239527.515625,
102039.765625,
0.0,
241583.65625,
240655.71875,
216698.34375,
0.0,
225514.75,
204211.75,
68624.578125,
0.0,
0.0,
0.0,
0.0,
0.0
],
"fgrnqfx_block": [
19748.607421875,
21983.82421875,
9365.205078125,
0.0,
22172.537109375,
22087.37109375,
19888.56640625,
0.0,
20697.734375,
18742.546875,
6298.3603515625,
0.0,
0.0,
0.0,
0.0,
0.0
],
"ze": [
1530.231201171875,
1562.3775634765625,
1594.4110107421875,
1626.837646484375,
1660.46630859375,
1695.9232177734375,
1734.227294921875,
1776.1405029296875,
1822.5015869140625,
1874.144287109375,
1931.6409912109375,
1995.894287109375,
2067.55615234375,
2147.612548828125,
2236.930419921875,
2336.469970703125,
2447.315185546875,
2570.66943359375,
2707.81494140625,
2860.008056640625,
3028.7587890625,
3215.770751953125,
3422.876708984375,
3652.05615234375,
3905.655029296875,
4186.537109375,
4497.80908203125,
4843.34033203125,
5227.517578125,
5655.61962890625,
6134.392578125,
6672.111328125,
7278.03759765625,
7962.7060546875,
8736.9072265625,
9611.748046875,
10600.052734375,
11713.8076171875,
12915.392578125,
14170.5400390625,
15457.896484375,
16768.8984375,
18112.912109375,
19495.9609375,
20907.867553710938
],
"rho": [
0.9338042140007019,
0.93668133020401,
0.9373258352279663,
0.9366375207901001,
0.934982180595398,
0.9331261515617371,
0.9309040307998657,
0.9284204244613647,
0.9256535172462463,
0.9225828647613525,
0.919191300868988,
0.915429949760437,
0.9102004766464233,
0.9042115807533264,
0.8974348306655884,
0.889761745929718,
0.8811367750167847,
0.8713973760604858,
0.8611222505569458,
0.8498607873916626,
0.8373511433601379,
0.8236055374145508,
0.8085129261016846,
0.7918990254402161,
0.773600697517395,
0.7534741759300232,
0.7315000891685486,
0.7076438069343567,
0.6816049218177795,
0.6528741121292114,
0.6208957433700562,
0.586013674736023,
0.5485986471176147,
0.5087850093841553,
0.4668313264846802,
0.4213181138038635,
0.3714534342288971,
0.3211057186126709,
0.27527567744255066,
0.2324129194021225,
0.19120778143405914,
0.15224462747573853,
0.11848937720060349,
0.09250997751951218
],
"c1h": [
1.0081133842468262,
1.0241780281066895,
1.0401463508605957,
1.056450366973877,
1.0731921195983887,
1.0909066200256348,
1.1099413633346558,
1.130528450012207,
1.1529827117919922,
1.1773890256881714,
1.2041479349136353,
1.2329989671707153,
1.264328956604004,
1.2978992462158203,
1.3337310552597046,
1.3714842796325684,
1.4109569787979126,
1.4515864849090576,
1.4927101135253906,
1.533423900604248,
1.5725204944610596,
1.6085113286972046,
1.6395677328109741,
1.6634162664413452,
1.6774479150772095,
1.6787004470825195,
1.663811206817627,
1.6292389631271362,
1.571335792541504,
1.4865795373916626,
1.371860146522522,
1.2248448133468628,
1.044358730316162,
0.8308578133583069,
0.58689945936203,
0.31758570671081543,
0.05377238988876343,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0
],
"c2h": [
-770.771484375,
-2296.91259765625,
-3813.9033203125,
-5362.78466796875,
-6953.25146484375,
-8636.12890625,
-10444.4296875,
-12400.203125,
-14533.357421875,
-16851.95703125,
-19394.0546875,
-22134.90234375,
-25111.25,
-28300.427734375,
-31704.451171875,
-35291.0078125,
-39040.9140625,
-42900.71484375,
-46807.4609375,
-50675.26953125,
-54389.4453125,
-57808.578125,
-60758.93359375,
-63024.546875,
-64357.55078125,
-64476.54296875,
-63062.06640625,
-59777.703125,
-54276.8984375,
-46225.0546875,
-35326.71484375,
-21360.2578125,
-4214.07958984375,
16068.5078125,
39244.55078125,
64829.359375,
89891.625,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0
]
},
"time_span": {
"start": 0,
"end": 1
},
"tolerance": {
"rel": 1e-05
},
"assertions": [
{
"variable": "grnhfx",
"time": 0.0,
"expected": 109626.8515625,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "grnqfx",
"time": 0.0,
"expected": 10061.546875,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "rthfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
136858.21875,
71579.265625,
37442.375,
19319.0703125,
9687.0234375,
4641.9033203125,
2088.24462890625,
868.1456909179688,
328.0923767089844,
111.13531494140625,
33.277992248535156,
8.673357009887695,
1.9402837753295898,
0.3655841052532196,
0.05702030658721924,
0.007222733926028013,
0.0007272497750818729,
5.687005977961235e-05,
3.3686376355035463e-06,
1.4744853160664206e-07,
4.6310493218015836e-09,
1.0097584574042529e-10,
1.475262620398432e-12,
1.3890028280935229e-14,
8.045093124986233e-17,
2.711761711769076e-19,
4.999918557099939e-22,
4.673607419058016e-25,
2.030806940991329e-28,
3.6931184867771407e-32,
2.4428320899155173e-36,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 2.0
}
},
{
"variable": "rqvfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
5.046945095062256,
2.6396420001983643,
1.38076913356781,
0.7124329805374146,
0.35723015666007996,
0.1711803525686264,
0.07700858265161514,
0.032014764845371246,
0.012099121697247028,
0.004098356701433659,
0.0012271985178813338,
0.000319849030347541,
7.155220373533666e-05,
1.3481715541274752e-05,
2.1027483398938784e-06,
2.6635410677045e-07,
2.6818923970495234e-08,
2.097207518758637e-09,
1.2422586570526306e-10,
5.437486398640612e-12,
1.7078007031549186e-13,
3.723705066895674e-15,
5.440352992126972e-17,
5.122250802761385e-19,
2.966804234008084e-21,
1.0000213779504902e-23,
1.843829245676359e-26,
1.723494695616309e-29,
7.489042917678115e-33,
1.3632395567661619e-36,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 0.0001
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 136858.21875,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 71579.265625,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 3
},
"expected": 37442.375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 9687.0234375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 8
},
"expected": 868.1456909179688,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 8.673357009887695,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 20
},
"expected": 1.4744853160664206e-07,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 3.6931184867771407e-32,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 43
},
"expected": -0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 5.046945095062256,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 2.6396420001983643,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 0.35723015666007996,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 0.000319849030347541,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 1.3632395567661619e-36,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
}
]
},
{
"id": "frame5_cfbm_canopy_feedback_half_coupled_cell",
"description": "Reference: fire_behavior's Provide_atm_feedback (io/wrf_mod.F90) for the aggregation and a verbatim copy of its private Fire_tendency (wrf_mod.F90 lines 260-408, unchanged since 8d519c6) for the tendencies, driven by the EarthSciML canopy-feedback driver (data/eqwefic/fire_build/canopy_feedback/canopy_feedback_driver.F90, linked against the instrumented firelib 8d519c6 build, gfortran 13.3 -O2 in the EqWeFiC wrf-build container, default real32). Provide_atm_feedback hard-zeroes canhfx/canqfx, so the driver sets them afterwards and calls Fire_tendency again with exactly the arguments Provide_atm_feedback passes; with canopy fluxes 0 and fire_atm_feedback = 1 that call reproduces Provide_atm_feedback's own tendencies bit for bit and the frame5_cfbm_fluxes_col_6_16 references exactly. Same column and inputs as frame5_cfbm_fluxes_col_6_16 (test7/wrf.nc frame 5, atmosphere cell (6,16), CFBM step-10 fire fluxes, alfg = 50 m). The lev = NLEV values of rthfrten/rqvfrten come from a second Fire_tendency call with kte and kde raised by one, i.e. WRF's own flux-divergence formula applied to the top layer with the face flux at z_at_w(NLEV+1); WRF itself stores 0 there (rthfrten_wrf). Single precision: rel 1e-5; Linf tolerances are ~1e-5 of the column maximum. Regime: the inputs fire_behavior never exercises -- canopy fluxes canhfx = 3e4 W/m^2 and canqfx = 2.5e3 W/m^2 with a crown height z1can = 100 m (w-levels 1-4 below it, so both branches of decay_c are taken) and a slow crown decay alfc = 3000 m (so the canopy flux still reaches the top layer), fire_atm_feedback = 0.5 (surface fluxes halved, canopy fluxes not), and the coupling hook s_coupled = 6 replacing block cell 6 (fire cell (22,62), 2.41e5 W/m^2 in the dump) by phi_h_in = 1.5e5, phi_q_in = 1.4e4 W/m^2 (the driver writes those into the fire mesh before Provide_atm_feedback aggregates it).",
"parameter_overrides": {
"mu": 79500.8203125,
"alfg": 50.0,
"alfc": 3000.0,
"z1can": 100.0,
"fire_atm_feedback": 0.5,
"canhfx": 30000.0,
"canqfx": 2500.0,
"fgrnhfx_block": [
215173.421875,
239527.515625,
102039.765625,
0.0,
241583.65625,
240655.71875,
216698.34375,
0.0,
225514.75,
204211.75,
68624.578125,
0.0,
0.0,
0.0,
0.0,
0.0
],
"fgrnqfx_block": [
19748.607421875,
21983.82421875,
9365.205078125,
0.0,
22172.537109375,
22087.37109375,
19888.56640625,
0.0,
20697.734375,
18742.546875,
6298.3603515625,
0.0,
0.0,
0.0,
0.0,
0.0
],
"ze": [
1530.231201171875,
1562.3775634765625,
1594.4110107421875,
1626.837646484375,
1660.46630859375,
1695.9232177734375,
1734.227294921875,
1776.1405029296875,
1822.5015869140625,
1874.144287109375,
1931.6409912109375,
1995.894287109375,
2067.55615234375,
2147.612548828125,
2236.930419921875,
2336.469970703125,
2447.315185546875,
2570.66943359375,
2707.81494140625,
2860.008056640625,
3028.7587890625,
3215.770751953125,
3422.876708984375,
3652.05615234375,
3905.655029296875,
4186.537109375,
4497.80908203125,
4843.34033203125,
5227.517578125,
5655.61962890625,
6134.392578125,
6672.111328125,
7278.03759765625,
7962.7060546875,
8736.9072265625,
9611.748046875,
10600.052734375,
11713.8076171875,
12915.392578125,
14170.5400390625,
15457.896484375,
16768.8984375,
18112.912109375,
19495.9609375,
20907.867553710938
],
"rho": [
0.9338042140007019,
0.93668133020401,
0.9373258352279663,
0.9366375207901001,
0.934982180595398,
0.9331261515617371,
0.9309040307998657,
0.9284204244613647,
0.9256535172462463,
0.9225828647613525,
0.919191300868988,
0.915429949760437,
0.9102004766464233,
0.9042115807533264,
0.8974348306655884,
0.889761745929718,
0.8811367750167847,
0.8713973760604858,
0.8611222505569458,
0.8498607873916626,
0.8373511433601379,
0.8236055374145508,
0.8085129261016846,
0.7918990254402161,
0.773600697517395,
0.7534741759300232,
0.7315000891685486,
0.7076438069343567,
0.6816049218177795,
0.6528741121292114,
0.6208957433700562,
0.586013674736023,
0.5485986471176147,
0.5087850093841553,
0.4668313264846802,
0.4213181138038635,
0.3714534342288971,
0.3211057186126709,
0.27527567744255066,
0.2324129194021225,
0.19120778143405914,
0.15224462747573853,
0.11848937720060349,
0.09250997751951218
],
"c1h": [
1.0081133842468262,
1.0241780281066895,
1.0401463508605957,
1.056450366973877,
1.0731921195983887,
1.0909066200256348,
1.1099413633346558,
1.130528450012207,
1.1529827117919922,
1.1773890256881714,
1.2041479349136353,
1.2329989671707153,
1.264328956604004,
1.2978992462158203,
1.3337310552597046,
1.3714842796325684,
1.4109569787979126,
1.4515864849090576,
1.4927101135253906,
1.533423900604248,
1.5725204944610596,
1.6085113286972046,
1.6395677328109741,
1.6634162664413452,
1.6774479150772095,
1.6787004470825195,
1.663811206817627,
1.6292389631271362,
1.571335792541504,
1.4865795373916626,
1.371860146522522,
1.2248448133468628,
1.044358730316162,
0.8308578133583069,
0.58689945936203,
0.31758570671081543,
0.05377238988876343,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0
],
"c2h": [
-770.771484375,
-2296.91259765625,
-3813.9033203125,
-5362.78466796875,
-6953.25146484375,
-8636.12890625,
-10444.4296875,
-12400.203125,
-14533.357421875,
-16851.95703125,
-19394.0546875,
-22134.90234375,
-25111.25,
-28300.427734375,
-31704.451171875,
-35291.0078125,
-39040.9140625,
-42900.71484375,
-46807.4609375,
-50675.26953125,
-54389.4453125,
-57808.578125,
-60758.93359375,
-63024.546875,
-64357.55078125,
-64476.54296875,
-63062.06640625,
-59777.703125,
-54276.8984375,
-46225.0546875,
-35326.71484375,
-21360.2578125,
-4214.07958984375,
16068.5078125,
39244.55078125,
64829.359375,
89891.625,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0
],
"s_coupled": 6.0,
"phi_h_in": 150000.0,
"phi_q_in": 14000.0
},
"time_span": {
"start": 0,
"end": 1
},
"tolerance": {
"rel": 1e-05
},
"assertions": [
{
"variable": "grnhfx",
"time": 0.0,
"expected": 103960.8671875,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "grnqfx",
"time": 0.0,
"expected": 9556.0859375,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "rthfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
64892.40234375,
33939.86328125,
17753.599609375,
9907.8759765625,
5414.34814453125,
3010.908447265625,
1788.1875,
1196.895751953125,
926.9230346679688,
808.9481811523438,
755.556396484375,
726.0426635742188,
704.3400268554688,
683.8014526367188,
662.528076171875,
640.124755859375,
616.4898681640625,
591.7667846679688,
565.6290893554688,
538.5169677734375,
510.7296447753906,
482.4189758300781,
453.8393859863281,
425.290283203125,
397.0221862792969,
369.245849609375,
342.0774841308594,
315.581787109375,
289.8829040527344,
265.0807189941406,
241.17633056640625,
217.79086303710938,
194.61441040039062,
171.56301879882812,
148.70278930664062,
126.77690124511719,
106.02371978759766,
84.19837951660156,
65.25650024414062,
50.61307144165039,
39.90852737426758,
32.212764739990234,
26.28531837463379,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 0.7
}
},
{
"variable": "rqvfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
2.3967018127441406,
1.2535167932510376,
0.6557018160820007,
0.36335283517837524,
0.19713784754276276,
0.10840855538845062,
0.06329092383384705,
0.04149617254734039,
0.03157332167029381,
0.027267908677458763,
0.02535313181579113,
0.024324484169483185,
0.02358679473400116,
0.02289656363427639,
0.022183846682310104,
0.021433454006910324,
0.020642142742872238,
0.01981429010629654,
0.018939167261123657,
0.01803135685622692,
0.01710093952715397,
0.016152968630194664,
0.015196061693131924,
0.014240145683288574,
0.01329362764954567,
0.012363580986857414,
0.011453887447714806,
0.010566730052232742,
0.009706244803965092,
0.008875791914761066,
0.008075382560491562,
0.0072923689149320126,
0.006516336929053068,
0.00574450334534049,
0.004979064222425222,
0.004244914278388023,
0.003550027497112751,
0.002819242887198925,
0.0021850047633051872,
0.0016946941614151,
0.0013362712925300002,
0.0010785905178636312,
0.0008801200892776251,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 2.5e-05
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 64892.40234375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 2
},
"expected": 33939.86328125,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 3
},
"expected": 17753.599609375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 4
},
"expected": 9907.8759765625,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 5
},
"expected": 5414.34814453125,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 8
},
"expected": 1196.895751953125,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 726.0426635742188,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 20
},
"expected": 538.5169677734375,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 265.0807189941406,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 43
},
"expected": 26.28531837463379,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 44
},
"expected": 21.13776397705078,
"tolerance": {
"rel": 1e-05,
"abs": 1e-06
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 2.3967018127441406,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 4
},
"expected": 0.36335283517837524,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 12
},
"expected": 0.024324484169483185,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 30
},
"expected": 0.008875791914761066,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 44
},
"expected": 0.0007077628979459405,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
}
]
},
{
"id": "frame5_cfbm_feedback_off_canopy_nonzero",
"description": "Reference: fire_behavior's Provide_atm_feedback (io/wrf_mod.F90) for the aggregation and a verbatim copy of its private Fire_tendency (wrf_mod.F90 lines 260-408, unchanged since 8d519c6) for the tendencies, driven by the EarthSciML canopy-feedback driver (data/eqwefic/fire_build/canopy_feedback/canopy_feedback_driver.F90, linked against the instrumented firelib 8d519c6 build, gfortran 13.3 -O2 in the EqWeFiC wrf-build container, default real32). Provide_atm_feedback hard-zeroes canhfx/canqfx, so the driver sets them afterwards and calls Fire_tendency again with exactly the arguments Provide_atm_feedback passes; with canopy fluxes 0 and fire_atm_feedback = 1 that call reproduces Provide_atm_feedback's own tendencies bit for bit and the frame5_cfbm_fluxes_col_6_16 references exactly. Same column and inputs as frame5_cfbm_fluxes_col_6_16 (test7/wrf.nc frame 5, atmosphere cell (6,16), CFBM step-10 fire fluxes, alfg = 50 m). The lev = NLEV values of rthfrten/rqvfrten come from a second Fire_tendency call with kte and kde raised by one, i.e. WRF's own flux-divergence formula applied to the top layer with the face flux at z_at_w(NLEV+1); WRF itself stores 0 there (rthfrten_wrf). Single precision: rel 1e-5; Linf tolerances are ~1e-5 of the column maximum. Regime: as frame5_cfbm_canopy_feedback_half_coupled_cell but fire_atm_feedback = 0: Fire_tendency returns before distributing any flux, so every tendency is 0 although the canopy fluxes are nonzero (feedback_on), while the aggregation grnhfx/grnqfx is unaffected.",
"parameter_overrides": {
"mu": 79500.8203125,
"alfg": 50.0,
"alfc": 3000.0,
"z1can": 100.0,
"fire_atm_feedback": 0.0,
"canhfx": 30000.0,
"canqfx": 2500.0,
"fgrnhfx_block": [
215173.421875,
239527.515625,
102039.765625,
0.0,
241583.65625,
240655.71875,
216698.34375,
0.0,
225514.75,
204211.75,
68624.578125,
0.0,
0.0,
0.0,
0.0,
0.0
],
"fgrnqfx_block": [
19748.607421875,
21983.82421875,
9365.205078125,
0.0,
22172.537109375,
22087.37109375,
19888.56640625,
0.0,
20697.734375,
18742.546875,
6298.3603515625,
0.0,
0.0,
0.0,
0.0,
0.0
],
"ze": [
1530.231201171875,
1562.3775634765625,
1594.4110107421875,
1626.837646484375,
1660.46630859375,
1695.9232177734375,
1734.227294921875,
1776.1405029296875,
1822.5015869140625,
1874.144287109375,
1931.6409912109375,
1995.894287109375,
2067.55615234375,
2147.612548828125,
2236.930419921875,
2336.469970703125,
2447.315185546875,
2570.66943359375,
2707.81494140625,
2860.008056640625,
3028.7587890625,
3215.770751953125,
3422.876708984375,
3652.05615234375,
3905.655029296875,
4186.537109375,
4497.80908203125,
4843.34033203125,
5227.517578125,
5655.61962890625,
6134.392578125,
6672.111328125,
7278.03759765625,
7962.7060546875,
8736.9072265625,
9611.748046875,
10600.052734375,
11713.8076171875,
12915.392578125,
14170.5400390625,
15457.896484375,
16768.8984375,
18112.912109375,
19495.9609375,
20907.867553710938
],
"rho": [
0.9338042140007019,
0.93668133020401,
0.9373258352279663,
0.9366375207901001,
0.934982180595398,
0.9331261515617371,
0.9309040307998657,
0.9284204244613647,
0.9256535172462463,
0.9225828647613525,
0.919191300868988,
0.915429949760437,
0.9102004766464233,
0.9042115807533264,
0.8974348306655884,
0.889761745929718,
0.8811367750167847,
0.8713973760604858,
0.8611222505569458,
0.8498607873916626,
0.8373511433601379,
0.8236055374145508,
0.8085129261016846,
0.7918990254402161,
0.773600697517395,
0.7534741759300232,
0.7315000891685486,
0.7076438069343567,
0.6816049218177795,
0.6528741121292114,
0.6208957433700562,
0.586013674736023,
0.5485986471176147,
0.5087850093841553,
0.4668313264846802,
0.4213181138038635,
0.3714534342288971,
0.3211057186126709,
0.27527567744255066,
0.2324129194021225,
0.19120778143405914,
0.15224462747573853,
0.11848937720060349,
0.09250997751951218
],
"c1h": [
1.0081133842468262,
1.0241780281066895,
1.0401463508605957,
1.056450366973877,
1.0731921195983887,
1.0909066200256348,
1.1099413633346558,
1.130528450012207,
1.1529827117919922,
1.1773890256881714,
1.2041479349136353,
1.2329989671707153,
1.264328956604004,
1.2978992462158203,
1.3337310552597046,
1.3714842796325684,
1.4109569787979126,
1.4515864849090576,
1.4927101135253906,
1.533423900604248,
1.5725204944610596,
1.6085113286972046,
1.6395677328109741,
1.6634162664413452,
1.6774479150772095,
1.6787004470825195,
1.663811206817627,
1.6292389631271362,
1.571335792541504,
1.4865795373916626,
1.371860146522522,
1.2248448133468628,
1.044358730316162,
0.8308578133583069,
0.58689945936203,
0.31758570671081543,
0.05377238988876343,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0,
-0.0
],
"c2h": [
-770.771484375,
-2296.91259765625,
-3813.9033203125,
-5362.78466796875,
-6953.25146484375,
-8636.12890625,
-10444.4296875,
-12400.203125,
-14533.357421875,
-16851.95703125,
-19394.0546875,
-22134.90234375,
-25111.25,
-28300.427734375,
-31704.451171875,
-35291.0078125,
-39040.9140625,
-42900.71484375,
-46807.4609375,
-50675.26953125,
-54389.4453125,
-57808.578125,
-60758.93359375,
-63024.546875,
-64357.55078125,
-64476.54296875,
-63062.06640625,
-59777.703125,
-54276.8984375,
-46225.0546875,
-35326.71484375,
-21360.2578125,
-4214.07958984375,
16068.5078125,
39244.55078125,
64829.359375,
89891.625,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0,
95000.0
],
"s_coupled": 6.0,
"phi_h_in": 150000.0,
"phi_q_in": 14000.0
},
"time_span": {
"start": 0,
"end": 1
},
"tolerance": {
"rel": 1e-05
},
"assertions": [
{
"variable": "grnhfx",
"time": 0.0,
"expected": 103960.8671875,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "grnqfx",
"time": 0.0,
"expected": 9556.0859375,
"tolerance": {
"rel": 1e-05
}
},
{
"variable": "rthfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-09
}
},
{
"variable": "rqvfrten_wrf",
"time": 0.0,
"reduce": "Linf_error",
"expected": 0.0,
"reference": {
"op": "faq",
"output_idx": [
"k"
],
"args": [],
"ranges": {
"k": {
"from": "lev"
}
},
"expr": {
"op": "index",
"args": [
{
"op": "const",
"args": [],
"value": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
"k"
]
}
},
"tolerance": {
"abs": 1e-12
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rthfrten",
"time": 0.0,
"coords": {
"lev": 44
},
"expected": 0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-09
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 1
},
"expected": 0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-12
}
},
{
"variable": "rqvfrten",
"time": 0.0,
"coords": {
"lev": 44
},
"expected": 0.0,
"tolerance": {
"rel": 1e-05,
"abs": 1e-12
}
}
]
}
]
}