MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <FuncRateTerm.h>
Public Member Functions | |
RateTerm * | copyWithVolScaling (double vol, double sub, double prd) const |
FuncRate (double k, unsigned int targetPoolIndex) | |
const string & | getExpr () const |
const vector< unsigned int > & | getFuncArgIndex () |
unsigned int | getReactants (vector< unsigned int > &molIndex) const |
double | operator() (const double *S) const |
Computes the rate. The argument is the molecule array. More... | |
void | setExpr (const string &s) |
void | setFuncArgIndex (const vector< unsigned int > &mol) |
void | setReactants (const vector< unsigned int > &molIndex) |
![]() | |
RateTerm * | copyWithVolScaling (double vol, double sub, double prd) const |
double | getR1 () const |
Used by Zombie to return rate terms. More... | |
double | getR2 () const |
Used by Zombie to return rate terms. More... | |
unsigned int | getReactants (vector< unsigned int > &molIndex) const |
double | operator() (const double *S) const |
Computes the rate. The argument is the molecule array. More... | |
void | rescaleVolume (short comptIndex, const vector< short > &compartmentLookup, double ratio) |
void | setR1 (double k1) |
Used by Zombie to assign rate terms. More... | |
void | setR2 (double k2) |
Used by Zombie to assign rate terms. More... | |
void | setRates (double k1, double k2) |
![]() | |
RateTerm () | |
virtual | ~RateTerm () |
Protected Attributes | |
FuncTerm | func_ |
double | funcVolPower_ |
double | k_ |
Additional Inherited Members | |
![]() | |
static const double | EPSILON = 1.0e-6 |
This FuncRate manages a one-way reaction whose rate is determined by a Function. It has no substrates, just controls the rate of change of a target molecule.
dtarget/dt = func( x0, x1, x2..., t )
The values x0, x1, x2.. are numbers at this point. So is the rate output of this function. There may be a problem if there is a volume change.
Definition at line 22 of file FuncRateTerm.h.
|
inline |
Definition at line 25 of file FuncRateTerm.h.
References func_, and FuncTerm::setTarget().
Referenced by copyWithVolScaling().
|
inlinevirtual |
Duplicates rate term and then applies volume scaling. Arguments are volume of reference voxel, product of vol/refVol for all substrates: applied to R1 product of vol/refVol for all products: applied to R2
Note that unless the reaction is cross-compartment, the vol/refVol will be one.
Implements RateTerm.
Reimplemented in FuncReac.
Definition at line 66 of file FuncRateTerm.h.
References func_, FuncRate(), funcVolPower_, FuncTerm::getTarget(), k_, and NA.
|
inline |
Definition at line 62 of file FuncRateTerm.h.
References func_, and FuncTerm::getExpr().
|
inline |
Definition at line 50 of file FuncRateTerm.h.
References func_, and FuncTerm::getReactantIndex().
|
inlinevirtual |
This function finds the reactant indices in the vector S. It returns the number of substrates found, which are the first entries in molIndex. The products are the remaining ones. Note that it does NOT find products for unidirectional reactions, which is a bit of a problem.
Implements RateTerm.
Reimplemented in FuncReac.
Definition at line 36 of file FuncRateTerm.h.
References func_, and FuncTerm::getTarget().
|
inlinevirtual |
Computes the rate. The argument is the molecule array.
Implements RateTerm.
Reimplemented in FuncReac.
Definition at line 31 of file FuncRateTerm.h.
References func_, and Field< A >::get().
|
inline |
Definition at line 59 of file FuncRateTerm.h.
References func_, and FuncTerm::setExpr().
Referenced by Stoich::installAndUnschedFuncRate(), Stoich::installAndUnschedFuncReac(), and Stoich::setFunctionExpr().
|
inline |
Definition at line 55 of file FuncRateTerm.h.
References func_, and FuncTerm::setReactantIndex().
Referenced by Stoich::installAndUnschedFuncRate(), and Stoich::installAndUnschedFuncReac().
|
inline |
Definition at line 45 of file FuncRateTerm.h.
References func_, and FuncTerm::setTarget().
|
protected |
Definition at line 78 of file FuncRateTerm.h.
Referenced by copyWithVolScaling(), FuncReac::copyWithVolScaling(), FuncRate(), getExpr(), getFuncArgIndex(), getReactants(), operator()(), FuncReac::operator()(), setExpr(), setFuncArgIndex(), and setReactants().
|
protected |
Definition at line 80 of file FuncRateTerm.h.
Referenced by copyWithVolScaling(), and FuncReac::copyWithVolScaling().
|
protected |
Definition at line 79 of file FuncRateTerm.h.
Referenced by copyWithVolScaling(), FuncReac::copyWithVolScaling(), and FuncReac::rescaleVolume().