File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed
polaris/tasks/ocean/drying_slope Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ ly_analysis = 25.
5656ly = 28.
5757
5858# Bottom depth at the right side of the domain in m
59- right_bottom_depth = -10 .
59+ right_bottom_depth = -11 .
6060
6161# Bottom depth at the left side of the domain in m
62- left_bottom_depth = 0 .
62+ left_bottom_depth = -1 .
6363
6464# Initial SSH at the right side of the domain in m
6565right_tidal_height = ${drying_slope_barotropic:right_bottom_depth}
@@ -92,13 +92,13 @@ ly = 55.
9292ly_analysis = 50.
9393
9494# Bottom depth at the right side of the domain in m
95- right_bottom_depth = -2.5
95+ right_bottom_depth = -3.0
9696
9797# Bottom depth at the left side of the domain in m
98- left_bottom_depth = 0.
98+ left_bottom_depth = -0.5
9999
100100# Initial SSH at the right side of the domain in m
101- right_tidal_height = 0.
101+ right_tidal_height = -0.5
102102
103103# salinity at the right side of the domain
104104right_salinity = 35.0
Original file line number Diff line number Diff line change @@ -268,12 +268,21 @@ def dynamic_model_config(self, at_setup):
268268 mpas_options ['config_tidal_forcing_model' ] = forcing_dict [
269269 self .forcing_type
270270 ] # type: ignore[assignment]
271+ if self .forcing_type == 'linear_drying' :
272+ if self .baroclinic :
273+ section = self .config ['drying_slope_baroclinic' ]
274+ else :
275+ section = self .config ['drying_slope_barotropic' ]
276+ replacements ['tidal_min' ] = (
277+ section .getfloat ('right_bottom_depth' ) + 0.5
278+ )
279+ replacements ['tidal_baseline' ] = section .getfloat (
280+ 'right_tidal_height'
281+ )
271282
272- print (mpas_options )
273283 self .add_model_config_options (
274284 options = mpas_options , config_model = 'mpas-ocean'
275285 )
276- print (replacements )
277286 self .add_yaml_file (
278287 'polaris.tasks.ocean.drying_slope' ,
279288 self .yaml_filename ,
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ mpas-ocean:
1919 config_tidal_forcing_monochromatic_amp : 10.0
2020 config_tidal_forcing_monochromatic_period : 1.0
2121 config_tidal_forcing_monochromatic_baseline : 10.0
22+ config_tidal_forcing_linear_min : {{ tidal_min }}
23+ config_tidal_forcing_linear_rate : -8.0
24+ config_tidal_forcing_linear_baseline : {{ tidal_baseline }}
2225 Rayleigh_damping :
2326 config_Rayleigh_damping_depth_variable : true
2427 wetting_drying :
@@ -30,10 +33,11 @@ mpas-ocean:
3033 config_zero_drying_velocity_ramp_hmax : 1e-2
3134 config_zero_drying_velocity_ramp_factor : 1.0
3235 ALE_vertical_grid :
33- config_vert_coord_movement : impermeable_interfaces
36+ config_vert_coord_movement : uniform_stretching
3437 config_ALE_thickness_proportionality : restingThickness_times_weights
3538 advection :
3639 config_thickness_flux_type : upwind
40+ config_vert_advection_method : flux-form
3741 debug :
3842 config_disable_thick_sflux : true
3943 config_disable_vel_hmix : true
You can’t perform that action at this time.
0 commit comments