Function List

Realm liq_ice_air

This realm takes into account phase changes. For the Gibbs formulations, it assumes that at the freezing point half of the condensate is ice and the other half is liquid water. This is an arbitray constraint that is not necessary in the enthalpy formulation. The enthalpy formulation is thus fully determined by physical constraints but not the Gibbs formulation.

The Gibbs formulation g

pyteos_air.liq_ice_air.g.cond_entropy(A, T, p)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
Returns:

wet air entropy with all the moisture in condensed phase (J/K)

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.g.entropy(A, T, p)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
Returns:

wet air entropy (J/K).

At the freezing temperature, this function assumes that half of the condensate is in liquid phase andthat the other half is in ice phase.

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.g.rh_wmo(A, T, p)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
Returns:

relative humidity using WMO definition

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.g.temperatureequi(A, T, p)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
Returns:

equivalent temperature (K)

This is for wet air with ice and liquid.

The Gibbs formulation with reference values g_ref

pyteos_air.liq_ice_air.g_ref.pottemp(A, T, p, pref)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
  • pref (np.array.) – reference total pressure (Pa)
Returns:

potential tempeature (K) at pref.

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.g_ref.pottempequi(A, T, p, pref)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
  • pref (np.array.) – reference total pressure (Pa)
Returns:

equivalent potential tempeature (K) at pref.

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.g_ref.pottempequipseudo(A, T, p, pref)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
  • pref (np.array.) – reference total pressure (Pa)
Returns:

pseudo equivalent potential temperature (K) at pref.

Integrates the pseudo adiabat until the temperature fallsoutside the range of validity of TEOS-10.

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.g_ref.pottempequisat(A, T, p, pref)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
  • pref (np.array.) – reference total pressure (Pa)
Returns:

saturation equivalent potential temperature (K) at pref.

This is for wet air with ice and liquid.

The enthalpy formulation h

pyteos_air.liq_ice_air.h.temperature(A, eta, p)
Parameters:
  • A (np.array.) – dry air massfraction (kg/kg)
  • eta (np.array.) – wet air entropy obtained from pyteos_air.liq_ice_air.g.entropy() (J/K)
  • p (np.array.) – total pressure (Pa)
Returns:

absolute temperature (K).

Note that this function is not an exact inverse of pyteos_air.liq_ice_air.g.entropy(). At the freezing point, this function assumes that a combination of liquid water and ice will combine to make sure that the temperature is constant between the Isentropic Freezing level pyteos_air.liq_ice_air.il.ifl() and the Isentropic Melting Level pyteos_air.liq_ice_air.il.iml()

This is for wet air with ice and liquid.

The saturation values sat

pyteos_air.liq_ice_air.sat.massfraction_air(T, p)
Parameters:
  • T (np.array.) – absolute temperature (K)
  • p (np.array.) – total pressure (Pa)
Returns:

saturation dry air massfraction (kg/kg).

This is for wet air with ice and liquid.

Isentropic levels il

pyteos_air.liq_ice_air.il.ifl(A, eta)
Parameters:
Returns:

isentropic freezing level (Pa).

For pressures higher than the ifl, there can be only liquid water.

This is for wet air with ice and liquid.

pyteos_air.liq_ice_air.il.iml(A, eta)
Parameters:
Returns:

isentropic melting level (Pa).

For pressures lower than the iml, there can be only ice.

This is for wet air with ice and liquid.