Index

API Documentation

AtmosphericDeposition.z₀_tableConstant

Values for the characteristic radii of collectors [m] where the columns are land use categories and the rows are seasonal categories. Given in Seinfeld and Pandis Table 19.2

Land use options are given in SeinfeldLandUse and season options are given in SeinfeldSeason.

source
AtmosphericDeposition.AirRefreshingLimitationMethod
AirRefreshingLimitation(; name = :AirRefreshingLimitation)

ModelingToolkit component implementing the air refreshing limitation on wet scavenging from Luo & Yu (2023), Eqs. 2, 5, 10, 11.

This parameterization accounts for the fact that species in subgrid cloud-free (rain-free) air need time to be mixed with those in cloudy (rainy) air before being influenced by wet scavenging. The standard well-mixed assumption can overestimate wet scavenging when the subgrid air mixing time scale is comparable to the model time step.

The air refreshing limited removal rate R_A replaces the standard f·Rᵢ in wet scavenging calculations. When turbulent mixing is strong (large TKE), R_A ≈ f·Rᵢ; when mixing is weak, R_A < f·Rᵢ.

source
AtmosphericDeposition.BelowCloudGasScavengingMethod
BelowCloudGasScavenging(; name = :BelowCloudGasScavenging)

ModelingToolkit component for irreversible below-cloud gas scavenging. Computes the scavenging coefficient (Eq. 20.25), the below-cloud flux (Eq. 20.22), and the exponential gas concentration decay (Eq. 20.24).

source
AtmosphericDeposition.CloudIceUptakeLimitationMethod
CloudIceUptakeLimitation(; name = :CloudIceUptakeLimitation)

ModelingToolkit component implementing the cloud ice uptake limitation on cold cloud wet scavenging from Luo & Yu (2023), Eqs. 12–15.

In cold clouds, water-soluble aerosols are captured by ice crystals via coagulation and then removed by precipitation. The cold cloud rainout efficiency F_I is limited by the cloud ice uptake rate, which is approximated using the HNO₃ uptake rate from Jacob (2000).

The uptake efficiency γ depends on temperature following Hudson et al. (2002): γ = 0.003 at T ≥ 220 K, increasing linearly to 0.007 at T ≤ 209 K.

source
AtmosphericDeposition.DryDepGasMethod

Function DryDepGas calculates dry deposition velocity [m/s] for a gas species, where z is the height of the surface layer [m], zo is roughness length [m], u_star is friction velocity [m/s], L is Monin-Obukhov length [m], T is surface air temperature [K], ρA is air density [kg/m3] gasData is data about the gas species for surface resistance calculations, G is solar irradiation [W m-2], Θ is the slope of the local terrain [radians], iSeason and iLandUse are indexes for the season and land use, dew and rain indicate whether there is dew or rain on the ground, and isSO2 and isO3 indicate whether the gas species of interest is either SO2 or O3, respectively. Based on Seinfeld and Pandis (2006) equation 19.2.

source
AtmosphericDeposition.DryDepParticleMethod

Function DryDepParticle calculates particle dry deposition velocity [m/s] where z is the height of the surface layer [m], zo is roughness length [m], u_star is friction velocity [m/s], L is Monin-Obukhov length [m], Dp is particle diameter [m], Ts is surface air temperature [K], P is pressure [Pa], ρParticle is particle density [kg/m3], ρAir is air density [kg/m3], and iSeason and iLandUse are indexes for the season and land use. Based on Seinfeld and Pandis (2006) equation 19.7.

source
AtmosphericDeposition.DryDepositionGasMethod

DescriptionGas: This is a box model used to calculate the gas species concentration rate changed by dry deposition. Build Dry deposition model (gas)

Example

@parameters t
d = DrydepositionGas(t)
source
AtmosphericDeposition.ParticleCollectionEfficiencyMethod
ParticleCollectionEfficiency(; name = :ParticleCollectionEfficiency)

ModelingToolkit component for the Slinn (1983) semi-empirical particle-drop collision (collection) efficiency (Eq. 20.53–20.54, Seinfeld & Pandis, 2006).

source
AtmosphericDeposition.RbGasMethod

