Skip to content

Commit

Permalink
Add analytic mountain wave tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisYatunin committed Jul 31, 2024
1 parent ab06398 commit b7baf7b
Show file tree
Hide file tree
Showing 67 changed files with 3,402 additions and 80 deletions.
412 changes: 412 additions & 0 deletions .buildkite/pipeline.yml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions config/default_configs/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ topo_smoothing:
smoothing_order:
help: "Define the surface smoothing kernel factor (integer) [`3 (default)`]"
value: 3
max_topography_height:
help: "The maximum height in meters for certain choices of `topography` [`25.0 (default)`]"
value: 25.0
# ODE
use_newton_rtol:
help: "Whether to check if the current iteration of Newton's method has an error within a relative tolerance, instead of always taking the maximum number of iterations (only for ClimaTimeSteppers.jl)"
Expand Down Expand Up @@ -154,6 +157,9 @@ start_date:
forcing:
help: "Forcing [`nothing` (default), `held_suarez`]"
value: ~
analytic_check:
help: "Test final state against analytic reference, if one is available [`false` (default), `true`]"
value: false
test_dycore_consistency:
help: "Test dycore consistency [`false` (default), `true`]"
value: false
Expand Down
20 changes: 20 additions & 0 deletions config/model_configs/box_analytic_cosine_hills_float32_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config: "box"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine3D"
x_max: 300e3
y_max: 300e3
z_max: 21e3
x_elem: 15
y_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "4days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/box_analytic_cosine_hills_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config: "box"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine3D"
x_max: 300e3
y_max: 300e3
z_max: 21e3
x_elem: 15
y_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "4days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
21 changes: 21 additions & 0 deletions config/model_configs/box_analytic_no_topography_float32_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
config: "box"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine3D"
x_max: 300e3
y_max: 300e3
z_max: 21e3
x_elem: 15
y_elem: 15
z_elem: 50
z_stretch: false
max_topography_height: 0
dt: "12secs"
t_end: "4days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
21 changes: 21 additions & 0 deletions config/model_configs/box_analytic_no_topography_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
config: "box"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine3D"
x_max: 300e3
y_max: 300e3
z_max: 21e3
x_elem: 15
y_elem: 15
z_elem: 50
z_stretch: false
max_topography_height: 0
dt: "12secs"
t_end: "4days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/extruded_plane_analytic_cosine_hills_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config: "box"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
y_max: 40e3
z_max: 21e3
x_elem: 15
y_elem: 2
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "5days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
config: "box"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
y_max: 40e3
z_max: 21e3
x_elem: 15
y_elem: 2
z_elem: 50
z_stretch: false
max_topography_height: 0
dt: "12secs"
t_end: "5days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_analytic_agnesi_mountain_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Agnesi"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
z_stretch: false
dt: "0.5secs"
t_end: "4days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
19 changes: 19 additions & 0 deletions config/model_configs/plane_analytic_big_schar_mountain_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Schar"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
z_stretch: false
max_topography_height: 250
dt: "0.5secs"
t_end: "4days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_analytic_cosine_hills_float32_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "10days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 84e3
x_elem: 15
z_elem: 200
z_stretch: false
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_high_sponge_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 84e3
x_elem: 15
z_elem: 200
z_stretch: false
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_analytic_cosine_hills_long_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_strong_sponge_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_analytic_cosine_hills_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "10days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_weak_sponge_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
19 changes: 19 additions & 0 deletions config/model_configs/plane_analytic_huge_schar_mountain_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Schar"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
z_stretch: false
max_topography_height: 2500
dt: "0.05secs"
t_end: "10hours"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
discrete_hydrostatic_balance: true
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
max_topography_height: 0
dt: "12secs"
t_end: "100days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
analytic_check: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror, c1error, c3error]
period: 1hours
Loading

0 comments on commit b7baf7b

Please sign in to comment.