File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 11name = " Thermodynamics"
22uuid = " b60c26fb-14c3-4610-9d3e-2d17fe7ff00c"
33authors = [" Climate Modeling Alliance" ]
4- version = " 0.15.0 "
4+ version = " 0.15.1 "
55
66[deps ]
77DocStringExtensions = " ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ liquid_specific_humidity
8787mixing_ratios
8888moist_static_energy
8989dry_static_energy
90+ vapor_static_energy
9091virtual_dry_static_energy
9192q_vap_from_RH_liquid
9293q_vap_saturation
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export specific_enthalpy_liquid
1414export specific_enthalpy_ice
1515export total_specific_enthalpy
1616export dry_static_energy
17+ export vapor_static_energy
1718export virtual_dry_static_energy
1819
1920"""
@@ -336,3 +337,19 @@ The dry static energy, given
336337@inline function dry_static_energy (param_set:: APS , T, e_pot)
337338 return specific_enthalpy_dry (param_set, T) + e_pot
338339end
340+
341+ """
342+ vapor_static_energy(param_set, T, e_pot)
343+
344+ The `dry` static energy of water vapor, `cp_v * (T - T_0) + e_pot`, given
345+
346+ - `param_set` an `AbstractParameterSet`, see the [`Thermodynamics`](@ref) for more details
347+ - `T` temperature
348+ - `e_pot` gravitational potential energy per unit mass (geopotential)
349+
350+ """
351+ @inline function vapor_static_energy (param_set:: APS , T, e_pot)
352+ cp_v = TP. cp_v (param_set)
353+ T_0 = TP. T_0 (param_set)
354+ return cp_v * (T - T_0) + e_pot
355+ end
You can’t perform that action at this time.
0 commit comments