-
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 a simple non-equilibrium cloud formation
- Loading branch information
1 parent
e4906ea
commit 838227a
Showing
14 changed files
with
169 additions
and
35 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
24 changes: 24 additions & 0 deletions
24
config/model_configs/sphere_aquaplanet_rhoe_nonequilmoist_allsky_gw_res.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,24 @@ | ||
z_elem: 25 | ||
z_max: 45000.0 | ||
dz_bottom: 300.0 | ||
dt: "400secs" | ||
t_end: "18hours" | ||
dt_save_state_to_disk: "18hours" | ||
vert_diff: "FriersonDiffusion" | ||
implicit_diffusion: true | ||
approximate_linear_solve_iters: 2 | ||
moist: "nonequil" | ||
precip_model: "nothing" | ||
rad: "allskywithclear" | ||
idealized_insolation: false | ||
rayleigh_sponge: true | ||
non_orographic_gravity_wave: true | ||
orographic_gravity_wave: "gfdl_restart" | ||
surface_setup: "DefaultMoninObukhov" | ||
prescribed_aerosols: ["CB1", "CB2"] | ||
job_id: "sphere_aquaplanet_rhoe_nonequilmoist_allsky_gw_res" | ||
toml: [toml/sphere_aquaplanet_rhoe_equilmoist_allsky_gw_res.toml] | ||
diagnostics: | ||
- short_name: [edt, evu] | ||
reduction_time: average | ||
period: "18hours" |
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 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
20 changes: 20 additions & 0 deletions
20
src/parameterized_tendencies/microphysics/cloud_condensate.jl
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,20 @@ | ||
##### | ||
##### DryModel, EquilMoistModel | ||
##### | ||
|
||
cloud_condensate_tendency!(Yₜ, p, colidx, _) = nothing | ||
|
||
##### | ||
##### NonEquilMoistModel | ||
##### | ||
|
||
function cloud_condensate_tendency!(Yₜ, p, colidx, ::NonEquilMoistModel) | ||
|
||
(; ᶜts) = p.precomputed | ||
(; params, dt) = p | ||
thp = CAP.thermodynamics_params(params) | ||
cmc = CAP.microphysics_cloud_params(params) | ||
|
||
@. Yₜ.c.ρq_liq[colidx] += cloud_sources(cmc.liquid, thp, ᶜts[colidx], dt) | ||
@. Yₜ.c.ρq_ice[colidx] += cloud_sources(cmc.ice, thp, ᶜts[colidx], dt) | ||
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
Oops, something went wrong.