# Convection Scheme¶

This module contains a choice of convective adjustments, which can be used in the RCE simulations.

Example

Create an instance of a convective adjustment class, e.g. the relaxed adjustment class, and use it in an RCE simulation:

>>> import konrad

Currently there are two convective classes that can be used, HardAdjustment and RelaxedAdjustment, and one class which can be used and does nothing, NonConvective.
 energy_difference(T_2, T_1, sst_2, sst_1, …) Calculate the energy difference between two atmospheric profiles (2 - 1). latent_heat_difference(h2o_2, h2o_1) Calculate the difference in energy from latent heating between two water vapour profiles (2 - 1). interp_variable(variable, …) Find the value of a variable corresponding to where the convective heating equals a certain specified value (lim). pressure_lapse_rate(p, phlev, T, lapse) Calculate the pressure lapse rate (change in temperature with pressure) from the height lapse rate (change in temperature with height). Convection(*args, **kwargs) Base class to define abstract methods for convection schemes. NonConvective(*args, **kwargs) Do not apply convection. HardAdjustment(*args, **kwargs) Instantaneous adjustment of temperature profiles RelaxedAdjustment(*args, **kwargs) Adjustment with relaxed convection in upper atmosphere.