MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <RateTerm.h>
Public Member Functions | |
RateTerm * | copyWithVolScaling (double vol, double sub, double prd) const |
double | operator() (const double *S) const |
Computes the rate. The argument is the molecule array. More... | |
StochNOrder (double k, vector< unsigned int > v) | |
![]() | |
unsigned int | getReactants (vector< unsigned int > &molIndex) const |
NOrder (double k, vector< unsigned int > v) | |
void | rescaleVolume (short comptIndex, const vector< short > &compartmentLookup, double ratio) |
![]() | |
double | getR1 () const |
Used by Zombie to return rate terms. More... | |
double | getR2 () const |
Used by Zombie to return rate terms. More... | |
void | setK (double k) |
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) |
ZeroOrder (double k) | |
![]() | |
RateTerm () | |
virtual | ~RateTerm () |
Additional Inherited Members | |
![]() | |
static const double | EPSILON = 1.0e-6 |
![]() | |
vector< unsigned int > | v_ |
![]() | |
double | k_ |
This is an unpleasant case, like the StochSecondOrderSingleSubstrate. Here we deal with the possibility that one or more of the substrates may be of order greater than one. If so, we need to diminish the N of each substrate by one for each time the substrate is factored into the rate.
Definition at line 522 of file RateTerm.h.
StochNOrder::StochNOrder | ( | double | k, |
vector< unsigned int > | v | ||
) |
Definition at line 21 of file RateTerm.cpp.
References NOrder::v_.
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.
Reimplemented from NOrder.
Definition at line 529 of file RateTerm.h.
References ZeroOrder::k_, NA, StochNOrder(), and NOrder::v_.
|
virtual |
Computes the rate. The argument is the molecule array.
Reimplemented from NOrder.
Definition at line 30 of file RateTerm.cpp.
References ZeroOrder::k_, and NOrder::v_.