Skip to content

add radiation tendency to updraft #3931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion reproducibility_tests/ref_counter.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
254
255

# **README**
#
Expand All @@ -20,6 +20,9 @@


#=
255
- Add radiation tendency to prognostic edmf updrafts

254
- Use rayleigh and viscous sponges in the prognostic_edmfx_aquaplanet

Expand Down
12 changes: 12 additions & 0 deletions src/parameterized_tendencies/radiation/radiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,19 @@ end

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

Expand Down
Loading