Learn R Programming

AquaEnv (version 1.0-4)

K_H3PO4: K\_H3PO4

Description

PUBLIC function: calculates the dissociation constant of H3PO4

Usage

K_H3PO4(S, t, p=0, SumH2SO4=NULL, SumHF=NULL, khf="dickson", khso4="dickson")

Arguments

S
salinity in practical salinity units (i.e. no unit)
t
temperature in degrees centigrade
p
gauge pressure (total pressure minus atmospheric pressure) in bars
SumH2SO4
total sulfate concentration in mol/kg-solution (calculated from S if not supplied)
SumHF
total fluoride concentration in mol/kg-solution (calculated from S if not supplied)
khf
S, t relation for K\_HF needed for scale conversion: either "dickson" (default, Dickson1979a) or "perez" (Perez1987a)
khso4
S, t relation for K\_HSO4 needed for scale conversion: either "dickson" (default, Dickson1990) or "khoo" (Khoo1977)

Value

the dissociation constant of H3PO4 in mol/kg-solution on the free proton pH scale

References

Millero1995 (original, SWS pH version), DOE1994 (in a later revision cites Millero1995)

Examples

Run this code
K_H3PO4(35, 15)
K_H3PO4(35, 15, 10)
K_H3PO4(S=35, t=15, p=10, SumH2SO4=0.03)
plot(K_H3PO4(35, 1:25), xlab="temperature / degC")

Run the code above in your browser using DataLab