Learn R Programming

deTestSet (version 1.0)

orego: The Oregonator Chemistry Model, ODE

Description

Chemical model implementing the Belousov-Zhabotinskii reaction.

It is an ODE, 3 equations

Usage

orego (times = 0:360, yini = NULL, parms = list(),  ...)

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
...
additional arguments passed to the solver .

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.

Details

The default parameters are: k1 = 77.27, k2 = 8.375e-6, k3 = 77.27, k4 = 0.161

References

http://www.dm.uniba.it/~testset

Examples

Run this code
out <- orego()
plot(out, lwd = 2, log = "y")

# compare with exact solution
out[nrow(out),-1] - reference("orego")

Run the code above in your browser using DataLab