exo_k.atm_evolution.condensation_gcm
@author: jeremy leconte
Module Contents
- class exo_k.atm_evolution.condensation_gcm.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 temperaturePsat_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.
- Latent_heat_vaporization
- cp_vap
- T_ref
- Psat_ref
- Mvap
- Rvap
- delta_cp
- delta_cp_R
- LovR
- c1
- c2
- Psat(T)[source]
Saturation vapor pressure for the condensing species
- Parameters:
T (
array
) – Temperature in layers (K)
- Tsat(P)[source]
Boiling temperature for the condensing species
NOT EXACT IF DELTA CP != 0.
- Parameters:
P (
array
) – Pressure in layers (Pa)
- qsat(psat, p, epsilon)[source]
Saturation vapor mass mixing ratio for the condensing species
- Parameters:
psat (
array
) – saturation vapor pressurep (
array
) – pressure at the layer centerepsilon (
float
orarray
) – 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
) – Temperature in layers (K)
- dlnPsat_dlnT(T)[source]
Saturation vapor pressure for the condensing species and its derivative
- Parameters:
T (
array
) – 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:
- Returns:
- array
Moist adiabat lapse rate
- Lvap: array
Latent heat at temperature T
- psat: array
Saturation vapor pressure for the condensing species (Pa)
- qsat: array
Saturation vapor mass mixing ratio for the condensing species
- dqsat_dt: array
Derivative of qsat with respect to temperature at fixed pressure
- q_crit: array
Critical mass mixing ratio for the inhibition of moist convection (Eq. 17 of Leconte et al. 2017)
- class exo_k.atm_evolution.condensation_gcm.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 temperaturePsat_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.
- Rvap
- delta_cp
- delta_cp_R
- LovR
- c1
- c2
- th_params
- exo_k.atm_evolution.condensation_gcm.Lvap_T(T, Latent_heat_vaporization, T_ref, delta_cp)[source]
Latent heat at temperature T
- Parameters:
T (
array
) – Temperature in layers (K)
- exo_k.atm_evolution.condensation_gcm.Psat_T(T, T_ref, Psat_ref, c1, c2, delta_cp_R)[source]
GCM version for test
- exo_k.atm_evolution.condensation_gcm.Qsat(psat, p, epsilon)[source]
Saturation vapor mass mixing ratio for the condensing species
- Parameters:
psat (
array
) – saturation vapor pressurep (
array
) – pressure at the layer centerepsilon (
float
orarray
) – Ratio of the molar mass of the vapor over the background molar mass
- exo_k.atm_evolution.condensation_gcm.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
) – Temperature in layers (K)
- exo_k.atm_evolution.condensation_gcm.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
) – Temperature in layers (K)
- exo_k.atm_evolution.condensation_gcm.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:
- Returns:
- array
Moist adiabat lapse rate
- Lvap: array
Latent heat at temperature T
- psat: array
Saturation vapor pressure for the condensing species (Pa)
- qsat: array
Saturation vapor mass mixing ratio for the condensing species
- dqsat_dt: array
Derivative of qsat with respect to temperature at fixed pressure
- q_crit: array
Critical mass mixing ratio for the inhibition of moist convection (Eq. 17 of Leconte et al. 2017)
- exo_k.atm_evolution.condensation_gcm.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
) – Temperature in layers (K)P (
array
) – pressure at the layer centerMgas (
float
orarray
) – Molar mass of the background atmosphere