K\_HF

Share:

Description

PUBLIC function: calculates the dissociation constant of HF

Usage

1
K_HF(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

"dickson" or "perez": specifies the S, t, dependency to be used. Default is "dickson". (see section below for references)

khso4

S, t relation for K\_HSO4 needed for scale conversion: either "dickson" (default, Dickson1990) or "khoo" (Khoo1977)

Value

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

Author(s)

Andreas F. Hofmann. Maintained by Karline Soetaert (Karline.Soetaert@nioz.nl).

References

khf = "dickson": Dickson1979a, Dickson1987, Roy1993b, DOE1994, Millero1995, Zeebe2001; khf = "perez": Perez1987

Examples

1
2
3
K_HF(35, 15)
K_HF(35, 15, 10)
plot(K_HF(35, 1:25), xlab="temperature / degC")