Skip to content

Commit 756dcf6

Browse files
authored
Merge pull request #3842 from CliMA/cc/add_inv_tau_pigroup_entr
Add entr_inv_tau to PiGroups entr
2 parents 19f6cb1 + 2a7531a commit 756dcf6

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

src/prognostic_equations/edmfx_entr_detr.jl

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function entrainment(
6666
ref_H = ᶜp / (ᶜρ * g)
6767

6868
entr_param_vec = CAP.entr_param_vec(turbconv_params)
69+
entr_inv_tau = CAP.entr_tau(turbconv_params)
6970

7071
# non-dimensional pi-groups
7172
Π₁ = (ᶜz - z_sfc) * (ᶜbuoyʲ - ᶜbuoy⁰) / ((ᶜwʲ - ᶜw⁰)^2 + eps(FT)) / 100
@@ -78,15 +79,16 @@ function entrainment(
7879
Π₂ = min(max(Π₂, -1), 1)
7980

8081
entr =
81-
((FT(1) - min(ᶜaʲ, FT(1)))^entr_mult_limiter_coeff) *
82-
abs(ᶜwʲ - ᶜw⁰) / (ᶜz - z_sfc) * (
83-
entr_param_vec[1] * abs(Π₁) +
84-
entr_param_vec[2] * abs(Π₂) +
85-
entr_param_vec[3] * abs(Π₃) +
86-
entr_param_vec[4] * abs(Π₄) +
87-
entr_param_vec[5] * abs(Π₅) +
88-
entr_param_vec[6]
89-
)
82+
((FT(1) - min(ᶜaʲ, FT(1)))^entr_mult_limiter_coeff) * (
83+
abs(ᶜwʲ - ᶜw⁰) / (ᶜz - z_sfc) * (
84+
entr_param_vec[1] * abs(Π₁) +
85+
entr_param_vec[2] * abs(Π₂) +
86+
entr_param_vec[3] * abs(Π₃) +
87+
entr_param_vec[4] * abs(Π₄) +
88+
entr_param_vec[5] * abs(Π₅) +
89+
entr_param_vec[6]
90+
)
91+
) + entr_inv_tau
9092

9193
return max(entr, 0)
9294
end

toml/prognostic_edmfx_bomex_pigroup.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ type = "float"
3737
value = 1.4362168064049219
3838
type = "float"
3939

40+
[entr_inv_tau]
41+
value = 0
42+
type = "float"
43+
4044
[entr_param_vec]
4145
value = [-1.2633841186916668, -0.4599815783034937, -0.46293146485015296, 1.4203614863252911, 0.5642481281364011, 0.32604896101664416, -0.09664796099945236, 0.7220191192213364, 0.16903223715665835, 3.2461705926260187, -1.028004360914299, 0.3402928311687101]
4246
type = "float"
@@ -61,10 +65,6 @@ type = "float"
6165
value = 0.8133326091843176
6266
type = "float"
6367

64-
[entr_inv_tau]
65-
value = 0.00018836212008341437
66-
type = "float"
67-
6868
[mixing_length_static_stab_coeff]
6969
value = 0.8242481923752288
7070
type = "float"

toml/prognostic_edmfx_calibrated.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ type = "float"
1414
value = [0.8232451844623447, 0.058776909570673115, 0.3812876963832981, 1.7521400508808318, -0.32149828410236075, -0.019764881527468917, -0.05926889361439075, 0.3610260801159997, 0.5411236315642174, -0.4681505113638351, 1.0674945161351919, 0.38794618444184004]
1515
type = "float"
1616

17+
[entr_inv_tau]
18+
value = 0
19+
type = "float"
20+
1721
[EDMF_surface_area]
1822
value = 0.09964843547415161
1923
type = "float"

toml/prognostic_edmfx_implicit_scm_calibrated_5_cases_shallow_deep_v1.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ value = 0.7
2525
[precipitation_timescale]
2626
value = 1919.9324772692971
2727

28+
[entr_inv_tau]
29+
value = 0
30+
2831
[entr_mult_limiter_coeff]
2932
value = 1.092018003548091
3033

0 commit comments

Comments
 (0)