Solver Suite for Alkalinity-PH Equations.
solveSAPHE
SOLVEr Suite for Alkalinity-PH Equations
In 2013, Guy Munhoven at Université de Liège, in Belgium, developped this solver in FORTRAN 90, as is presented in his paper:
- Munhoven, G.: Mathematics of the total alkalinity–pH equation — pathway to robust and universal solution algorithms: the SolveSAPHE package v1.0.1, Geosci. Model Dev., 2013.
In 2020, J.M. Epitalon, on order from J.P Gattuso, translated into a R package in order to be used by J.P. Gattuso's package 'seacarb'.
This program is provided free under the GNU General Public License (GNU GPL). It will be improved using the comments that I will receive. If you are new to R, please check the manuals and FAQs available on the R-project web site to get information on how to install R and the solveSAPHE package on your system. Please only report and comment on solveSAPHE, not on general problems related to R.
Briefly, after installing R and if you have an Internet connection, here is the simplest way to install solveSAPHE:
- Launch R
- To install solveSAPHE (to be done only once), type the following command: install.packages("solveSAPHE")
- To load the solveSAPHE package into memory in order to use it (to be done each time R is launched), type the following command: library(solveSAPHE)
The solveSAPHE package can be downloaded from the Comprehensive R Archive Network (CRAN; see link below). The documentation is included in the package and is accessible using standard R commands. Please give due credit to the publications mentioned above and cite solveSAPHE as follows:
Munhoven G., Epitalon J.-M. solveSAPHE: SOLVEr Suite for Alkalinity-PH Equations. R package version 2.1.0. http://CRAN.R-project.org/package=solveSAPHE.