Aqueous Chemistry

Overview

Atmospheric aqueous-phase chemistry module implementing equations from Seinfeld & Pandis Chapter 7: "Atmospheric Aqueous-Phase Chemistry".

Aqueous-phase chemistry occurs in cloud droplets, fog droplets, and deliquesced aerosol particles. These processes are critical for:

  • Formation of secondary aerosol components (especially sulfate)
  • pH regulation in atmospheric water
  • Redistribution of species between gas and aqueous phases
  • Oxidation of dissolved gases

This module provides ModelingToolkit.jl systems for:

  • Henry's law gas-liquid equilibrium
  • Aqueous dissociation equilibria (CO2, SO2, NH3, HNO3, H2O2, O3)
  • S(IV) to S(VI) oxidation kinetics
  • Combined cloud droplet chemistry

Reference: Seinfeld, J.H. and Pandis, S.N., "Atmospheric Chemistry and Physics: From Air Pollution to Climate Change", 3rd Edition, Wiley, 2016, Chapter 7.

Aerosol.CloudChemistry — Function
CloudChemistry(; name=:CloudChem)

Comprehensive cloud droplet chemistry system combining all equilibria and S(IV) oxidation kinetics.

This is the main component for modeling atmospheric aqueous-phase chemistry. It combines:

  1. Water autoionization equilibrium
  2. CO2/bicarbonate/carbonate equilibria
  3. SO2/bisulfite/sulfite (S(IV)) equilibria
  4. NH3/ammonium equilibria
  5. HNO3/nitrate equilibria
  6. H2O2 equilibria
  7. O3 dissolution
  8. S(IV) oxidation kinetics (O3, H2O2, Fe, Mn pathways)

The pH is determined from the electroneutrality condition (Eq 7.114): [H+] + [NH4+] = [OH-] + [HCO3-] + 2[CO3^2-] + [HSO3-] + 2[SO3^2-] + [NO3-] + [Cl-] + 2[SO4^2-]

Parameters:

  • L: Liquid water content (g/m³)
  • xi_SO2: SO2 mixing ratio for lifetime calculations (dimensionless)

Input Variables (partial pressures and metal concentrations):

  • T: Temperature (K)
  • p_CO2: CO2 partial pressure (Pa)
  • p_SO2: SO2 partial pressure (Pa)
  • p_NH3: NH3 partial pressure (Pa)
  • p_HNO3: HNO3 partial pressure (Pa)
  • p_H2O2: H2O2 partial pressure (Pa)
  • p_O3: O3 partial pressure (Pa)
  • Fe_III: Fe(III) concentration in droplet (mol/m³)
  • Mn_II: Mn(II) concentration in droplet (mol/m³)
  • Cl_minus: Chloride concentration (mol/m³)
  • SO4_2minus: Sulfate concentration (mol/m³)

Output Variables:

  • pH: Droplet pH (dimensionless)
  • H_plus: H+ concentration (mol/m³)
  • All aqueous species concentrations
  • S(IV) oxidation rates # Create subsystems for equilibria
  • Sulfate production rate
source

Implementation

All pressures use SI units (Pa). Henry's law constants from the textbook (M/atm) are internally converted to M/Pa by dividing by 101325. Concentrations are in mol/L, temperatures in K.

Henry's Law Components

Henry's law describes the equilibrium partitioning of gases between the gas phase and aqueous phase.

Aerosol.HenrysLaw — Function
HenrysLaw(; name=:HenrysLaw)

Basic Henry's law equilibrium at fixed temperature.

Implements Eq 7.3: [A(aq)] = HA * pA

Parameters:

  • H_A: Henry's law constant (mol/m³/Pa)

Variables:

  • p_A: Partial pressure of gas A (Pa)
  • C_aq: Aqueous concentration (mol/m³)

This component establishes the equilibrium relationship between gas-phase partial pressure and aqueous-phase concentration.

source
Aerosol.HenrysLawTemperature — Function
HenrysLawTemperature(; name=:HenrysLawTemp)

Temperature-dependent Henry's law equilibrium.

Implements:

  • Eq 7.3: [A(aq)] = HA(T) * pA
  • Eq 7.5: HA(T) = HA(Tref) * exp((ΔHA/R) * (1/T_ref - 1/T))

Parameters:

  • H_298: Henry's law constant at 298 K (mol/m³/Pa)
  • dH_diss: Heat of dissolution (J/mol)

Variables:

  • T: Temperature (K)
  • p_A: Partial pressure (Pa)
  • C_aq: Aqueous concentration (mol/m³)
  • H_T: Temperature-corrected Henry's law constant (mol/m³/Pa)

Also calculates:

  • w_L: Liquid water mixing ratio (dimensionless, vol/vol)
  • f_A: Distribution factor (dimensionless)
  • X_aq: Aqueous fraction (dimensionless)
source
Aerosol.EffectiveHenrysLaw — Function
EffectiveHenrysLaw(; name=:EffectiveHenrys)

Effective Henry's law constant accounting for aqueous dissociation.

For species that dissociate in water, the effective Henry's law constant H* is larger than the intrinsic Henry's law constant H because dissociation products contribute to the total dissolved amount.

Implements:

  • Eq 7.24: HCO2 = HCO2 * (1 + Kc1/[H+] + Kc1K_c2/[H+]^2)
  • Eq 7.41: HSO2 = HSO2 * (1 + Ks1/[H+] + Ks1K_s2/[H+]^2)
  • Eq 7.61: H*HNO3 ~ HHNO3 * K_n1 / [H+]

Parameters:

  • H_intrinsic: Intrinsic Henry's law constant (mol/m³/Pa)
  • K_1: First dissociation constant (mol/m³)
  • K_2: Second dissociation constant (mol/m³), set to 0 for monoprotic acids

Variables:

  • H_plus: Hydrogen ion concentration (mol/m³)
  • H_eff: Effective Henry's law constant (mol/m³/Pa)
source

Aqueous Equilibria

Aerosol.WaterEquilibrium — Function
WaterEquilibrium(; name=:WaterEq)

Water autoionization equilibrium with temperature dependence.

Implements:

  • Eq 7.10-7.12: H2O <-> H+ + OH-
  • Eq 7.13: pH = -log10[H+]
  • Table 7.4: Kw(T) = Kw(298) * exp((-dH/R) * (1/T - 1/298))

Variables:

  • T: Temperature (K)
  • H_plus: Hydrogen ion concentration (mol/m³)
  • OH_minus: Hydroxide ion concentration (mol/m³)
  • K_w: Water dissociation constant (mol²/m⁶)
  • pH: Negative log of H+ concentration (dimensionless)
source
Aerosol.CO2Equilibria — Function
CO2Equilibria(; name=:CO2Eq)

CO2 dissolution and dissociation equilibria with temperature dependence.

Implements:

  • Eq 7.14-7.16: CO2(g) <-> CO2.H2O <-> H+ + HCO3- <-> H+ + CO3^2-
  • Eq 7.17: HCO2 = [CO2.H2O] / pCO2
  • Eq 7.18: K_c1 = [H+][HCO3-] / [CO2.H2O]
  • Eq 7.19: K_c2 = [H+][CO3^2-] / [HCO3-]
  • Eq 7.20-7.22: Species concentrations
  • Eq 7.24: HCO2 = HCO2 * (1 + Kc1/[H+] + Kc1K_c2/[H+]^2)

