fix(les): diffuse total enthalpy with the dry-static-energy decomposition - #4704
Open
haakon-e wants to merge 1 commit into
Open
fix(les): diffuse total enthalpy with the dry-static-energy decomposition#4704haakon-e wants to merge 1 commit into
haakon-e wants to merge 1 commit into
Conversation
haakon-e
force-pushed
the
he/smag-amd-enthalpy-decomposition
branch
from
July 17, 2026 00:30
fce1021 to
6628c12
Compare
Contributor
|
📖 Docs preview for this PR: https://clima.github.io/ClimaAtmos.jl/previews/PR4704/ |
haakon-e
force-pushed
the
he/smag-amd-enthalpy-decomposition
branch
2 times, most recently
from
July 23, 2026 22:10
7d09e5f to
acd293d
Compare
haakon-e
changed the base branch from
main
to
he/edmf-vertical-diffusion-helpers
July 23, 2026 22:27
Member
Author
|
This change is part of the following stack: Change managed by git-spice. |
haakon-e
force-pushed
the
he/smag-amd-enthalpy-decomposition
branch
from
July 23, 2026 22:27
acd293d to
de6b04d
Compare
This was referenced Jul 23, 2026
haakon-e
force-pushed
the
he/edmf-vertical-diffusion-helpers
branch
from
July 24, 2026 17:40
77cb1db to
2dc3e74
Compare
haakon-e
force-pushed
the
he/smag-amd-enthalpy-decomposition
branch
from
July 24, 2026 17:41
de6b04d to
c3aadd2
Compare
haakon-e
marked this pull request as ready for review
July 24, 2026 19:53
haakon-e
force-pushed
the
he/edmf-vertical-diffusion-helpers
branch
from
July 25, 2026 22:22
2dc3e74 to
1027e64
Compare
haakon-e
force-pushed
the
he/smag-amd-enthalpy-decomposition
branch
from
July 25, 2026 22:22
c3aadd2 to
3e6d72c
Compare
…tion Diffuse total enthalpy in the Smagorinsky-Lilly and AMD tendencies, vertical and horizontal, with the dry-static-energy + water-enthalpy decomposition used by the boundary-layer and EDMFX diffusion, instead of diffusing h_tot directly. Diffusing h_tot carries a spurious enthalpy flux with the dry-air mass gradient and diffuses kinetic energy through the energy flux. The vertical fluxes use ᶠtotal_enthalpy_gradientᵥ; the horizontal fluxes use the materialized ᶜtotal_enthalpy_gradientₕ!. AMD keeps evaluating its energy diffusivities from the total-enthalpy gradient; only the flux assembly changes. A unit test asserts the Smagorinsky horizontal and vertical energy tendencies equal the sum of their four constituent fluxes.
haakon-e
force-pushed
the
he/smag-amd-enthalpy-decomposition
branch
from
July 26, 2026 16:51
3e6d72c to
9a8437e
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Diffuses total enthalpy in the
Smagorinsky-LillyandAMDtendencies, vertical and horizontal, with the dry-static-energy + water-enthalpy decomposition already used by the boundary-layer and EDMFX diffusion, instead of diffusingh_totdirectly. Diffusingh_totcontributes a spurious enthalpy flux with the dry-air mass gradient and additionally diffuses kinetic energy through the energy flux. The decomposition removes both, making the energy-moisture coupling of the LES closures consistent with the other diffusion models.ᶠtotal_enthalpy_gradientᵥᶜtotal_enthalpy_gradientₕ!from feat(edmfx): add horizontal component to the EDMFX SGS diffusive flux #4657Behavioral for every Smagorinsky/AMD configuration (reference counter bumped).