Skip to content

Commit

Permalink
Add hyperviscosity conversion for CAM-SE model
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Dec 20, 2023
1 parent dd2dc95 commit 2f45d82
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/solver/model_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ 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)) # ν_vort
κ₄_tracer = FT(0.15 * (30 / Ne * 1.1 * 10^5)) # ν_q
ClimaHyperdiffusion(;
κ₄_vorticity,
κ₄_tracer,
divergence_damping_factor,
)
elseif hyperdiff_name in ("none", "false", false)
nothing
else
Expand Down

0 comments on commit 2f45d82

Please sign in to comment.