Moist-Theta
- WRFMoistThetaTendency
model
atmospheric_dynamics
wrf_arw
WRF-ARW's conversion of the physics temperature tendency into a tendency of the moist potential temperature when the dynamics carries theta_m (use_theta_m = 1, the WRF 4 default): SUBROUTINE conv_t_tendf_to_moist of dyn_em/module_big_step_utilities_em.F:6674-6707, called once per step from dyn_em/module_first_rk_step_part2.F after update_phy_ten has summed the physics tendencies. The physics schemes compute tendencies of the DRY potential temperature theta and of q_v; the dynamics prognoses theta_m = theta (1 + (R_v/R_d) q_v), so the tendency it needs is the product-rule derivative (1 + (R_v/R_d) q_v) dtheta/dt + (R_v/R_d) theta dq_v/dt, with theta recovered from the step's theta_m and q_v as theta_m / (1 + (R_v/R_d) q_v) (the Fortran's (t_1 + T0)/(1 + R_v/R_d moist_old)). Written as instantaneous decoupled rates of a single column on the EarthSciDiscretizations column_nonuniform_1d layer index `lev`: WRF applies the conversion to the mass-coupled t_tendf and moist_tend, but the conversion is linear and both carry the same column mass, so it holds unchanged for the decoupled rates. Consumer-supplied column fields are rewrite-target ops input_<name>.