StochNOrder Class Reference

#include <RateTerm.h>

Inheritance diagram for StochNOrder:
Inheritance graph
[legend]
Collaboration diagram for StochNOrder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StochNOrder (double k, vector< unsigned int > v)
double operator() (const double *S) const
 Computes the rate. The argument is the molecule array.
RateTermcopyWithVolScaling (double vol, double sub, double prd) const

Detailed Description

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.


Constructor & Destructor Documentation

StochNOrder::StochNOrder ( double  k,
vector< unsigned int >  v 
)

Referenced by copyWithVolScaling().


Member Function Documentation

RateTerm* StochNOrder::copyWithVolScaling ( double  vol,
double  sub,
double  prd 
) const [inline, virtual]

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.

References ZeroOrder::k_, NA, StochNOrder(), and NOrder::v_.

Here is the call graph for this function:

double StochNOrder::operator() ( const double *  S  )  const [virtual]

Computes the rate. The argument is the molecule array.

Reimplemented from NOrder.

References ZeroOrder::k_, NOrder::v_, and y.


The documentation for this class was generated from the following files:

Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1