ex_E5: E5 Model for Chemical Pyrolysis, ODE

E5R Documentation

E5 Model for Chemical Pyrolysis, ODE

Description

It is an ODE, 4 equations

Usage

E5 (times = c(0, 10^(seq(-5, 13, by = 0.1))), yini = NULL, 
    parms = list(), printmescd = TRUE, 
    atol = 1.11e-24, rtol = 1e-6,  maxsteps = 1e5, ...)

Arguments

yini

the initial (state) values for the DE system. If y has a name attribute, the names will be used to label the output matrix.

times

time sequence for which output is wanted; the first value of times must be the initial time.

parms

list of parameters that overrule the default parameter values

atol

absolute error tolerance, either a scalar or a vector, one value for each y.

rtol

relative error tolerance, either a scalar or a vector, one value for each y,

printmescd

if TRUE the mixed error significant digits computed using the reference solution at time 1e13 are printed

maxsteps

maximal number of steps per output interval taken by the solver

...

additional arguments passed to the solver .

Details

The default parameters are: A = 7.89e-10, B = 1.1e7, C = 1.13e3, M = 1e6

Value

A matrix of class deSolve with up to as many rows as elements in times and as many columns as elements in yini, plus an additional column (the first) for the time value.

There will be one row for each element in times unless the solver returns with an unrecoverable error. If yini has a names attribute, it will be used to label the columns of the output value.

Note

This model is implemented in R

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

Francesca Mazzia <mazzia@dm.uniba.it>

References

url : archimede.dm.uniba.it/~testset

Examples

out <- E5()
plot(out, lwd = 2, log = "xy")
# compare with reference solution
out[nrow(out),-1] - reference("E5")


deTestSet documentation built on July 9, 2023, 6:10 p.m.