Skip to content

Commit d38edcd

Browse files
committed
add radiation tendency to updraft
1 parent 9793487 commit d38edcd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/parameterized_tendencies/radiation/radiation.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,19 @@ end
419419

420420
function radiation_tendency!(Yₜ, Y, p, t, ::RRTMGPI.AbstractRRTMGPMode)
421421
(; ᶠradiation_flux) = p.radiation
422+
(; turbconv_model) = p.atmos
422423
@. Yₜ.c.ρe_tot -= ᶜdivᵥ(ᶠradiation_flux)
424+
# Apply radiation tendency to updrafts in prognostic EDMF. We use the
425+
# grid-mean radiation as an approximation for updraft radiation.
426+
# Note: Radiation is not applied to updrafts in diagnostic EDMF because updrafts
427+
# are typically absent in the stratosphere where radiation is more important.
428+
if turbconv_model isa PrognosticEDMFX
429+
(; ᶜρʲs) = p.precomputed
430+
n = n_mass_flux_subdomains(turbconv_model)
431+
for j in 1:n
432+
@. Yₜ.c.sgsʲs.:($$j).mse -= ᶜdivᵥ(ᶠradiation_flux) / ᶜρʲs.:($$j)
433+
end
434+
end
423435
return nothing
424436
end
425437

0 commit comments

Comments
 (0)