-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a table of physical constants to the user guide (#326)
# CABLE ## Description Added a table of physical constants and a table of mathematical constants to the user guide. Additional tables of constants can be added following the same pattern. Fixed missing/incorrect units in code and documentation. **It might be a good time at this stage to decide on the numerical value to use for the ice density: 910 from cable_soilparm.nml OR 921 from cable_phys_constants_mod.F90 ?** Interestingly another well known code uses 917. - [X] New or updated documentation <!-- readthedocs-preview cable start --> ---- 📚 Documentation preview 📚: https://cable--326.org.readthedocs.build/en/326/ <!-- readthedocs-preview cable end -->
- Loading branch information
Showing
5 changed files
with
63 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CABLE constants | ||
|
||
Table 1 lists the various types of constants used in CABLE. A list of the numerical values of each type can be accessed through the left navigation bar. | ||
|
||
|
||
## Table 1: Various constants used in CABLE | ||
|
||
| CABLE constants | | ||
|------------------------| | ||
| Physical constants | | ||
| Mathematical constants | |
5 changes: 5 additions & 0 deletions
5
documentation/docs/user_guide/constants/mathematical_constants.md
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,5 @@ | ||
## Table 1: CABLE mathematical constants | ||
|
||
| Name | Value | | ||
|-----------------------|------------------| | ||
| pi | 3.1415927 | |
23 changes: 23 additions & 0 deletions
23
documentation/docs/user_guide/constants/physical_constants.md
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,23 @@ | ||
## Table 1: CABLE physical constants | ||
|
||
| Name | Value | Units | Description | | ||
|-----------------------|------------------|-----------------------------------------------------|-------------------------------------------------- | | ||
| tfrz | 273.16 | \( K \) | Temperature corresponding to \( 0^{\circ}C \) | | ||
| sboltz | 5.67E-8 | \( W \cdot m^{-2} \cdot K^{-4} \) | Stefan-Boltzmann constant | | ||
| emsoil | 1.0 | \( - \) | Soil emissivity | | ||
| emleaf | 1.0 | \( - \) | Leaf emissivity | | ||
| capp | 1004.64 | \( J \cdot kg^{-1} \cdot K^{-1} \) | Air specific heat | | ||
| hl | 2.5014E6 | \( J \cdot kg^{-1} \) | Latent heat of vaporization | | ||
| hlf | 0.334E6 | \( J \cdot kg^{-1} \) | Latent heat of fusion | | ||
| hls | 2.8350E6 | \( J \cdot kg^{-1} \) | Latent heat of Sublimation | | ||
| dheat | 21.5E-6 | \( cm^{2} \cdot s^{-1} \) | Molecular diffusivity for heat | | ||
| grav | 9.8086 | \( m \cdot s^{-2} \) | Gravity acceleration | | ||
| rgas | 8.3143 | \(J \cdot mol^{-1} \cdot K^{-1} \) | Universal gas const | | ||
| rmair | 0.02897 | \( kg \cdot mol^{-1} \) | Molecular weight of dry air | | ||
| rmh2o | 0.018016 | \( kg \cdot mol^{-1} \) | Molecular weight of water | | ||
| cgsnow | 2090.0 | \( J \cdot kg^{-1} \cdot K^{-1} \) | Specific heat for snow | | ||
| csice | 2.100E3 | \( J \cdot kg^{-1} \cdot K^{-1} \) | Specific heat for ice | | ||
| cswat | 4.218E3 | \( J \cdot kg^{-1} \cdot K^{-1} \) | Specific heat for water at \( 0^{\circ}C \) | | ||
| density_liq | 1000.0 | \( kg \cdot m^{-3} \) | Density of liquid water | | ||
| density_ice | 921.0 | \( kg \cdot m^{-3} \) | Density of ice | | ||
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