Variables:

  • T: Temperature (K)
  • H_plus: Hydrogen ion concentration (mol/m³)
  • p_CO2: Partial pressure of CO2 (Pa)
  • CO2_aq: [CO2.H2O] concentration (mol/m³)
  • HCO3_minus: Bicarbonate concentration (mol/m³)
  • CO3_2minus: Carbonate concentration (mol/m³)
  • C_total: Total dissolved inorganic carbon (mol/m³)
  • HCO2eff: Effective Henry's law constant (mol/m³/Pa)
source
Aerosol.SO2Equilibria — Function
SO2Equilibria(; name=:SO2Eq)

SO2 dissolution and dissociation equilibria with temperature dependence. This is the S(IV) system.

Implements:

  • Eq 7.30-7.32: SO2(g) <-> SO2.H2O <-> H+ + HSO3- <-> H+ + SO3^2-
  • Eq 7.33: HSO2 = [SO2.H2O] / pSO2
  • Eq 7.34: K_s1 = [H+][HSO3-] / [SO2.H2O]
  • Eq 7.35: K_s2 = [H+][SO3^2-] / [HSO3-]
  • Eq 7.36-7.38: S(IV) species concentrations
  • Eq 7.39: [S(IV)] = [SO2.H2O] + [HSO3-] + [SO3^2-]
  • Eq 7.40: [S(IV)] = HSO2 * pSO2 * (1 + Ks1/[H+] + Ks1*K_s2/[H+]^2)
  • Eq 7.41: HS(IV) = HSO2 * (1 + Ks1/[H+] + Ks1K_s2/[H+]^2)
  • Eq 7.43-7.45: S(IV) mole fractions (alpha values)

Variables:

  • T: Temperature (K)
  • H_plus: Hydrogen ion concentration (mol/m³)
  • p_SO2: Partial pressure of SO2 (Pa)
  • SO2_aq: [SO2.H2O] concentration (mol/m³)
  • HSO3_minus: Bisulfite concentration (mol/m³)
  • SO3_2minus: Sulfite concentration (mol/m³)
  • SIVtotal: Total S(IV) concentration (mol/m³)
  • HSO2eff: Effective Henry's law constant (mol/m³/Pa)
  • alpha_0: Mole fraction of SO2.H2O (dimensionless)
  • alpha_1: Mole fraction of HSO3- (dimensionless)
  • alpha_2: Mole fraction of SO3^2- (dimensionless)
source
Aerosol.NH3Equilibria — Function
NH3Equilibria(; name=:NH3Eq)

NH3 dissolution and dissociation equilibria with temperature dependence.

Implements:

  • Eq 7.46-7.47: NH3(g) <-> NH3.H2O <-> NH4+ + OH-
  • Eq 7.48: HNH3 = [NH3.H2O] / pNH3
  • Eq 7.49: K_a1 = [NH4+][OH-] / [NH3.H2O]
  • Eq 7.50: [NH4+] = (HNH3 * Ka1 / Kw) * pNH3 * [H+]
  • Eq 7.51: [NH3T] = HNH3 * pNH3 * (1 + Ka1*[H+]/K_w)

Variables:

  • T: Temperature (K)
  • H_plus: Hydrogen ion concentration (mol/m³)
  • OH_minus: Hydroxide ion concentration (mol/m³)
  • K_w: Water dissociation constant (mol²/m⁶)
  • p_NH3: Partial pressure of NH3 (Pa)
  • NH3_aq: [NH3.H2O] concentration (mol/m³)
  • NH4_plus: Ammonium concentration (mol/m³)
  • NH3_total: Total dissolved ammonia (mol/m³)
  • HNH3eff: Effective Henry's law constant (mol/m³/Pa)
source
Aerosol.HNO3Equilibria — Function
HNO3Equilibria(; name=:HNO3Eq)

HNO3 dissolution and dissociation equilibria.

Implements:

  • Eq 7.53-7.54: HNO3(g) <-> HNO3(aq) <-> H+ + NO3-
  • HHNO3 = [HNO3(aq)] / pHNO3 = 2.1e5 M/atm at 298 K
  • K_n1 = [H+][NO3-] / [HNO3(aq)] = 15.4 M at 298 K
  • Eq 7.58: [NO3-] ~ HHNO3 * Kn1 / [H+] * p_HNO3 (for complete dissociation)
  • Eq 7.61: H*HNO3 ~ HHNO3 * K_n1 / [H+] = 3.2e6 / [H+]

Note: HNO3 is a strong acid and essentially completely dissociates in water.

Variables:

  • T: Temperature (K)
  • H_plus: Hydrogen ion concentration (mol/m³)
  • p_HNO3: Partial pressure of HNO3 (Pa)
  • HNO3_aq: Undissociated HNO3 concentration (mol/m³)
  • NO3_minus: Nitrate concentration (mol/m³)
  • HNO3_total: Total dissolved nitric acid (mol/m³)
  • HHNO3eff: Effective Henry's law constant (mol/m³/Pa)
source
Aerosol.H2O2Equilibria — Function
H2O2Equilibria(; name=:H2O2Eq)

H2O2 dissolution and (weak) dissociation equilibria.

Implements:

  • HH2O2 = [H2O2(aq)] / pH2O2 = 1e5 M/atm at 298 K
  • K_h1 = [H+][HO2-] / [H2O2(aq)] = 2.2e-12 M (very weak, usually neglected)

Note: H2O2 is a very weak acid and dissociation is typically neglected.

Variables:

  • T: Temperature (K)
  • H_plus: Hydrogen ion concentration (mol/m³)
  • p_H2O2: Partial pressure of H2O2 (Pa)
  • H2O2_aq: Aqueous H2O2 concentration (mol/m³)
  • HO2_minus: Hydroperoxide anion concentration (mol/m³)
  • H2O2_total: Total dissolved hydrogen peroxide (mol/m³)
  • HH2O2eff: Effective Henry's law constant (mol/m³/Pa)
source
Aerosol.O3Equilibria — Function
O3Equilibria(; name=:O3Eq)

O3 dissolution equilibrium with temperature dependence.

O3 does not dissociate in water, so only Henry's law applies.

Variables:

  • T: Temperature (K)
  • p_O3: Partial pressure of O3 (Pa)
  • O3_aq: Aqueous O3 concentration (mol/m³)
  • H_O3: Henry's law constant (mol/m³/Pa)
source
Aerosol.AqueousEquilibria — Function
AqueousEquilibria(; name=:AqEquilibria)

Combined aqueous equilibria system for atmospheric cloud droplet chemistry.

This component combines all individual equilibrium systems into a single comprehensive system that can be used for cloud chemistry calculations.

Subsystems:

  • water_eq: Water autoionization
  • co2_eq: CO2/bicarbonate/carbonate equilibria
  • so2_eq: SO2/bisulfite/sulfite (S(IV)) equilibria
  • nh3_eq: NH3/ammonium equilibria
  • hno3_eq: HNO3/nitrate equilibria
  • h2o2_eq: H2O2 equilibria
  • o3_eq: O3 dissolution
