Thermodynamics
Moist-air thermodynamic conversions and hydrostatic initial-profile solvers used by the single-column model.
Droplets.Cp_m — Method
Cp_m(q_vap, constants)
Specific heat capacity for moist air #technically not in use now (returns dry Cp)Droplets.R_m — Method
R_m(q_vap, constants)
Gas constant for moist air #technically not in use now (returns Rd)Droplets.R_m_moist — Method
R_m_moist(q_vap, constants)Droplets.T_from_theta! — Method
T_from_theta!(T, θ, P, q_vap, constants)Droplets.T_from_theta — Method
T_from_theta(θ, P, q_vap, constants)Droplets.T_virtual — Method
T_virtual(T, q_vap, constants)
Calculate virtual temperatureDroplets.calc_P_dry_from_P — Method
calc_P_dry_from_P(P, q_vap, constants)
Calculate dry air pressure from total pressure and water vapor specific humidityDroplets.calc_P_from_P_dry — Method
calc_P_from_P_dry(P_dry, q_vap, constants)
Calculate total pressure from dry air pressure and water vapor specific humidityDroplets.calc_T — Method
calc_T(constants, θ, ρ_dry, q_vap)
Calculate temperature from potential temperature, dry air density, and water vapor specific humidityDroplets.calc_θ_dry — Method
calc_θ_dry(constants, θ, q_vap)
Calculate dry potential temperature θ_dryDroplets.calc_θ_moist — Method
calc_θ_moist(constants, θd, q_vap)
Calculate moist potential temperature θ_moistDroplets.calc_ρ_dry_from_ρ — Method
calc_ρ_dry_from_ρ(ρ, q_vap)
Calculate dry air density from total density and water vapor specific humidityDroplets.calc_ρ_from_ρ_dry — Method
calc_ρ_from_ρ_dry(ρ_dry, q_vap)
Calculate total density from dry air density and water vapor specific humidityDroplets.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_idDroplets.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.Droplets.mixing_ratio — Method
mixing_ratio(q_vap)Droplets.specific_humidity — Method
specific_humidity(r)Droplets.theta_from_T! — Method
theta_from_T!(θ, T, P, q_vap, constants)Droplets.theta_from_T — Method
theta_from_T(T, P, q_vap, constants)Droplets.virtual_temp_coeff — Method
virtual_temp_coeff(constants)Droplets.θ_from_θl — Method
θ_from_θl(P, θl_val, ql, q_vap, constants)Droplets.θ_from_θv — Method
θ_from_θv(θv, q_vap, constants)
Calculate potential temperature from virtual potential temperatureDroplets.θ_virtual — Method
θ_virtual(θ, q_vap, constants)
Calculate virtual potential temperatureDroplets.θl — Method
θl(P, T, ql, q_vap, constants)Droplets.ρ_calc_θ! — Method
ρ_calc_θ!(ρ, P, θ, q_vap, constants)
Calculate density using potential temperature (prognostic) and store in ρDroplets.ρ_calc_θ — Method
ρ_calc_θ(P, θ, q_vap, constants)
Calculate density using potential temperature (prognostic)Droplets.ρ_ideal_gas! — Method
ρ_ideal_gas!(ρ, P, T, q_vap, constants)Droplets.ρ_ideal_gas — Method
ρ_ideal_gas(P, T, q_vap, constants)Droplets.dP_dz — Method
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.
Droplets.dρ_dry_dz_pysdm — Method
dρ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
Droplets.init_droplets_scm — Method
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.