Skip to content

feat(edmfx): add the momentum component of the horizontal SGS diffusive flux - #4658

Closed
haakon-e wants to merge 1 commit into
he/edmf-3d-diffusionfrom
he/edmfx-horizontal-momentum-diffusion
Closed

feat(edmfx): add the momentum component of the horizontal SGS diffusive flux#4658
haakon-e wants to merge 1 commit into
he/edmf-3d-diffusionfrom
he/edmfx-horizontal-momentum-diffusion

Conversation

@haakon-e

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

Copy link
Copy Markdown
Member

Applies the horizontal weak divergence of the SGS stress τ = -2 K_u S, with the full three-dimensional strain rate of the grid-mean velocity, to the grid-mean momentum: on cell centers for the horizontal wind and on cell faces for the vertical wind, mirroring the Smagorinsky–Lilly stress split by divergence direction. The eddy viscosity is the horizontal K_u from the TKE-based closure with the mixing length limited by the horizontal node spacing. Enabled under the existing edmfx_sgs_horizontal_diffusive_flux option; the vertical stress divergence remains with the vertical diffusion pathway.

Adds the corresponding TKE shear production from horizontal gradients, 2 ρ K_u S_h : S_h with S_h the strain rate built from horizontal gradients only, so the resolved kinetic energy sink from the horizontal stress lands with its TKE source in the same PR. The term is positive definite; the production from vertical gradients and its stencil are unchanged, mirroring the decoupled Smagorinsky–Lilly split in which each directional norm is built from that direction's gradients.

Extends the tests: horizontally uniform velocity produces no momentum tendency, perturbed velocity produces one, the production term is positive definite under uniform TKE, and the single-column tendency is identically zero.

@haakon-e

haakon-e commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

…ve flux

Apply the horizontal weak divergence of the SGS stress `τ = -2 K_u S`, with
the full three-dimensional strain rate of the grid-mean velocity, to the
grid-mean momentum: on cell centers for the horizontal wind and on cell faces
for the vertical wind, mirroring the Smagorinsky-Lilly stress split by
divergence direction. The eddy viscosity is the horizontal `K_u` from the
TKE-based closure with the mixing length limited by the horizontal node
spacing. Enabled under the existing `edmfx_sgs_horizontal_diffusive_flux`
option; the vertical stress divergence remains with the vertical diffusion
pathway.

Add the corresponding TKE shear production from horizontal gradients,
`2 ρ K_u S_h : S_h` with `S_h` the strain rate built from horizontal
gradients only. The term is positive definite; the production from vertical
gradients and its stencil are unchanged, mirroring the decoupled
Smagorinsky-Lilly split in which each directional norm is built from that
direction's gradients.

Extend the tests: horizontally uniform velocity produces no momentum
tendency, perturbed velocity produces one, the production term is positive
definite under uniform TKE, and the single-column tendency is identically
zero.
@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/PR4658/

@haakon-e

haakon-e commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

Folded into #4657: the momentum stress and its TKE production counterpart land with the scalar fluxes so each PR is energetically self-contained.

@haakon-e haakon-e closed this Jul 9, 2026
@haakon-e
haakon-e deleted the he/edmfx-horizontal-momentum-diffusion branch July 9, 2026 03:55
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