source

Sulfate Formation (S(IV) Oxidation)

Aerosol.SulfateFormationO3 — Function
SulfateFormationO3(; name=:SulfateO3)

S(IV) oxidation by O3 in aqueous phase.

Implements Eq 7.79-7.80: R_O3 = (k0[SO2.H2O] + k1[HSO3-] + k2*[SO3^2-]) * [O3(aq)]

where:

  • k0 = 2.4e4 M^-1 s^-1 (SO2.H2O + O3)
  • k1 = 3.7e5 M^-1 s^-1 (HSO3- + O3)
  • k2 = 1.5e9 M^-1 s^-1 (SO3^2- + O3)

The reaction is fast at high pH due to the large k2 value for SO3^2-.

Variables:

  • SO2_aq: [SO2.H2O] concentration (mol/m^3)
  • HSO3_minus: [HSO3-] concentration (mol/m^3)
  • SO3_2minus: [SO3^2-] concentration (mol/m^3)
  • O3_aq: [O3(aq)] concentration (mol/m^3)
  • R_O3: Oxidation rate (mol/m^3/s)
source
Aerosol.SulfateFormationH2O2 — Function
SulfateFormationH2O2(; name=:SulfateH2O2)

S(IV) oxidation by H2O2 in aqueous phase.

Implements Eq 7.84: R_H2O2 = k[H+][H2O2][HSO3-] / (1 + K[H+])

where:

  • k = 7.5e7 M^-2 s^-1
  • K = 13 M^-1

This reaction is relatively pH-independent due to the [H+] terms canceling, making it important across a wide pH range.

Variables:

  • H_plus: Hydrogen ion concentration (mol/m^3)
  • H2O2_aq: Aqueous H2O2 concentration (mol/m^3)
  • HSO3_minus: Bisulfite concentration (mol/m^3)
  • R_H2O2: Oxidation rate (mol/m^3/s)
source
Aerosol.SulfateFormationFe — Function
SulfateFormationFe(; name=:SulfateFe)

S(IV) oxidation by O2 catalyzed by Fe(III) in aqueous phase.

The rate expression depends strongly on pH:

For pH 0-3.6 (Eq 7.92): R_Fe = k[Fe(III)][S(IV)] / [H+], k = 6 s^-1

For pH ~4.0 (Eq 7.93): R_Fe = 1e9 * [S(IV)] * [Fe(III)]^2

For pH 5.0-6.0 (Eq 7.94): R_Fe = 1e-3 * [S(IV)]

For pH 7.0 (Eq 7.95): R_Fe = 1e-4 * [S(IV)]

This implementation uses a simplified approach with the low-pH rate law, which is most relevant for typical cloud droplet conditions.

Variables:

  • H_plus: Hydrogen ion concentration (mol/m^3)
  • Fe_III: Fe(III) concentration (mol/m^3)
  • SIVtotal: Total S(IV) concentration (mol/m^3)
  • R_Fe: Oxidation rate (mol/m^3/s)
source
Aerosol.SulfateFormationMn — Function
SulfateFormationMn(; name=:SulfateMn)

S(IV) oxidation by O2 catalyzed by Mn(II) in aqueous phase.

The rate expression depends on S(IV) concentration:

For high S(IV) (>100 uM) (Eq 7.98): R_Mn = k0 * [Mn]^2 (zero-order in S(IV))

For low S(IV) (<1 uM) (Eq 7.101): R_Mn = k0 * [Mn] * [S(IV)], k0 = 1000 M^-1 s^-1

This implementation uses the low S(IV) rate law, which is first-order in both Mn and S(IV).

Variables:

  • Mn_II: Mn(II) concentration (mol/m^3)
  • SIVtotal: Total S(IV) concentration (mol/m^3)
  • R_Mn: Oxidation rate (mol/m^3/s)
source
Aerosol.SulfateFormationFeMn — Function
SulfateFormationFeMn(; name=:SulfateFeMn)

S(IV) oxidation by O2 with Fe/Mn synergism.

Implements Eq 7.102: R = 750[Mn(II)][S(IV)] + 2600[Fe(III)][S(IV)] + 1.0e10[Mn(II)][Fe(III)]*[S(IV)]

The synergistic term (10^10 coefficient) represents the greatly enhanced oxidation rate when both Fe(III) and Mn(II) are present.

Variables:

  • Mn_II: Mn(II) concentration (mol/m^3)
  • Fe_III: Fe(III) concentration (mol/m^3)
  • SIVtotal: Total S(IV) concentration (mol/m^3)
  • RMnterm: Mn-only contribution (mol/m^3/s)
  • RFeterm: Fe-only contribution (mol/m^3/s)
  • Rsynergyterm: Synergistic contribution (mol/m^3/s)
  • R_FeMn: Total oxidation rate (mol/m^3/s)
source
Aerosol.SulfateFormation — Function
SulfateFormation(; name=:SulfateForm)

Combined S(IV) to S(VI) oxidation kinetics including all pathways.

Subsystems:

  • o3_ox: O3 oxidation pathway
  • h2o2_ox: H2O2 oxidation pathway
  • fe_ox: Fe(III)-catalyzed oxidation
  • mn_ox: Mn(II)-catalyzed oxidation
  • femn_ox: Fe/Mn synergistic oxidation

Variables:

  • R_total: Total S(IV) oxidation rate (mol/m^3/s)
  • SVIproduction: Sulfate production rate (mol/m^3/s)

Also calculates rate conversion factors (Section 7.4):

  • Rppbhr: Rate in ppb hr^-1 (Eq 7.75)
  • Rpercenthr: Rate in % hr^-1 (Eq 7.76)
  • tau_SO2: SO2 lifetime (s) (Eq 7.78) # Create subsystems
source

Cloud Chemistry Systems

Aerosol.CloudChemistryFixedpH — Function
CloudChemistryFixedpH(; name=:CloudChemFixedpH)

Simplified cloud chemistry system with pH as an input parameter.

This variant takes pH as an input rather than calculating it from electroneutrality. This is useful for:

  • Sensitivity studies varying pH
  • Cases where additional ions (not modeled) affect pH
  • Quick calculations without solving the full equilibrium

Parameters:

  • L: Liquid water content (g m^-3)
  • xi_SO2: SO2 mixing ratio for lifetime calculations (dimensionless)

Input Variables:

  • T: Temperature (K)
  • pH_input: Input pH value (dimensionless)
  • All partial pressures and metal concentrations # Create subsystems for equilibria
source
Aerosol.CloudChemistryODE — Function
CloudChemistryODE(; name=:CloudChemODE)

Dynamic cloud chemistry system with time evolution of sulfate.

This system tracks the time evolution of sulfate concentration as S(IV) is oxidized to S(VI). It can be integrated using OrdinaryDiffEq.

The system includes:

  • All equilibria (assumed fast, instantaneous)
  • S(IV) oxidation kinetics (rate-limiting)
  • Sulfate accumulation

State Variable:

  • SO4_2minus: Sulfate concentration (mol/m³), evolves with time

Parameters and other variables same as CloudChemistryFixedpH.

source

Utility Functions

Aerosol.effective_henrys_constant — Function
effective_henrys_constant(H, K1, K2, H_plus)

