SuperFast Gas-Phase Atmospheric Chemical Mechanism
The Super Fast Chemical Mechanism is one of the simplest representations of atmospheric chemistry. It can efficiently simulate background tropospheric ozone chemistry and perform well for those species included in the mechanism. The chemical equations used are included in the supporting table S2 of the paper, "Evaluating simplified chemical mechanisms within present-day simulations of the Community Earth System Model version 1.2 with CAM4 (CESM1.2 CAM-chem): MOZART-4 vs. Reduced Hydrocarbon vs. Super-Fast chemistry" (2018), Benjamin Brown-Steiner, Noelle E. Selin, Ronald G. Prinn, Simone Tilmes, Louisa Emmons, Jean-François Lamarque, and Philip Cameron-Smith.
Illustrative Example
Here is a simple example of initializing the SuperFast model and running a simulation. First, we can look at the reaction equations:
using GasChem, EarthSciMLBase, ModelingToolkit
using DynamicQuantities, OrdinaryDiffEqDefault, OrdinaryDiffEqRosenbrock
using Catalyst
using Plots
using ModelingToolkit: t
model = SuperFast()\[ \begin{align} \frac{\mathrm{d} ~ \mathtt{O3}\left( t \right)}{\mathrm{d}t} &= \mathtt{NO2}\left( t \right) ~ \mathtt{jNO2} - \mathtt{O3}\left( t \right) ~ \mathtt{jO32OH} - \mathtt{HO2}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius2.k}\left( t \right) - \mathtt{ISOP}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius21.k}\left( t \right) - \mathtt{NO}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius6.k}\left( t \right) - \mathtt{O3}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius1.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{OH}\left( t \right)}{\mathrm{d}t} &= \mathtt{CH3OOH}\left( t \right) ~ \mathtt{jCH3OOH} + 2 ~ \mathtt{H2O2}\left( t \right) ~ \mathtt{jH2O2} + 2 ~ \mathtt{O3}\left( t \right) ~ \mathtt{jO32OH} - \mathtt{CH2O}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius11.k}\left( t \right) - \mathtt{CH3OOH}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius13.k}\left( t \right) - \mathtt{CH4} ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius9.k}\left( t \right) - \mathtt{CO}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{rate\_OHCO10.k}\left( t \right) - \mathtt{H2O2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius5.k}\left( t \right) + \mathtt{HO2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius7.k}\left( t \right) + \mathtt{HO2}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius2.k}\left( t \right) - \mathtt{HO2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius3.k}\left( t \right) - \mathtt{ISOP}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius18.k}\left( t \right) - \mathtt{ISOP}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius19.k}\left( t \right) - 0.5 ~ \mathtt{ISOP}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius20.k}\left( t \right) - \mathtt{NO2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arr\_3rdbody8.k}\left( t \right) - \mathtt{O3}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius1.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{HO2}\left( t \right)}{\mathrm{d}t} &= 2 ~ \mathtt{CH2O}\left( t \right) ~ \mathtt{jH2COa} + \mathtt{CH3OOH}\left( t \right) ~ \mathtt{jCH3OOH} - \mathtt{HO2}\left( t \right) ~ \mathtt{k\_het\_HO2} + \mathtt{CH2O}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius11.k}\left( t \right) + 0.8 ~ \left( \mathtt{CH3O2}\left( t \right) \right)^{2} ~ \mathtt{arrhenius16.k}\left( t \right) - \mathtt{CH3O2}\left( t \right) ~ \mathtt{HO2}\left( t \right) ~ \mathtt{arrhenius12.k}\left( t \right) + \mathtt{CH3O2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius15.k}\left( t \right) + \mathtt{CO}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{rate\_OHCO10.k}\left( t \right) + \mathtt{H2O2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius5.k}\left( t \right) - 2 ~ \left( \mathtt{HO2}\left( t \right) \right)^{2} ~ \mathtt{rate\_HO2HO24.k}\left( t \right) - \mathtt{HO2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius7.k}\left( t \right) - \mathtt{HO2}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius2.k}\left( t \right) - \mathtt{HO2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius3.k}\left( t \right) + 0.06 ~ \mathtt{ISOP}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius21.k}\left( t \right) + \mathtt{O3}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius1.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{NO}\left( t \right)}{\mathrm{d}t} &= \mathtt{NO2}\left( t \right) ~ \mathtt{jNO2} - \mathtt{CH3O2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius15.k}\left( t \right) - \mathtt{HO2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius7.k}\left( t \right) - \mathtt{NO}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius6.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{NO2}\left( t \right)}{\mathrm{d}t} &= - \mathtt{NO2}\left( t \right) ~ \mathtt{jNO2} - \mathtt{NO2}\left( t \right) ~ \mathtt{k\_het\_NO2} + \mathtt{CH3O2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius15.k}\left( t \right) - \mathtt{H2O} ~ \mathtt{NO2}\left( t \right) ~ \mathtt{rateconvert17.k}\left( t \right) + \mathtt{HO2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius7.k}\left( t \right) + \mathtt{NO}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius6.k}\left( t \right) - \mathtt{NO2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arr\_3rdbody8.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{CH3O2}\left( t \right)}{\mathrm{d}t} &= - 2 ~ \left( \mathtt{CH3O2}\left( t \right) \right)^{2} ~ \mathtt{arrhenius16.k}\left( t \right) - \mathtt{CH3O2}\left( t \right) ~ \mathtt{HO2}\left( t \right) ~ \mathtt{arrhenius12.k}\left( t \right) - \mathtt{CH3O2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius15.k}\left( t \right) + \mathtt{CH3OOH}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius13.k}\left( t \right) + \mathtt{CH4} ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius9.k}\left( t \right) + 1.86 ~ \mathtt{ISOP}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius21.k}\left( t \right) + 2 ~ \mathtt{ISOP}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius18.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{CH2O}\left( t \right)}{\mathrm{d}t} &= - \mathtt{CH2O}\left( t \right) ~ \mathtt{jH2COa} - \mathtt{CH2O}\left( t \right) ~ \mathtt{jH2COb} + \mathtt{CH3OOH}\left( t \right) ~ \mathtt{jCH3OOH} - \mathtt{CH2O}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius11.k}\left( t \right) + 2 ~ \left( \mathtt{CH3O2}\left( t \right) \right)^{2} ~ \mathtt{arrhenius16.k}\left( t \right) + \mathtt{CH3O2}\left( t \right) ~ \mathtt{NO}\left( t \right) ~ \mathtt{arrhenius15.k}\left( t \right) + \mathtt{CH3OOH}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius14.k}\left( t \right) + 0.87 ~ \mathtt{ISOP}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius21.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{CO}\left( t \right)}{\mathrm{d}t} &= \mathtt{CH2O}\left( t \right) ~ \mathtt{jH2COa} + \mathtt{CH2O}\left( t \right) ~ \mathtt{jH2COb} + \mathtt{CH2O}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius11.k}\left( t \right) - \mathtt{CO}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{rate\_OHCO10.k}\left( t \right) + 0.05 ~ \mathtt{ISOP}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius21.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{CH3OOH}\left( t \right)}{\mathrm{d}t} &= - \mathtt{CH3OOH}\left( t \right) ~ \mathtt{jCH3OOH} + \mathtt{CH3O2}\left( t \right) ~ \mathtt{HO2}\left( t \right) ~ \mathtt{arrhenius12.k}\left( t \right) - \mathtt{CH3OOH}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius13.k}\left( t \right) - \mathtt{CH3OOH}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius14.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{SO2}\left( t \right)}{\mathrm{d}t} &= - \mathtt{H2O2}\left( t \right) ~ \mathtt{LWC\_cld} ~ \mathtt{SO2}\left( t \right) ~ \mathtt{inv\_LWC\_ref} ~ \mathtt{k\_cld1} \\ \frac{\mathrm{d} ~ \mathtt{SO4}\left( t \right)}{\mathrm{d}t} &= \mathtt{H2O2}\left( t \right) ~ \mathtt{LWC\_cld} ~ \mathtt{SO2}\left( t \right) ~ \mathtt{inv\_LWC\_ref} ~ \mathtt{k\_cld1} \\ \frac{\mathrm{d} ~ \mathtt{ISOP}\left( t \right)}{\mathrm{d}t} &= - \mathtt{ISOP}\left( t \right) ~ \mathtt{O3}\left( t \right) ~ \mathtt{arrhenius21.k}\left( t \right) - \mathtt{ISOP}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius18.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{H2O2}\left( t \right)}{\mathrm{d}t} &= - \mathtt{H2O2}\left( t \right) ~ \mathtt{jH2O2} + 0.5 ~ \mathtt{HO2}\left( t \right) ~ \mathtt{k\_het\_HO2} - \mathtt{H2O2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arrhenius5.k}\left( t \right) + \left( \mathtt{HO2}\left( t \right) \right)^{2} ~ \mathtt{rate\_HO2HO24.k}\left( t \right) - \mathtt{H2O2}\left( t \right) ~ \mathtt{LWC\_cld} ~ \mathtt{SO2}\left( t \right) ~ \mathtt{inv\_LWC\_ref} ~ \mathtt{k\_cld1} \\ \frac{\mathrm{d} ~ \mathtt{HNO3}\left( t \right)}{\mathrm{d}t} &= 2 ~ \mathtt{N2O5}\left( t \right) ~ \mathtt{k\_het\_N2O5} + 0.5 ~ \mathtt{NO2}\left( t \right) ~ \mathtt{k\_het\_NO2} + \mathtt{NO3}\left( t \right) ~ \mathtt{k\_het\_NO3} + 0.5 ~ \mathtt{H2O} ~ \mathtt{NO2}\left( t \right) ~ \mathtt{rateconvert17.k}\left( t \right) + \mathtt{NO2}\left( t \right) ~ \mathtt{OH}\left( t \right) ~ \mathtt{arr\_3rdbody8.k}\left( t \right) \\ \frac{\mathrm{d} ~ \mathtt{NH3}\left( t \right)}{\mathrm{d}t} &= 0 \\ \frac{\mathrm{d} ~ \mathtt{NH4}\left( t \right)}{\mathrm{d}t} &= 0 \\ \frac{\mathrm{d} ~ \mathtt{NIT}\left( t \right)}{\mathrm{d}t} &= 0 \\ \frac{\mathrm{d} ~ \mathtt{N2O5}\left( t \right)}{\mathrm{d}t} &= - \mathtt{N2O5}\left( t \right) ~ \mathtt{k\_het\_N2O5} \\ \frac{\mathrm{d} ~ \mathtt{NO3}\left( t \right)}{\mathrm{d}t} &= - \mathtt{NO3}\left( t \right) ~ \mathtt{k\_het\_NO3} \\ \mathtt{arrhenius1.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius1.K\_300}}{T} \right)^{\mathtt{arrhenius1.b0}} ~ P ~ \mathtt{arrhenius1.A} ~ \mathtt{arrhenius1.a0} ~ \mathtt{arrhenius1.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius1.c0}}{T}}}{T ~ \mathtt{arrhenius1.R}} \\ \mathtt{arrhenius2.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius2.K\_300}}{T} \right)^{\mathtt{arrhenius2.b0}} ~ P ~ \mathtt{arrhenius2.A} ~ \mathtt{arrhenius2.a0} ~ \mathtt{arrhenius2.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius2.c0}}{T}}}{T ~ \mathtt{arrhenius2.R}} \\ \mathtt{arrhenius3.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius3.K\_300}}{T} \right)^{\mathtt{arrhenius3.b0}} ~ P ~ \mathtt{arrhenius3.A} ~ \mathtt{arrhenius3.a0} ~ \mathtt{arrhenius3.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius3.c0}}{T}}}{T ~ \mathtt{arrhenius3.R}} \\ \mathtt{rate\_HO2HO24.k}\left( t \right) &= \left( \mathtt{rate\_HO2HO24.k0.k}\left( t \right) + \frac{P ~ \mathtt{rate\_HO2HO24.A} ~ \mathtt{rate\_HO2HO24.k1.k}\left( t \right) ~ \mathtt{rate\_HO2HO24.num\_density\_unit\_inv}}{T ~ \mathtt{rate\_HO2HO24.R}} \right) ~ \left( 1 + \frac{1.4 \cdot 10^{-30} ~ \mathtt{H2O} ~ P ~ e^{\frac{\mathtt{rate\_HO2HO24.T\_0}}{T}} ~ \mathtt{rate\_HO2HO24.A} ~ \mathtt{rate\_HO2HO24.num\_density\_unit\_inv} ~ \mathtt{rate\_HO2HO24.ppb\_inv}}{T ~ \mathtt{rate\_HO2HO24.R}} \right) \\ \mathtt{rate\_HO2HO24.k0.k}\left( t \right) &= \frac{\left( \frac{\mathtt{rate\_HO2HO24.k0.K\_300}}{T} \right)^{\mathtt{rate\_HO2HO24.k0.b0}} ~ P ~ e^{\frac{\mathtt{rate\_HO2HO24.k0.c0}}{T}} ~ \mathtt{rate\_HO2HO24.k0.A} ~ \mathtt{rate\_HO2HO24.k0.a0} ~ \mathtt{rate\_HO2HO24.k0.ppb\_unit}}{T ~ \mathtt{rate\_HO2HO24.k0.R}} \\ \mathtt{rate\_HO2HO24.k1.k}\left( t \right) &= \frac{\left( \frac{\mathtt{rate\_HO2HO24.k1.K\_300}}{T} \right)^{\mathtt{rate\_HO2HO24.k1.b0}} ~ P ~ e^{\frac{\mathtt{rate\_HO2HO24.k1.c0}}{T}} ~ \mathtt{rate\_HO2HO24.k1.A} ~ \mathtt{rate\_HO2HO24.k1.a0} ~ \mathtt{rate\_HO2HO24.k1.ppb\_unit}}{T ~ \mathtt{rate\_HO2HO24.k1.R}} \\ \mathtt{arrhenius5.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius5.K\_300}}{T} \right)^{\mathtt{arrhenius5.b0}} ~ P ~ \mathtt{arrhenius5.A} ~ \mathtt{arrhenius5.a0} ~ \mathtt{arrhenius5.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius5.c0}}{T}}}{T ~ \mathtt{arrhenius5.R}} \\ \mathtt{arrhenius6.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius6.K\_300}}{T} \right)^{\mathtt{arrhenius6.b0}} ~ P ~ \mathtt{arrhenius6.A} ~ \mathtt{arrhenius6.a0} ~ \mathtt{arrhenius6.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius6.c0}}{T}}}{T ~ \mathtt{arrhenius6.R}} \\ \mathtt{arrhenius7.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius7.K\_300}}{T} \right)^{\mathtt{arrhenius7.b0}} ~ P ~ \mathtt{arrhenius7.A} ~ \mathtt{arrhenius7.a0} ~ \mathtt{arrhenius7.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius7.c0}}{T}}}{T ~ \mathtt{arrhenius7.R}} \\ \mathtt{arr\_3rdbody8.k}\left( t \right) &= \frac{0.6^{\frac{1}{1 + \left( \log_{10}\left( \frac{P ~ \mathtt{arr\_3rdbody8.A} ~ \mathtt{arr\_3rdbody8.alow.k}\left( t \right) ~ \mathtt{arr\_3rdbody8.num\_density\_unit\_inv}}{T ~ \mathtt{arr\_3rdbody8.R} ~ \mathtt{arr\_3rdbody8.ahigh.k}\left( t \right)} \right) \right)^{2}}} ~ P ~ \mathtt{arr\_3rdbody8.A} ~ \mathtt{arr\_3rdbody8.alow.k}\left( t \right) ~ \mathtt{arr\_3rdbody8.num\_density\_unit\_inv}}{T ~ \mathtt{arr\_3rdbody8.R} ~ \left( 1 + \frac{P ~ \mathtt{arr\_3rdbody8.A} ~ \mathtt{arr\_3rdbody8.alow.k}\left( t \right) ~ \mathtt{arr\_3rdbody8.num\_density\_unit\_inv}}{T ~ \mathtt{arr\_3rdbody8.R} ~ \mathtt{arr\_3rdbody8.ahigh.k}\left( t \right)} \right)} \\ \mathtt{arr\_3rdbody8.alow.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arr\_3rdbody8.alow.K\_300}}{T} \right)^{\mathtt{arr\_3rdbody8.alow.b0}} ~ P ~ \mathtt{arr\_3rdbody8.alow.A} ~ \mathtt{arr\_3rdbody8.alow.a0} ~ \mathtt{arr\_3rdbody8.alow.ppb\_unit} ~ e^{\frac{\mathtt{arr\_3rdbody8.alow.c0}}{T}}}{T ~ \mathtt{arr\_3rdbody8.alow.R}} \\ \mathtt{arr\_3rdbody8.ahigh.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arr\_3rdbody8.ahigh.K\_300}}{T} \right)^{\mathtt{arr\_3rdbody8.ahigh.b0}} ~ P ~ \mathtt{arr\_3rdbody8.ahigh.A} ~ \mathtt{arr\_3rdbody8.ahigh.a0} ~ \mathtt{arr\_3rdbody8.ahigh.ppb\_unit} ~ e^{\frac{\mathtt{arr\_3rdbody8.ahigh.c0}}{T}}}{T ~ \mathtt{arr\_3rdbody8.ahigh.R}} \\ \mathtt{arrhenius9.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius9.K\_300}}{T} \right)^{\mathtt{arrhenius9.b0}} ~ P ~ \mathtt{arrhenius9.A} ~ \mathtt{arrhenius9.a0} ~ \mathtt{arrhenius9.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius9.c0}}{T}}}{T ~ \mathtt{arrhenius9.R}} \\ \mathtt{rate\_OHCO10.k}\left( t \right) &= \frac{0.6^{\frac{1}{1 + \left( \log_{10}\left( \frac{P ~ \mathtt{rate\_OHCO10.A} ~ \mathtt{rate\_OHCO10.klo2.k}\left( t \right) ~ \mathtt{rate\_OHCO10.num\_density\_unit\_inv}}{T ~ \mathtt{rate\_OHCO10.R} ~ \mathtt{rate\_OHCO10.khi2.k}\left( t \right)} \right) \right)^{2}}} ~ \mathtt{rate\_OHCO10.klo2.k}\left( t \right)}{1 + \frac{P ~ \mathtt{rate\_OHCO10.A} ~ \mathtt{rate\_OHCO10.klo2.k}\left( t \right) ~ \mathtt{rate\_OHCO10.num\_density\_unit\_inv}}{T ~ \mathtt{rate\_OHCO10.R} ~ \mathtt{rate\_OHCO10.khi2.k}\left( t \right)}} + \frac{0.6^{\frac{1}{1 + \left( \log_{10}\left( \frac{P ~ \mathtt{rate\_OHCO10.A} ~ \mathtt{rate\_OHCO10.klo1.k}\left( t \right) ~ \mathtt{rate\_OHCO10.num\_density\_unit\_inv}}{T ~ \mathtt{rate\_OHCO10.R} ~ \mathtt{rate\_OHCO10.khi1.k}\left( t \right)} \right) \right)^{2}}} ~ P ~ \mathtt{rate\_OHCO10.A} ~ \mathtt{rate\_OHCO10.klo1.k}\left( t \right) ~ \mathtt{rate\_OHCO10.num\_density\_unit\_inv}}{T ~ \mathtt{rate\_OHCO10.R} ~ \left( 1 + \frac{P ~ \mathtt{rate\_OHCO10.A} ~ \mathtt{rate\_OHCO10.klo1.k}\left( t \right) ~ \mathtt{rate\_OHCO10.num\_density\_unit\_inv}}{T ~ \mathtt{rate\_OHCO10.R} ~ \mathtt{rate\_OHCO10.khi1.k}\left( t \right)} \right)} \\ \mathtt{rate\_OHCO10.klo1.k}\left( t \right) &= \frac{\left( \frac{\mathtt{rate\_OHCO10.klo1.K\_300}}{T} \right)^{\mathtt{rate\_OHCO10.klo1.b0}} ~ P ~ e^{\frac{\mathtt{rate\_OHCO10.klo1.c0}}{T}} ~ \mathtt{rate\_OHCO10.klo1.A} ~ \mathtt{rate\_OHCO10.klo1.a0} ~ \mathtt{rate\_OHCO10.klo1.ppb\_unit}}{T ~ \mathtt{rate\_OHCO10.klo1.R}} \\ \mathtt{rate\_OHCO10.khi1.k}\left( t \right) &= \frac{\left( \frac{\mathtt{rate\_OHCO10.khi1.K\_300}}{T} \right)^{\mathtt{rate\_OHCO10.khi1.b0}} ~ P ~ e^{\frac{\mathtt{rate\_OHCO10.khi1.c0}}{T}} ~ \mathtt{rate\_OHCO10.khi1.A} ~ \mathtt{rate\_OHCO10.khi1.a0} ~ \mathtt{rate\_OHCO10.khi1.ppb\_unit}}{T ~ \mathtt{rate\_OHCO10.khi1.R}} \\ \mathtt{rate\_OHCO10.klo2.k}\left( t \right) &= \frac{\left( \frac{\mathtt{rate\_OHCO10.klo2.K\_300}}{T} \right)^{\mathtt{rate\_OHCO10.klo2.b0}} ~ P ~ e^{\frac{\mathtt{rate\_OHCO10.klo2.c0}}{T}} ~ \mathtt{rate\_OHCO10.klo2.A} ~ \mathtt{rate\_OHCO10.klo2.a0} ~ \mathtt{rate\_OHCO10.klo2.ppb\_unit}}{T ~ \mathtt{rate\_OHCO10.klo2.R}} \\ \mathtt{rate\_OHCO10.khi2.k}\left( t \right) &= \frac{\left( \frac{\mathtt{rate\_OHCO10.khi2.K\_300}}{T} \right)^{\mathtt{rate\_OHCO10.khi2.b0}} ~ P ~ e^{\frac{\mathtt{rate\_OHCO10.khi2.c0}}{T}} ~ \mathtt{rate\_OHCO10.khi2.A} ~ \mathtt{rate\_OHCO10.khi2.a0} ~ \mathtt{rate\_OHCO10.khi2.ppb\_unit}}{T ~ \mathtt{rate\_OHCO10.khi2.R}} \\ \mathtt{arrhenius11.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius11.K\_300}}{T} \right)^{\mathtt{arrhenius11.b0}} ~ P ~ \mathtt{arrhenius11.A} ~ \mathtt{arrhenius11.a0} ~ \mathtt{arrhenius11.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius11.c0}}{T}}}{T ~ \mathtt{arrhenius11.R}} \\ \mathtt{arrhenius12.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius12.K\_300}}{T} \right)^{\mathtt{arrhenius12.b0}} ~ P ~ \mathtt{arrhenius12.A} ~ \mathtt{arrhenius12.a0} ~ \mathtt{arrhenius12.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius12.c0}}{T}}}{T ~ \mathtt{arrhenius12.R}} \\ \mathtt{arrhenius13.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius13.K\_300}}{T} \right)^{\mathtt{arrhenius13.b0}} ~ P ~ \mathtt{arrhenius13.A} ~ \mathtt{arrhenius13.a0} ~ \mathtt{arrhenius13.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius13.c0}}{T}}}{T ~ \mathtt{arrhenius13.R}} \\ \mathtt{arrhenius14.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius14.K\_300}}{T} \right)^{\mathtt{arrhenius14.b0}} ~ P ~ \mathtt{arrhenius14.A} ~ \mathtt{arrhenius14.a0} ~ \mathtt{arrhenius14.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius14.c0}}{T}}}{T ~ \mathtt{arrhenius14.R}} \\ \mathtt{arrhenius15.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius15.K\_300}}{T} \right)^{\mathtt{arrhenius15.b0}} ~ P ~ \mathtt{arrhenius15.A} ~ \mathtt{arrhenius15.a0} ~ \mathtt{arrhenius15.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius15.c0}}{T}}}{T ~ \mathtt{arrhenius15.R}} \\ \mathtt{arrhenius16.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius16.K\_300}}{T} \right)^{\mathtt{arrhenius16.b0}} ~ P ~ \mathtt{arrhenius16.A} ~ \mathtt{arrhenius16.a0} ~ \mathtt{arrhenius16.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius16.c0}}{T}}}{T ~ \mathtt{arrhenius16.R}} \\ \mathtt{rateconvert17.k}\left( t \right) &= \frac{P ~ \mathtt{rateconvert17.A} ~ \mathtt{rateconvert17.a0} ~ \mathtt{rateconvert17.ppb\_unit}}{T ~ \mathtt{rateconvert17.R}} \\ \mathtt{arrhenius18.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius18.K\_300}}{T} \right)^{\mathtt{arrhenius18.b0}} ~ P ~ \mathtt{arrhenius18.A} ~ \mathtt{arrhenius18.a0} ~ \mathtt{arrhenius18.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius18.c0}}{T}}}{T ~ \mathtt{arrhenius18.R}} \\ \mathtt{arrhenius19.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius19.K\_300}}{T} \right)^{\mathtt{arrhenius19.b0}} ~ P ~ \mathtt{arrhenius19.A} ~ \mathtt{arrhenius19.a0} ~ \mathtt{arrhenius19.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius19.c0}}{T}}}{T ~ \mathtt{arrhenius19.R}} \\ \mathtt{arrhenius20.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius20.K\_300}}{T} \right)^{\mathtt{arrhenius20.b0}} ~ P ~ \mathtt{arrhenius20.A} ~ \mathtt{arrhenius20.a0} ~ \mathtt{arrhenius20.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius20.c0}}{T}}}{T ~ \mathtt{arrhenius20.R}} \\ \mathtt{arrhenius21.k}\left( t \right) &= \frac{\left( \frac{\mathtt{arrhenius21.K\_300}}{T} \right)^{\mathtt{arrhenius21.b0}} ~ P ~ \mathtt{arrhenius21.A} ~ \mathtt{arrhenius21.a0} ~ \mathtt{arrhenius21.ppb\_unit} ~ e^{\frac{\mathtt{arrhenius21.c0}}{T}}}{T ~ \mathtt{arrhenius21.R}} \end{align} \]
Variables and parameters
The chemical species included in the superfast model are:
vars = unknowns(model)[1:12]
using DataFrames
DataFrame(
:Name => [string(Symbolics.tosymbol(v, escape = false)) for v in vars],
:Units => [ModelingToolkit.get_unit(v) for v in vars],
:Description => [ModelingToolkit.getdescription(v) for v in vars],
:Default => [ModelingToolkit.getdefault(v) for v in vars])| Row | Name | Units | Description | Default |
|---|---|---|---|---|
| String | Quantity… | String | Real | |
| 1 | O3 | 1.0 | 40.0 | |
| 2 | OH | 1.0 | 4.0e-6 | |
| 3 | HO2 | 1.0 | 4.0e-6 | |
| 4 | NO | 1.0 | 0.0004 | |
| 5 | NO2 | 1.0 | 0.0004 | |
| 6 | CH3O2 | 1.0 | 4.0e-6 | |
| 7 | CH2O | 1.0 | 4.0e-6 | |
| 8 | CO | 1.0 | 100 | |
| 9 | CH3OOH | 1.0 | 4.0e-6 | |
| 10 | SO2 | 1.0 | 0.05 | |
| 11 | SO4 | 1.0 | 0.0 | |
| 12 | ISOP | 1.0 | 1.0e-11 |
And here are the parameters:
vars = parameters(model)
DataFrame(
:Name => [string(Symbolics.tosymbol(v, escape = false)) for v in vars],
:Units => [ModelingToolkit.get_unit(v) for v in vars],
:Description => [ModelingToolkit.getdescription(v) for v in vars],
:Default => [ModelingToolkit.getdefault(v) for v in vars])| Row | Name | Units | Description | Default |
|---|---|---|---|---|
| String | Quantity… | String | Real | |
| 1 | jO32OH | 1.0 s⁻¹ | 0.000227 | |
| 2 | jH2O2 | 1.0 s⁻¹ | 1.0097e-5 | |
| 3 | jNO2 | 1.0 s⁻¹ | 0.0149 | |
| 4 | jH2COa | 1.0 s⁻¹ | 0.00014 | |
| 5 | jH2COb | 1.0 s⁻¹ | 0.00014 | |
| 6 | jCH3OOH | 1.0 s⁻¹ | 8.9573e-6 | |
| 7 | T | 1.0 K | Temperature | 280.0 |
| 8 | P | 1.0 m⁻¹ kg s⁻² | Pressure | 101325 |
| 9 | O2 | 1.0 | 2.095e8 | |
| 10 | CH4 | 1.0 | 1700.0 | |
| 11 | H2O | 1.0 | 1.839e7 | |
| 12 | k_cld1 | 1.0 s⁻¹ | in-cloud SO2+H2O2->SO4 rate (from CloudChemistryFixedpH coupling) | 0.0 |
| 13 | LWC_cld | 1.0 m⁻³ kg | grid-mean liquid water content (met-coupled from GEOSFP A3cld QL x rho_air; default 4.5e-5 kg/m3 = prior interim FC*L equivalent). SI-canonical unit (DynamicQuantities scale matching); used in the cloud-reaction rate so the compiler retains it. | 4.5e-5 |
| 14 | inv_LWC_ref | 1.0 m³ kg⁻¹ | 1/(4.5e-5 kg/m^3): normalizes LWC_cld so the default reproduces the prior prescribed-cloud rate | 22222.2 |
| 15 | k_het_N2O5 | 1.0 s⁻¹ | N2O5 hydrolysis uptake (-> 2 HNO3) | 0.0 |
| 16 | k_het_HO2 | 1.0 s⁻¹ | HO2 uptake (HOx sink) | 0.0 |
| 17 | k_het_NO2 | 1.0 s⁻¹ | NO2 uptake (-> HNO3) | 0.0 |
| 18 | k_het_NO3 | 1.0 s⁻¹ | NO3 uptake (-> HNO3) | 0.0 |
| 19 | arrhenius1₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 20 | arrhenius1₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 21 | arrhenius1₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 22 | arrhenius1₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 23 | arrhenius1₊K_300 | 1.0 K | 300 | |
| 24 | arrhenius1₊a0 | 1.0e-6 m³ s⁻¹ | 1.7e-12 | |
| 25 | arrhenius1₊b0 | 1.0 | 0.0 | |
| 26 | arrhenius1₊c0 | 1.0 K | -940.0 | |
| 27 | arrhenius2₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 28 | arrhenius2₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 29 | arrhenius2₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 30 | arrhenius2₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 31 | arrhenius2₊K_300 | 1.0 K | 300 | |
| 32 | arrhenius2₊a0 | 1.0e-6 m³ s⁻¹ | 1.0e-14 | |
| 33 | arrhenius2₊b0 | 1.0 | 0.0 | |
| 34 | arrhenius2₊c0 | 1.0 K | -490.0 | |
| 35 | arrhenius3₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 36 | arrhenius3₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 37 | arrhenius3₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 38 | arrhenius3₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 39 | arrhenius3₊K_300 | 1.0 K | 300 | |
| 40 | arrhenius3₊a0 | 1.0e-6 m³ s⁻¹ | 4.8e-11 | |
| 41 | arrhenius3₊b0 | 1.0 | 0.0 | |
| 42 | arrhenius3₊c0 | 1.0 K | 250.0 | |
| 43 | rate_HO2HO24₊T_0 | 1.0 K | 2200.0 | |
| 44 | rate_HO2HO24₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 45 | rate_HO2HO24₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 46 | rate_HO2HO24₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 47 | rate_HO2HO24₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 48 | rate_HO2HO24₊ppb_inv | 1.0 | 1 | |
| 49 | rate_HO2HO24₊k0₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 50 | rate_HO2HO24₊k0₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 51 | rate_HO2HO24₊k0₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 52 | rate_HO2HO24₊k0₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 53 | rate_HO2HO24₊k0₊K_300 | 1.0 K | 300 | |
| 54 | rate_HO2HO24₊k0₊a0 | 1.0e-6 m³ s⁻¹ | 3.0e-13 | |
| 55 | rate_HO2HO24₊k0₊b0 | 1.0 | 0.0 | |
| 56 | rate_HO2HO24₊k0₊c0 | 1.0 K | 460.0 | |
| 57 | rate_HO2HO24₊k1₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 58 | rate_HO2HO24₊k1₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 59 | rate_HO2HO24₊k1₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 60 | rate_HO2HO24₊k1₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 61 | rate_HO2HO24₊k1₊K_300 | 1.0 K | 300 | |
| 62 | rate_HO2HO24₊k1₊a0 | 1.0e-6 m³ s⁻¹ | 2.1e-33 | |
| 63 | rate_HO2HO24₊k1₊b0 | 1.0 | 0.0 | |
| 64 | rate_HO2HO24₊k1₊c0 | 1.0 K | 920.0 | |
| 65 | arrhenius5₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 66 | arrhenius5₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 67 | arrhenius5₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 68 | arrhenius5₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 69 | arrhenius5₊K_300 | 1.0 K | 300 | |
| 70 | arrhenius5₊a0 | 1.0e-6 m³ s⁻¹ | 1.8e-12 | |
| 71 | arrhenius5₊b0 | 1.0 | 0.0 | |
| 72 | arrhenius5₊c0 | 1.0 K | 0.0 | |
| 73 | arrhenius6₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 74 | arrhenius6₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 75 | arrhenius6₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 76 | arrhenius6₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 77 | arrhenius6₊K_300 | 1.0 K | 300 | |
| 78 | arrhenius6₊a0 | 1.0e-6 m³ s⁻¹ | 3.0e-12 | |
| 79 | arrhenius6₊b0 | 1.0 | 0.0 | |
| 80 | arrhenius6₊c0 | 1.0 K | -1500.0 | |
| 81 | arrhenius7₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 82 | arrhenius7₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 83 | arrhenius7₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 84 | arrhenius7₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 85 | arrhenius7₊K_300 | 1.0 K | 300 | |
| 86 | arrhenius7₊a0 | 1.0e-6 m³ s⁻¹ | 3.3e-12 | |
| 87 | arrhenius7₊b0 | 1.0 | 0.0 | |
| 88 | arrhenius7₊c0 | 1.0 K | 270.0 | |
| 89 | arr_3rdbody8₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 90 | arr_3rdbody8₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 91 | arr_3rdbody8₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 92 | arr_3rdbody8₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 93 | arr_3rdbody8₊alow₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 94 | arr_3rdbody8₊alow₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 95 | arr_3rdbody8₊alow₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 96 | arr_3rdbody8₊alow₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 97 | arr_3rdbody8₊alow₊K_300 | 1.0 K | 300 | |
| 98 | arr_3rdbody8₊alow₊a0 | 1.0e-6 m³ s⁻¹ | 1.8e-30 | |
| 99 | arr_3rdbody8₊alow₊b0 | 1.0 | 3.0 | |
| 100 | arr_3rdbody8₊alow₊c0 | 1.0 K | 0.0 | |
| 101 | arr_3rdbody8₊ahigh₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 102 | arr_3rdbody8₊ahigh₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 103 | arr_3rdbody8₊ahigh₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 104 | arr_3rdbody8₊ahigh₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 105 | arr_3rdbody8₊ahigh₊K_300 | 1.0 K | 300 | |
| 106 | arr_3rdbody8₊ahigh₊a0 | 1.0e-6 m³ s⁻¹ | 2.8e-11 | |
| 107 | arr_3rdbody8₊ahigh₊b0 | 1.0 | 0.0 | |
| 108 | arr_3rdbody8₊ahigh₊c0 | 1.0 K | 0.0 | |
| 109 | arrhenius9₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 110 | arrhenius9₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 111 | arrhenius9₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 112 | arrhenius9₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 113 | arrhenius9₊K_300 | 1.0 K | 300 | |
| 114 | arrhenius9₊a0 | 1.0e-6 m³ s⁻¹ | 2.45e-12 | |
| 115 | arrhenius9₊b0 | 1.0 | 0.0 | |
| 116 | arrhenius9₊c0 | 1.0 K | -1775.0 | |
| 117 | rate_OHCO10₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 118 | rate_OHCO10₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 119 | rate_OHCO10₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 120 | rate_OHCO10₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 121 | rate_OHCO10₊ppb_inv | 1.0 | 1 | |
| 122 | rate_OHCO10₊klo1₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 123 | rate_OHCO10₊klo1₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 124 | rate_OHCO10₊klo1₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 125 | rate_OHCO10₊klo1₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 126 | rate_OHCO10₊klo1₊K_300 | 1.0 K | 300 | |
| 127 | rate_OHCO10₊klo1₊a0 | 1.0e-6 m³ s⁻¹ | 5.9e-33 | |
| 128 | rate_OHCO10₊klo1₊b0 | 1.0 | 1 | |
| 129 | rate_OHCO10₊klo1₊c0 | 1.0 K | 0 | |
| 130 | rate_OHCO10₊khi1₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 131 | rate_OHCO10₊khi1₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 132 | rate_OHCO10₊khi1₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 133 | rate_OHCO10₊khi1₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 134 | rate_OHCO10₊khi1₊K_300 | 1.0 K | 300 | |
| 135 | rate_OHCO10₊khi1₊a0 | 1.0e-6 m³ s⁻¹ | 1.1e-12 | |
| 136 | rate_OHCO10₊khi1₊b0 | 1.0 | -1.3 | |
| 137 | rate_OHCO10₊khi1₊c0 | 1.0 K | 0 | |
| 138 | rate_OHCO10₊klo2₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 139 | rate_OHCO10₊klo2₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 140 | rate_OHCO10₊klo2₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 141 | rate_OHCO10₊klo2₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 142 | rate_OHCO10₊klo2₊K_300 | 1.0 K | 300 | |
| 143 | rate_OHCO10₊klo2₊a0 | 1.0e-6 m³ s⁻¹ | 1.5e-13 | |
| 144 | rate_OHCO10₊klo2₊b0 | 1.0 | 0 | |
| 145 | rate_OHCO10₊klo2₊c0 | 1.0 K | 0 | |
| 146 | rate_OHCO10₊khi2₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 147 | rate_OHCO10₊khi2₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 148 | rate_OHCO10₊khi2₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 149 | rate_OHCO10₊khi2₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 150 | rate_OHCO10₊khi2₊K_300 | 1.0 K | 300 | |
| 151 | rate_OHCO10₊khi2₊a0 | 1.0e-6 m³ s⁻¹ | 2.1e9 | |
| 152 | rate_OHCO10₊khi2₊b0 | 1.0 | -6.1 | |
| 153 | rate_OHCO10₊khi2₊c0 | 1.0 K | 0 | |
| 154 | arrhenius11₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 155 | arrhenius11₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 156 | arrhenius11₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 157 | arrhenius11₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 158 | arrhenius11₊K_300 | 1.0 K | 300 | |
| 159 | arrhenius11₊a0 | 1.0e-6 m³ s⁻¹ | 5.5e-12 | |
| 160 | arrhenius11₊b0 | 1.0 | 0.0 | |
| 161 | arrhenius11₊c0 | 1.0 K | 125.0 | |
| 162 | arrhenius12₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 163 | arrhenius12₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 164 | arrhenius12₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 165 | arrhenius12₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 166 | arrhenius12₊K_300 | 1.0 K | 300 | |
| 167 | arrhenius12₊a0 | 1.0e-6 m³ s⁻¹ | 4.1e-13 | |
| 168 | arrhenius12₊b0 | 1.0 | 0.0 | |
| 169 | arrhenius12₊c0 | 1.0 K | 750.0 | |
| 170 | arrhenius13₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 171 | arrhenius13₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 172 | arrhenius13₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 173 | arrhenius13₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 174 | arrhenius13₊K_300 | 1.0 K | 300 | |
| 175 | arrhenius13₊a0 | 1.0e-6 m³ s⁻¹ | 2.66e-12 | |
| 176 | arrhenius13₊b0 | 1.0 | 0.0 | |
| 177 | arrhenius13₊c0 | 1.0 K | 200.0 | |
| 178 | arrhenius14₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 179 | arrhenius14₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 180 | arrhenius14₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 181 | arrhenius14₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 182 | arrhenius14₊K_300 | 1.0 K | 300 | |
| 183 | arrhenius14₊a0 | 1.0e-6 m³ s⁻¹ | 1.14e-12 | |
| 184 | arrhenius14₊b0 | 1.0 | 0.0 | |
| 185 | arrhenius14₊c0 | 1.0 K | 200.0 | |
| 186 | arrhenius15₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 187 | arrhenius15₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 188 | arrhenius15₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 189 | arrhenius15₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 190 | arrhenius15₊K_300 | 1.0 K | 300 | |
| 191 | arrhenius15₊a0 | 1.0e-6 m³ s⁻¹ | 2.8e-12 | |
| 192 | arrhenius15₊b0 | 1.0 | 0.0 | |
| 193 | arrhenius15₊c0 | 1.0 K | 300.0 | |
| 194 | arrhenius16₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 195 | arrhenius16₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 196 | arrhenius16₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 197 | arrhenius16₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 198 | arrhenius16₊K_300 | 1.0 K | 300 | |
| 199 | arrhenius16₊a0 | 1.0e-6 m³ s⁻¹ | 9.5e-14 | |
| 200 | arrhenius16₊b0 | 1.0 | 0.0 | |
| 201 | arrhenius16₊c0 | 1.0 K | 390.0 | |
| 202 | rateconvert17₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 203 | rateconvert17₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 204 | rateconvert17₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 205 | rateconvert17₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 206 | rateconvert17₊a0 | 1.0e-6 m³ s⁻¹ | 4.0e-24 | |
| 207 | arrhenius18₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 208 | arrhenius18₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 209 | arrhenius18₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 210 | arrhenius18₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 211 | arrhenius18₊K_300 | 1.0 K | 300 | |
| 212 | arrhenius18₊a0 | 1.0e-6 m³ s⁻¹ | 2.7e-11 | |
| 213 | arrhenius18₊b0 | 1.0 | 0.0 | |
| 214 | arrhenius18₊c0 | 1.0 K | 390.0 | |
| 215 | arrhenius19₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 216 | arrhenius19₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 217 | arrhenius19₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 218 | arrhenius19₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 219 | arrhenius19₊K_300 | 1.0 K | 300 | |
| 220 | arrhenius19₊a0 | 1.0e-6 m³ s⁻¹ | 2.7e-11 | |
| 221 | arrhenius19₊b0 | 1.0 | 0.0 | |
| 222 | arrhenius19₊c0 | 1.0 K | 390.0 | |
| 223 | arrhenius20₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 224 | arrhenius20₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 225 | arrhenius20₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 226 | arrhenius20₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 227 | arrhenius20₊K_300 | 1.0 K | 300 | |
| 228 | arrhenius20₊a0 | 1.0e-6 m³ s⁻¹ | 2.7e-11 | |
| 229 | arrhenius20₊b0 | 1.0 | 0.0 | |
| 230 | arrhenius20₊c0 | 1.0 K | 390.0 | |
| 231 | arrhenius21₊A | 1.0 mol⁻¹ | Avogadro's number | 6.02e23 |
| 232 | arrhenius21₊R | 1.0e-6 m² kg s⁻² K⁻¹ mol⁻¹ | universal gas constant | 8.314e6 |
| 233 | arrhenius21₊ppb_unit | 1.0 | mol/mol_air per ppb | 1.0e-9 |
| 234 | arrhenius21₊num_density_unit_inv | 1.0e-6 m³ | multiply by num_density to obtain the unitless value of num_density | 1 |
| 235 | arrhenius21₊K_300 | 1.0 K | 300 | |
| 236 | arrhenius21₊a0 | 1.0e-6 m³ s⁻¹ | 5.59e-15 | |
| 237 | arrhenius21₊b0 | 1.0 | 0.0 | |
| 238 | arrhenius21₊c0 | 1.0 K | -1814.0 |
Running simulations
We can run simulations with the model, optionally changing the initial conditions and parameters. For example, we can change the initial concentration of O₃ to 15 ppb and the temperature to 293K:
sys = mtkcompile(model)
tspan = (0.0, 3600*24)
# Change the initial concentration of O₃ to 15 ppb and the temperature to 293K.
prob = ODEProblem(sys, [sys.O3 => 15], tspan, [sys.T => 293])ODEProblem with uType Vector{Float64} and tType Float64. In-place: true
Initialization status: FULLY_DETERMINED
Non-trivial mass matrix: false
timespan: (0.0, 86400.0)
u0: 19-element Vector{Float64}:
0.0
0.0
0.0
0.0
0.1
4.0e-6
4.0e-6
1.0e-11
0.0
0.05
4.0e-6
100.0
4.0e-6
4.0e-6
0.0004
0.0004
4.0e-6
4.0e-6
15.0Now we can solve the system and plot the result:
sol = solve(prob, Rosenbrock23(), saveat = 10.0)
plot(sol, ylim = (0, 50), xlabel = "Time",
ylabel = "Concentration (ppb)", legend = :outerright)Finally let's run some simulations with different values for parameter T.
sol1 = solve(ODEProblem(sys, [], tspan, [sys.T => 273]),
Rosenbrock23(), saveat = 10.0)
sol2 = solve(ODEProblem(sys, [], tspan, [sys.T => 298]),
Rosenbrock23(), saveat = 10.0)
plot([sol1[sys.O3], sol2[sys.O3]], label = ["T=273K" "T=298K"],
title = "Change of O3 concentration at different temperatures",
xlabel = "Time (second)", ylabel = "concentration (ppb)")