Skip to content

Commit 3213588

Browse files
authored
Merge pull request #3931 from CliMA/zs/updraft_radiation
add radiation tendency to updraft
2 parents 714ff9e + 60f7f18 commit 3213588

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

reproducibility_tests/ref_counter.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
254
1+
255
22

33
# **README**
44
#
@@ -20,6 +20,9 @@
2020

2121

2222
#=
23+
255
24+
- Add radiation tendency to prognostic edmf updrafts
25+
2326
254
2427
- Use rayleigh and viscous sponges in the prognostic_edmfx_aquaplanet
2528

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)