eq_sol: Calculate equilibrium solubility on a grid of input values

View source: R/eq_sol.R

eq_solR Documentation

Calculate equilibrium solubility on a grid of input values

Description

Calculate equilibrium solubility on a grid of input values

Usage

eq_sol(
  ph,
  dic,
  chloride = 0,
  sulfate = 0,
  phosphate = 0,
  phase,
  element,
  db = pbcu2sol,
  empirical = FALSE,
  print = NULL,
  ...
)

pb_sol(..., element = "Pb")

cu_sol(..., element = "Cu")

Arguments

ph

A vector of pH values.

dic

A vector of dissolved inorganic carbon (DIC) concentrations, in mg C/L.

chloride

A vector of chloride concentrations, in mg/L.

sulfate

A vector of sulfate concentrations, in mg SO4/L.

phosphate

A vector of orthophosphate concentrations, in mg P/L.

phase

Equilibrium phase.

element

An element to return the equilibrium concentration of.

db

The database to use for equilibrium solubility computations. The default is pbcusol:::pbcu2sol

empirical

Logical. Predict equilibrium copper solubility using the empirical model due to Lytle et al. https://doi.org/10.1002/awwa.1109?

print

Choose whether to print the input file ("input"), the full output ("output"), or the selected output. Default is the latter.

...

Arguments passed on to phr_solution_list()

Value

A tibble with the input grid of pH and DIC values and the solubilty predictions.

Functions

  • pb_sol(): Shorthand for eq_sol() with element = "Pb". For backwards compatibility.

  • cu_sol(): Shorthand for eq_sol() with element = "Cu". For backwards compatibility.

Examples

eq_sol(element = "Pb", ph = 7.5, dic = 5, phase = "Cerussite")
eq_sol(element = "Pb", ph = 7.5, dic = 5, db = phreeqc::minteq.v4.dat, phase = "Cerussite")
eq_sol(element = "Cu", ph = 7.5, dic = 5, phase = "Tenorite")
eq_sol(element = "Cu", ph = 7.5, dic = 5, db = phreeqc::minteq.v4.dat, phase = "Tenorite")
eq_sol(element = "Cu", 7.5, 5, phosphate = 1, empirical = TRUE)

bentrueman/pbcusol documentation built on Oct. 20, 2023, 4:08 p.m.