Skip to content

Commit

Permalink
Use ClimaParams c_smag for Smagorinsky LES closure
Browse files Browse the repository at this point in the history
  • Loading branch information
haakon-e committed Dec 4, 2024
1 parent 33a2af5 commit dadaf31
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions config/default_configs/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ hyperdiff:
smagorinsky_lilly:
help: "Smagorinsky-Lilly diffusive closure [`false` (default), `true`]"
value: false
c_smag:
help: "Smagorinsky coefficient"
value: 0.2
prandtl_turbulent_neutral:
help: "Turbulent Prandtl number for neutral stratification"
value: 0.333
Expand Down
1 change: 0 additions & 1 deletion config/model_configs/box_density_current_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ reference_job_id: "les_box"
initial_condition: "DryDensityCurrentProfile"
config: "box"
smagorinsky_lilly: true
c_smag: 0.25
discrete_hydrostatic_balance: true
hyperdiff: "false"
x_max: 51200.0
Expand Down
1 change: 0 additions & 1 deletion config/model_configs/les_isdac_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ approximate_linear_solve_iters: 2
hyperdiff: "false"
apply_limiter: false
smagorinsky_lilly: true
c_smag: 0.20
prandtl_turbulent_neutral: 0.333
# time- and spatial discretization
x_elem: 10
Expand Down
2 changes: 1 addition & 1 deletion src/solver/model_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ end

function get_smagorinsky_lilly_model(parsed_args, params, ::Type{FT}) where {FT}
is_model_active = parsed_args["smagorinsky_lilly"]
Cs = parsed_args["c_smag"]
Cs = CAP.c_smag(params)
Pr_t = parsed_args["prandtl_turbulent_neutral"] # Turbulent Prandtl number for neutral stratification
@assert is_model_active in (true, false)
return if is_model_active == true
Expand Down
2 changes: 2 additions & 0 deletions toml/box_density_current_test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[c_smag]
value = 0.25

0 comments on commit dadaf31

Please sign in to comment.