Skip to content

Commit af3f6cf

Browse files
committed
Add a page in the docs about thermodynamics coupling
1 parent 88f017c commit af3f6cf

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ for Guide in UnliteratedGuides
3434
end
3535

3636
Parameterizations = [
37-
"Thermodynamics" => "Thermodynamics.md",
3837
"0-moment precipitation microphysics" => "Microphysics0M.md",
3938
"1-moment precipitation microphysics" => "Microphysics1M.md",
4039
"2-moment precipitation microphysics" => "Microphysics2M.md",
@@ -64,6 +63,7 @@ Guides = [
6463
pages = Any[
6564
"Home" => "index.md",
6665
"Parameterizations" => Parameterizations,
66+
"Thermodynamics interface" => "Thermodynamics.md",
6767
"How to guides" => Guides,
6868
"Models" => Models,
6969
"API" => "API.md",

docs/src/Thermodynamics.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Thermodynamics Interface
2+
3+
The `CloudMicrophysics.jl` library is designed to be flexible and agnostic
4+
to the specific thermodynamics of the model it is coupled with.
5+
It requires certain functions and free parameters to be provided by the host model,
6+
such as, for example, the formula to compute the saturation vapor pressure.
7+
8+
## Assumptions about water categories
9+
10+
The different parameterizations available within the `CloudMicrophysics.jl` library
11+
do make different assumptions about the partitioning of cloud condensate.
12+
It is crucial to understand those assumptions when choosing a parameterization
13+
best suited for your model, and coupling it in a thermodynamics-consistent way.
14+
- 1-moment scheme splits condensed water into
15+
cloud liquid `q_lcl`, cloud ice `q_icl`, rain `q_rai` and snow `q_sno`.
16+
- 2-moment scheme only considers liquid phase and divides the condensed water into
17+
cloud liquid `q_lcl` and rain `q_rai`.
18+
- P3 scheme only considers ice phase and has one category for all condensed species `q_ice`
19+
20+
## Additional functions and parameters
21+
22+
Needed by the `CloudMIcrophysics.jl` library:
23+
- Gas constants for dry air and water vapor
24+
- Gas constant for moist air
25+
- Latent heats of vaporization, fusion and sublimation
26+
- Specific heat capacity under constant pressure for moist air
27+
- Saturation vapor pressure and supersaturation over liquid and ice
28+
- Water vapor specific content
29+
- Specific content from partial pressure and partial pressure from specific content
30+
31+
Needed in tests and examples shown in the documentation
32+
- Gravitational constant (only used in the adiabatic parcel example)
33+
- Air density (only used in tests)

0 commit comments

Comments
 (0)