THERMOEQNS

—– CLEO —– File: thermoeqns.py Project: sdmout_src Created Date: Tuesday 24th October 2023 Author: Clara Bayley (CB) Additional Contributors: —– Last Modified: Monday 8th April 2024 Modified By: CB —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– Copyright (c) 2023 MPI-M, Clara Bayley —– File Description: equations in python for calculating thermodynamic variables e.g. potential temperature

pySD.sdmout_src.thermoeqns.dry_pot_temp(Temp, P, qv, consts)[source]

calculate potential Temperature [K] assuming moist (unsaturated) air with vapour content qv

pySD.sdmout_src.thermoeqns.saturation_pressure(TEMP)[source]

Calculate the equilibrium vapor pressure of water over liquid water ie. the saturation pressure (psat) given TEMP /K. Equation taken from Bjorn Steven’s “make_tetens” python function from his module “moist_thermodynamics.saturation_vapour_pressures” available on gitlab. Original paper “Murray, F. W. On the Computation of Saturation Vapor Pressure. Journal of Applied Meteorology and Climatology 6, 203–204 (1967).”

pySD.sdmout_src.thermoeqns.saturation_pressure_murphy_koop(TEMP)[source]

Calculate the equilibrium vapor pressure of water over liquid water ie. the saturation pressure (psat [Pa]). Equation taken from typhon.physics.thermodynamics.e_eq_water_mk.

pySD.sdmout_src.thermoeqns.specific_moist_static_energy(Z, Temp, qv, consts)[source]

calculate the specific mass moist static energy, mse, J/Kg. (ie. mse per unit mass).