Python Thermodynamics Module

class libs.thermo.thermodynamics.Thermodynamics(temp: ndarray, rho: ndarray, press: ndarray, qvap: ndarray, qcond: ndarray, qice: ndarray, qrain: ndarray, qsnow: ndarray, qgrau: ndarray)[source]

Bases: object

Class stores the thermodynamic variables required to run microphysics schemes in this project.

Thermodynamic variables include pressure, temperature, moist air density and the specific content (mass mixing ratio) of vapour and condensates.

Parameters:
temp (np.ndarray):

Temperature (K).

rho (np.ndarray):

Density of moist air (kg/m3).

press (np.ndarray):

Pressure (Pa).

qvap (np.ndarray):

Specific water vapor content (kg/kg).

qcond (np.ndarray):

Specific cloud water content (kg/kg).

qice (np.ndarray):

Specific cloud ice content (kg/kg).

qrain (np.ndarray):

Specific rain content (kg/kg).

qsnow (np.ndarray):

Specific snow content kg/kg).

qgrau (np.ndarray):

Specific graupel content (kg/kg).

Attributes:
temp (np.ndarray):

Temperature (K).

rho (np.ndarray):

Density of moist air (kg/m3).

press (np.ndarray):

Pressure (Pa).

massmix_ratios (tuple):

Specific content of vapour and condensates (see below).

massmax_ratios consists of the following:

massmix_ratios[0] = qvap (np.ndarray): Specific water vapor content (kg/kg)

massmix_ratios[1] = qcond (np.ndarray): Specific cloud water content (kg/kg)

massmix_ratios[2] = qice (np.ndarray): Specific cloud ice content (kg/kg)

massmix_ratios[3] = qrain (np.ndarray): Specific rain content (kg/kg)

massmix_ratios[4] = qsnow (np.ndarray): Specific snow content kg/kg)

massmix_ratios[5] = qgrau (np.ndarray): Specific graupel content (kg/kg).

print_state()[source]