Skip to content

Commit

Permalink
Merge pull request #2452 from CliMA/ck/div_damping
Browse files Browse the repository at this point in the history
Add hyperviscosity conversion for CAM-SE model
  • Loading branch information
szy21 authored Dec 22, 2023
2 parents 0550e01 + a3ab66f commit 573f6fd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/solver/model_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ function get_hyperdiffusion_model(parsed_args, ::Type{FT}) where {FT}
κ₄_tracer,
divergence_damping_factor,
)
elseif hyperdiff_name in ("CAM_SE",)
# To match hyperviscosity coefficients in:
# https://agupubs.onlinelibrary.wiley.com/doi/epdf/10.1029/2017MS001257
# for equation A18 and A19
Ne = parsed_args["h_elem"]
κ₄_vorticity = FT(0.15 * (30 / Ne * 1.1 * 10^5)^3) # ν_vort
κ₄_tracer = FT(0.75 * (30 / Ne * 1.1 * 10^5)^3) # ν_q
divergence_damping_factor = FT(5)
ClimaHyperdiffusion(;
κ₄_vorticity,
κ₄_tracer,
divergence_damping_factor,
)
elseif hyperdiff_name in ("none", "false", false)
nothing
else
Expand Down

0 comments on commit 573f6fd

Please sign in to comment.