Function RbGas calculates the quasi-laminar sublayer resistance to dry deposition for a gas species [s/m], where Sc is the dimensionless Schmidt number and u_star is the friction velocity [m/s]. From Seinfeld and Pandis (2006) equation 19.17.

source
AtmosphericDeposition.RbParticleMethod

Function RbParticle calculates the quasi-laminar sublayer resistance to dry deposition for a particles [s/m], where Sc is the dimensionless Schmidt number, u_star is the friction velocity [m/s], St is the dimensionless Stokes number, Dp is particle diameter [m], and iSeason and iLandUse are season and land use indexes, respectively. From Seinfeld and Pandis (2006) equation 19.27.

source
AtmosphericDeposition.ReversibleGasScavengingMethod
ReversibleGasScavenging(; name = :ReversibleGasScavenging)

ModelingToolkit component for reversible below-cloud gas scavenging (Eqs. 20.28, 20.33, 20.35, Seinfeld & Pandis, 2006).

The parameter HRT is the dimensionless product H* × R × T × 1000 (effective Henry's law coefficient × gas constant × temperature × unit conversion). For HNO₃ at 298 K: HRT = 2.1e5 × 8.206e-5 × 298 × 1000 ≈ 5.14e6.

source
AtmosphericDeposition.WetDepositionMethod

Description: This is a box model used to calculate wet deposition based on formulas at EMEP model. Build WetDeposition model

Example

@parameters t
wd = WetDeposition(t)
source
AtmosphericDeposition.WetScavengingLimitationsMethod
WetScavengingLimitations(; name = :WetScavengingLimitations)

ModelingToolkit component combining both the air refreshing limitation and cloud ice uptake limitation on wet scavenging from Luo & Yu (2023).

This provides a complete parameterization of the two novel approaches:

  1. Air refreshing limitation (Section 2.1): Reduces wet scavenging rate when subgrid air mixing is slow relative to the removal rate.
  2. Cloud ice uptake limitation (Section 2.2): Limits cold cloud rainout efficiency by the rate at which aerosols are captured by ice crystals.
source
AtmosphericDeposition._WetDepositionMethod

Calculate wet deposition based on formulas at https://www.emep.int/publ/reports/2003/emepreport1part12003.pdf. Inputs are fraction of grid cell covered by clouds (cloudFrac), rain mixing ratio (qrain), air density (ρ_air [kg/m3]), and fall distance (Δz [m]). Outputs are wet deposition rates for PM2.5, SO2, and other gases (wdParticle, wdSO2, and wdOtherGas [1/s]).

source
AtmosphericDeposition.ccMethod

Function cc calculates the Cunnningham slip correction factor where Dp is particle diameter [m], T is temperature [K], and P is pressure [Pa]. From Seinfeld and Pandis (2006) equation 9.34.

source
AtmosphericDeposition.dH2OMethod

Function dH2O calculates molecular diffusivity of water vapor in air [m2/s] where T is temperature [K] using a regression fit to data in Bolz and Tuve (1976) found here: http://www.cambridge.org/us/engineering/author/nellisandklein/downloads/examples/EXAMPLE_9.2-1.pdf

source
AtmosphericDeposition.dParticleMethod

Function dParticle calculates the brownian diffusivity of a particle [m2/s] using the Stokes-Einstein-Sutherland relation (Seinfeld and Pandis eq. 9.73) where T is air temperature [K], P is pressure [Pa], Dp is particle diameter [m], and μ is air dynamic viscosity [kg/(s m)]

source
AtmosphericDeposition.gas_scavenging_coeffMethod
gas_scavenging_coeff(K_c, U_t, D_p, p₀_SI)

Compute the below-cloud gas scavenging coefficient for irreversible uptake by monodisperse raindrops (Eq. 20.25 in Seinfeld & Pandis, 2006).

All arguments in SI units. p₀_SI is precipitation rate in m/s.

source
AtmosphericDeposition.hno3_uptake_efficiencyMethod
hno3_uptake_efficiency(T)

Compute the uptake efficiency γ of nitric acid on ice crystals (Eq. 15, Luo & Yu, 2023; based on Hudson et al., 2002). Returns γ = 0.003 for T ≥ 220 K and γ = 0.007 for T ≤ 209 K.

source
AtmosphericDeposition.mass_transfer_coeffMethod
mass_transfer_coeff(D_g, D_p, U_t)

Compute the gas-phase mass transfer coefficient to a spherical drop using the Sherwood number correlation (Eq. 20.12 in Seinfeld & Pandis, 2006).

Arguments

  • D_g: gas-phase diffusivity [m²/s]
  • D_p: raindrop diameter [m]
  • U_t: terminal velocity of the raindrop [m/s]
source
AtmosphericDeposition.mfpMethod

Function mfp calculates the mean free path of air [m] where T is temperature [K] P is pressure [Pa], and Mu is dynamic viscosity [kg/(m s)]. From Seinfeld and Pandis (2006) equation 9.6

source
AtmosphericDeposition.particle_scavenging_coeffMethod
particle_scavenging_coeff(E, p₀_SI, D_p)

Compute the particle scavenging coefficient for monodisperse raindrops (Eq. 20.57, Seinfeld & Pandis, 2006).

Arguments

  • E: collection efficiency (dimensionless)
  • p₀_SI: precipitation rate [m/s]
  • D_p: raindrop diameter [m]
source
AtmosphericDeposition.raMethod

Function Ra calculates aerodynamic resistance to dry deposition where z is the top of the surface layer [m], z₀ is the roughness length [m], u_star is friction velocity [m/s], and L is Monin-Obukhov length [m] Based on Seinfeld and Pandis (2006) [Seinfeld, J.H. and Pandis, S.N. (2006) Atmospheric Chemistry and Physics: From Air Pollution to Climate Change. 2nd Edition, John Wiley & Sons, New York.] equation 19.13 & 19.14.

source
AtmosphericDeposition.reversible_drop_concMethod
reversible_drop_conc(C_g, HRT, K_c, D_p, U_t, z, C_aq0)

Compute the aqueous-phase concentration in a falling raindrop at fall distance z from cloud base for a reversibly-absorbed gas species (Eq. 20.28, Seinfeld & Pandis, 2006).

HRT = H* × R × T × 1000 (dimensionless), representing the ratio Caqeq / C_g when both are in mol/m³.

source
AtmosphericDeposition.reversible_scavenging_fluxMethod
reversible_scavenging_flux(C_g, HRT, K_c, D_p, U_t, h, C_aq0, p₀_SI)

Compute the total below-cloud scavenging rate for a reversibly-absorbed gas (Eq. 20.35, Seinfeld & Pandis, 2006). All SI units.

HRT = H* × R × T × 1000 (dimensionless). p₀_SI = precipitation rate [m/s].

source
AtmosphericDeposition.scMethod

Function sc computes the dimensionless Schmidt number, where μ is dynamic viscosity of air [kg/(s m)], ρ is air density [kg/m3], and D is the molecular diffusivity of the gas speciesof interest [m2/s]

source
AtmosphericDeposition.slinn_collection_efficiencyMethod
slinn_collection_efficiency(D_p, U_t, d_p, ρ_p, T)

Compute the semi-empirical collision (collection) efficiency E between a raindrop of diameter D_p and an aerosol particle of diameter d_p (Eq. 20.53–20.54, Seinfeld & Pandis, 2006).

The three terms represent:

  1. Brownian diffusion
  2. Interception
  3. Inertial impaction (Stokes number term)
source
AtmosphericDeposition.stSmoothMethod

Function stSmooth computes the dimensionless Stokes number for dry deposition of particles on smooth surfaces or surfaces with bluff roughness elements, where vs is settling velocity [m/s], u_star is friction velocity [m/s], μ is dynamic viscosity of air [kg/(s m)], and ρ is air density [kg/m3], based on Seinfeld and Pandis (2006) equation 19.23.

source
AtmosphericDeposition.stVegMethod

Function stVeg computes the dimensionless Stokes number for dry deposition of particles on vegetated surfaces, where vs is settling velocity [m/s], u_star is friction velocity [m/s], and A is the characteristic collector radius [m], based on Seinfeld and Pandis (2006) equation 19.24.

source
AtmosphericDeposition.vsMethod

Function vs calculates the terminal setting velocity of a particle where Dp is particle diameter [m], ρₚ is particle density [kg/m3], Cc is the Cunningham slip correction factor, and μ is air dynamic viscosity [kg/(s m)]. From equation 9.42 in Seinfeld and Pandis (2006).

source