-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add an option to turn off tendencies
- Loading branch information
Showing
13 changed files
with
159 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...longrun_configs/longrun_aquaplanet_rhoe_equil_55km_nz63_clearsky_progedmf_diffonly_0M.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
h_elem: 16 | ||
z_max: 55000.0 | ||
z_elem: 63 | ||
dz_bottom: 30.0 | ||
dz_top: 3000.0 | ||
moist: "equil" | ||
precip_model: "0M" | ||
override_τ_precip: false | ||
rad: "clearsky" | ||
dt_rad: "6hours" | ||
surface_setup: "DefaultMoninObukhov" | ||
turbconv: "prognostic_edmfx" | ||
implicit_diffusion: true | ||
approximate_linear_solve_iters: 2 | ||
max_newton_iters_ode: 3 | ||
zero_tendency: "subgrid_scale" | ||
prognostic_tke: true | ||
edmfx_upwinding: "first_order" | ||
edmfx_entr_model: "Generalized" | ||
edmfx_detr_model: "Generalized" | ||
edmfx_nh_pressure: false | ||
edmfx_velocity_relaxation: true | ||
edmfx_sgs_mass_flux: false | ||
edmfx_sgs_diffusive_flux: true | ||
rayleigh_sponge: true | ||
dt_save_state_to_disk: "10days" | ||
dt: "100secs" | ||
t_end: "30days" | ||
job_id: "longrun_aquaplanet_rhoe_equil_55km_nz63_clearsky_progedmf_diffonly_0M" | ||
toml: [toml/longrun_aquaplanet_rhoe_equil_55km_nz63_clearsky_progedmf_0M.toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
### | ||
### Zero grid-scale or subgrid-scale tendencies | ||
### | ||
|
||
import ClimaCore.RecursiveApply: rzero | ||
|
||
zero_tendency!(Yₜ, Y, p, t, _, _) = nothing | ||
|
||
function zero_tendency!(Yₜ, Y, p, t, ::NoGridScaleTendency, _) | ||
# turn off all grid-scale tendencies | ||
@. Yₜ.c.ρ = 0 | ||
@. Yₜ.c.uₕ = C12(0, 0) | ||
@. Yₜ.f.u₃ = C3(0) | ||
@. Yₜ.c.ρe_tot = 0 | ||
for ρχ_name in filter(is_tracer_var, propertynames(Y.c)) | ||
@. Yₜ.c.:($$ρχ_name) = 0 | ||
end | ||
return nothing | ||
end | ||
|
||
function zero_tendency!( | ||
Yₜ, | ||
Y, | ||
p, | ||
t, | ||
::NoSubgridScaleTendency, | ||
::PrognosticEDMFX, | ||
) | ||
# turn off all subgrid-scale tendencies | ||
n = n_prognostic_mass_flux_subdomains(p.atmos.turbconv_model) | ||
for j in 1:n | ||
@. Yₜ.c.sgsʲs.:($$j).ρa = 0 | ||
@. Yₜ.f.sgsʲs.:($$j).u₃ = C3(0) | ||
@. Yₜ.c.sgsʲs.:($$j).mse = 0 | ||
@. Yₜ.c.sgsʲs.:($$j).q_tot = 0 | ||
end | ||
return nothing | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
toml/longrun_aquaplanet_rhoe_equil_55km_nz63_clearsky_progedmf_0M.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[zd_rayleigh] | ||
value = 35000.0 | ||
|
||
[alpha_rayleigh_uh] | ||
value = 0.0 | ||
|
||
[precipitation_timescale] | ||
value = 600 | ||
|
||
[EDMF_surface_area] | ||
value = 0 | ||
|
||
[EDMF_min_area] | ||
value = 1.0e-5 | ||
|
||
[EDMF_max_area] | ||
value = 0.7 | ||
|
||
[entr_inv_tau] | ||
value = 0.0002 | ||
|
||
[entr_coeff] | ||
value = 0.2 | ||
|
||
[min_area_limiter_scale] | ||
value = 0 | ||
|
||
[min_area_limiter_power] | ||
value = 100 | ||
|
||
[detr_inv_tau] | ||
value = 0 | ||
|
||
[detr_coeff] | ||
value = 0 | ||
|
||
[detr_buoy_coeff] | ||
value = 0 | ||
|
||
[detr_vertdiv_coeff] | ||
value = 0 | ||
|
||
[detr_massflux_vertdiv_coeff] | ||
value = 1 | ||
|
||
[pressure_normalmode_drag_coeff] | ||
value = 40.0 |