We found a match
Your institution may have access to this item. Find your institution then sign in to continue.
- Title
SolveSAPHE-r2 (v2.0.1): revisiting and extending the Solver Suite for Alkalinity-PH Equations for usage with CO2, HCO3-or CO32- input data.
- Authors
Munhoven, Guy
- Abstract
The successful and efficient approach at the basis of the Solver Suite for Alkalinity-PH Equations (SolveSAPHE) , which determines the carbonate system speciation by calculating pH from total alkalinity (Alk T) and dissolved inorganic carbon (CT), and which converges for any physically sensible pair of such data, has been adapted and further developed to work with Alk T – CO2 , Alk T – HCO3- , and Alk T – CO32-. The mathematical properties of the three modified alkalinity–pH equations are explored. It is shown that the Alk T – CO2 , and Alk T – HCO3- problems have one and only one positive root for any physically sensible pair of data (i.e. such that [CO2]>0 and [HCO3-]>0). The space of Alk T – CO32- pairs is partitioned into regions where there is either no solution, one solution or where there are two. The numerical solution of the modified alkalinity–pH equations is far more demanding than that for the original Alk T – CT pair as they exhibit strong gradients and are not always monotonous. The two main algorithms used in SolveSAPHE v1 have been revised in depth to reliably process the three additional data input pairs. The Alk T – CO2 pair is numerically the most challenging. With the Newton–Raphson-based solver, it takes about 5 times as long to solve as the companion Alk T – CT pair; the Alk T – CO32- pair requires on average about 4 times as much time as the Alk T – CT pair. All in all, the secant-based solver offers the best performance. It outperforms the Newton–Raphson-based one by up to a factor of 4 in terms of average numbers of iterations and execution time and yet reaches equation residuals that are up to 7 orders of magnitude lower. Just like the pH solvers from the v1 series, SolveSAPHE-r2 includes automatic root bracketing and efficient initialisation schemes for the iterative solvers. For Alk T – CO32- data pairs, it also determines the number of roots and calculates non-overlapping bracketing intervals. An open-source reference implementation of the new algorithms in Fortran 90 is made publicly available for usage under the GNU Lesser General Public Licence version 3 (LGPLv3) or later.
- Subjects
CARBON dioxide; MAGNITUDE (Mathematics); EQUATIONS; FORTRAN; ALKALINITY
- Publication
Geoscientific Model Development, 2021, Vol 14, Issue 7, p4225
- ISSN
1991-959X
- Publication type
Article
- DOI
10.5194/gmd-14-4225-2021