Calculate effective Henry's law constant accounting for dissociation.

Arguments:

  • H: Intrinsic Henry's law constant (mol/L/Pa)
  • K1: First dissociation constant (mol/L)
  • K2: Second dissociation constant (mol/L), use 0 for monoprotic
  • H_plus: Hydrogen ion concentration (mol/L)

Returns:

  • H_eff: Effective Henry's law constant (mol/L/Pa)
source
Aerosol.aqueous_fraction — Function
aqueous_fraction(H, R, T, w_L)

Calculate the fraction of species in aqueous phase (Eq 7.9).

Arguments:

  • H: Henry's law constant (mol/L/Pa)
  • R: Gas constant (8314.46 Pa L mol^-1 K^-1)
  • T: Temperature (K)
  • w_L: Liquid water mixing ratio (vol/vol)

Returns:

  • X_aq: Fraction in aqueous phase (dimensionless)
source
Aerosol.distribution_factor — Function
distribution_factor(H, R, T, w_L)

Calculate the distribution factor f_A (Eq 7.7).

Arguments:

  • H: Henry's law constant (mol/L/Pa)
  • R: Gas constant (8314.46 Pa L mol^-1 K^-1)
  • T: Temperature (K)
  • w_L: Liquid water mixing ratio (vol/vol)

Returns:

  • f_A: Distribution factor (dimensionless)
source
Aerosol.henrys_constant_at_T — Function
henrys_constant_at_T(H_298, dH_diss, T)

Calculate Henry's law constant at temperature T using van't Hoff equation (Eq 7.5).

Arguments:

  • H_298: Henry's law constant at 298 K (mol/L/Pa)
  • dH_diss: Heat of dissolution (J/mol)
  • T: Temperature (K)

Returns:

  • H_T: Henry's law constant at temperature T (mol/L/Pa)
source
Aerosol.rate_to_ppb_hr — Function
rate_to_ppb_hr(R_a, L, T; p_total=101325.0)

Convert aqueous-phase rate to atmospheric mixing ratio rate (Eq 7.75).

Arguments:

  • R_a: Aqueous reaction rate (mol/L/s)
  • L: Liquid water content (g/m³)
  • T: Temperature (K)
  • p_total: Total pressure (Pa), default 101325 (1 atm)

Returns:

  • Rate in ppb/hr
source
Aerosol.rate_to_percent_hr — Function
rate_to_percent_hr(R_a, L, T, xi_SO2; p_total=101325.0)

Convert aqueous-phase rate to percent conversion rate (Eq 7.76).

Arguments:

  • R_a: Aqueous reaction rate (mol/L/s)
  • L: Liquid water content (g/m³)
  • T: Temperature (K)
  • xi_SO2: SO2 mixing ratio (dimensionless)
  • p_total: Total pressure (Pa), default 101325 (1 atm)

Returns:

  • Rate in %/hr
source
Aerosol.so2_lifetime — Function
so2_lifetime(R_a, L, T, xi_SO2; p_total=101325.0)

Calculate SO2 lifetime in seconds (Eq 7.78).

Arguments:

  • R_a: Aqueous reaction rate (mol/L/s)
  • L: Liquid water content (g/m³)
  • T: Temperature (K)
  • xi_SO2: SO2 mixing ratio (dimensionless)
  • p_total: Total pressure (Pa), default 101325 (1 atm)

Returns:

  • SO2 lifetime in seconds
source

State Variables

using DataFrames, ModelingToolkit, Symbolics, DynamicQuantities
using Aerosol

