79: Implementation of a one-pool C14 model

Description Usage Arguments Value Author(s) See Also Examples

Description

This function creates a model for one pool. It is a wrapper for the more general function GeneralModel_14.

Usage

1
2
OnepModel14(t, k, C0, F0_Delta14C, In, xi = 1, inputFc, lambda = -0.0001209681, 
    lag = 0, solver = deSolve.lsoda.wrapper, pass = FALSE)

Arguments

t

A vector containing the points in time where the solution is sought. It must be specified within the same period for which the Delta 14 C of the atmosphere is provided. The default period in the provided dataset C14Atm_NH is 1900-2010.

k

A scalar with the decomposition rate of the pool.

C0

A scalar containing the initial amount of carbon in the pool.

F0_Delta14C

A scalar containing the initial amount of the radiocarbon fraction in the pool in Delta_14C format.

In

A scalar or a data.frame object specifying the amount of litter inputs by time.

xi

A scalar or a data.frame specifying the external (environmental and/or edaphic) effects on decomposition rates.

inputFc

A Data Frame object consisting of a function describing the fraction of C_14 in per mille. The first column will be assumed to contain the times.

lambda

Radioactive decay constant. By default lambda=-0.0001209681 y^-1 . This has the side effect that all your time related data are treated as if the time unit was year.

lag

A (positive) scalar representing a time lag for radiocarbon to enter the system.

solver

A function that solves the system of ODEs. This can be euler or ode or any other user provided function with the same interface.

pass

if TRUE Forces the constructor to create the model even if it is invalid

Value

A Model Object that can be further queried

Author(s)

Carlos A. Sierra <[email protected]>, Markus Mueller <[email protected]>

See Also

OnepModel, TwopParallelModel14, TwopFeedbackModel14

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
years=seq(1901,2009,by=0.5)
LitterInput=700 

Ex=OnepModel14(t=years,k=1/10,C0=500, F0=0,In=LitterInput, inputFc=C14Atm_NH)
C14t=getF14(Ex)

plot(C14Atm_NH,type="l",xlab="Year",ylab="Delta 14C (per mil)",xlim=c(1940,2010)) 
lines(years, C14t[,1], col=4)
legend(
  "topright",
  c("Delta 14C Atmosphere", "Delta 14C in SOM"),
  lty=c(1,1),
  col=c(1,4),
  lwd=c(1,1),
  bty="n"
)

SoilR documentation built on May 1, 2019, 8:06 p.m.