10 #include "../basecode/header.h"
11 #include "../basecode/ElementValueFinfo.h"
53 : n_( 0.0 ), nInit_( 0.0 ), diffConst_( 0.0 ), motorConst_( 0.0 ),
54 A_( 0.0 ), B_( 0.0 ), species_( 0 )
104 double C = exp( -
B_ * p->
dt /
n_ );
105 n_ *= C + (
A_ /
B_ ) * ( 1.0 - C );
224 cout <<
"Warning: Pool::vSetVolume: Operation not permitted. Ignored\n";
void vSetConc(const Eref &e, double v)
bool vGetIsBuffered(const Eref &e) const
void vSetN(const Eref &e, double v)
static const Cinfo * initCinfo()
double vGetMotorConst(const Eref &e) const
void vReinit(const Eref &e, ProcPtr p)
static const Cinfo * find(const std::string &name)
void vSetSpecies(const Eref &e, SpeciesId v)
static const Cinfo * bufPoolCinfo
double B_
Internal state variables, used only in explict mode.
Element * element() const
void vSetMotorConst(const Eref &e, double v)
Dummy MotorConst field for most Pool subclasses.
void send(const Eref &er, T arg) const
void vSetDiffConst(const Eref &e, double v)
void vIncrement(double val)
void vProcess(const Eref &e, ProcPtr p)
double nInit_
Number of molecules in pool.
const std::string & name() const
void vReac(double A, double B)
static const Cinfo * poolCinfo
double vGetVolume(const Eref &e) const
double vGetConc(const Eref &e) const
void vSetIsBuffered(const Eref &e, bool v)
static const Cinfo * initCinfo()
void vHandleMolWt(const Eref &e, double v)
const SrcFinfo1< double > & nOut
void vSetConcInit(const Eref &e, double v)
const Cinfo * cinfo() const
double vGetNinit(const Eref &e) const
double vGetDiffConst(const Eref &e) const
void vSetNinit(const Eref &e, double v)
SpeciesId vGetSpecies(const Eref &e) const
double diffConst_
initial number of molecules.
double motorConst_
Diffusion constant.
double vGetN(const Eref &e) const
void vSetVolume(const Eref &e, double v)
double A_
Motor transport constant.
double getNinit(const Eref &e) const
void replaceCinfo(const Cinfo *newCinfo)
Support function for zombieSwap, replaces Cinfo.
const Finfo * findFinfo(const string &name) const
double lookupVolumeFromMesh(const Eref &e)
void vDecrement(double val)