25 FuncRate(
double k,
unsigned int targetPoolIndex )
36 unsigned int getReactants( vector< unsigned int >& molIndex )
const{
46 assert( molIndex.size() > 0 );
67 double vol,
double sub,
double prd )
const
109 double ret =
func_( S, 0.0 );
110 vector< unsigned int >::const_iterator i;
111 for ( i =
v_.begin(); i !=
v_.end(); i++) {
112 assert( !std::isnan( S[ *i ] ) );
128 const vector< short >& compartmentLookup,
double ratio )
130 for (
unsigned int i = 1; i <
v_.size(); ++i ) {
131 if ( comptIndex == compartmentLookup[
v_[i] ] )
138 double vol,
double sub,
double prd )
const
140 assert(
v_.size() > 0 );
141 double ratio = sub * pow(
NA * vol,
151 vector< unsigned int >
v_;
void setExpr(const string &e)
double operator()(const double *S) const
Computes the rate. The argument is the molecule array.
unsigned int getReactants(vector< unsigned int > &molIndex) const
const unsigned int getTarget() const
void setReactantIndex(const vector< unsigned int > &mol)
RateTerm * copyWithVolScaling(double vol, double sub, double prd) const
const vector< unsigned int > & getFuncArgIndex()
RateTerm * copyWithVolScaling(double vol, double sub, double prd) const
double operator()(const double *S) const
Computes the rate. The argument is the molecule array.
void setReactants(const vector< unsigned int > &molIndex)
void setTarget(unsigned int tgt)
unsigned int getReactants(vector< unsigned int > &molIndex) const
void setExpr(const string &s)
void setReactants(const vector< unsigned int > &molIndex)
const string & getExpr() const
const vector< unsigned int > & getReactantIndex() const
FuncRate(double k, unsigned int targetPoolIndex)
static A get(const ObjId &dest, const string &field)
FuncReac(double k, vector< unsigned int > v)
const string & getExpr() const
vector< unsigned int > v_
void setFuncArgIndex(const vector< unsigned int > &mol)
unsigned int numSubstrates_
void rescaleVolume(short comptIndex, const vector< short > &compartmentLookup, double ratio)