sys = CloudChemistry()
vars = unknowns(sys)
DataFrame(
    :Name => [string(Symbolics.tosymbol(v, escape = false)) for v in vars],
    :Units => [dimension(ModelingToolkit.get_unit(v)) for v in vars],
    :Description => [ModelingToolkit.getdescription(v) for v in vars]
)
207×3 DataFrame
RowNameUnitsDescription
StringDimensio…String
1water_eq₊TKTemperature
2TKTemperature
3co2_eq₊TKTemperature
4so2_eq₊TKTemperature
5nh3_eq₊TKTemperature
6hno3_eq₊TKTemperature
7h2o2_eq₊TKTemperature
8o3_eq₊TKTemperature
9sulfate₊TKTemperature
10water_eq₊H_plusm⁻³ molHydrogen ion concentration
11H_plusm⁻³ molHydrogen ion concentration
12co2_eq₊H_plusm⁻³ molHydrogen ion concentration
13so2_eq₊H_plusm⁻³ molHydrogen ion concentration
14nh3_eq₊H_plusm⁻³ molHydrogen ion concentration
15hno3_eq₊H_plusm⁻³ molHydrogen ion concentration
16h2o2_eq₊H_plusm⁻³ molHydrogen ion concentration
17sulfate₊H_plusm⁻³ molHydrogen ion concentration
18co2_eq₊p_CO2m⁻¹ kg s⁻²Partial pressure of CO2
19p_CO2m⁻¹ kg s⁻²Partial pressure of CO2
20so2_eq₊p_SO2m⁻¹ kg s⁻²Partial pressure of SO2
21p_SO2m⁻¹ kg s⁻²Partial pressure of SO2
22nh3_eq₊p_NH3m⁻¹ kg s⁻²Partial pressure of NH3
23p_NH3m⁻¹ kg s⁻²Partial pressure of NH3
24hno3_eq₊p_HNO3m⁻¹ kg s⁻²Partial pressure of HNO3
25p_HNO3m⁻¹ kg s⁻²Partial pressure of HNO3
26h2o2_eq₊p_H2O2m⁻¹ kg s⁻²Partial pressure of H2O2
27p_H2O2m⁻¹ kg s⁻²Partial pressure of H2O2
28o3_eq₊p_O3m⁻¹ kg s⁻²Partial pressure of O3
29p_O3m⁻¹ kg s⁻²Partial pressure of O3
30OH_minusm⁻³ molHydroxide concentration
31water_eq₊OH_minusm⁻³ molHydroxide ion concentration
32HCO3_minusm⁻³ molBicarbonate concentration
33co2_eq₊HCO3_minusm⁻³ molBicarbonate concentration [HCO3-]
34CO3_2minusm⁻³ molCarbonate concentration
35co2_eq₊CO3_2minusm⁻³ molCarbonate concentration [CO3^2-]
36SO2_aqm⁻³ molAqueous SO2 concentration
37so2_eq₊SO2_aqm⁻³ molAqueous SO2 concentration [SO2.H2O]
38HSO3_minusm⁻³ molBisulfite concentration
39so2_eq₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
40SO3_2minusm⁻³ molSulfite concentration
41so2_eq₊SO3_2minusm⁻³ molSulfite concentration [SO3^2-]
42NH4_plusm⁻³ molAmmonium concentration
43nh3_eq₊NH4_plusm⁻³ molAmmonium concentration [NH4+]
44NO3_minusm⁻³ molNitrate concentration
45hno3_eq₊NO3_minusm⁻³ molNitrate concentration [NO3-]
46H2O2_aqm⁻³ molAqueous H2O2 concentration
47h2o2_eq₊H2O2_aqm⁻³ molAqueous H2O2 concentration
48O3_aqm⁻³ molAqueous O3 concentration
49o3_eq₊O3_aqm⁻³ molAqueous O3 concentration
50S_IV_totalm⁻³ molTotal S(IV) concentration
51so2_eq₊S_IV_totalm⁻³ molTotal S(IV) concentration
52C_totalm⁻³ molTotal dissolved inorganic carbon
53co2_eq₊C_totalm⁻³ molTotal dissolved inorganic carbon
54NH3_totalm⁻³ molTotal dissolved ammonia
55nh3_eq₊NH3_totalm⁻³ molTotal dissolved ammonia
56HNO3_totalm⁻³ molTotal dissolved nitric acid
57hno3_eq₊HNO3_totalm⁻³ molTotal dissolved nitric acid
58sulfate₊SO2_aqm⁻³ molAqueous SO2 concentration [SO2.H2O]
59sulfate₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
60sulfate₊SO3_2minusm⁻³ molSulfite concentration [SO3^2-]
61sulfate₊S_IV_totalm⁻³ molTotal S(IV) concentration
62sulfate₊O3_aqm⁻³ molAqueous O3 concentration
63sulfate₊H2O2_aqm⁻³ molAqueous H2O2 concentration
64sulfate₊Fe_IIIm⁻³ molFe(III) concentration
65Fe_IIIm⁻³ molFe(III) concentration in droplet
66sulfate₊Mn_IIm⁻³ molMn(II) concentration
67Mn_IIm⁻³ molMn(II) concentration in droplet
68sulfate₊Lm⁻³ kgLiquid water content
69Lm⁻³ kgLiquid water content
70sulfate₊xi_SO2SO2 mixing ratio (dimensionless)
71xi_SO2SO2 mixing ratio for lifetime calculation (dimensionless)
72R_totalm⁻³ s⁻¹ molTotal S(IV) oxidation rate
73sulfate₊R_totalm⁻³ s⁻¹ molTotal S(IV) oxidation rate
74R_O3m⁻³ s⁻¹ molS(IV) oxidation rate by O3
75sulfate₊o3_ox₊R_O3m⁻³ s⁻¹ molS(IV) oxidation rate by O3
76R_H2O2m⁻³ s⁻¹ molS(IV) oxidation rate by H2O2
77sulfate₊h2o2_ox₊R_H2O2m⁻³ s⁻¹ molS(IV) oxidation rate by H2O2
78R_FeMnm⁻³ s⁻¹ molS(IV) oxidation rate by Fe/Mn
79sulfate₊femn_ox₊R_FeMnm⁻³ s⁻¹ molTotal S(IV) oxidation rate with Fe/Mn synergism
80pHDroplet pH (dimensionless)
81water_eq₊pHpH value (dimensionless)
82w_LLiquid water mixing ratio (dimensionless)
83charge_balancem⁻³ molElectroneutrality residual
84SO4_2minusm⁻³ molSulfate concentration
85Cl_minusm⁻³ molChloride concentration
86water_eq₊K_wm⁻⁶ mol²Water dissociation constant
87water_eq₊TKTemperature
88water_eq₊OH_minusm⁻³ molHydroxide ion concentration
89water_eq₊H_plusm⁻³ molHydrogen ion concentration
90water_eq₊pHpH value (dimensionless)
91co2_eq₊H_CO2m⁻² kg⁻¹ s² molHenry's law constant for CO2
92co2_eq₊TKTemperature
93co2_eq₊K_c1m⁻³ molFirst dissociation constant
94co2_eq₊K_c2m⁻³ molSecond dissociation constant
95co2_eq₊CO2_aqm⁻³ molAqueous CO2 concentration [CO2.H2O]
96co2_eq₊p_CO2m⁻¹ kg s⁻²Partial pressure of CO2
97co2_eq₊HCO3_minusm⁻³ molBicarbonate concentration [HCO3-]
98co2_eq₊H_plusm⁻³ molHydrogen ion concentration
99co2_eq₊CO3_2minusm⁻³ molCarbonate concentration [CO3^2-]
100co2_eq₊C_totalm⁻³ molTotal dissolved inorganic carbon
101co2_eq₊H_CO2_effm⁻² kg⁻¹ s² molEffective Henry's law constant for CO2
102so2_eq₊H_SO2m⁻² kg⁻¹ s² molHenry's law constant for SO2
103so2_eq₊TKTemperature
104so2_eq₊K_s1m⁻³ molFirst dissociation constant
105so2_eq₊K_s2m⁻³ molSecond dissociation constant
106so2_eq₊SO2_aqm⁻³ molAqueous SO2 concentration [SO2.H2O]
107so2_eq₊p_SO2m⁻¹ kg s⁻²Partial pressure of SO2
108so2_eq₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
109so2_eq₊H_plusm⁻³ molHydrogen ion concentration
110so2_eq₊SO3_2minusm⁻³ molSulfite concentration [SO3^2-]
111so2_eq₊S_IV_totalm⁻³ molTotal S(IV) concentration
112so2_eq₊H_SO2_effm⁻² kg⁻¹ s² molEffective Henry's law constant for SO2
113so2_eq₊alpha_0Mole fraction of SO2.H2O (dimensionless)
114so2_eq₊alpha_1Mole fraction of HSO3- (dimensionless)
115so2_eq₊alpha_2Mole fraction of SO3^2- (dimensionless)
116nh3_eq₊H_NH3m⁻² kg⁻¹ s² molHenry's law constant for NH3
117nh3_eq₊TKTemperature
118nh3_eq₊K_a1m⁻³ molDissociation constant
119nh3_eq₊K_wm⁻⁶ mol²Water dissociation constant
120nh3_eq₊OH_minusm⁻³ molHydroxide ion concentration
121nh3_eq₊H_plusm⁻³ molHydrogen ion concentration
122nh3_eq₊NH3_aqm⁻³ molAqueous NH3 concentration [NH3.H2O]
123nh3_eq₊p_NH3m⁻¹ kg s⁻²Partial pressure of NH3
124nh3_eq₊NH4_plusm⁻³ molAmmonium concentration [NH4+]
125nh3_eq₊NH3_totalm⁻³ molTotal dissolved ammonia
126nh3_eq₊H_NH3_effm⁻² kg⁻¹ s² molEffective Henry's law constant for NH3
127hno3_eq₊H_HNO3m⁻² kg⁻¹ s² molHenry's law constant for HNO3
128hno3_eq₊TKTemperature
129hno3_eq₊K_n1m⁻³ molDissociation constant
130hno3_eq₊HNO3_aqm⁻³ molUndissociated HNO3 concentration
131hno3_eq₊p_HNO3m⁻¹ kg s⁻²Partial pressure of HNO3
132hno3_eq₊NO3_minusm⁻³ molNitrate concentration [NO3-]
133hno3_eq₊H_plusm⁻³ molHydrogen ion concentration
134hno3_eq₊HNO3_totalm⁻³ molTotal dissolved nitric acid
135hno3_eq₊H_HNO3_effm⁻² kg⁻¹ s² molEffective Henry's law constant for HNO3
136h2o2_eq₊H_H2O2m⁻² kg⁻¹ s² molHenry's law constant for H2O2
137h2o2_eq₊TKTemperature
138h2o2_eq₊K_h1m⁻³ molDissociation constant (very weak)
139h2o2_eq₊H2O2_aqm⁻³ molAqueous H2O2 concentration
140h2o2_eq₊p_H2O2m⁻¹ kg s⁻²Partial pressure of H2O2
141h2o2_eq₊HO2_minusm⁻³ molHydroperoxide anion concentration [HO2-]
142h2o2_eq₊H_plusm⁻³ molHydrogen ion concentration
143h2o2_eq₊H2O2_totalm⁻³ molTotal dissolved hydrogen peroxide
144h2o2_eq₊H_H2O2_effm⁻² kg⁻¹ s² molEffective Henry's law constant for H2O2
145o3_eq₊H_O3m⁻² kg⁻¹ s² molHenry's law constant for O3
146o3_eq₊TKTemperature
147o3_eq₊O3_aqm⁻³ molAqueous O3 concentration
148o3_eq₊p_O3m⁻¹ kg s⁻²Partial pressure of O3
149sulfate₊o3_ox₊SO2_aqm⁻³ molAqueous SO2 concentration [SO2.H2O]
150sulfate₊SO2_aqm⁻³ molAqueous SO2 concentration [SO2.H2O]
151sulfate₊o3_ox₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
152sulfate₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
153sulfate₊o3_ox₊SO3_2minusm⁻³ molSulfite concentration [SO3^2-]
154sulfate₊SO3_2minusm⁻³ molSulfite concentration [SO3^2-]
155sulfate₊o3_ox₊O3_aqm⁻³ molAqueous O3 concentration
156sulfate₊O3_aqm⁻³ molAqueous O3 concentration
157sulfate₊h2o2_ox₊H_plusm⁻³ molHydrogen ion concentration
158sulfate₊H_plusm⁻³ molHydrogen ion concentration
159sulfate₊h2o2_ox₊H2O2_aqm⁻³ molAqueous H2O2 concentration
160sulfate₊H2O2_aqm⁻³ molAqueous H2O2 concentration
161sulfate₊h2o2_ox₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
162sulfate₊fe_ox₊H_plusm⁻³ molHydrogen ion concentration
163sulfate₊fe_ox₊Fe_IIIm⁻³ molFe(III) concentration
164sulfate₊Fe_IIIm⁻³ molFe(III) concentration
165sulfate₊fe_ox₊S_IV_totalm⁻³ molTotal S(IV) concentration
166sulfate₊S_IV_totalm⁻³ molTotal S(IV) concentration
167sulfate₊mn_ox₊Mn_IIm⁻³ molMn(II) concentration
168sulfate₊Mn_IIm⁻³ molMn(II) concentration
169sulfate₊mn_ox₊S_IV_totalm⁻³ molTotal S(IV) concentration
170sulfate₊femn_ox₊Mn_IIm⁻³ molMn(II) concentration
171sulfate₊femn_ox₊Fe_IIIm⁻³ molFe(III) concentration
172sulfate₊femn_ox₊S_IV_totalm⁻³ molTotal S(IV) concentration
173sulfate₊R_totalm⁻³ s⁻¹ molTotal S(IV) oxidation rate
174sulfate₊femn_ox₊R_FeMnm⁻³ s⁻¹ molTotal S(IV) oxidation rate with Fe/Mn synergism
175sulfate₊h2o2_ox₊R_H2O2m⁻³ s⁻¹ molS(IV) oxidation rate by H2O2
176sulfate₊o3_ox₊R_O3m⁻³ s⁻¹ molS(IV) oxidation rate by O3
177sulfate₊S_VI_productionm⁻³ s⁻¹ molSulfate production rate
178sulfate₊w_LLiquid water volume ratio (dimensionless)
179sulfate₊Lm⁻³ kgLiquid water content
180sulfate₊R_ppb_hrRate in ppb/hr (Eq 7.75) (dimensionless)
181sulfate₊TKTemperature
182sulfate₊R_percent_hrRate in percent/hr (Eq 7.76) (dimensionless)
183sulfate₊xi_SO2SO2 mixing ratio (dimensionless)
184sulfate₊tau_SO2sSO2 lifetime (Eq 7.78)
185sulfate₊o3_ox₊R_O3m⁻³ s⁻¹ molS(IV) oxidation rate by O3
186sulfate₊o3_ox₊O3_aqm⁻³ molAqueous O3 concentration
187sulfate₊o3_ox₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
188sulfate₊o3_ox₊SO2_aqm⁻³ molAqueous SO2 concentration [SO2.H2O]
189sulfate₊o3_ox₊SO3_2minusm⁻³ molSulfite concentration [SO3^2-]
190sulfate₊h2o2_ox₊R_H2O2m⁻³ s⁻¹ molS(IV) oxidation rate by H2O2
191sulfate₊h2o2_ox₊H_plusm⁻³ molHydrogen ion concentration
192sulfate₊h2o2_ox₊H2O2_aqm⁻³ molAqueous H2O2 concentration
193sulfate₊h2o2_ox₊HSO3_minusm⁻³ molBisulfite concentration [HSO3-]
194sulfate₊fe_ox₊R_Fem⁻³ s⁻¹ molS(IV) oxidation rate by Fe(III)-catalyzed O2
195sulfate₊fe_ox₊Fe_IIIm⁻³ molFe(III) concentration
196sulfate₊fe_ox₊S_IV_totalm⁻³ molTotal S(IV) concentration
197sulfate₊fe_ox₊H_plusm⁻³ molHydrogen ion concentration
198sulfate₊mn_ox₊R_Mnm⁻³ s⁻¹ molS(IV) oxidation rate by Mn(II)-catalyzed O2
199sulfate₊mn_ox₊S_IV_totalm⁻³ molTotal S(IV) concentration
200sulfate₊mn_ox₊Mn_IIm⁻³ molMn(II) concentration
201sulfate₊femn_ox₊R_Mn_termm⁻³ s⁻¹ molMn-only contribution to rate
202sulfate₊femn_ox₊S_IV_totalm⁻³ molTotal S(IV) concentration
203sulfate₊femn_ox₊Mn_IIm⁻³ molMn(II) concentration
204sulfate₊femn_ox₊R_Fe_termm⁻³ s⁻¹ molFe-only contribution to rate
205sulfate₊femn_ox₊Fe_IIIm⁻³ molFe(III) concentration
206sulfate₊femn_ox₊R_synergy_termm⁻³ s⁻¹ molSynergistic contribution to rate
207sulfate₊femn_ox₊R_FeMnm⁻³ s⁻¹ molTotal S(IV) oxidation rate with Fe/Mn synergism

