Skip to content

feat(edmfx): add horizontal diffusion of prognostic EDMFX updrafts - #4659

Merged
haakon-e merged 1 commit into
he/edmf-3d-diffusionfrom
he/edmfx-updraft-horizontal-diffusion
Jul 13, 2026
Merged

feat(edmfx): add horizontal diffusion of prognostic EDMFX updrafts#4659
haakon-e merged 1 commit into
he/edmf-3d-diffusionfrom
he/edmfx-updraft-horizontal-diffusion

Conversation

@haakon-e

@haakon-e haakon-e commented Jul 9, 2026

Copy link
Copy Markdown
Member

Diffuses the prognostic updraft variables horizontally, mirroring edmfx_vertical_diffusion with the mixing length limited by the horizontal node spacing: moist static energy and total specific humidity at K_h, and the updraft SGS tracers at α_vert_diff_tracer · K_h, all weighted by the updraft density. The updraft dry-air mass is unchanged by the water flux, so ρa receives the counterpart tendency ρa/(1 − q_tot) times the q_tot tendency, mirroring the hyperdiffusion treatment. Always explicit; enabled by the opt-in edmfx_horizontal_diffusion config option (default false), separate from the grid-mean edmfx_sgs_horizontal_diffusive_flux option in the same way edmfx_vertical_diffusion is separate from edmfx_sgs_diffusive_flux.

Extends the tests: horizontally uniform updraft fields produce no tendency, perturbed fields produce one with the stated ρa/q_tot pairing, and the single-column tendency is identically zero.

@haakon-e

haakon-e commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

📖 Docs preview for this PR: https://clima.github.io/ClimaAtmos.jl/previews/PR4659/

@haakon-e
haakon-e changed the base branch from he/edmfx-horizontal-momentum-diffusion to he/edmf-3d-diffusion July 9, 2026 02:42
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 3c4cd00 to 7aa4dd9 Compare July 9, 2026 02:42
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 05ec4d9 to e5787ab Compare July 9, 2026 08:24
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 7aa4dd9 to b61b1f4 Compare July 9, 2026 08:24
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from e5787ab to ac60a14 Compare July 9, 2026 19:04
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from b61b1f4 to 8632e7d Compare July 9, 2026 19:04
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from ac60a14 to f47c6c6 Compare July 10, 2026 01:15
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 8632e7d to 6d768fa Compare July 10, 2026 01:15
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from f47c6c6 to ee9a351 Compare July 10, 2026 07:36
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 6d768fa to 2f58f5e Compare July 10, 2026 07:36
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from ee9a351 to ded13f0 Compare July 10, 2026 19:29
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 2f58f5e to 59f4895 Compare July 10, 2026 19:29
@haakon-e
haakon-e requested a review from costachris July 10, 2026 19:57
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 59f4895 to 5af9a08 Compare July 10, 2026 20:30
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from ded13f0 to 231327f Compare July 11, 2026 00:29
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from 5af9a08 to eb9ff2c Compare July 11, 2026 00:29
Diffuse the prognostic updraft variables horizontally, mirroring
`edmfx_vertical_diffusion` with the mixing length limited by the horizontal
node spacing: moist static energy and total specific humidity at `K_h`, and
the updraft SGS tracers at `α_vert_diff_tracer · K_h`, all weighted by the
updraft density. The updraft dry-air mass is unchanged by the water flux, so
`ρa` receives the counterpart tendency `ρa/(1 - q_tot)` times the `q_tot`
tendency, mirroring the hyperdiffusion treatment. Always explicit; enabled by
the opt-in `edmfx_horizontal_diffusion` config option (default false).

Extend the tests: horizontally uniform updraft fields produce no tendency,
perturbed fields produce one with the stated `ρa`/`q_tot` pairing, and the
single-column tendency is identically zero.
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 231327f to e9244b3 Compare July 11, 2026 01:33
@haakon-e
haakon-e force-pushed the he/edmfx-updraft-horizontal-diffusion branch from eb9ff2c to 7ab7415 Compare July 11, 2026 01:33
@haakon-e
haakon-e merged commit 7ab7415 into he/edmf-3d-diffusion Jul 13, 2026
25 of 26 checks passed
@haakon-e
haakon-e deleted the he/edmfx-updraft-horizontal-diffusion branch July 13, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant