runToEquilibrium: Run to equilibrium with proscribed surface mineral input

View source: R/runToEquilibrium.R

runToEquilibriumR Documentation

Run to equilibrium with proscribed surface mineral input

Description

Repeatedly add new cohorts to a soil profile until the oldest layers are not significantly different AND the oldest layer are above some minimum age, within some upper bound of soil age.

Usage

runToEquilibrium(
  minAge = 50,
  maxAge = 12000,
  minDepth,
  recordEvolution = FALSE,
  relTol = 1e-06,
  absTol = 1e-08,
  ...
)

Arguments

minAge

run the model for at least these many years

maxAge

do not run the model for longer then these many years

minDepth

run the model to create a profile at least this deep

recordEvolution

a boolean flag to record how the equilibrium profile evolves

relTol

stop the evolution if the relative difference between the two oldest cohorts is less then this

absTol

stop the evolution if the absolute difference between the two oldest cohorts is less then this

...

arguments to be passed to addCohort

Value

a data frame by age cohort with the layer top and bottom depths, age, and mass of the fast organic, slow organic, mineral, and root biomass pools OR a list that is a record of age cohorts


tilbud/rCTM documentation built on Jan. 27, 2024, 8:44 a.m.