Parameters

params = parameters(sys)
DataFrame(
    :Name => [string(Symbolics.tosymbol(p, escape = false)) for p in params],
    :Units => [dimension(ModelingToolkit.get_unit(p)) for p in params],
    :Description => [ModelingToolkit.getdescription(p) for p in params]
)
60×3 DataFrame
RowNameUnitsDescription
StringDimensio…String
1rho_w_invm³ kg⁻¹Inverse water density for LWC conversion
2water_eq₊K_w_298m⁻⁶ mol²K_w at 298 K
3water_eq₊T_refKReference temperature
4water_eq₊dH_Kwm² kg s⁻² mol⁻¹Enthalpy for K_w (13.35 kcal/mol converted to J/mol)
5water_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
6water_eq₊C_refm⁻³ molReference concentration (1 mol/L = 1000 mol/m³)
7co2_eq₊H_CO2_298m⁻² kg⁻¹ s² molHenry's law constant for CO2 at 298 K (converted from 3.4e-2 M/atm)
8co2_eq₊T_refKReference temperature
9co2_eq₊dH_H_CO2m² kg s⁻² mol⁻¹Heat of dissolution for CO2 (-4.85 kcal/mol)
10co2_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
11co2_eq₊dH_Kc1m² kg s⁻² mol⁻¹Enthalpy for K_c1 (1.83 kcal/mol)
12co2_eq₊K_c1_298m⁻³ molFirst dissociation constant at 298 K
13co2_eq₊K_c2_298m⁻³ molSecond dissociation constant at 298 K
14co2_eq₊dH_Kc2m² kg s⁻² mol⁻¹Enthalpy for K_c2 (3.55 kcal/mol)
15so2_eq₊T_refKReference temperature
16so2_eq₊dH_H_SO2m² kg s⁻² mol⁻¹Heat of dissolution for SO2 (-6.25 kcal/mol)
17so2_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
18so2_eq₊H_SO2_298m⁻² kg⁻¹ s² molHenry's law constant for SO2 at 298 K (converted from 1.23 M/atm)
19so2_eq₊K_s1_298m⁻³ molFirst dissociation constant at 298 K
20so2_eq₊dH_Ks1m² kg s⁻² mol⁻¹Enthalpy for K_s1 (-4.16 kcal/mol)
21so2_eq₊K_s2_298m⁻³ molSecond dissociation constant at 298 K
22so2_eq₊dH_Ks2m² kg s⁻² mol⁻¹Enthalpy for K_s2 (-2.23 kcal/mol)
23nh3_eq₊H_NH3_298m⁻² kg⁻¹ s² molHenry's law constant for NH3 at 298 K (converted from 62.0 M/atm)
24nh3_eq₊T_refKReference temperature
25nh3_eq₊dH_H_NH3m² kg s⁻² mol⁻¹Heat of dissolution for NH3 (-8.17 kcal/mol)
26nh3_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
27nh3_eq₊dH_Ka1m² kg s⁻² mol⁻¹Enthalpy for K_a1 (8.65 kcal/mol)
28nh3_eq₊K_a1_298m⁻³ molDissociation constant at 298 K
29nh3_eq₊K_w_298m⁻⁶ mol²K_w at 298 K
30nh3_eq₊dH_Kwm² kg s⁻² mol⁻¹Enthalpy for K_w (13.35 kcal/mol)
31hno3_eq₊H_HNO3_298m⁻² kg⁻¹ s² molHenry's law constant for HNO3 at 298 K (converted from 2.1e5 M/atm)
32hno3_eq₊T_refKReference temperature
33hno3_eq₊dH_H_HNO3m² kg s⁻² mol⁻¹Heat of dissolution for HNO3 (negligible temperature dependence)
34hno3_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
35hno3_eq₊K_n1_298m⁻³ molDissociation constant at 298 K
36h2o2_eq₊dH_H_H2O2m² kg s⁻² mol⁻¹Heat of dissolution for H2O2 (-14.5 kcal/mol)
37h2o2_eq₊T_refKReference temperature
38h2o2_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
39h2o2_eq₊H_H2O2_298m⁻² kg⁻¹ s² molHenry's law constant for H2O2 at 298 K (converted from 1.0e5 M/atm)
40h2o2_eq₊K_h1_298m⁻³ molDissociation constant at 298 K (very weak)
41o3_eq₊H_O3_298m⁻² kg⁻¹ s² molHenry's law constant for O3 at 298 K (converted from 1.1e-2 M/atm)
42o3_eq₊dH_H_O3m² kg s⁻² mol⁻¹Heat of dissolution for O3 (-5.04 kcal/mol)
43o3_eq₊T_refKReference temperature
44o3_eq₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant
45sulfate₊rho_w_invm³ kg⁻¹Inverse water density for LWC conversion
46sulfate₊s_per_hrsSeconds per hour (dimensionless)
47sulfate₊ppb_factorParts per billion scaling factor (dimensionless)
48sulfate₊R_gasm² kg s⁻² K⁻¹ mol⁻¹Gas constant for rate conversion
49sulfate₊p_totalm⁻¹ kg s⁻²Standard atmospheric pressure
50sulfate₊pct_factorPercent scaling factor (dimensionless)
51sulfate₊o3_ox₊k1m³ s⁻¹ mol⁻¹Rate constant for HSO3- + O3
52sulfate₊o3_ox₊k0m³ s⁻¹ mol⁻¹Rate constant for SO2.H2O + O3
53sulfate₊o3_ox₊k2m³ s⁻¹ mol⁻¹Rate constant for SO3^2- + O3
54sulfate₊h2o2_ox₊km⁶ s⁻¹ mol⁻²Rate constant for H2O2 oxidation
55sulfate₊h2o2_ox₊K_eqm³ mol⁻¹Equilibrium constant in denominator
56sulfate₊fe_ox₊k_low_pHs⁻¹Rate constant for pH 0-3.6
57sulfate₊mn_ox₊k0m³ s⁻¹ mol⁻¹Rate constant for low S(IV)
58sulfate₊femn_ox₊k_Mnm³ s⁻¹ mol⁻¹Rate constant for Mn-only term
59sulfate₊femn_ox₊k_Fem³ s⁻¹ mol⁻¹Rate constant for Fe-only term
60sulfate₊femn_ox₊k_FeMnm⁶ s⁻¹ mol⁻²Rate constant for synergistic term

