Skip to content

Commit b56a2d3

Browse files
committed
use vertical strain for lilly correction
1 parent 1328337 commit b56a2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameterized_tendencies/les_sgs_models/smagorinsky_lilly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function set_smagorinsky_lilly_precomputed_quantities!(Y, p)
4343
ᶜθ_v = @. lazy(TD.virtual_pottemp(thermo_params, ᶜts))
4444
ᶜ∇ᵥθ = @. ᶜtemp_scalar_2 = Geometry.WVector(ᶜgradᵥ(ᶠinterp(ᶜθ_v))).components.data.:1
4545
ᶜN² = @. ᶜtemp_scalar = grav / ᶜθ_v * ᶜ∇ᵥθ
46-
ᶜS_norm = @. ᶜtemp_scalar_2 = (2 * norm_sqr(ᶜS))
46+
ᶜS_norm = projected_strain_rate_norm(ᶜS, Geometry.WAxis())
4747

4848
ᶜRi = @. ᶜtemp_scalar = ᶜN² / (ᶜS_norm^2 + eps(FT)) # Ri = N² / |S|²
4949
ᶜfb = @. ᶜtemp_scalar = ifelse(ᶜRi 0, 1, max(0, 1 - ᶜRi / Pr_t)^(1 / 4))

0 commit comments

Comments
 (0)