Skip to content

Commit

Permalink
min mixing length 10x
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Aug 17, 2023
1 parent b8345ea commit 60088d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/prognostic_equations/edmfx_tke.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ function edmfx_tke_tendency!(
end
# pressure work
# dissipation
#min_mixing_length = @. c_d * dt * max(ᶜtke⁰[colidx], eps(FT))^(FT(1) / 2)
min_mixing_length = FT(100)
min_mixing_length = @. FT(10) * c_d * dt * max(ᶜtke⁰[colidx], eps(FT))^(FT(1) / 2)
@. Yₜ.c.sgs⁰.ρatke[colidx] -=
Y.c.ρ[colidx] * c_d * max(ᶜtke⁰[colidx], 0)^(FT(3) / 2) /
max(ᶜmixing_length[colidx], min_mixing_length)
Expand Down

0 comments on commit 60088d3

Please sign in to comment.