initialize {rodeo} | R Documentation |
Initialize a rodeo
Object
Description
Initializes an object of the rodeo-class
with data frames
holding the specification of an ODE system.
Arguments
vars |
Declaration of state variables appearing in the ODE system. Data frame with mandatory columns 'name', 'unit', 'description'. |
pars |
Declaration of parameters (i.e. constants) appearing in the ODE
system. Data frame with the same mandatory columns as |
funs |
Declaration of functions being referenced in the ODE
system. Data frame with the same mandatory columns as |
pros |
Declaration of process rates. Data frame with mandatory columns 'name', 'unit', 'description', 'expression'. |
stoi |
Declaration of stoichiometric factors. A data frame with
mandatory columns 'variable', 'process', 'expression', if |
asMatrix |
Logical. Specifies whether stoichiometry information is given in matrix or data base format. |
dim |
An integer vector, specifying the number of boxes in each spatial
dimension. Use |
Value
The method is called implicitly for its side effects when a
rodeo
object is instantiated with new
.
It has no accessible return value.
Note
The mandatory fields of the input data frames should be of type
character. Additional fields may be present in these data frames and the
contents becomes part of the rodeo
object.
The 'expression' fields of pros
and stoi
(or the contents of
the stoichiometry matrix) should be valid mathematical expressions in R and
Fortran. These can involve the names of declared state variables,
parameters, and functions as well as numeric constants or basic math
operators. Branching or loop constructs are not allowed (but these can
appear inside referenced functions).
There are currently few reserved words that cannot be used as variable,
parameter, function, or process names. The reserved words are 'time',
'left', and 'right'.
Initialization does not assign numeric values to state variables or
parameters. Use the decicated methods setVars
and
setPars
for that purpose.
Author(s)
See Also
See the package vignette for examples.
Examples
data(vars, pars, funs, pros, stoi)
model <- rodeo$new(vars, pars, funs, pros, stoi, dim=c(1))
print(model)