Equations

eqs = equations(sys)
125-element Vector{Symbolics.Equation}:
 water_eq₊T(t) ~ T(t)
 co2_eq₊T(t) ~ T(t)
 so2_eq₊T(t) ~ T(t)
 nh3_eq₊T(t) ~ T(t)
 hno3_eq₊T(t) ~ T(t)
 h2o2_eq₊T(t) ~ T(t)
 o3_eq₊T(t) ~ T(t)
 sulfate₊T(t) ~ T(t)
 water_eq₊H_plus(t) ~ H_plus(t)
 co2_eq₊H_plus(t) ~ H_plus(t)
 ⋮
 sulfate₊tau_SO2(t) ~ (sulfate₊p_total*sulfate₊xi_SO2(t)) / (sulfate₊R_gas*sulfate₊R_total(t)*sulfate₊T(t)*sulfate₊w_L(t))
 sulfate₊o3_ox₊R_O3(t) ~ (sulfate₊o3_ox₊HSO3_minus(t)*sulfate₊o3_ox₊k1 + sulfate₊o3_ox₊SO2_aq(t)*sulfate₊o3_ox₊k0 + sulfate₊o3_ox₊SO3_2minus(t)*sulfate₊o3_ox₊k2)*sulfate₊o3_ox₊O3_aq(t)
 sulfate₊h2o2_ox₊R_H2O2(t) ~ (sulfate₊h2o2_ox₊H2O2_aq(t)*sulfate₊h2o2_ox₊HSO3_minus(t)*sulfate₊h2o2_ox₊H_plus(t)*sulfate₊h2o2_ox₊k) / (1 + sulfate₊h2o2_ox₊H_plus(t)*sulfate₊h2o2_ox₊K_eq)
 sulfate₊fe_ox₊R_Fe(t) ~ (sulfate₊fe_ox₊Fe_III(t)*sulfate₊fe_ox₊S_IV_total(t)*sulfate₊fe_ox₊k_low_pH) / sulfate₊fe_ox₊H_plus(t)
 sulfate₊mn_ox₊R_Mn(t) ~ sulfate₊mn_ox₊Mn_II(t)*sulfate₊mn_ox₊S_IV_total(t)*sulfate₊mn_ox₊k0
 sulfate₊femn_ox₊R_Mn_term(t) ~ sulfate₊femn_ox₊Mn_II(t)*sulfate₊femn_ox₊S_IV_total(t)*sulfate₊femn_ox₊k_Mn
 sulfate₊femn_ox₊R_Fe_term(t) ~ sulfate₊femn_ox₊Fe_III(t)*sulfate₊femn_ox₊S_IV_total(t)*sulfate₊femn_ox₊k_Fe
 sulfate₊femn_ox₊R_synergy_term(t) ~ sulfate₊femn_ox₊Fe_III(t)*sulfate₊femn_ox₊Mn_II(t)*sulfate₊femn_ox₊S_IV_total(t)*sulfate₊femn_ox₊k_FeMn
 sulfate₊femn_ox₊R_FeMn(t) ~ sulfate₊femn_ox₊R_Fe_term(t) + sulfate₊femn_ox₊R_Mn_term(t) + sulfate₊femn_ox₊R_synergy_term(t)

