init: Determines initial conditions from initial inputs

View source: R/methanogenesis.R

initR Documentation

Determines initial conditions from initial inputs

Description

'init()' sets up the initial environment to be used by the methanogenesis model.

Usage

init(
  CH4.initial,
  K.CH4,
  H2.initial,
  K.H2,
  DIC.initial,
  pH.initial,
  K.CO2,
  temperature,
  VolumeSolution,
  VolumeHeadspace,
  inoculum.cell.number,
  biomass.yield,
  carbon.fraction,
  cell.weight,
  K.CO2HCO3,
  K.HCO3CO3
)

Arguments

CH4.initial

Concentration of initial dissolved CH4, in molarity.

K.CH4

Henry's constant for CH4. NA by default (calculated by CHNOSZ).

H2.initial

Concentration of initial dissolved H2, in molarity.

K.H2

Henry's constant for H2. NA by default (calculated by CHNOSZ).

DIC.initial

Concentration of initial dissolved inorganic carbon, in molarity.

pH.initial

initial pH.

K.CO2

Henry's constant for CH4. NA by default (calculated by CHNOSZ).

temperature

Temperature of the system, in Kelvin.

VolumeSolution

Volume of liquid in the closed system, in liters.

VolumeHeadspace

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

inoculum.cell.number

Initial number of cells. 1e6 by default.

biomass.yield

mass of dry biomass produced per mol of product. 2.4 g/mol product by default.

carbon.fraction

w/w percent C of biomass, expressed as a decimal. 0.44 by default.

cell.weight

individual cell mass, in grams. 30e-15 by default.

K.CO2HCO3

Equilibrium constant for the dissociation of CO2(aq) to HCO3-(aq). NA by default (calculated by CHNOSZ).

K.HCO3CO3

Equilibrium constant for the dissociation of HCO3- (aq) to CO3– (aq). NA by default (calculated by CHNOSZ).

Value

A data frame to be used for the methanogenesis function.


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