diff --git a/config/default_configs/default_edmf_config.yml b/config/default_configs/default_edmf_config.yml index 3a28253697..deb29f7ca3 100644 --- a/config/default_configs/default_edmf_config.yml +++ b/config/default_configs/default_edmf_config.yml @@ -43,4 +43,4 @@ detr_coeff: value: 0.001 edmfx_sgs_flux: help: "If set to true, it switches on EDMFX SGS flux. [`true`, `false` (default)]" - value: false \ No newline at end of file + value: false diff --git a/src/cache/edmf_precomputed_quantities.jl b/src/cache/edmf_precomputed_quantities.jl index 593a876e60..59c3a50b29 100644 --- a/src/cache/edmf_precomputed_quantities.jl +++ b/src/cache/edmf_precomputed_quantities.jl @@ -132,8 +132,10 @@ function set_edmf_precomputed_quantities!(Y, p, ᶠuₕ³, t) sgsʲs_ρaq_tot_int_val = Fields.field_values(Fields.level(Y.c.sgsʲs.:($j).ρaq_tot, 1)) + turbconv_params = CAP.turbconv_params(params) @. sgsʲs_ρa_int_val = - $(FT(0.1)) * TD.air_density(thermo_params, ᶜtsʲ_int_val) + $(FT(turbconv_params.surface_area)) * + TD.air_density(thermo_params, ᶜtsʲ_int_val) @. sgsʲs_ρae_tot_int_val = sgsʲs_ρa_int_val * TD.total_energy( thermo_params, diff --git a/toml/edmfx_bomex_box_v1.toml b/toml/edmfx_bomex_box_v1.toml index 3da20f5a66..63ce6f56f8 100644 --- a/toml/edmfx_bomex_box_v1.toml +++ b/toml/edmfx_bomex_box_v1.toml @@ -3,3 +3,7 @@ alias = "C_E" value = 0.044 type = "float" +[EDMF_surface_area] +alias = "surface_area" +value = 0.1 +type = "float"