MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <DiffPoolVec.h>
Public Member Functions | |
void | advance (double dt) |
DiffPoolVec () | |
double | getDiffConst () const |
unsigned int | getId () const |
double | getMotorConst () const |
double | getN (unsigned int vox) const |
double | getNinit (unsigned int vox) const |
unsigned int | getNumVoxels () const |
const vector< double > & | getNvec () const |
Used by parent solver to manipulate 'n'. More... | |
double | getPrev (unsigned int vox) const |
void | process () |
void | reinit () |
void | setDiffConst (double value) |
void | setId (unsigned int id) |
void | setMotorConst (double value) |
void | setN (unsigned int vox, double value) |
void | setNinit (unsigned int vox, double value) |
void | setNumVoxels (unsigned int num) |
void | setNvec (const vector< double > &n) |
Used by parent solver to manipulate 'n'. More... | |
void | setNvec (unsigned int start, unsigned int num, vector< double >::const_iterator q) |
void | setOps (const vector< Triplet< double > > &ops_, const vector< double > &diagVal_) |
Assigns prev_ = n_. More... | |
void | setPrevVec () |
Private Attributes | |
vector< double > | diagVal_ |
double | diffConst_ |
Boundary condition: Initial 'n'. More... | |
unsigned int | id_ |
Assign operations. More... | |
double | motorConst_ |
Diffusion const, assumed uniform. More... | |
vector< double > | n_ |
Integer conversion of Id of pool handled. More... | |
vector< double > | nInit_ |
molecules of pool on previous timestepMore... | |
vector< Triplet< double > > | ops_ |
Motor const, ie, transport rate. More... | |
vector< double > | prev_ |
Number of molecules of pool in each voxel. More... | |
This is a FieldElement of the Dsolve class. It manages (ie., zombifies) a specific pool, and the pool maintains a pointer to it. For accessing volumes, this maintains a pointer to the relevant ChemCompt.
Definition at line 18 of file DiffPoolVec.h.
DiffPoolVec::DiffPoolVec | ( | ) |
Default is to create it with a single compartment, independent of any solver, so that we can set it up as a dummy DiffPool for the Pool to work on in single-compartment models.
Definition at line 25 of file DiffPoolVec.cpp.
void DiffPoolVec::advance | ( | double | dt | ) |
Definition at line 144 of file DiffPoolVec.cpp.
References diagVal_, n_, and ops_.
double DiffPoolVec::getDiffConst | ( | ) | const |
Definition at line 87 of file DiffPoolVec.cpp.
References diffConst_.
Referenced by Dsolve::calcJnDiff().
unsigned int DiffPoolVec::getId | ( | ) | const |
double DiffPoolVec::getMotorConst | ( | ) | const |
Definition at line 97 of file DiffPoolVec.cpp.
References motorConst_.
double DiffPoolVec::getN | ( | unsigned int | vox | ) | const |
Definition at line 44 of file DiffPoolVec.cpp.
References n_.
Referenced by Dsolve::calcJnChan(), Dsolve::calcJnDiff(), Dsolve::calcJnXfer(), and Dsolve::calcOtherJnChan().
double DiffPoolVec::getNinit | ( | unsigned int | vox | ) | const |
Definition at line 32 of file DiffPoolVec.cpp.
References nInit_.
unsigned int DiffPoolVec::getNumVoxels | ( | ) | const |
Definition at line 113 of file DiffPoolVec.cpp.
References n_.
const vector< double > & DiffPoolVec::getNvec | ( | ) | const |
Used by parent solver to manipulate 'n'.
Definition at line 62 of file DiffPoolVec.cpp.
References n_.
double DiffPoolVec::getPrev | ( | unsigned int | vox | ) | const |
Definition at line 56 of file DiffPoolVec.cpp.
Referenced by Dsolve::calcJnXfer().
void DiffPoolVec::process | ( | ) |
void DiffPoolVec::reinit | ( | ) |
Definition at line 158 of file DiffPoolVec.cpp.
References n_, nInit_, and prev_.
void DiffPoolVec::setDiffConst | ( | double | value | ) |
Definition at line 92 of file DiffPoolVec.cpp.
References diffConst_.
void DiffPoolVec::setId | ( | unsigned int | id | ) |
Definition at line 118 of file DiffPoolVec.cpp.
void DiffPoolVec::setMotorConst | ( | double | value | ) |
Definition at line 102 of file DiffPoolVec.cpp.
References motorConst_.
void DiffPoolVec::setN | ( | unsigned int | vox, |
double | value | ||
) |
Definition at line 50 of file DiffPoolVec.cpp.
References n_.
Referenced by Dsolve::calcJnChan(), Dsolve::calcJnDiff(), Dsolve::calcJnXfer(), and Dsolve::calcOtherJnChan().
void DiffPoolVec::setNinit | ( | unsigned int | vox, |
double | value | ||
) |
Definition at line 38 of file DiffPoolVec.cpp.
References nInit_.
void DiffPoolVec::setNumVoxels | ( | unsigned int | num | ) |
Definition at line 107 of file DiffPoolVec.cpp.
void DiffPoolVec::setNvec | ( | const vector< double > & | n | ) |
Used by parent solver to manipulate 'n'.
Definition at line 67 of file DiffPoolVec.cpp.
References n_.
void DiffPoolVec::setNvec | ( | unsigned int | start, |
unsigned int | num, | ||
vector< double >::const_iterator | q | ||
) |
Definition at line 73 of file DiffPoolVec.cpp.
References n_.
void DiffPoolVec::setOps | ( | const vector< Triplet< double > > & | ops_, |
const vector< double > & | diagVal_ | ||
) |
Assigns prev_ = n_.
Definition at line 128 of file DiffPoolVec.cpp.
References diagVal_, n_, and ops_.
void DiffPoolVec::setPrevVec | ( | ) |
Definition at line 82 of file DiffPoolVec.cpp.
|
private |
Definition at line 63 of file DiffPoolVec.h.
|
private |
Boundary condition: Initial 'n'.
Definition at line 60 of file DiffPoolVec.h.
Referenced by getDiffConst(), and setDiffConst().
|
private |
|
private |
Diffusion const, assumed uniform.
Definition at line 61 of file DiffPoolVec.h.
Referenced by getMotorConst(), and setMotorConst().
|
private |
Integer conversion of Id of pool handled.
Definition at line 57 of file DiffPoolVec.h.
Referenced by advance(), getN(), getNumVoxels(), getNvec(), getPrev(), reinit(), setN(), setNumVoxels(), setNvec(), setOps(), and setPrevVec().
|
private |
Definition at line 59 of file DiffPoolVec.h.
Referenced by getNinit(), reinit(), setNinit(), and setNumVoxels().
|
private |
Motor const, ie, transport rate.
Definition at line 62 of file DiffPoolVec.h.
|
private |
Number of molecules of pool in each voxel.
Definition at line 58 of file DiffPoolVec.h.
Referenced by getPrev(), reinit(), and setPrevVec().