System - PROTECTED METHODS
void IntegrateOneStep();
System provides this elementary integration
engine that implements Euler's algorithm. It uses the values of the
protected data
members numc ,
c ,
dc and
dtint .
The user can override this method, which is needed
by Functional
and InitSS .
void InitSS();
This method calculates and stores
in ss
the
steady state
concentrations of the
system.
It also sets the
input
and output
reference fluxes,
inR
and outR ,
respectively. The input fluxes and other parameters must be specified in
the user-defined
constructor of the derived class. This method should always be called
by the user's constructor. The steady state is defined as the set of
concentrations that produce concentration time derivatives below the
constant CONV for all species. This constant
is set to 1e-6
in funder.h .
The user can override it by defining it before
including funder.h (or at the beginning
of funder.cpp , if the
single-file version of the source code is used).
virtual void EvaluateSystem()=0;
This is an abstract method, for which no definition is given
in System . Hence, the
class System is an abstract one and cannot be
instantiated (=0 prevents the user from doing
so). The user must provide this method in any
derived class. It is
supposed to calculate the velocities,
v ,
and the derivatives of the concentrations,
dc ,
from the current values of the concentrations,
c .
The differential equations of the system must be implemented in
this method, or in any other method this one calls.
|