Chaste Release::3.1
|
#include <DiffusionMultipleCaUpdateRule.hpp>
Public Member Functions | |
DiffusionMultipleCaUpdateRule () | |
~DiffusionMultipleCaUpdateRule () | |
double | EvaluateProbability (unsigned currentNodeIndex, unsigned targetNodeIndex, MultipleCaBasedCellPopulation< DIM > &rCellPopulation, double dt, double deltaX) |
double | GetDiffusionParameter () |
void | SetDiffusionParameter (double diffusionParameter) |
void | OutputUpdateRuleParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mDiffusionParameter |
double | mDt |
Friends | |
class | TestMultipleCaUpdateRules |
class | boost::serialization::access |
A diffusion update rule for use in cell-based simulations using the cellular MultipleCa model.
The probability of moving to an adjacent lattice site is
D*delta_t/(2*delta_x*delta_x)
Where D is the mDiffusionParameter. delta_t is the timestep. delta_x is the separation of the two lattice sites.
Definition at line 63 of file DiffusionMultipleCaUpdateRule.hpp.
DiffusionMultipleCaUpdateRule< DIM >::DiffusionMultipleCaUpdateRule | ( | ) |
Constructor.
Definition at line 39 of file DiffusionMultipleCaUpdateRule.cpp.
DiffusionMultipleCaUpdateRule< DIM >::~DiffusionMultipleCaUpdateRule | ( | ) |
Destructor.
Definition at line 46 of file DiffusionMultipleCaUpdateRule.cpp.
double DiffusionMultipleCaUpdateRule< DIM >::EvaluateProbability | ( | unsigned | currentNodeIndex, |
unsigned | targetNodeIndex, | ||
MultipleCaBasedCellPopulation< DIM > & | rCellPopulation, | ||
double | dt, | ||
double | deltaX | ||
) | [virtual] |
Calculate the probability of a given move.
Uses random diffusion to each neighbouring node, scaled according to distance.
currentNodeIndex | The index of the current node/lattice site |
targetNodeIndex | The index of the target node/lattice site |
rCellPopulation | The cell population |
dt | is the time interval |
deltaX | defines the size of the lattice site |
Implements AbstractMultipleCaUpdateRule< DIM >.
Definition at line 51 of file DiffusionMultipleCaUpdateRule.cpp.
References MultipleCaBasedCellPopulation< DIM >::GetNode(), and MultipleCaBasedCellPopulation< DIM >::rGetMesh().
double DiffusionMultipleCaUpdateRule< DIM >::GetDiffusionParameter | ( | ) |
Definition at line 64 of file DiffusionMultipleCaUpdateRule.cpp.
void DiffusionMultipleCaUpdateRule< DIM >::OutputUpdateRuleParameters | ( | out_stream & | rParamsFile | ) | [virtual] |
Overridden OutputUpdateRuleParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractMultipleCaUpdateRule< DIM >.
Definition at line 88 of file DiffusionMultipleCaUpdateRule.cpp.
References AbstractMultipleCaUpdateRule< DIM >::OutputUpdateRuleParameters().
void DiffusionMultipleCaUpdateRule< DIM >::serialize | ( | Archive & | archive, |
const unsigned int | version | ||
) | [inline, private] |
Serialize the object.
archive | the archive |
version | the current version of this class |
Reimplemented from AbstractMultipleCaUpdateRule< DIM >.
Definition at line 84 of file DiffusionMultipleCaUpdateRule.hpp.
References DiffusionMultipleCaUpdateRule< DIM >::mDiffusionParameter.
void DiffusionMultipleCaUpdateRule< DIM >::SetDiffusionParameter | ( | double | diffusionParameter | ) |
Set mDiffusionParameter.
diffusionParameter | the new value of mDiffusionParameter |
Definition at line 70 of file DiffusionMultipleCaUpdateRule.cpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractMultipleCaUpdateRule< DIM >.
Definition at line 82 of file DiffusionMultipleCaUpdateRule.hpp.
double DiffusionMultipleCaUpdateRule< DIM >::mDiffusionParameter [private] |
Diffusion parameter for update rule. Set to the default value 0.5 in the constructor.
Definition at line 74 of file DiffusionMultipleCaUpdateRule.hpp.
Referenced by DiffusionMultipleCaUpdateRule< DIM >::serialize().
double DiffusionMultipleCaUpdateRule< DIM >::mDt [private] |
The timestep (units?) for this probability
Definition at line 80 of file DiffusionMultipleCaUpdateRule.hpp.