Last data update: 2014.03.03

R: K_HF
K_HFR Documentation

K_HF

Description

PUBLIC function: calculates the dissociation constant of HF

Usage

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 (a.hofmann@nioo.knaw.nl)

References

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

Examples

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AquaEnv)
Loading required package: minpack.lm
Loading required package: deSolve

Attaching package: 'deSolve'

The following object is masked from 'package:graphics':

    matplot

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AquaEnv/K_HF.Rd_%03d_medium.png", width=480, height=480)
> ### Name: K_HF
> ### Title: K_HF
> ### Aliases: K_HF
> ### Keywords: misc
> 
> ### ** Examples
> 
> K_HF(35, 15)
[1] 0.002846489
attr(,"unit")
[1] "mol/kg-soln"
attr(,"pH scale")
[1] "free"
> K_HF(35, 15, 10)
[1] 0.002858528
attr(,"unit")
[1] "mol/kg-soln"
attr(,"pH scale")
[1] "free"
> plot(K_HF(35, 1:25), xlab="temperature / degC")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>