Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <DivisionBiasTrackingModifier.hpp>
Public Member Functions | |
DivisionBiasTrackingModifier (c_vector< double, DIM > divisionBiasVector) | |
virtual | ~DivisionBiasTrackingModifier () |
const c_vector< double, DIM > & | rGetDivisionBiasVector () const |
virtual void | UpdateAtEndOfTimeStep (AbstractCellPopulation< DIM, DIM > &rCellPopulation) |
virtual void | SetupSolve (AbstractCellPopulation< DIM, DIM > &rCellPopulation, std::string outputDirectory) |
void | UpdateCellData (AbstractCellPopulation< DIM, DIM > &rCellPopulation) |
void | OutputSimulationModifierParameters (out_stream &rParamsFile) |
Public Member Functions inherited from AbstractCellBasedSimulationModifier< DIM, DIM > | |
AbstractCellBasedSimulationModifier () | |
virtual | ~AbstractCellBasedSimulationModifier () |
virtual void | UpdateAtEndOfTimeStep (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation)=0 |
virtual void | UpdateAtEndOfOutputTimeStep (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation) |
virtual void | SetupSolve (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation, std::string outputDirectory)=0 |
virtual void | UpdateAtEndOfSolve (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation) |
void | OutputSimulationModifierInfo (out_stream &rParamsFile) |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
c_vector< double, DIM > | mDivisionBiasVector |
Friends | |
class | boost::serialization::access |
A modifier class which at each simulation time step calculates a real number between zero and 1 for each cell, which represents the normalised distance of the cell along a given axis of the cell population through its centroid, and stores this number in the CellData property as "bias". To be used in conjunction with the BiasedBernoulliTrialCellCycleModel class.
Definition at line 52 of file DivisionBiasTrackingModifier.hpp.
DivisionBiasTrackingModifier< DIM >::DivisionBiasTrackingModifier | ( | c_vector< double, DIM > | divisionBiasVector | ) |
Constructor.
divisionBiasVector | the specified axis along which division probability is biased |
Definition at line 40 of file DivisionBiasTrackingModifier.cpp.
References DivisionBiasTrackingModifier< DIM >::mDivisionBiasVector.
|
virtual |
Destructor.
Definition at line 49 of file DivisionBiasTrackingModifier.cpp.
|
virtual |
Overridden OutputSimulationModifierParameters() method. Output any simulation modifier parameters to file.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellBasedSimulationModifier< DIM, DIM >.
Definition at line 133 of file DivisionBiasTrackingModifier.cpp.
References AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::OutputSimulationModifierParameters().
const c_vector< double, DIM > & DivisionBiasTrackingModifier< DIM >::rGetDivisionBiasVector | ( | ) | const |
Definition at line 54 of file DivisionBiasTrackingModifier.cpp.
|
inlineprivate |
Boost Serialization method for archiving/checkpointing. Archives the object and its member variables.
archive | The boost archive. |
version | The current version of this class. |
Definition at line 72 of file DivisionBiasTrackingModifier.hpp.
|
virtual |
Overridden SetupSolve() method.
Specify what to do in the simulation before the start of the time loop.
rCellPopulation | reference to the cell population |
outputDirectory | the output directory, relative to where Chaste output is stored |
Definition at line 66 of file DivisionBiasTrackingModifier.cpp.
|
virtual |
Overridden UpdateAtEndOfTimeStep() method.
Specify what to do in the simulation at the end of each time step.
rCellPopulation | reference to the cell population |
Definition at line 60 of file DivisionBiasTrackingModifier.cpp.
void DivisionBiasTrackingModifier< DIM >::UpdateCellData | ( | AbstractCellPopulation< DIM, DIM > & | rCellPopulation | ) |
Helper method to calculate the normalised distance of each cell in the population along the division bias axis and store these in the CellData.
rCellPopulation | reference to the cell population |
This hack is needed because in the case of a MeshBasedCellPopulation in which multiple cell divisions have occurred over one time step, the Voronoi tessellation (while existing) is out-of-date. Thus, if we did not regenerate the Voronoi tessellation here, an assertion may trip as we try to access a Voronoi element whose index exceeds the number of elements in the out-of-date tessellation.
Iterate over cell population and store each cell's signed distance along mDivisionBiasVector through the centroid of the cell population, where zero corresponds to a cell located at the centroid of the cell population.
Definition at line 76 of file DivisionBiasTrackingModifier.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::CreateVoronoiTessellation(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::End(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfCellPopulation(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetLocationOfCellCentre(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Update().
|
friend |
Needed for serialization.
Definition at line 63 of file DivisionBiasTrackingModifier.hpp.
|
private |
The specified axis along which division probability is biased. Initialized in the constructor.
Definition at line 60 of file DivisionBiasTrackingModifier.hpp.
Referenced by DivisionBiasTrackingModifier< DIM >::DivisionBiasTrackingModifier().