In previous SoilR Version GeneralModel was the function to create linear
models, a task now fulfilled by the function Model
. To ensure
backward compatibility this function remains as a wrapper. In future
versions it might take on the role of an abstract factory that produces
several classes of models (i.e autonomous or non-autonomous and linear or non-linear) depending on different
combinations of arguments. It creates a Model object from any combination of
arguments that can be converted into the required set of building blocks for
a model for n arbitrarily connected pools.
GeneralModel(
t,
A,
ivList,
inputFluxes,
solverfunc = deSolve.lsoda.wrapper,
pass = FALSE,
timeSymbol
)
A model object that can be further queried.
A vector containing the points in time where the solution is sought.
Anything that can be converted by GeneralDecompOp to any of the available DecompositionOperator classes
A vector containing the initial amount of carbon for the n pools. The length of this vector is equal to the number of pools and thus equal to the length of k. This is checked by an internal function.
something that can be converted to any of the available InFluxes classes
The function used by to actually solve the ODE system.
This can be deSolve.lsoda.wrapper
or any other user provided
function with the same interface.
Forces the constructor to create the model even if it is invalid
A string (character vector of length 1) identifying the variable name
TwopParallelModel
, TwopSeriesModel
,
TwopFeedbackModel