Calculate a single specified stoichiometric equilibrium constant at given temperature, salinity, pressure and the concentration of magnesium, calcium, sulphate, and fluorine.
calc_K(
k,
temp_c = 25,
sal = 35,
p_bar = NULL,
magnesium = 0.0528171,
calcium = 0.0102821,
sulphate = NULL,
fluorine = NULL,
method = "r_polynomial"
)calc_Ks(
ks = NULL,
temp_c = 25,
sal = 35,
p_bar = NULL,
magnesium = 0.0528171,
calcium = 0.0102821,
sulphate = NULL,
fluorine = NULL,
method = "r_polynomial"
)
calc_all_Ks(
temp_c = 25,
sal = 35,
p_bar = NULL,
magnesium = 0.0528171,
calcium = 0.0102821,
sulphate = NULL,
fluorine = NULL,
method = "r_polynomial"
)
A single K at given conditions
Data.table of multiple Ks at given conditions
Data.table of all Ks at given conditions
K to be calculated
Temperature (Celcius)
Salinity
Pressure (Bar) (optional)
magnesium concentration in mol/kgsw. If None, modern is assumed (0.0528171). Should be the average magnesium concentration in seawater - a salinity correction is then applied to calculate the magnesium concentration in the sample.
calcium concentration in mol/kgsw. If None, modern is assumed (0.0102821). Should be the average calcium concentration in seawater - a salinity correction is then applied to calculate the magnesium concentration in the sample.
Sulphate concentration in mol/kgsw. Calculated from salinity if not given.
Fluorine concentration in mol/kgsw. Calculated from salinity if not given.
string describing method which should be either 'myami', 'myami_polynomial', or 'r_polynomial' (Default: 'r_polynomial').
character vectors of Ks to be calculated e.g., c("K0", "K1") (Default: NULL, calculate all Ks)
calc_Ks()
: Wrapper to calculate multiple stoichiometric equilibrium constants at given temperature, salinity, pressure and the concentration of magnesium, calcium, sulphate, and fluorine.
calc_all_Ks()
: Wrapper to calculate all stoichiometric equilibrium constants at given temperature, salinity, pressure and the concentration of magnesium, calcium, sulphate, and fluorine.
Dennis Mayk