exo_k.atm_evolution.condensation

@author: jeremy leconte

Module Contents

class exo_k.atm_evolution.condensation.Condensing_species(Latent_heat_vaporization=0.0, cp_vap=0.0, Mvap=0.0, T_ref=0.0, Psat_ref=0.0, cp_cond=None)[source]

Bases: object

Parameters:
  • Latent_heat_vaporization (float) – specific Latent heat vaporization (J/kg)

  • cp_vap (float) – Specific heat capacity of the vapor (J/kg/K)

  • Mvap (float) – Molar mass of vapor (kg/mol)

  • T_ref (float) – Reference temperature

  • Psat_ref (float) – Saturation vapor pressure at the reference temperature (Pa)

  • cp_cond (float (optional)) – Specific heat capacity of the condensate (J/kg/K). Assumed equal to cp_vap if not provided.

Lvap(T)[source]

Latent heat at temperature T

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

Psat(T)[source]

Saturation vapor pressure for the condensing species

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

Tsat(P)[source]

Boiling temperature for the condensing species

NOT EXACT IF DELTA CP != 0.

Parameters:

P (array, np.ndarray) – Pressure in layers (Pa)

qsat(psat, p, epsilon)[source]

Saturation vapor mass mixing ratio for the condensing species

Parameters:
  • psat (array, np.ndarray) – saturation vapor pressure

  • p (array, np.ndarray) – pressure at the layer center

  • epsilon (float or array) – Ratio of the molar mass of the vapor over the background molar mass

dPsat_dT(T)[source]

Saturation vapor pressure derivative for the condensing species

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

dlnPsat_dlnT(T)[source]

Saturation vapor pressure for the condensing species and its derivative

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

moist_adiabat(T, P, cp, Mgas)[source]

Computes the threshold thermal gradient (d ln T / d ln P) for a moist atmosphere.

Parameters:
  • T (array, np.ndarray) – Temperature in layers (K)

  • P (array, np.ndarray) – pressure at the layer center

  • cp (float) – specific heat capacity at constant pressure of the background gas

  • Mgas (float or array) – Molar mass of the background atmosphere

Returns:

array

Moist adiabat lapse rate

Lvap: array, np.ndarray

Latent heat at temperature T

psat: array, np.ndarray

Saturation vapor pressure for the condensing species (Pa)

qsat: array, np.ndarray

Saturation vapor mass mixing ratio for the condensing species

dqsat_dt: array, np.ndarray

Derivative of qsat with respect to temperature at fixed pressure

q_crit: array, np.ndarray

Critical mass mixing ratio for the inhibition of moist convection (Eq. 17 of Leconte et al. 2017)

compute_condensation_parameters(T, P, Mgas)[source]

Computes necessary quantities to compute large scale condensation.

Parameters:
  • T (array, np.ndarray) – Temperature in layers (K)

  • P (array, np.ndarray) – pressure at the layer center

  • Mgas (float or array) – Molar mass of the background atmosphere

class exo_k.atm_evolution.condensation.Condensation_Thermodynamical_Parameters(Latent_heat_vaporization=0.0, cp_vap=0.0, Mvap=0.0, T_ref=0.0, Psat_ref=0.0, cp_cond=None)[source]

Bases: object

Parameters:
  • Latent_heat_vaporization (float) – specific Latent heat vaporization (J/kg)

  • cp_vap (float) – Specific heat capacity of the vapor (J/kg/K)

  • Mvap (float) – Molar mass of vapor (kg/mol)

  • T_ref (float) – Reference temperature

  • Psat_ref (float) – Saturation vapor pressure at the reference temperature (Pa)

  • cp_cond (float (optional)) – Specific heat capacity of the condensate (J/kg/K). Assumed equal to cp_vap if not provided.

exo_k.atm_evolution.condensation.Lvap_T(T, Latent_heat_vaporization, T_ref, delta_cp)[source]

Latent heat at temperature T

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

exo_k.atm_evolution.condensation.Psat_T(T, T_ref, Psat_ref, c1, c2, delta_cp_R)[source]

Saturation vapor pressure for the condensing species

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

exo_k.atm_evolution.condensation.Tsat_P(P, Psat_ref, c1, c2)[source]

Boiling temperature for the condensing species

NOT EXACT IF DELTA CP != 0.

Parameters:

P (array, np.ndarray) – Pressure in layers (Pa)

exo_k.atm_evolution.condensation.Qsat(psat, p, epsilon)[source]

Saturation vapor mass mixing ratio for the condensing species

Parameters:
  • psat (array, np.ndarray) – saturation vapor pressure

  • p (array, np.ndarray) – pressure at the layer center

  • epsilon (float or array) – Ratio of the molar mass of the vapor over the background molar mass

exo_k.atm_evolution.condensation.dPsat_dT(T, Latent_heat_vaporization, T_ref, Psat_ref, Rvap, delta_cp, delta_cp_R, c1, c2)[source]

Saturation vapor pressure derivative for the condensing species

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

exo_k.atm_evolution.condensation.dlnPsat_dlnT(T, Latent_heat_vaporization, T_ref, delta_cp, Rvap)[source]

Saturation vapor pressure for the condensing species and its derivative

Parameters:

T (array, np.ndarray) – Temperature in layers (K)

exo_k.atm_evolution.condensation.moist_adiabat(T, P, cp, Mgas, cp_vap, Mvap, Rvap, Latent_heat_vaporization, T_ref, Psat_ref, delta_cp, delta_cp_R, c1, c2)[source]

Computes the threshold thermal gradient (d ln T / d ln P) for a moist atmosphere.

Parameters:
  • T (array, np.ndarray) – Temperature in layers (K)

  • P (array, np.ndarray) – pressure at the layer center

  • cp (float) – specific heat capacity at constant pressure of the background gas

  • Mgas (float or array) – Molar mass of the background atmosphere

Returns:

array

Moist adiabat lapse rate

Lvap: array, np.ndarray

Latent heat at temperature T

psat: array, np.ndarray

Saturation vapor pressure for the condensing species (Pa)

qsat: array, np.ndarray

Saturation vapor mass mixing ratio for the condensing species

dqsat_dt: array, np.ndarray

Derivative of qsat with respect to temperature at fixed pressure

q_crit: array, np.ndarray

Critical mass mixing ratio for the inhibition of moist convection (Eq. 17 of Leconte et al. 2017)

exo_k.atm_evolution.condensation.compute_condensation_parameters(T, P, Mgas, Mvap, Rvap, Latent_heat_vaporization, T_ref, Psat_ref, delta_cp, delta_cp_R, c1, c2)[source]

Computes necessary quantities to compute large scale condensation.

Parameters:
  • T (array, np.ndarray) – Temperature in layers (K)

  • P (array, np.ndarray) – pressure at the layer center

  • Mgas (float or array) – Molar mass of the background atmosphere