Skip to content

refactor(diffusion): route EDMFX vertical diffusive fluxes through shared helpers - #4702

Open
haakon-e wants to merge 1 commit into
he/edmf-3d-diffusionfrom
he/edmf-vertical-diffusion-helpers
Open

refactor(diffusion): route EDMFX vertical diffusive fluxes through shared helpers#4702
haakon-e wants to merge 1 commit into
he/edmf-3d-diffusionfrom
he/edmf-vertical-diffusion-helpers

Conversation

@haakon-e

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

Copy link
Copy Markdown
Member

Completes the consolidation from #4699 for the EDMFX vertical path: the grid-mean SGS diffusive fluxes in edmfx_sgs_diffusive_flux_tendency! (total enthalpy via the dry static energy + water enthalpy decomposition, specific humidity, and grid-scale tracers with the α and interfacial-entrainment weighting folded into the flux coefficient) now use the shared ᶠtotal_enthalpy_gradientᵥ and ᶜdiffusive_flux_divergenceᵥ/ᶜdiffdivᵥ helpers.

The TKE flux keeps its dedicated divergence operator, since its bottom boundary has a nonzero surface TKE flux, and the momentum stress keeps its strain-rate form.

@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from 748722a to 0c44640 Compare July 16, 2026 23:11
@haakon-e

Copy link
Copy Markdown
Member Author

@sajjadazimi This PR probably overlaps with what you're changing with EDMF now, so let me know which you'd prefer to merge first.

@github-actions

Copy link
Copy Markdown
Contributor

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

@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from 0c44640 to cef284c Compare July 22, 2026 19:01
@haakon-e
haakon-e changed the base branch from main to he/edmf-3d-diffusion July 22, 2026 19:01
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 0decd0d to 2ff1125 Compare July 23, 2026 19:27
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from cef284c to f19fc7d Compare July 23, 2026 20:00
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 2ff1125 to a3d8e65 Compare July 23, 2026 20:08
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from f19fc7d to 6276b13 Compare July 23, 2026 20:08
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from a3d8e65 to 38a6671 Compare July 23, 2026 20:20
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from 6276b13 to e681161 Compare July 23, 2026 20:20
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 38a6671 to 8a2c65e Compare July 23, 2026 21:03
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from e681161 to a282b25 Compare July 23, 2026 21:03
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 8a2c65e to 86f1665 Compare July 23, 2026 21:30
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from a282b25 to f261159 Compare July 23, 2026 21:30
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 86f1665 to 03fe0c8 Compare July 23, 2026 21:32
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from f261159 to a36d742 Compare July 23, 2026 21:32
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 03fe0c8 to 5ae7b0d Compare July 23, 2026 22:17
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from a36d742 to 77cb1db Compare July 23, 2026 22:17
@haakon-e

Copy link
Copy Markdown
Member Author

@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from 5ae7b0d to ecf3379 Compare July 24, 2026 17:40
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from 77cb1db to 2dc3e74 Compare July 24, 2026 17:40
@haakon-e
haakon-e marked this pull request as ready for review July 24, 2026 19:53
@haakon-e haakon-e added the Launch Buildkite Add to launch buildkite run label Jul 24, 2026
…ared helpers

Route the grid-mean EDMFX SGS diffusive fluxes (total enthalpy, specific
humidity, grid-scale tracers) through ᶜdiffusive_flux_divergenceᵥ and
ᶠtotal_enthalpy_gradientᵥ, with the face coefficients, including the
interfacial entrainment weighting, folded into the flux coefficient. The
TKE flux keeps its dedicated divergence operator (nonzero bottom boundary
value) and the momentum stress keeps its strain form. Tendencies are
unchanged.
@haakon-e
haakon-e force-pushed the he/edmf-3d-diffusion branch from ecf3379 to fa5abe6 Compare July 25, 2026 22:22
@haakon-e
haakon-e force-pushed the he/edmf-vertical-diffusion-helpers branch from 2dc3e74 to 1027e64 Compare July 25, 2026 22:22
@haakon-e
haakon-e requested a review from costachris July 26, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Launch Buildkite Add to launch buildkite run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant