Skip to content

Commit bd3d188

Browse files
committed
Using liquid fraction
1 parent 1ff2b0e commit bd3d188

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

config/model_configs/prognostic_edmfx_rico_implicit_column.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ y_elem: 2
3131
z_elem: 100
3232
z_stretch: false
3333
perturb_initstate: false
34-
dt: "100secs"
34+
dt: "60secs"
3535
t_end: "24hours"
3636
dt_save_state_to_disk: "60mins"
3737
toml: [toml/prognostic_edmfx_1M.toml]

src/prognostic_equations/eddy_diffusion_closures.jl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,10 @@ function buoyancy_gradients(
154154

155155
t_sat = get_t_sat(thermo_params, bg_model)
156156
phase_part = TD.PhasePartition(thermo_params, ts_sat)
157+
λ = TD.liquid_fraction(thermo_params, ts_sat)
157158
lh =
158-
(
159-
get_ql_sat(thermo_params, bg_model) *
160-
TD.latent_heat_vapor(thermo_params, t_sat) +
161-
get_qi_sat(thermo_params, bg_model) *
162-
TD.latent_heat_sublim(thermo_params, t_sat)
163-
) /
164-
(
165-
get_ql_sat(thermo_params, bg_model) +
166-
get_qi_sat(thermo_params, bg_model) + sqrt(eps(FT))
167-
)
159+
λ * TD.latent_heat_vapor(thermo_params, t_sat) +
160+
(1 - λ) * TD.latent_heat_sublim(thermo_params, t_sat)
168161
cp_m = TD.cp_m(thermo_params, ts_sat)
169162
qv_sat = get_qv_sat(thermo_params, bg_model)
170163
∂b∂θli_sat = (

0 commit comments

Comments
 (0)