-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from CliMA/aj/update_readme
Cleanup in the landing page and docs
- Loading branch information
Showing
10 changed files
with
371 additions
and
71 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## 1-moment scheme | ||
|
||
A scheme that predicts one moment of the particle size distribution (PSD). | ||
Typically it's the 3rd moment of PSD. | ||
The scheme's prognostic variable is the specific humidity (mass fraction) | ||
of water in each category, which is proportional to the 3rd moment of PSD. | ||
|
||
## 2-moment scheme | ||
|
||
A scheme that predicts two moments of the particle size distribution (PSD). | ||
Typically those are the 3rd and the 0th moments of PSD. | ||
The scheme's prognostic variables are the specific humidity (mass fraction) | ||
and number concentration of particles in each category, | ||
which are proportional to the 3rd and 0th moment of (PSD) | ||
|
||
## Aerosol activation scheme | ||
|
||
Aerosol particles serve as condensation nuclei for forming cloud droplets. | ||
An aerosol activation scheme predicts the number concentrations | ||
of newly formed cloud droplets for a given population of aerosol particles. | ||
The scheme is needed when using 2-moment microphysics. | ||
|
||
## Ice nucleation scheme | ||
|
||
Aerosol particles and cloud droplets serve as nuclei for forming ice crystals. | ||
The pathways include water vapor deposition on dust, heterogeneous and | ||
homogeneous freezing of water droplets. | ||
Ice nucleation schemes are needed to predict the number concentrations | ||
of newly formed ice crystals. | ||
The schemes are needed when using 2-moment microphysics scheme. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# # Getting started | ||
|
||
# This guide shows how to call a function from `CloudMicrophysics.jl` package. | ||
# Please consult our [README](https://github.com/CliMA/CloudMicrophysics.jl?tab=readme-ov-file#installation-and-running-instructions) | ||
# for the CloudMicrophysics.jl installation instructions. | ||
|
||
# In this guide will call the `accretion` function that parameterizes the growth of rain drops | ||
# through collisions with cloud droples. | ||
# Check the [API documentation](https://clima.github.io/CloudMicrophysics.jl/dev/API/#CloudMicrophysics.Microphysics2M.accretion) | ||
# and the [parameterization documentation](https://clima.github.io/CloudMicrophysics.jl/dev/Microphysics2M/#Accretion) | ||
# for more details. | ||
|
||
# We start by defining the single precision floating point type | ||
# that will be used in the computations. | ||
# We import the `Microphysics2M` module in which the `accretion` function is defined | ||
# and the `Parameters` module in which we store the default values of free parameters. | ||
FT = Float32 | ||
|
||
import CloudMicrophysics.Microphysics2M as CM2 | ||
import CloudMicrophysics.Parameters as CMP | ||
|
||
nothing #hide | ||
|
||
# We grab the parameters needed by the accretion function from the parameters module | ||
# and define the example input values. | ||
# Note that both the free parameters and the input values are of the same floating point type. | ||
# All values are defined in base SI units. | ||
const SB2006 = CMP.SB2006(FT) | ||
qₗ = FT(1e-3) # Cloud liquid water specific humidity | ||
qᵣ = FT(5e-4) # Rain water specific humidity | ||
ρₐ = FT(1) # Air density | ||
Nₗ = FT(1e8) # Cloud droplet number concentration | ||
|
||
nothing #hide | ||
|
||
# Finally, we call `accretion`, which will return the accretion rates for | ||
# cloud and rain water specific humidities, as well as cloud and rain water number concentrations. | ||
(; dq_rai_dt, dq_liq_dt, dN_rai_dt, dN_liq_dt) = | ||
CM2.accretion(SB2006, qₗ, qᵣ, ρₐ, Nₗ) | ||
@info("Accretion rates: ", dq_rai_dt, dq_liq_dt, dN_rai_dt, dN_liq_dt) |
Oops, something went wrong.