17 #include "../mesh/VoxelJunction.h"
120 double k2 =
getK2( e );
128 double Km = (k2 + k3) /
concK1_;
129 concK1_ = v * (1.0 + ratio) / Km;
144 double k2 =
getK2( e );
152 double k2 =
getK2( e );
160 double k2 =
getK2( e );
164 concK1_ = ( k2 + k3 ) / ( v * volScale );
176 return volScale * ( k2 + k3 ) /
concK1_;
181 double Km =
getKm( e );
182 double k2 =
getK2( e );
188 double k1 = ( k2 + k3 ) / Km;
195 double k2 =
getK2( e );
227 vector< Id > enzMols;
228 vector< Id > cplxMols;
230 unsigned int numReactants;
232 bool hasEnz = ( numReactants == 1 );
235 bool hasSubs = ( numReactants > 0 );
237 bool hasCplx = ( numReactants == 1 );
240 bool hasPrds = ( numReactants > 0 );
244 if ( hasEnz && hasSubs && hasCplx && hasPrds ) {
245 stoich_->
installEnzyme( enz, enzMols[0], cplxMols[0], subs, prds );
247 stoich_->installDummyEnzyme( enz,
Id() );
249 if ( !hasEnz ) msg = msg +
" enzyme";
250 if ( !hasCplx ) msg = msg +
" enzyme-substrate complex";
251 if ( !hasSubs ) msg = msg +
" substrates";
252 if ( !hasPrds ) msg = msg +
" products";
253 cout <<
"Warning: ZombieEnz:setSolver: Dangling Enz '" <<
254 enz.
path() <<
"':\nMissing " << msg << endl;
void vSetK1(const Eref &e, double v)
double getEnzK2(const Eref &e) const
Get rate k2 (1/sec) for enzyme.
void setEnzK3(const Eref &e, double v) const
Set rate k3 (1/sec) for enzyme.
Element * element() const
Synonym for Id::operator()()
std::string path(const std::string &separator="/") const
void setSolver(Id solver, Id orig)
Assign solver info.
void vSetRatio(const Eref &e, double v)
double getK2(const Eref &e) const
void setEnzK1(const Eref &e, double v) const
Later handle all the volumes when this conversion is done.
double vGetConcK1(const Eref &e) const
double getKm(const Eref &e) const
static const Cinfo * find(const std::string &name)
double vGetKcat(const Eref &e) const
double vGetK1(const Eref &e) const
double vGetNumKm(const Eref &e) const
void installEnzyme(Id enzId, Id enzMolId, Id cplxId, const vector< Id > &subs, const vector< Id > &prds)
void setConcK1(const Eref &e, double v)
double vGetKm(const Eref &e) const
void setEnzK2(const Eref &e, double v) const
Set rate k2 (1/sec) for enzyme.
static const SrcFinfo2< double, double > * subOut
bool isA(const string &ancestor) const
void vSetKcat(const Eref &e, double v)
const Cinfo * cinfo() const
void vSetNumKm(const Eref &e, double v)
double convertConcToNumRateUsingMesh(const Eref &e, const SrcFinfo *pools, bool doPartialConversion)
double getEnzK3(const Eref &e) const
Get rate k3, aka kcat, for enzyme.
double getKcat(const Eref &e) const
static const Cinfo * zombieEnzCinfo
unsigned int getNeighbors(vector< Id > &ret, const Finfo *finfo) const
void vSetK2(const Eref &e, double v)
void vSetConcK1(const Eref &e, double v)
double vGetRatio(const Eref &e) const
static const Cinfo * initCinfo()
double vGetK2(const Eref &e) const
const Finfo * findFinfo(const string &name) const
static const Cinfo * initCinfo()
void vSetKm(const Eref &e, double v)