EGU23-7812
https://doi.org/10.5194/egusphere-egu23-7812
EGU General Assembly 2023
© Author(s) 2023. This work is distributed under
the Creative Commons Attribution 4.0 License.

HETV2: An update the vectorized inorganic chemistry solver HETV to include Na+-Cl--Ca2+-K+-Mg2+ in the metastable state option based on ISORROPIA II algorithms

Stefan Miller, Paul Makar, and Colin Lee
Stefan Miller et al.
  • Environment and Climate Change Canada, Science & Technology Branch, Atmospheric Science and Technology Directorate, Air Quality Research Division, Air Quality Modelling and Integration Section, Toronto, Canada (stefan.miller@ec.gc.ca; paul.makar@ec.gc.ca)

Inorganic heterogeneous chemistry (the reactions taking place between inorganic components of the gas-particle system) is one of the most complex and computationally demanding parts of atmospheric chemistry models. Accurate and highly computationally efficient algorithms for carrying out these calculations are essential for these models. Here we present a revised and updated approach for carrying out these calculations, called HETV2.

HETV2 updates the original HETV metastable state subroutines (Makar et al., 2003) expanding the aerosol system to include base cations (Mg2+, K+, Ca2+, Na+), and partitioning between chlorine, ammonium, and nitrate ions and HCl, NH3 and HNO3 gases. HETV2 is based on the algorithms of ISORROPIA II (Fountoukis and Nenes, 2007), with several key improvements for accuracy and computational efficiency of the calculations. First, the accuracy and stability of polynomial roots have been improved by using a Taylor series expansion of the quadratic formula, for times when the coefficients differ by orders of magnitude. Second, the new algorithms in HETV2 enforce mass conservation for cases where all species are present and the ratio of total base cations to sulfate is between 1.0 and 2.0. Third, the code has been optimized using a “vectorization by gridpoint” approach, allowing a single call to each subroutine for n sets of input conditions, reducing the subroutine call factor overhead. Fourth, the code has been optimized to remove unnecessary calculations, and the programming language has been updated from Fortran 77 to Fortran 90. Fifth, all subroutines that require bisection to obtain an equilibrium solution (i.e., the ‘major systems’) have had their root-finding method updated to the ‘Interpolate, Truncate and Project (ITP)’ method (Oliveria et al., 2021); the ITP method can obtain superlinear convergence, and therefore may significantly reduce the number of iterations, and hence the computational time, required to obtain the same result as ISORROPIA II. The new algorithms significantly improve both the computational speed and accuracy for inorganic heterogeneous chemistry calculations relative to ISORROPIA II. In this talk, we will describe the inorganic heterogeneous chemistry systems that are solved, the improvements to the algorithms, and compare the computational speed of ISORROPIA II to the new HETV2 code (depending on the chemical subspace examined, the new code is up to 2x faster than ISORROPIA II).

References                                                                                                

Fountoukis, C., & Nenes, A., 2007. ISORROPIA II: A computationally efficient thermodynamic equilibrium model for Aerosols. Atmospheric Chemistry and Physics, 7(17), 4639–4659.

Makar, P. A., Bouchet, V. S., & Nenes, A., 2003. Inorganic Chemistry calculations using HETV—a vectorized solver for the SO42−–NO3–NH4+ system based on the ISORROPIA algorithms. Atmospheric Environment, 37(16), 2279–2294.

Oliveira, I. F., & Takahashi, R. H., 2021. An enhancement of the bisection method average performance preserving Minmax optimality. ACM Transactions on Mathematical Software, 47(1), 1–24.

How to cite: Miller, S., Makar, P., and Lee, C.: HETV2: An update the vectorized inorganic chemistry solver HETV to include Na+-Cl--Ca2+-K+-Mg2+ in the metastable state option based on ISORROPIA II algorithms, EGU General Assembly 2023, Vienna, Austria, 24–28 Apr 2023, EGU23-7812, https://doi.org/10.5194/egusphere-egu23-7812, 2023.