#include <AbstractCellPopulation.hpp>
Public Member Functions | |
AbstractCellPopulation (std::vector< CellPtr > &rCells, const std::vector< unsigned > locationIndices=std::vector< unsigned >()) | |
virtual | ~AbstractCellPopulation () |
void | InitialiseCells () |
std::list< CellPtr > & | rGetCells () |
bool | IsMeshBasedCellPopulation () |
virtual unsigned | GetNumNodes ()=0 |
virtual c_vector< double, DIM > | GetLocationOfCellCentre (CellPtr pCell)=0 |
virtual Node< DIM > * | GetNode (unsigned index)=0 |
virtual unsigned | AddNode (Node< DIM > *pNewNode)=0 |
virtual void | SetNode (unsigned nodeIndex, ChastePoint< DIM > &rNewLocation)=0 |
virtual bool | IsCellAssociatedWithADeletedLocation (CellPtr pCell)=0 |
virtual void | UpdateNodeLocations (const std::vector< c_vector< double, DIM > > &rNodeForces, double dt)=0 |
virtual double | GetDampingConstant (unsigned nodeIndex)=0 |
virtual CellPtr | AddCell (CellPtr pNewCell, const c_vector< double, DIM > &rCellDivisionVector, CellPtr pParentCell=CellPtr())=0 |
virtual unsigned | RemoveDeadCells ()=0 |
virtual void | Update (bool hasHadBirthsOrDeaths=true)=0 |
std::vector< unsigned > | GetCellMutationStateCount () |
const std::vector< unsigned > & | rGetCellProliferativeTypeCount () const |
const std::vector< unsigned > & | rGetCellCyclePhaseCount () const |
unsigned | GetNumRealCells () |
void | SetCellAncestorsToLocationIndices () |
void | WriteCellIdDataToFile () |
std::set< unsigned > | GetCellAncestors () |
CellPtr | GetCellUsingLocationIndex (unsigned index) |
unsigned | GetLocationIndexUsingCell (CellPtr pCell) |
boost::shared_ptr < CellPropertyRegistry > | GetCellPropertyRegistry () |
void | SetDefaultMutationStateOrdering () |
virtual double | GetWidth (const unsigned &rDimension)=0 |
virtual void | CreateOutputFiles (const std::string &rDirectory, bool cleanOutputDirectory) |
virtual void | WriteResultsToFiles () |
virtual void | WriteTimeAndNodeResultsToFiles () |
virtual void | GenerateCellResultsAndWriteToFiles ()=0 |
virtual void | GenerateCellResults (unsigned locationIndex, std::vector< unsigned > &rCellProliferativeTypeCounter, std::vector< unsigned > &rCellCyclePhaseCounter) |
void | WriteCellResultsToFiles (std::vector< unsigned > &rCellProliferativeTypeCounter, std::vector< unsigned > &rCellCyclePhaseCounter) |
virtual void | CloseOutputFiles () |
void | OutputCellPopulationInfo (out_stream &rParamsFile) |
virtual void | OutputCellPopulationParameters (out_stream &rParamsFile)=0 |
double | GetDampingConstantNormal () |
double | GetDampingConstantMutant () |
bool | GetOutputCellIdData () |
bool | GetOutputCellMutationStates () |
bool | GetOutputCellAncestors () |
bool | GetOutputCellProliferativeTypes () |
bool | GetOutputCellVariables () |
bool | GetOutputCellCyclePhases () |
bool | GetOutputCellAges () |
bool | GetOutputCellVolumes () |
void | SetDampingConstantNormal (double dampingConstantNormal) |
void | SetDampingConstantMutant (double dampingConstantMutant) |
void | SetOutputCellIdData (bool outputCellIdData) |
void | SetOutputCellMutationStates (bool outputCellMutationStates) |
void | SetOutputCellAncestors (bool outputCellAncestors) |
void | SetOutputCellProliferativeTypes (bool outputCellProliferativeTypes) |
void | SetOutputCellVariables (bool outputCellVariables) |
void | SetOutputCellCyclePhases (bool outputCellCyclePhases) |
void | SetOutputCellAges (bool outputCellAges) |
virtual void | SetOutputCellVolumes (bool outputCellVolumes) |
Iterator | Begin () |
Iterator | End () |
Protected Member Functions | |
virtual void | Validate ()=0 |
virtual void | WriteVtkResultsToFile ()=0 |
AbstractCellPopulation () | |
Protected Attributes | |
std::list< CellPtr > | mCells |
std::map< unsigned, CellPtr > | mLocationCellMap |
std::map< Cell *, unsigned > | mCellLocationMap |
std::vector< unsigned > | mCellProliferativeTypeCount |
std::vector< unsigned > | mCellCyclePhaseCount |
out_stream | mpVizNodesFile |
out_stream | mpVizCellProliferativeTypesFile |
out_stream | mpCellMutationStatesFile |
out_stream | mpVizCellAncestorsFile |
out_stream | mpCellProliferativeTypesFile |
out_stream | mpCellCyclePhasesFile |
out_stream | mpCellVariablesFile |
out_stream | mpCellAgesFile |
out_stream | mpCellIdFile |
out_stream | mpVizBoundaryNodesFile |
std::string | mDirPath |
out_stream | mpVtkMetaFile |
bool | mCellPopulationContainsMesh |
boost::shared_ptr < CellPropertyRegistry > | mpCellPropertyRegistry |
double | mDampingConstantNormal |
double | mDampingConstantMutant |
bool | mOutputCellIdData |
bool | mOutputCellMutationStates |
bool | mOutputCellAncestors |
bool | mOutputCellProliferativeTypes |
bool | mOutputCellVariables |
bool | mOutputCellCyclePhases |
bool | mOutputCellAges |
bool | mOutputCellVolumes |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Classes | |
class | Iterator |
Contains a group of cells and associated methods.
Definition at line 65 of file AbstractCellPopulation.hpp.
AbstractCellPopulation< DIM >::AbstractCellPopulation | ( | ) | [inline, protected] |
Constructor for use by archiving only. Please use the other constructor.
Doesn't take in cells, since these are dealt with by the serialize method.
Definition at line 215 of file AbstractCellPopulation.hpp.
AbstractCellPopulation< DIM >::AbstractCellPopulation | ( | std::vector< CellPtr > & | rCells, | |
const std::vector< unsigned > | locationIndices = std::vector<unsigned>() | |||
) | [inline] |
AbstractCellPopulation Constructor.
rCells | a vector of cells. Copies of the cells will be stored in the cell population, and the passed-in vector cleared. | |
locationIndices | an optional vector of location indices that correspond to real cells |
Definition at line 34 of file AbstractCellPopulation.cpp.
References EXCEPTION, AbstractCellPopulation< DIM >::mCellCyclePhaseCount, AbstractCellPopulation< DIM >::mCellLocationMap, AbstractCellPopulation< DIM >::mCellProliferativeTypeCount, AbstractCellPopulation< DIM >::mCells, AbstractCellPopulation< DIM >::mLocationCellMap, and AbstractCellPopulation< DIM >::mpCellPropertyRegistry.
AbstractCellPopulation< DIM >::~AbstractCellPopulation | ( | ) | [inline, virtual] |
Base class with virtual methods needs a virtual destructor.
Definition at line 101 of file AbstractCellPopulation.cpp.
void AbstractCellPopulation< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object and its member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, MeshBasedCellPopulation< 2 >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
Definition at line 77 of file AbstractCellPopulation.hpp.
virtual void AbstractCellPopulation< DIM >::Validate | ( | ) | [protected, pure virtual] |
Check consistency of our internal data structures.
As this method is pure virtual, it must be overridden in subclasses.
Implemented in MeshBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, MeshBasedCellPopulation< 2 >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
virtual void AbstractCellPopulation< DIM >::WriteVtkResultsToFile | ( | ) | [protected, pure virtual] |
Write the current results to mpVtkMetaFile.
As this method is pure virtual, it must be overridden in subclasses.
Implemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, MeshBasedCellPopulation< 2 >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
Referenced by AbstractCellPopulation< DIM >::WriteResultsToFiles().
void AbstractCellPopulation< DIM >::InitialiseCells | ( | ) | [inline] |
Initialise each cell's cell-cycle model.
Definition at line 106 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::Begin(), and AbstractCellPopulation< DIM >::End().
std::list< CellPtr > & AbstractCellPopulation< DIM >::rGetCells | ( | ) | [inline] |
Definition at line 115 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mCells.
Referenced by AbstractCellPopulation< DIM >::Iterator::IsAtEnd(), and AbstractCellPopulation< DIM >::Iterator::Iterator().
bool AbstractCellPopulation< DIM >::IsMeshBasedCellPopulation | ( | ) | [inline] |
Definition at line 121 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mCellPopulationContainsMesh.
Referenced by AbstractTwoBodyInteractionForce< DIM >::AddForceContribution(), GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
virtual unsigned AbstractCellPopulation< DIM >::GetNumNodes | ( | ) | [pure virtual] |
As this method is pure virtual, it must be overridden in subclasses.
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Referenced by AbstractCentreBasedCellPopulation< DIM >::AddCell(), AbstractCentreBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCentreBasedCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles(), and AbstractCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles().
virtual c_vector<double, DIM> AbstractCellPopulation< DIM >::GetLocationOfCellCentre | ( | CellPtr | pCell | ) | [pure virtual] |
Find where a given cell is in space.
As this method is pure virtual, it must be overridden in subclasses.
pCell | the cell |
Implemented in AbstractCentreBasedCellPopulation< DIM >, and VertexBasedCellPopulation< DIM >.
Referenced by AbstractCellPopulation< DIM >::GenerateCellResults(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), RadialSloughingCellKiller::TestAndLabelCellsForApoptosisOrDeath(), PlaneBasedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), CryptProjectionForce::UpdateNode3dLocationMap(), and AbstractCellPopulation< DIM >::WriteCellIdDataToFile().
virtual Node<DIM>* AbstractCellPopulation< DIM >::GetNode | ( | unsigned | index | ) | [pure virtual] |
Get a pointer to the node with a given index.
As this method is pure virtual, it must be overridden in subclasses.
index | global index of the specified node |
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Referenced by CryptProjectionForce::CalculateForceBetweenNodes(), GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), AbstractCentreBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCentreBasedCellPopulation< DIM >::GetNodeCorrespondingToCell(), AbstractCentreBasedCellPopulation< DIM >::UpdateNodeLocations(), AbstractCentreBasedCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles(), and AbstractCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles().
virtual unsigned AbstractCellPopulation< DIM >::AddNode | ( | Node< DIM > * | pNewNode | ) | [pure virtual] |
Add a new node to the cell population.
As this method is pure virtual, it must be overridden in subclasses.
pNewNode | pointer to the new node |
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Referenced by AbstractCentreBasedCellPopulation< DIM >::AddCell().
virtual void AbstractCellPopulation< DIM >::SetNode | ( | unsigned | nodeIndex, | |
ChastePoint< DIM > & | rNewLocation | |||
) | [pure virtual] |
Move the node with a given index to a new point in space.
As this method is pure virtual, it must be overridden in subclasses.
nodeIndex | the index of the node to be moved | |
rNewLocation | the new target location of the node |
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Referenced by AbstractCentreBasedCellPopulation< DIM >::UpdateNodeLocations().
virtual bool AbstractCellPopulation< DIM >::IsCellAssociatedWithADeletedLocation | ( | CellPtr | pCell | ) | [pure virtual] |
Helper method for establishing if a cell is real.
As this method is pure virtual, it must be overridden in subclasses.
pCell | the cell |
Implemented in AbstractCentreBasedCellPopulation< DIM >, and VertexBasedCellPopulation< DIM >.
Referenced by AbstractCellPopulation< DIM >::Iterator::IsRealCell().
virtual void AbstractCellPopulation< DIM >::UpdateNodeLocations | ( | const std::vector< c_vector< double, DIM > > & | rNodeForces, | |
double | dt | |||
) | [pure virtual] |
Update the location of each node in the cell population given a vector of forces on nodes and a time step over which to integrate the equations of motion.
As this method is pure virtual, it must be overridden in subclasses.
rNodeForces | forces on nodes | |
dt | time step |
Implemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, VertexBasedCellPopulation< DIM >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
virtual double AbstractCellPopulation< DIM >::GetDampingConstant | ( | unsigned | nodeIndex | ) | [pure virtual] |
Get the damping constant for this node - ie d in drdt = F/d.
As this method is pure virtual, it must be overridden in subclasses.
nodeIndex | the global index of this node |
Implemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
virtual CellPtr AbstractCellPopulation< DIM >::AddCell | ( | CellPtr | pNewCell, | |
const c_vector< double, DIM > & | rCellDivisionVector, | |||
CellPtr | pParentCell = CellPtr() | |||
) | [pure virtual] |
Add a new cell to the cell population.
As this method is pure virtual, it must be overridden in subclasses.
pNewCell | the cell to add | |
rCellDivisionVector | a vector providing information regarding how the cell division should occur (for cell-centre cell populations, this vector is the position of the daughter cell; for vertex cell populations it can be used by any subclass of CellBasedSimulation to as a means of dictating the axis along which the parent cell divides) | |
pParentCell | pointer to a parent cell (if required) |
Implemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, MeshBasedCellPopulation< 2 >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
virtual unsigned AbstractCellPopulation< DIM >::RemoveDeadCells | ( | ) | [pure virtual] |
Remove all cells labelled as dead.
As this method is pure virtual, it must be overridden in subclasses.
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
virtual void AbstractCellPopulation< DIM >::Update | ( | bool | hasHadBirthsOrDeaths = true |
) | [pure virtual] |
Remove the Nodes (for cell-centre) or VertexElements (for cell-vertex) which have been marked as deleted and update the correspondence with Cells.
hasHadBirthsOrDeaths | - a bool saying whether cell population has had Births Or Deaths |
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
std::vector< unsigned > AbstractCellPopulation< DIM >::GetCellMutationStateCount | ( | ) | [inline] |
Find out how many cells of each mutation state there are
Definition at line 158 of file AbstractCellPopulation.cpp.
References EXCEPTION, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mpCellPropertyRegistry, and AbstractCellPopulation< DIM >::SetDefaultMutationStateOrdering().
Referenced by AbstractCellPopulation< DIM >::WriteCellResultsToFiles().
const std::vector< unsigned > & AbstractCellPopulation< DIM >::rGetCellProliferativeTypeCount | ( | ) | const [inline] |
Find out how many cells of each type there are
Definition at line 184 of file AbstractCellPopulation.cpp.
References EXCEPTION, AbstractCellPopulation< DIM >::mCellProliferativeTypeCount, and AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes.
const std::vector< unsigned > & AbstractCellPopulation< DIM >::rGetCellCyclePhaseCount | ( | ) | const [inline] |
Find out how many cells in each cell cycle phase there are
Definition at line 194 of file AbstractCellPopulation.cpp.
References EXCEPTION, AbstractCellPopulation< DIM >::mCellCyclePhaseCount, and AbstractCellPopulation< DIM >::mOutputCellCyclePhases.
unsigned AbstractCellPopulation< DIM >::GetNumRealCells | ( | ) | [inline] |
Get the number of real cells.
Definition at line 127 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::Begin(), and AbstractCellPopulation< DIM >::End().
Referenced by TargetedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath().
void AbstractCellPopulation< DIM >::SetCellAncestorsToLocationIndices | ( | ) | [inline] |
Sets the Ancestor index of all the cells at this time to be the same as their location index, can be used to trace clonal populations.
Definition at line 138 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::Begin(), AbstractCellPopulation< DIM >::End(), and AbstractCellPopulation< DIM >::mCellLocationMap.
void AbstractCellPopulation< DIM >::WriteCellIdDataToFile | ( | ) | [inline] |
Write cell ID data to mpCellIdFile.
Definition at line 618 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::Begin(), AbstractCellPopulation< DIM >::End(), AbstractCellPopulation< DIM >::GetLocationOfCellCentre(), SimulationTime::GetTime(), SimulationTime::Instance(), AbstractCellPopulation< DIM >::mCellLocationMap, and AbstractCellPopulation< DIM >::mpCellIdFile.
Referenced by AbstractCellPopulation< DIM >::WriteResultsToFiles().
std::set< unsigned > AbstractCellPopulation< DIM >::GetCellAncestors | ( | ) | [inline] |
Loops over cells and makes a list of the ancestors that are part of the cell population.
Definition at line 147 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::Begin(), and AbstractCellPopulation< DIM >::End().
CellPtr AbstractCellPopulation< DIM >::GetCellUsingLocationIndex | ( | unsigned | index | ) | [inline] |
Get the cell corresponding to a given location index.
Currently assumes there is one cell for each location index, and they are ordered identically in their vectors. An assertion fails if not.
index | the location index |
Definition at line 204 of file AbstractCellPopulation.cpp.
References EXCEPTION, and AbstractCellPopulation< DIM >::mLocationCellMap.
Referenced by NagaiHondaForce< DIM >::AddForceContribution(), CryptProjectionForce::CalculateForceBetweenNodes(), GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), MeshBasedCellPopulation< DIM >::CheckCellPointers(), VertexBasedCellPopulation< DIM >::GetDampingConstant(), AbstractCentreBasedCellPopulation< DIM >::GetDampingConstant(), CellwiseDataGradient< DIM >::SetupGradients(), TargetedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
unsigned AbstractCellPopulation< DIM >::GetLocationIndexUsingCell | ( | CellPtr | pCell | ) | [inline] |
Get the location index corresponding to a given cell.
Currently assumes there is one cell for each location index, and they are ordered identically in their vectors. An assertion fails if not.
pCell | the cell |
Definition at line 221 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mCellLocationMap.
Referenced by CryptProjectionForce::AddForceContribution(), ChemotacticForce< DIM >::AddForceContribution(), CryptSimulation1d::ApplyCellPopulationBoundaryConditions(), CryptSimulation1d::CalculateCellDivisionVector(), VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), CellwiseDataGradient< DIM >::SetupGradients(), CryptProjectionForce::UpdateNode3dLocationMap(), VertexBasedCellPopulation< DIM >::Validate(), MeshBasedCellPopulation< DIM >::Validate(), VertexBasedCellPopulation< DIM >::WriteCellVolumeResultsToFile(), VertexBasedCellPopulation< DIM >::WriteResultsToFiles(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
boost::shared_ptr< CellPropertyRegistry > AbstractCellPopulation< DIM >::GetCellPropertyRegistry | ( | ) | [inline] |
Definition at line 227 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mpCellPropertyRegistry.
Referenced by AbstractCellPopulation< DIM >::SetDefaultMutationStateOrdering().
void AbstractCellPopulation< DIM >::SetDefaultMutationStateOrdering | ( | ) | [inline] |
Set a default ordering on mutation states, so that existing tests don't need to specify the old ordering explicitly.
Definition at line 233 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::GetCellPropertyRegistry().
Referenced by AbstractCellPopulation< DIM >::CreateOutputFiles(), and AbstractCellPopulation< DIM >::GetCellMutationStateCount().
virtual double AbstractCellPopulation< DIM >::GetWidth | ( | const unsigned & | rDimension | ) | [pure virtual] |
Calculate the 'width' of any dimension of the cell population.
This method is overridden in some daughter classes.
rDimension | a dimension (0,1 or 2) |
Implemented in MeshBasedCellPopulation< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
void AbstractCellPopulation< DIM >::CreateOutputFiles | ( | const std::string & | rDirectory, | |
bool | cleanOutputDirectory | |||
) | [inline, virtual] |
Use an output file handler to create output files for visualizer and post-processing.
rDirectory | pathname of the output directory, relative to where Chaste output is stored | |
cleanOutputDirectory | whether to delete the contents of the output directory prior to output file creation |
Reimplemented in MeshBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Definition at line 253 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mDirPath, AbstractCellPopulation< DIM >::mOutputCellAges, AbstractCellPopulation< DIM >::mOutputCellAncestors, AbstractCellPopulation< DIM >::mOutputCellCyclePhases, AbstractCellPopulation< DIM >::mOutputCellIdData, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes, AbstractCellPopulation< DIM >::mOutputCellVariables, AbstractCellPopulation< DIM >::mpCellAgesFile, AbstractCellPopulation< DIM >::mpCellCyclePhasesFile, AbstractCellPopulation< DIM >::mpCellIdFile, AbstractCellPopulation< DIM >::mpCellMutationStatesFile, AbstractCellPopulation< DIM >::mpCellProliferativeTypesFile, AbstractCellPopulation< DIM >::mpCellPropertyRegistry, AbstractCellPopulation< DIM >::mpCellVariablesFile, AbstractCellPopulation< DIM >::mpVizBoundaryNodesFile, AbstractCellPopulation< DIM >::mpVizCellAncestorsFile, AbstractCellPopulation< DIM >::mpVizCellProliferativeTypesFile, AbstractCellPopulation< DIM >::mpVizNodesFile, AbstractCellPopulation< DIM >::mpVtkMetaFile, OutputFileHandler::OpenOutputFile(), and AbstractCellPopulation< DIM >::SetDefaultMutationStateOrdering().
Referenced by VertexBasedCellPopulation< DIM >::CreateOutputFiles(), and MeshBasedCellPopulation< DIM >::CreateOutputFiles().
void AbstractCellPopulation< DIM >::WriteResultsToFiles | ( | ) | [inline, virtual] |
Write results from the current cell population state to output files.
Reimplemented in MeshBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Definition at line 573 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), SimulationTime::GetTime(), SimulationTime::Instance(), AbstractCellPopulation< DIM >::mOutputCellAges, AbstractCellPopulation< DIM >::mOutputCellAncestors, AbstractCellPopulation< DIM >::mOutputCellCyclePhases, AbstractCellPopulation< DIM >::mOutputCellIdData, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes, AbstractCellPopulation< DIM >::mOutputCellVariables, AbstractCellPopulation< DIM >::mpCellAgesFile, AbstractCellPopulation< DIM >::mpCellCyclePhasesFile, AbstractCellPopulation< DIM >::mpCellMutationStatesFile, AbstractCellPopulation< DIM >::mpCellProliferativeTypesFile, AbstractCellPopulation< DIM >::mpCellVariablesFile, AbstractCellPopulation< DIM >::mpVizCellAncestorsFile, AbstractCellPopulation< DIM >::mpVizCellProliferativeTypesFile, AbstractCellPopulation< DIM >::WriteCellIdDataToFile(), AbstractCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles(), and AbstractCellPopulation< DIM >::WriteVtkResultsToFile().
Referenced by VertexBasedCellPopulation< DIM >::WriteResultsToFiles(), and MeshBasedCellPopulation< DIM >::WriteResultsToFiles().
void AbstractCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles | ( | ) | [inline, virtual] |
Write the current time and node results to output files.
Reimplemented in AbstractCentreBasedCellPopulation< DIM >.
Definition at line 547 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::GetNode(), AbstractCellPopulation< DIM >::GetNumNodes(), SimulationTime::GetTime(), SimulationTime::Instance(), AbstractCellPopulation< DIM >::mpVizBoundaryNodesFile, and AbstractCellPopulation< DIM >::mpVizNodesFile.
Referenced by AbstractCellPopulation< DIM >::WriteResultsToFiles().
virtual void AbstractCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles | ( | ) | [pure virtual] |
Calls GenerateCellResults() on each cell then calls WriteCellResultsToFiles().
Implemented in AbstractCentreBasedCellPopulation< DIM >, and VertexBasedCellPopulation< DIM >.
Referenced by AbstractCellPopulation< DIM >::WriteResultsToFiles().
void AbstractCellPopulation< DIM >::GenerateCellResults | ( | unsigned | locationIndex, | |
std::vector< unsigned > & | rCellProliferativeTypeCounter, | |||
std::vector< unsigned > & | rCellCyclePhaseCounter | |||
) | [inline, virtual] |
Generate results for a given cell in the current cell population state to output files.
locationIndex | location index of the cell | |
rCellProliferativeTypeCounter | cell type counter | |
rCellCyclePhaseCounter | cell cycle phase counter |
Reimplemented in AbstractCentreBasedCellPopulation< DIM >.
Definition at line 359 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::GetLocationOfCellCentre(), CellPropertyCollection::GetProperty(), AbstractCellPopulation< DIM >::mLocationCellMap, AbstractCellPopulation< DIM >::mOutputCellAges, AbstractCellPopulation< DIM >::mOutputCellAncestors, AbstractCellPopulation< DIM >::mOutputCellCyclePhases, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes, AbstractCellPopulation< DIM >::mOutputCellVariables, AbstractCellPopulation< DIM >::mpCellAgesFile, AbstractCellPopulation< DIM >::mpCellVariablesFile, AbstractCellPopulation< DIM >::mpVizCellAncestorsFile, AbstractCellPopulation< DIM >::mpVizCellProliferativeTypesFile, NEVER_REACHED, and UNSIGNED_UNSET.
Referenced by AbstractCentreBasedCellPopulation< DIM >::GenerateCellResults(), and VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles().
void AbstractCellPopulation< DIM >::WriteCellResultsToFiles | ( | std::vector< unsigned > & | rCellProliferativeTypeCounter, | |
std::vector< unsigned > & | rCellCyclePhaseCounter | |||
) | [inline] |
Write the current state of each cell to output files.
rCellProliferativeTypeCounter | cell type counter | |
rCellCyclePhaseCounter | cell cycle phase counter |
Definition at line 490 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::GetCellMutationStateCount(), AbstractCellPopulation< DIM >::mCellCyclePhaseCount, AbstractCellPopulation< DIM >::mCellProliferativeTypeCount, AbstractCellPopulation< DIM >::mOutputCellAges, AbstractCellPopulation< DIM >::mOutputCellAncestors, AbstractCellPopulation< DIM >::mOutputCellCyclePhases, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes, AbstractCellPopulation< DIM >::mOutputCellVariables, AbstractCellPopulation< DIM >::mpCellAgesFile, AbstractCellPopulation< DIM >::mpCellCyclePhasesFile, AbstractCellPopulation< DIM >::mpCellMutationStatesFile, AbstractCellPopulation< DIM >::mpCellProliferativeTypesFile, AbstractCellPopulation< DIM >::mpCellVariablesFile, AbstractCellPopulation< DIM >::mpVizCellAncestorsFile, and AbstractCellPopulation< DIM >::mpVizCellProliferativeTypesFile.
Referenced by VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), and AbstractCentreBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles().
void AbstractCellPopulation< DIM >::CloseOutputFiles | ( | ) | [inline, virtual] |
Close any output files.
Reimplemented in MeshBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, and MeshBasedCellPopulation< 2 >.
Definition at line 317 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellAges, AbstractCellPopulation< DIM >::mOutputCellAncestors, AbstractCellPopulation< DIM >::mOutputCellCyclePhases, AbstractCellPopulation< DIM >::mOutputCellIdData, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes, AbstractCellPopulation< DIM >::mOutputCellVariables, AbstractCellPopulation< DIM >::mpCellAgesFile, AbstractCellPopulation< DIM >::mpCellCyclePhasesFile, AbstractCellPopulation< DIM >::mpCellIdFile, AbstractCellPopulation< DIM >::mpCellMutationStatesFile, AbstractCellPopulation< DIM >::mpCellProliferativeTypesFile, AbstractCellPopulation< DIM >::mpCellVariablesFile, AbstractCellPopulation< DIM >::mpVizBoundaryNodesFile, AbstractCellPopulation< DIM >::mpVizCellAncestorsFile, AbstractCellPopulation< DIM >::mpVizCellProliferativeTypesFile, AbstractCellPopulation< DIM >::mpVizNodesFile, and AbstractCellPopulation< DIM >::mpVtkMetaFile.
Referenced by VertexBasedCellPopulation< DIM >::CloseOutputFiles(), and MeshBasedCellPopulation< DIM >::CloseOutputFiles().
void AbstractCellPopulation< DIM >::OutputCellPopulationInfo | ( | out_stream & | rParamsFile | ) | [inline] |
Outputs CellPopulation used in the simulation to file and then calls OutputCellPopulationParameters to output all relevant parameters.
rParamsFile | the file stream to which the parameters are output |
Definition at line 641 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::Begin(), AbstractCellPopulation< DIM >::End(), Identifiable::GetIdentifier(), and AbstractCellPopulation< DIM >::OutputCellPopulationParameters().
void AbstractCellPopulation< DIM >::OutputCellPopulationParameters | ( | out_stream & | rParamsFile | ) | [inline, pure virtual] |
Outputs CellPopulation parameters to file
As this method is pure virtual, it must be overridden in subclasses.
rParamsFile | the file stream to which the parameters are output |
Implemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, MeshBasedCellPopulation< 2 >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
Definition at line 682 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mDampingConstantMutant, AbstractCellPopulation< DIM >::mDampingConstantNormal, AbstractCellPopulation< DIM >::mOutputCellAges, AbstractCellPopulation< DIM >::mOutputCellAncestors, AbstractCellPopulation< DIM >::mOutputCellCyclePhases, AbstractCellPopulation< DIM >::mOutputCellIdData, AbstractCellPopulation< DIM >::mOutputCellMutationStates, AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes, AbstractCellPopulation< DIM >::mOutputCellVariables, and AbstractCellPopulation< DIM >::mOutputCellVolumes.
Referenced by AbstractCellPopulation< DIM >::OutputCellPopulationInfo(), VertexBasedCellPopulation< DIM >::OutputCellPopulationParameters(), and AbstractCentreBasedCellPopulation< DIM >::OutputCellPopulationParameters().
double AbstractCellPopulation< DIM >::GetDampingConstantNormal | ( | ) | [inline] |
Definition at line 701 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mDampingConstantNormal.
Referenced by VertexBasedCellPopulation< DIM >::GetDampingConstant(), AbstractCentreBasedCellPopulation< DIM >::GetDampingConstant(), and MeshBasedCellPopulationWithGhostNodes< DIM >::UpdateGhostPositions().
double AbstractCellPopulation< DIM >::GetDampingConstantMutant | ( | ) | [inline] |
Definition at line 707 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mDampingConstantMutant.
Referenced by VertexBasedCellPopulation< DIM >::GetDampingConstant(), and AbstractCentreBasedCellPopulation< DIM >::GetDampingConstant().
bool AbstractCellPopulation< DIM >::GetOutputCellIdData | ( | ) | [inline] |
Definition at line 713 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellIdData.
bool AbstractCellPopulation< DIM >::GetOutputCellMutationStates | ( | ) | [inline] |
Definition at line 719 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellMutationStates.
bool AbstractCellPopulation< DIM >::GetOutputCellAncestors | ( | ) | [inline] |
Definition at line 725 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellAncestors.
bool AbstractCellPopulation< DIM >::GetOutputCellProliferativeTypes | ( | ) | [inline] |
Definition at line 731 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes.
bool AbstractCellPopulation< DIM >::GetOutputCellVariables | ( | ) | [inline] |
Definition at line 737 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellVariables.
bool AbstractCellPopulation< DIM >::GetOutputCellCyclePhases | ( | ) | [inline] |
Definition at line 743 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellCyclePhases.
bool AbstractCellPopulation< DIM >::GetOutputCellAges | ( | ) | [inline] |
Definition at line 749 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellAges.
bool AbstractCellPopulation< DIM >::GetOutputCellVolumes | ( | ) | [inline] |
Definition at line 755 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellVolumes.
void AbstractCellPopulation< DIM >::SetDampingConstantNormal | ( | double | dampingConstantNormal | ) | [inline] |
Set mDampingConstantNormal.
dampingConstantNormal | the new value of mDampingConstantNormal |
Definition at line 765 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mDampingConstantNormal.
void AbstractCellPopulation< DIM >::SetDampingConstantMutant | ( | double | dampingConstantMutant | ) | [inline] |
Set mDampingConstantMutant.
dampingConstantMutant | the new value of mDampingConstantMutant |
Definition at line 772 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mDampingConstantMutant.
void AbstractCellPopulation< DIM >::SetOutputCellIdData | ( | bool | outputCellIdData | ) | [inline] |
Set mOutputCellIdData.
outputCellIdData | the new value of mOutputCellIdData |
Definition at line 779 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellIdData.
void AbstractCellPopulation< DIM >::SetOutputCellMutationStates | ( | bool | outputCellMutationStates | ) | [inline] |
Set mOutputCellMutationStates.
outputCellMutationStates | the new value of mOutputCellMutationStates |
Definition at line 785 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellMutationStates.
void AbstractCellPopulation< DIM >::SetOutputCellAncestors | ( | bool | outputCellAncestors | ) | [inline] |
Set mOutputCellAncestors.
outputCellAncestors | the new value of mOutputCellAncestors |
Definition at line 791 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellAncestors.
void AbstractCellPopulation< DIM >::SetOutputCellProliferativeTypes | ( | bool | outputCellProliferativeTypes | ) | [inline] |
Set mOutputCellProliferativeTypes.
outputCellProliferativeTypes | the new value of mOutputCellProliferativeTypes |
Definition at line 797 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes.
void AbstractCellPopulation< DIM >::SetOutputCellVariables | ( | bool | outputCellVariables | ) | [inline] |
Set mOutputCellVariables.
outputCellVariables | the new value of mOutputCellVariables |
Definition at line 803 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellVariables.
void AbstractCellPopulation< DIM >::SetOutputCellCyclePhases | ( | bool | outputCellCyclePhases | ) | [inline] |
Set mOutputCellCyclePhases.
outputCellCyclePhases | the new value of mOutputCellCyclePhases |
Definition at line 809 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellCyclePhases.
void AbstractCellPopulation< DIM >::SetOutputCellAges | ( | bool | outputCellAges | ) | [inline] |
Set mOutputCellAges.
outputCellAges | the new value of mOutputCellAges |
Definition at line 815 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellAges.
void AbstractCellPopulation< DIM >::SetOutputCellVolumes | ( | bool | outputCellVolumes | ) | [inline, virtual] |
Set mOutputCellVolumes.
outputCellVolumes | the new value of mOutputCellVolumes |
Reimplemented in NodeBasedCellPopulation< DIM >.
Definition at line 821 of file AbstractCellPopulation.cpp.
References AbstractCellPopulation< DIM >::mOutputCellVolumes.
AbstractCellPopulation< DIM >::Iterator AbstractCellPopulation< DIM >::Begin | ( | ) | [inline] |
Definition at line 830 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::mCells.
Referenced by CryptProjectionForce::AddForceContribution(), ChemotacticForce< DIM >::AddForceContribution(), VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCellPopulation< DIM >::GetCellAncestors(), CryptStatistics::GetCryptSection(), CryptProjectionStatistics::GetCryptSection(), AbstractCellPopulation< DIM >::GetNumRealCells(), AbstractCellPopulation< DIM >::InitialiseCells(), AbstractCryptStatistics::LabelAllCellsAsHealthy(), AbstractCryptStatistics::LabelSPhaseCells(), AbstractCellPopulation< DIM >::OutputCellPopulationInfo(), AbstractCellPopulation< DIM >::SetCellAncestorsToLocationIndices(), CellwiseDataGradient< DIM >::SetupGradients(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), RadialSloughingCellKiller::TestAndLabelCellsForApoptosisOrDeath(), RandomCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), PlaneBasedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), OxygenBasedCellKiller< SPACE_DIM >::TestAndLabelCellsForApoptosisOrDeath(), CryptProjectionForce::UpdateNode3dLocationMap(), AbstractCentreBasedCellPopulation< DIM >::UpdateNodeLocations(), VertexBasedCellPopulation< DIM >::Validate(), NodeBasedCellPopulation< DIM >::Validate(), MeshBasedCellPopulationWithGhostNodes< DIM >::Validate(), MeshBasedCellPopulation< DIM >::Validate(), AbstractCellPopulation< DIM >::WriteCellIdDataToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
AbstractCellPopulation< DIM >::Iterator AbstractCellPopulation< DIM >::End | ( | ) | [inline] |
Definition at line 836 of file AbstractCellPopulation.hpp.
References AbstractCellPopulation< DIM >::mCells.
Referenced by CryptProjectionForce::AddForceContribution(), ChemotacticForce< DIM >::AddForceContribution(), VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCellPopulation< DIM >::GetCellAncestors(), CryptStatistics::GetCryptSection(), CryptProjectionStatistics::GetCryptSection(), AbstractCellPopulation< DIM >::GetNumRealCells(), AbstractCellPopulation< DIM >::InitialiseCells(), AbstractCryptStatistics::LabelAllCellsAsHealthy(), AbstractCryptStatistics::LabelSPhaseCells(), AbstractCellPopulation< DIM >::OutputCellPopulationInfo(), AbstractCellPopulation< DIM >::SetCellAncestorsToLocationIndices(), CellwiseDataGradient< DIM >::SetupGradients(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), RadialSloughingCellKiller::TestAndLabelCellsForApoptosisOrDeath(), RandomCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), PlaneBasedCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), OxygenBasedCellKiller< SPACE_DIM >::TestAndLabelCellsForApoptosisOrDeath(), CryptProjectionForce::UpdateNode3dLocationMap(), AbstractCentreBasedCellPopulation< DIM >::UpdateNodeLocations(), VertexBasedCellPopulation< DIM >::Validate(), NodeBasedCellPopulation< DIM >::Validate(), MeshBasedCellPopulationWithGhostNodes< DIM >::Validate(), MeshBasedCellPopulation< DIM >::Validate(), AbstractCellPopulation< DIM >::WriteCellIdDataToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in AbstractCentreBasedCellPopulation< DIM >, MeshBasedCellPopulation< DIM >, MeshBasedCellPopulationWithGhostNodes< DIM >, NodeBasedCellPopulation< DIM >, VertexBasedCellPopulation< DIM >, MeshBasedCellPopulation< 1 >, MeshBasedCellPopulation< 2 >, and MeshBasedCellPopulationWithGhostNodes< 2 >.
Definition at line 69 of file AbstractCellPopulation.hpp.
std::list<CellPtr> AbstractCellPopulation< DIM >::mCells [protected] |
List of cells
Definition at line 101 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::AbstractCellPopulation(), VertexBasedCellPopulation< DIM >::AddCell(), AbstractCentreBasedCellPopulation< DIM >::AddCell(), AbstractCellPopulation< DIM >::Begin(), MeshBasedCellPopulation< DIM >::CheckCellPointers(), AbstractCellPopulation< DIM >::End(), MeshBasedCellPopulation< DIM >::MeshBasedCellPopulation(), VertexBasedCellPopulation< DIM >::RemoveDeadCells(), NodeBasedCellPopulation< DIM >::RemoveDeadCells(), MeshBasedCellPopulation< DIM >::RemoveDeadCells(), AbstractCellPopulation< DIM >::rGetCells(), AbstractCellPopulation< SPACE_DIM >::serialize(), VertexBasedCellPopulation< DIM >::Update(), NodeBasedCellPopulation< DIM >::Update(), MeshBasedCellPopulation< DIM >::Update(), VertexBasedCellPopulation< DIM >::WriteCellVolumeResultsToFile(), and VertexBasedCellPopulation< DIM >::WriteResultsToFiles().
std::map<unsigned, CellPtr> AbstractCellPopulation< DIM >::mLocationCellMap [protected] |
Map location (node or VertexElement) indices back to cells
Definition at line 104 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::AbstractCellPopulation(), VertexBasedCellPopulation< DIM >::AddCell(), AbstractCentreBasedCellPopulation< DIM >::AddCell(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCentreBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCellPopulation< DIM >::GetCellUsingLocationIndex(), NodeBasedCellPopulation< DIM >::RemoveDeadCells(), MeshBasedCellPopulation< DIM >::RemoveDeadCells(), AbstractCellPopulation< SPACE_DIM >::serialize(), VertexBasedCellPopulation< DIM >::Update(), NodeBasedCellPopulation< DIM >::Update(), MeshBasedCellPopulation< DIM >::Update(), MeshBasedCellPopulation< DIM >::WriteCellPopulationVolumeResultsToFile(), VertexBasedCellPopulation< DIM >::WriteCellVolumeResultsToFile(), MeshBasedCellPopulation< DIM >::WriteCellVolumeResultsToFile(), VertexBasedCellPopulation< DIM >::WriteResultsToFiles(), MeshBasedCellPopulation< DIM >::WriteResultsToFiles(), AbstractCentreBasedCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
std::map<Cell*, unsigned> AbstractCellPopulation< DIM >::mCellLocationMap [protected] |
Map cells to location (node or VertexElement) indices
Definition at line 107 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::AbstractCellPopulation(), VertexBasedCellPopulation< DIM >::AddCell(), MeshBasedCellPopulationWithGhostNodes< DIM >::AddCell(), AbstractCentreBasedCellPopulation< DIM >::AddCell(), MeshBasedCellPopulation< DIM >::CheckCellPointers(), VertexBasedCellPopulation< DIM >::GetElementCorrespondingToCell(), AbstractCellPopulation< DIM >::GetLocationIndexUsingCell(), VertexBasedCellPopulation< DIM >::GetLocationOfCellCentre(), AbstractCentreBasedCellPopulation< DIM >::GetNodeCorrespondingToCell(), VertexBasedCellPopulation< DIM >::RemoveDeadCells(), NodeBasedCellPopulation< DIM >::RemoveDeadCells(), MeshBasedCellPopulation< DIM >::RemoveDeadCells(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetCellAncestorsToLocationIndices(), VertexBasedCellPopulation< DIM >::Update(), NodeBasedCellPopulation< DIM >::Update(), MeshBasedCellPopulation< DIM >::Update(), AbstractCentreBasedCellPopulation< DIM >::UpdateNodeLocations(), NodeBasedCellPopulation< DIM >::Validate(), MeshBasedCellPopulationWithGhostNodes< DIM >::Validate(), and AbstractCellPopulation< DIM >::WriteCellIdDataToFile().
std::vector<unsigned> AbstractCellPopulation< DIM >::mCellProliferativeTypeCount [protected] |
Current cell type counts
Definition at line 110 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::AbstractCellPopulation(), VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCentreBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCellPopulation< DIM >::rGetCellProliferativeTypeCount(), AbstractCellPopulation< SPACE_DIM >::serialize(), and AbstractCellPopulation< DIM >::WriteCellResultsToFiles().
std::vector<unsigned> AbstractCellPopulation< DIM >::mCellCyclePhaseCount [protected] |
Current cell cycle phase counts
Definition at line 113 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::AbstractCellPopulation(), VertexBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCentreBasedCellPopulation< DIM >::GenerateCellResultsAndWriteToFiles(), AbstractCellPopulation< DIM >::rGetCellCyclePhaseCount(), AbstractCellPopulation< SPACE_DIM >::serialize(), and AbstractCellPopulation< DIM >::WriteCellResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpVizNodesFile [protected] |
Results file for node visualization
Definition at line 116 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCentreBasedCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles(), and AbstractCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpVizCellProliferativeTypesFile [protected] |
Results file for cell visualization
Definition at line 119 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCentreBasedCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpCellMutationStatesFile [protected] |
Results file for cell mutation states
Definition at line 122 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpVizCellAncestorsFile [protected] |
Results file for cell ancestors
Definition at line 125 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpCellProliferativeTypesFile [protected] |
Results file for cell types
Definition at line 128 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpCellCyclePhasesFile [protected] |
Results file for cell cycle phases
Definition at line 131 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpCellVariablesFile [protected] |
Results file for cell variables
Definition at line 134 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpCellAgesFile [protected] |
Results file for cell ages
Definition at line 137 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
out_stream AbstractCellPopulation< DIM >::mpCellIdFile [protected] |
Results file for logged cell data.
Definition at line 140 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), and AbstractCellPopulation< DIM >::WriteCellIdDataToFile().
out_stream AbstractCellPopulation< DIM >::mpVizBoundaryNodesFile [protected] |
Results file for boundary nodes.
Definition at line 143 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCentreBasedCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles(), and AbstractCellPopulation< DIM >::WriteTimeAndNodeResultsToFiles().
std::string AbstractCellPopulation< DIM >::mDirPath [protected] |
A cache of where the results are going (used for VTK writer).
Definition at line 146 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CreateOutputFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
out_stream AbstractCellPopulation< DIM >::mpVtkMetaFile [protected] |
Meta results file for VTK.
Definition at line 149 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
bool AbstractCellPopulation< DIM >::mCellPopulationContainsMesh [protected] |
Whether the cell population contains a mesh.
Definition at line 152 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::IsMeshBasedCellPopulation(), MeshBasedCellPopulation< DIM >::MeshBasedCellPopulation(), and AbstractCellPopulation< SPACE_DIM >::serialize().
boost::shared_ptr<CellPropertyRegistry> AbstractCellPopulation< DIM >::mpCellPropertyRegistry [protected] |
Cell property registry.
Definition at line 155 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::AbstractCellPopulation(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GetCellMutationStateCount(), AbstractCellPopulation< DIM >::GetCellPropertyRegistry(), and AbstractCellPopulation< SPACE_DIM >::serialize().
double AbstractCellPopulation< DIM >::mDampingConstantNormal [protected] |
Damping constant for normal cells has units of kg s^-1 Represented by the parameter eta in the model by Meineke et al (2001) in their off-lattice model of the intestinal crypt (doi:10.1046/j.0960-7722.2001.00216.x).
Definition at line 163 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::GetDampingConstantNormal(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), and AbstractCellPopulation< DIM >::SetDampingConstantNormal().
double AbstractCellPopulation< DIM >::mDampingConstantMutant [protected] |
Damping constant for mutant cells has units of kg s^-1
Definition at line 168 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::GetDampingConstantMutant(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), and AbstractCellPopulation< DIM >::SetDampingConstantMutant().
bool AbstractCellPopulation< DIM >::mOutputCellIdData [protected] |
Whether to write cell ID data to file.
Definition at line 171 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GetOutputCellIdData(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellIdData(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
bool AbstractCellPopulation< DIM >::mOutputCellMutationStates [protected] |
Whether to count the number of each cell mutation state and output to file.
Definition at line 174 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GetCellMutationStateCount(), AbstractCellPopulation< DIM >::GetOutputCellMutationStates(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellMutationStates(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), AbstractCellPopulation< DIM >::WriteResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
bool AbstractCellPopulation< DIM >::mOutputCellAncestors [protected] |
Whether to output the ancestor of each cell to a visualizer file.
Definition at line 177 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GetOutputCellAncestors(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellAncestors(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), AbstractCellPopulation< DIM >::WriteResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
bool AbstractCellPopulation< DIM >::mOutputCellProliferativeTypes [protected] |
Whether to count the number of each cell type and output to file.
Definition at line 180 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GetOutputCellProliferativeTypes(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< DIM >::rGetCellProliferativeTypeCount(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellProliferativeTypes(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), AbstractCellPopulation< DIM >::WriteResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
bool AbstractCellPopulation< DIM >::mOutputCellVariables [protected] |
Whether to write the cell variables to a file.
Definition at line 183 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GetOutputCellVariables(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellVariables(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), and AbstractCellPopulation< DIM >::WriteResultsToFiles().
bool AbstractCellPopulation< DIM >::mOutputCellCyclePhases [protected] |
Whether to write the cell cycle phases to a file.
Definition at line 186 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GetOutputCellCyclePhases(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< DIM >::rGetCellCyclePhaseCount(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellCyclePhases(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), AbstractCellPopulation< DIM >::WriteResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
bool AbstractCellPopulation< DIM >::mOutputCellAges [protected] |
Whether to write the cell ages to a file.
Definition at line 189 of file AbstractCellPopulation.hpp.
Referenced by AbstractCellPopulation< DIM >::CloseOutputFiles(), AbstractCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GenerateCellResults(), AbstractCellPopulation< DIM >::GetOutputCellAges(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellAges(), AbstractCellPopulation< DIM >::WriteCellResultsToFiles(), AbstractCellPopulation< DIM >::WriteResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().
bool AbstractCellPopulation< DIM >::mOutputCellVolumes [protected] |
Whether to write the cell volumes (in 3D) or areas (in 2D) to a file.
Definition at line 192 of file AbstractCellPopulation.hpp.
Referenced by VertexBasedCellPopulation< DIM >::CloseOutputFiles(), MeshBasedCellPopulation< DIM >::CloseOutputFiles(), VertexBasedCellPopulation< DIM >::CreateOutputFiles(), MeshBasedCellPopulation< DIM >::CreateOutputFiles(), AbstractCellPopulation< DIM >::GetOutputCellVolumes(), AbstractCellPopulation< DIM >::OutputCellPopulationParameters(), AbstractCellPopulation< SPACE_DIM >::serialize(), AbstractCellPopulation< DIM >::SetOutputCellVolumes(), MeshBasedCellPopulation< DIM >::Update(), VertexBasedCellPopulation< DIM >::WriteResultsToFiles(), MeshBasedCellPopulation< DIM >::WriteResultsToFiles(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().