MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <RateTerm.h>
Public Member Functions | |
BidirectionalReaction (ZeroOrder *forward, ZeroOrder *backward) | |
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 kf) |
Used by Zombie to assign rate terms. More... | |
void | setR2 (double kb) |
Used by Zombie to assign rate terms. More... | |
void | setRates (double kf, double kb) |
~BidirectionalReaction () | |
![]() | |
RateTerm () | |
virtual | ~RateTerm () |
Private Attributes | |
ZeroOrder * | backward_ |
ZeroOrder * | forward_ |
Additional Inherited Members | |
![]() | |
static const double | EPSILON = 1.0e-6 |
Definition at line 541 of file RateTerm.h.
Definition at line 544 of file RateTerm.h.
Referenced by copyWithVolScaling().
|
inline |
|
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.
Definition at line 597 of file RateTerm.h.
References backward_, BidirectionalReaction(), ZeroOrder::copyWithVolScaling(), and forward_.
|
inlinevirtual |
Used by Zombie to return rate terms.
Implements RateTerm.
Definition at line 574 of file RateTerm.h.
References forward_, and ZeroOrder::getR1().
|
inlinevirtual |
Used by Zombie to return rate terms.
Implements RateTerm.
Definition at line 578 of file RateTerm.h.
References backward_, and ZeroOrder::getR1().
|
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.
Definition at line 582 of file RateTerm.h.
References backward_, forward_, and ZeroOrder::getReactants().
|
inlinevirtual |
Computes the rate. The argument is the molecule array.
Implements RateTerm.
Definition at line 557 of file RateTerm.h.
References backward_, and forward_.
|
inlinevirtual |
This is used to rescale the RateTerm kinetics when the compartment volume changes. This is needed because the kinetics are in extensive units, that is, mol numbers, rather than in intensive units like concentration. So when the volume changes the rate terms change. Each Rate term checks if any of its reactant molecules are affected, and if so, rescales. Ratio is newVol / oldVol
Implements RateTerm.
Definition at line 591 of file RateTerm.h.
References backward_, forward_, and ZeroOrder::rescaleVolume().
|
inlinevirtual |
Used by Zombie to assign rate terms.
Implements RateTerm.
Definition at line 566 of file RateTerm.h.
References forward_, and ZeroOrder::setK().
|
inlinevirtual |
Used by Zombie to assign rate terms.
Implements RateTerm.
Definition at line 570 of file RateTerm.h.
References backward_, and ZeroOrder::setK().
|
inlinevirtual |
Assign the rates.
Implements RateTerm.
Definition at line 561 of file RateTerm.h.
References backward_, forward_, and ZeroOrder::setK().
|
private |
Definition at line 609 of file RateTerm.h.
Referenced by copyWithVolScaling(), getR2(), getReactants(), operator()(), rescaleVolume(), setR2(), setRates(), and ~BidirectionalReaction().
|
private |
Definition at line 608 of file RateTerm.h.
Referenced by copyWithVolScaling(), getR1(), getReactants(), operator()(), rescaleVolume(), setR1(), setRates(), and ~BidirectionalReaction().