Analysis

S(IV) Mole Fraction Diagram

The distribution of S(IV) species (SO₂·H₂O, HSO₃⁻, SO₃²⁻) depends on pH. The mole fractions (alpha values) are computed from the equilibrium constants (S&P Eq. 7.43-7.45).

using Plots

K_s1 = Aerosol.K_S1_298
K_s2 = Aerosol.K_S2_298

pH_range = range(0, 10, length = 200)
alpha_0 = zeros(length(pH_range))
alpha_1 = zeros(length(pH_range))
alpha_2 = zeros(length(pH_range))

for (i, pH) in enumerate(pH_range)
    H_plus = 10.0^(-pH)
    denom = H_plus^2 + K_s1 * H_plus + K_s1 * K_s2
    alpha_0[i] = H_plus^2 / denom
    alpha_1[i] = K_s1 * H_plus / denom
    alpha_2[i] = K_s1 * K_s2 / denom
end

plot(pH_range, alpha_0, label = "α₀ (SO₂·H₂O)", lw = 2)
plot!(pH_range, alpha_1, label = "α₁ (HSO₃⁻)", lw = 2)
plot!(pH_range, alpha_2, label = "α₂ (SO₃²⁻)", lw = 2)
xlabel!("pH")
ylabel!("Mole fraction")
title!("S(IV) Species Distribution (S&P Fig. 7.7)")
Example block output

Effective Henry's Law Constant vs pH

The effective Henry's law constant H* for SO₂ increases with pH due to dissociation of dissolved SO₂ (S&P Eq. 7.41).

ATM = Aerosol.ATM_TO_PA
H_SO2_298 = 1.23 / ATM  # M/Pa

pH_range = range(0, 8, length = 200)
H_eff_vals = zeros(length(pH_range))
H_eff_atm = zeros(length(pH_range))

for (i, pH) in enumerate(pH_range)
    H_plus = 10.0^(-pH)
    H_eff_vals[i] = effective_henrys_constant(H_SO2_298, K_s1, K_s2, H_plus)
    H_eff_atm[i] = H_eff_vals[i] * ATM  # Convert back to M/atm for display
end

plot(pH_range, H_eff_atm, lw = 2, yscale = :log10, label = "H* SO₂")
hline!([1.23], ls = :dash, label = "H (intrinsic)", color = :gray)
xlabel!("pH")
ylabel!("H* (M/atm)")
title!("Effective Henry's Law Constant for SO₂ (S&P Eq. 7.41)")
Example block output

S(IV) Oxidation Rates vs pH

Comparison of the three main S(IV) oxidation pathways as a function of pH. This figure illustrates the pH-dependent dominance of different oxidants (cf. S&P Section 7.5).

ATM = Aerosol.ATM_TO_PA
H_SO2 = 1.23 / ATM
H_O3 = 1.1e-2 / ATM
H_H2O2 = 1.0e5 / ATM
K_s1 = Aerosol.K_S1_298
K_s2 = Aerosol.K_S2_298

# Typical atmospheric conditions
p_SO2 = 1e-9 * ATM  # 1 ppb
p_O3 = 50e-9 * ATM  # 50 ppb
p_H2O2 = 1e-9 * ATM # 1 ppb

pH_range = range(1, 7, length = 200)
R_o3 = zeros(length(pH_range))
R_h2o2 = zeros(length(pH_range))

k0 = Aerosol.K0_O3
k1 = Aerosol.K1_O3
k2 = Aerosol.K2_O3
k_h2o2 = 7.5e7
K_eq = 13.0

for (i, pH) in enumerate(pH_range)
    H_plus = 10.0^(-pH)
    SO2_aq = H_SO2 * p_SO2
    HSO3_m = K_s1 * SO2_aq / H_plus
    SO3_2m = K_s2 * HSO3_m / H_plus
    O3_aq = H_O3 * p_O3
    H2O2_aq = H_H2O2 * p_H2O2

    R_o3[i] = (k0 * SO2_aq + k1 * HSO3_m + k2 * SO3_2m) * O3_aq
    R_h2o2[i] = k_h2o2 * H_plus * H2O2_aq * HSO3_m / (1 + K_eq * H_plus)
end

plot(pH_range, R_o3, label = "O₃ pathway", lw = 2, yscale = :log10)
plot!(pH_range, R_h2o2, label = "H₂O₂ pathway", lw = 2)
xlabel!("pH")
ylabel!("Rate (mol/L/s)")
title!("S(IV) Oxidation Rates vs pH (S&P Section 7.5)")
Example block output

Temperature Dependence of Henry's Law Constants

Henry's law constants increase at lower temperatures for all species (exothermic dissolution), following the van't Hoff equation (S&P Eq. 7.5).

ATM = Aerosol.ATM_TO_PA
T_range = range(273, 313, length = 100)
species_list = [:SO2, :CO2, :NH3, :H2O2, :O3]
labels = ["SO₂", "CO₂", "NH₃", "H₂O₂", "O₃"]

plt = plot(yscale = :log10)
for (sp, lab) in zip(species_list, labels)
    H_298 = Aerosol.HENRY_CONSTANTS_298[sp]
    dH = Aerosol.DELTA_H_DISSOLUTION[sp]
    H_vals = [henrys_constant_at_T(H_298, dH, T) * ATM for T in T_range]
    plot!(plt, collect(T_range), H_vals, label = lab, lw = 2)
end
xlabel!(plt, "Temperature (K)")
ylabel!(plt, "H (M/atm)")
title!(plt, "Henry's Law Constants vs Temperature (S&P Eq. 7.5)")
plt
Example block output