Description Usage Arguments See Also Examples
View source: R/phreeqc_input_helpers.R
Define a solution/surface species
1 2 3 4 5 | phr_solution_species(reaction, log_k = NULL, delta_h = NULL,
analytical_expression = NULL, ...)
phr_surface_species(reaction, log_k = NULL, delta_h = NULL,
analytical_expression = NULL, ...)
|
reaction |
The formation reaction of the species, e.g.: |
log_k |
The equilibrium coefficient of the reaction at 25 degrees C.
Alternatively can be specified for all temperatures using
|
delta_h |
The enthalpy of reaction, in kJ/mol (or with defined units).
Used to determine the temperature dependence of K according to the
Van't-Hoff equation, if |
analytical_expression |
Identifier for coefficients for an analytical
expression for the temperature dependence of log K. Must be a vector of six
numeric values: |
... |
Further arguments in the input block A |
https://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/phreeqc3-html/phreeqc3-43.htm https://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/html/final-62.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # default units are kJ/mol for log_k
sp1 <- phr_solution_species("CO3-2 + H+ = HCO3-", log_k = 10.329, delta_h = -14.899)
# can also specify units
sp2 <- phr_solution_species("CO3-2 + H+ = HCO3-", log_k = 10.329, delta_h = "-3.561 kcal")
# log_k can also be specified through an analytical expression
sp3 <- phr_solution_species(
"CO3-2 + H+ = HCO3-",
analytical_expression = c(107.8871, 0.03252849, -5151.79, -38.92561, 563713.9, 0)
)
list(kJ = sp1, kcal = sp2, analytic = sp3, default = NULL) %>%
lapply(
phr_run,
phr_solution("C" = "1 as CO3-2", temp = 90, units = "mol/L"),
phr_selected_output(activities = "HCO3-")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.