Skip to content

Commit

Permalink
Add tests and plots for steady-state velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisYatunin committed Feb 5, 2025
1 parent 9f08f8e commit 6dd993b
Show file tree
Hide file tree
Showing 35 changed files with 1,294 additions and 1,147 deletions.
1,152 changes: 85 additions & 1,067 deletions .buildkite/pipeline.yml

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion config/default_configs/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ scalar_hyperdiffusion_coefficient:
value: 1.5
# Topography
topography:
help: "Define the surface elevation profile [`NoWarp` (default),`Earth`,`DCMIP200`,`Agnesi`, `Schar`, `Hughes2023`]"
help: "Define the surface elevation profile [`NoWarp` (default), `Earth`, `DCMIP200`, `Hughes2023`, `Agnesi`, `Schar`, `Cosine2D`, `Cosine3D`]"
value: "NoWarp"
mesh_warp_type:
help: "Sets the interior mesh warp method [`Linear`, `SLEVE`]"
Expand Down Expand Up @@ -226,6 +226,9 @@ reproducibility_test:
check_conservation:
help: "Check conservation of mass and energy [`false` (default), `true`]"
value: false
check_steady_state:
help: "Compare steady-state velocity to analytic solution; only available for certain choices of `topography` [`false` (default), `true`]"
value: false
ls_adv:
help: "Large-scale advection [`nothing` (default), `Bomex`, `LifeCycleTan2018`, `Rico`, `ARM_SGP`, `GATE_III`]"
value: ~
Expand Down
20 changes: 20 additions & 0 deletions config/model_configs/box_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]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/box_cosine_hills_float64_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]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/extruded_plane_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: "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]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/extruded_plane_cosine_hills_float64_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]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_agnesi_mountain_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: "Agnesi"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
z_stretch: false
dt: "0.1secs"
t_end: "15hours"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_agnesi_mountain_float64_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.1secs"
t_end: "15hours"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
19 changes: 19 additions & 0 deletions config/model_configs/plane_cosine_hills_float32_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
nh_poly: 2
dt: "12secs"
t_end: "50days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
19 changes: 19 additions & 0 deletions config/model_configs/plane_cosine_hills_float64_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: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 15
z_elem: 50
z_stretch: false
nh_poly: 2
dt: "12secs"
t_end: "50days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
19 changes: 19 additions & 0 deletions config/model_configs/plane_cosine_hills_long_float32_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 100
z_elem: 50
z_stretch: false
nh_poly: 2
dt: "1secs"
t_end: "5days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
19 changes: 19 additions & 0 deletions config/model_configs/plane_cosine_hills_long_float64_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: "Cosine2D"
x_max: 300e3
z_max: 21e3
x_elem: 100
z_elem: 50
z_stretch: false
nh_poly: 2
dt: "1secs"
t_end: "5days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/plane_no_topography_long_float32_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "NoWarp"
discrete_hydrostatic_balance: true
x_max: 300e3
z_max: 21e3
x_elem: 3
z_elem: 50
z_stretch: false
nh_poly: 2
dt: "5secs"
t_end: "40days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
20 changes: 20 additions & 0 deletions config/model_configs/plane_no_topography_long_float64_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config: "plane"
FLOAT_TYPE: "Float64"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "NoWarp"
discrete_hydrostatic_balance: true
x_max: 300e3
z_max: 21e3
x_elem: 3
z_elem: 50
z_stretch: false
nh_poly: 2
dt: "5secs"
t_end: "40days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_schar_mountain_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: "Schar"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
z_stretch: false
dt: "0.1secs"
t_end: "12hours"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
18 changes: 18 additions & 0 deletions config/model_configs/plane_schar_mountain_float64_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: "Schar"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
z_stretch: false
dt: "0.1secs"
t_end: "12hours"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Schar"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 100
dz_bottom: 50
dz_top: 1000
dt: "0.5secs"
t_end: "3days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
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
dz_bottom: 50
dz_top: 1000
dt: "0.5secs"
t_end: "3days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
config: "plane"
FLOAT_TYPE: "Float32"
initial_condition: "ConstantBuoyancyFrequencyProfile"
topography: "Schar"
x_max: 100e3
z_max: 21e3
x_elem: 100
z_elem: 200
dz_bottom: 50
dz_top: 1000
dt: "0.25secs"
t_end: "1days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
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: 200
dz_bottom: 50
dz_top: 1000
dt: "0.25secs"
t_end: "1days"
rayleigh_sponge: true
toml: [toml/analytic_topography_test.toml]
check_steady_state: true
output_default_diagnostics: false
diagnostics:
- short_name: [orog, ua, wa, uapredicted, wapredicted, uaerror, waerror]
period: 1hours
Loading

0 comments on commit 6dd993b

Please sign in to comment.