Learn R Programming

biogas (version 1.0.1)

calcCOD: Calculate COD'

Description

calcCOD is used to calculate the oxygen demand ('calculated oxygen demand', or COD' as described by Rittmann and McCarty (2001)) of a compound.

Usage

calcCOD(form)

Arguments

form
a chemical formula, as a character vector of length one, e.g., "C6H12O6" for glucose or "CH3COOH" for acetic acid. Not case-sensitive for single letter elements (see 'Details').

Value

  • A numeric vector with COD' per g of compound.

concept

  • chemical oxygen demand
  • biogas

Details

Based on Eqs. (2.2) and (2.3) in Rittmann and McCarty (2001) (p 128), but using molar mass calculated with molMass. calcCOD is not case-sensitive as long as all elements have single letter abbreviations.

References

Rittmann, B., McCarty, P. 2001 Environmental Biotechnology. McGraw-Hill.

See Also

molMass, predBg

Examples

Run this code
calcCOD("C6H12O6")
  calcCOD("CH3COOH")
  calcCOD("CH3CH2OH")
  calcCOD("CH4")
  calcCOD("ch4")

Run the code above in your browser using DataLab