pH: Calculates pH of the solution

View source: R/pH.R

pHR Documentation

Calculates pH of the solution

Description

‘pH()' Uses the calculate_closed_system_pH function from Sebastian Kopf’s microbialkitchen R package to calculate pH.

Usage

pH(
  nDIC,
  VolumeSolution,
  VolumeHeadspace,
  temperature,
  alkalinity,
  K.CO2HCO3,
  K.HCO3CO3
)

Arguments

nDIC

Moles of dissolved inorganic carbon

VolumeSolution

Volume of liquid in the closed system, in liters.

VolumeHeadspace

Volume of gaseous head space in the closed system, in liters.

temperature

Temperature of the system, in Kelvin.

alkalinity

initial alkalinity of the system, in millimolar.

K.CO2HCO3

Equilibrium constant for the dissociation of CO2(aq) to HCO3-(aq).

K.HCO3CO3

Equilibrium constant for the dissociation of HCO3- (aq) to CO3– (aq).

Value

pH of the solution.


hoehler-labgroup/Methanogen_Package documentation built on April 25, 2022, 11:40 a.m.