Thermodynamics

Moist-air thermodynamic conversions and hydrostatic initial-profile solvers used by the single-column model.

Droplets.Cp_mMethod
Cp_m(q_vap, constants)

Specific heat capacity for moist air #technically not in use now (returns dry Cp)
source
Droplets.R_mMethod
R_m(q_vap, constants)

Gas constant for moist air #technically not in use now (returns Rd)
source
Droplets.calc_P_dry_from_PMethod
calc_P_dry_from_P(P, q_vap, constants)

Calculate dry air pressure from total pressure and water vapor specific humidity
source
Droplets.calc_P_from_P_dryMethod
calc_P_from_P_dry(P_dry, q_vap, constants)

Calculate total pressure from dry air pressure and water vapor specific humidity
source
Droplets.calc_TMethod
calc_T(constants, θ, ρ_dry, q_vap)

Calculate temperature from potential temperature, dry air density, and water vapor specific humidity
source
Droplets.compute_ql_all_cells!Method
compute_ql_all_cells!(state, constants)
Compute the liquid water mixing ratio ql for all grid cells from superdroplet data using cell_id
source
Droplets.compute_ql_at_cell!Method
compute_ql_at_cell!(state, k, constants)
Compute the liquid water mixing ratio ql at a specific grid cell k from superdroplet data
droplets.I must be current and droplets.grid_range[k] must be valid for this to work correctly.
source
Droplets.θ_from_θvMethod
θ_from_θv(θv, q_vap, constants)

Calculate potential temperature from virtual potential temperature
source
Droplets.ρ_calc_θ!Method
ρ_calc_θ!(ρ, P, θ, q_vap, constants)

Calculate density using potential temperature (prognostic) and store in ρ
source
Droplets.ρ_calc_θMethod
ρ_calc_θ(P, θ, q_vap, constants)

Calculate density using potential temperature (prognostic)
source
Droplets.dP_dzMethod

dPdz(Pz, odesettings, z) computes the vertical pressure gradient dP/dz at a given height z, based on the current pressure Pz, to solve for the initial hydrostatic pressure profile.

source
Droplets.dρ_dry_dz_pysdmMethod

drydzpysdm(ρdryz, odesettings, z) solver for initial profiles computes the vertical dry air density gradient dρdry/dz at a given height z, based on the current dry air density ρdry_z

source
Droplets.init_droplets_scmMethod

initdropletsscm(dist, settings, spatial, qvprofile; deterministicmultiplicity=false) initializes the single column model droplets based on the given distribution, coagulation settings, spatial settings, and water vapor profile.

source