Skip to content

Commit

Permalink
Make Schar mountain taller in kinetic energy test
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisYatunin committed Apr 29, 2024
1 parent bb65638 commit 598d163
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ode_algo: "SSP33ShuOsher"
config: "plane"
hyperdiff: "false"
z_max: 25000.0
topography: "Schar"
topography: "Tall Schar"
job_id: "plane_schar_mountain_kinetic_energy_check_stretched"
toml: [toml/plane_schar_mountain_test_stretched.toml]
diagnostics:
Expand Down
5 changes: 4 additions & 1 deletion src/solver/type_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,14 @@ function get_spaces(parsed_args, params, comms_ctx)
bubble = parsed_args["bubble"]
deep = parsed_args["deep_atmosphere"]

@assert topography in ("NoWarp", "DCMIP200", "Earth", "Agnesi", "Schar")
@assert topography in
("NoWarp", "DCMIP200", "Earth", "Agnesi", "Tall Schar", "Schar")
if topography == "DCMIP200"
warp_function = topography_dcmip200
elseif topography == "Agnesi"
warp_function = topography_agnesi
elseif topography == "Tall Schar"
warp_function = topography_tall_schar
elseif topography == "Schar"
warp_function = topography_schar
elseif topography == "NoWarp"
Expand Down
11 changes: 11 additions & 0 deletions src/topography/topography.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,14 @@ function topography_schar(coords)
zₛ = @. h_c * exp(-((x - x_c) / a_c)^2) * (cospi((x - x_c) / λ_c))^2
return zₛ
end

function topography_tall_schar(coords)
x = coords.x
FT = eltype(x)
h_c = FT(5000)
λ_c = FT(4000)
a_c = FT(5000)
x_c = FT(60000)
zₛ = @. h_c * exp(-((x - x_c) / a_c)^2) * (cospi((x - x_c) / λ_c))^2
return zₛ
end

0 comments on commit 598d163

Please sign in to comment.