moist_lapse_rate

typhon.physics.moist_lapse_rate(p, T, e_eq=None)[source]

Calculate the moist-adiabatic temperature lapse rate.

Bohren and Albrecht (Equation 6.111, note the sign change):

dTdz=gcp1+lvws/RT1+lv2ws/cpRvT2
Parameters:
  • p (float or ndarray) – Pressure [Pa].

  • T (float or ndarray) – Temperature [K].

  • e_eq (callable) – Function to calculate the equilibrium vapor pressure of water in Pa. The function must implement the signature e_eq = f(T) where T is temperature in Kelvin. If None the function e_eq_water_mk() is used.

Returns:

Moist-adiabatic lapse rate [K/m].

Return type:

float or ndarray

Examples

>>> moist_lapse_rate(1013.25e2, 288.15)
0.004728194612232855

References

Bohren C. and Albrecht B., Atmospheric Thermodynamics, p. 287-92