Commits on Source (7)
-
bjorn-stevens authored
in the atmospheric sciences there are many different moist static energies. They differ due to the choice of reference enthalpies for water phases, which are connected by the phase change enthalpies, and thus have a single degree of freedom. This we give to the reference enthalpy (enthalpy at T0) for vapor. The choice of hv0 matters because not all reference quantities can be zero for all phases of water, and so the choice influences how the reference quantity weights different water phases. the function has been defined in a rather expressive way to bring out this property and make it possible to compute one or the other of the moist static energies by choosing a different reference state for the vapor enthalpy.
-
bjorn-stevens authored
In this branch additional impelmentations of the saturation vapor pressure were impelmented. These different treatments are not meant to be exhaustive, but the teten's murray formulations were introduced because these are used by ICON. The murphy-koop formulation is the standard for super-cooled liquid water. The examples ipynb script was augmented to present the new functionality.
-
bjorn-stevens authored
Attempted to clean up the presentation of the Teten's and Romps formulae for saturation vapor pressuer, incorporating improved fitting constants for the former. These were derived by fitting to Wagner and Pruss for the temperature range 270 K to 310 K and to Wagner et al for ice over the range 230K to 260 K. The fitting is not particular sensitive and fitting with noice leads to slight changes in the fits, but the new constants are robustly an improvement over the old ones, which had inconsistent triple points vapor pressures over ice and liquid. I also double checked the 'Romp's' formulae, and refrained from calling these Romps as they are just straightforward integrations of the Clausius-Clapeyron equation under the Rankine-Kirchoff assumptions.
-
bjorn-stevens authored
-
bjorn-stevens authored
Released as version 0.4, includes reformatting of analytic formulation of saturation vapor pressure to better emphasize the commont form of the calculation for ice and liquid, similar to what is done for teten's formulas. Now both it and Teten's serve as 'master' formlae, with liq and ice being particular implementations.
-
bjorn-stevens authored
Replaced use of es_liq by es_liq_default, likewise for ice to make the intent clear. Replaced use of TK and PPa by T and P to ensure consistency.
-
Bjorn Stevens authored
restructured treatment of saturation vapor pressure See merge request !3
Showing
- examples/examples.ipynb 190 additions, 33 deletionsexamples/examples.ipynb
- examples/saturation-water-vapor.ipynb 18 additions, 0 deletionsexamples/saturation-water-vapor.ipynb
- moist_thermodynamics/functions.py 129 additions, 306 deletionsmoist_thermodynamics/functions.py
- moist_thermodynamics/saturation_vapor_pressures.py 301 additions, 0 deletionsmoist_thermodynamics/saturation_vapor_pressures.py
- setup.py 1 addition, 1 deletionsetup.py
Source diff could not be displayed: it is too large. Options to address this: view the blob.