#include <VertexBasedCellPopulation.hpp>
Inherits AbstractOffLatticeCellPopulation< DIM >.

Public Member Functions | |
| VertexBasedCellPopulation (MutableVertexMesh< DIM, DIM > &rMesh, std::vector< CellPtr > &rCells, bool deleteMesh=false, bool validate=true, const std::vector< unsigned > locationIndices=std::vector< unsigned >()) | |
| VertexBasedCellPopulation (MutableVertexMesh< DIM, DIM > &rMesh) | |
| virtual | ~VertexBasedCellPopulation () |
| double | GetDampingConstant (unsigned nodeIndex) |
| MutableVertexMesh< DIM, DIM > & | rGetMesh () |
| const MutableVertexMesh< DIM, DIM > & | rGetMesh () const |
| VertexElement< DIM, DIM > * | GetElement (unsigned elementIndex) |
| unsigned | GetNumElements () |
| unsigned | GetNumNodes () |
| c_vector< double, DIM > | GetLocationOfCellCentre (CellPtr pCell) |
| Node< DIM > * | GetNode (unsigned index) |
| unsigned | AddNode (Node< DIM > *pNewNode) |
| void | UpdateNodeLocations (double dt) |
| void | SetNode (unsigned index, ChastePoint< DIM > &rNewLocation) |
| VertexElement< DIM, DIM > * | GetElementCorrespondingToCell (CellPtr pCell) |
| CellPtr | AddCell (CellPtr pNewCell, const c_vector< double, DIM > &rCellDivisionVector, CellPtr pParentCell=CellPtr()) |
| unsigned | RemoveDeadCells () |
| bool | IsCellAssociatedWithADeletedLocation (CellPtr pCell) |
| void | Update (bool hasHadBirthsOrDeaths=true) |
| virtual void | OpenWritersFiles (const std::string &rDirectory) |
| virtual void | AcceptPopulationWriter (boost::shared_ptr< AbstractCellPopulationWriter< DIM, DIM > > pPopulationWriter) |
| virtual void | AcceptCellWriter (boost::shared_ptr< AbstractCellWriter< DIM, DIM > > pCellWriter, CellPtr pCell) |
| double | GetVolumeOfCell (CellPtr pCell) |
| bool | GetOutputCellRearrangementLocations () |
| void | SetOutputCellRearrangementLocations (bool outputCellRearrangementLocations) |
| void | OutputCellPopulationParameters (out_stream &rParamsFile) |
| double | GetWidth (const unsigned &rDimension) |
| std::set< unsigned > | GetNeighbouringNodeIndices (unsigned index) |
| TetrahedralMesh< DIM, DIM > * | GetTetrahedralMeshUsingVertexMesh () |
| boost::shared_ptr < AbstractVertexBasedDivisionRule < DIM > > | GetVertexBasedDivisionRule () |
| void | SetVertexBasedDivisionRule (boost::shared_ptr< AbstractVertexBasedDivisionRule< DIM > > pVertexBasedDivisionRule) |
Private Member Functions | |
| virtual void | WriteVtkResultsToFile (const std::string &rDirectory) |
| template<class Archive > | |
| void | serialize (Archive &archive, const unsigned int version) |
| void | Validate () |
Private Attributes | |
| bool | mDeleteMesh |
| MutableVertexMesh< DIM, DIM > * | mpMutableVertexMesh |
| bool | mOutputCellRearrangementLocations |
| boost::shared_ptr < AbstractVertexBasedDivisionRule < DIM > > | mpVertexBasedDivisionRule |
Friends | |
| class | TestVertexBasedDivisionRules |
| class | boost::serialization::access |
A facade class encapsulating a vertex-based cell population.
Contains a group of cells and maintains the associations between CellPtrs and elements in the MutableVertexMesh.
Definition at line 61 of file VertexBasedCellPopulation.hpp.
| VertexBasedCellPopulation< DIM >::VertexBasedCellPopulation | ( | MutableVertexMesh< DIM, DIM > & | rMesh, | |
| std::vector< CellPtr > & | rCells, | |||
| bool | deleteMesh = false, |
|||
| bool | validate = true, |
|||
| const std::vector< unsigned > | locationIndices = std::vector<unsigned>() | |||
| ) | [inline] |
Create a new cell population facade from a mesh and collection of cells.
There must be precisely one CellPtr for each VertexElement in the mesh.
| rMesh | reference to a | |
| rCells | reference to a vector of CellPtrs | |
| deleteMesh | set to true if you want the cell population to free the mesh memory on destruction | |
| validate | whether to validate the cell population when it is created (defaults to true) | |
| locationIndices | an optional vector of location indices that correspond to real cells |
Definition at line 59 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::AddCellUsingLocationIndex(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCells, VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, VertexBasedCellPopulation< DIM >::mpVertexBasedDivisionRule, AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mrMesh, and VertexBasedCellPopulation< DIM >::Validate().
| VertexBasedCellPopulation< DIM >::VertexBasedCellPopulation | ( | MutableVertexMesh< DIM, DIM > & | rMesh | ) | [inline] |
Constructor for use by boost serialization ONLY!
| rMesh | a vertex mesh. |
Definition at line 87 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, and AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mrMesh.
| VertexBasedCellPopulation< DIM >::~VertexBasedCellPopulation | ( | ) | [inline, virtual] |
Destructor, which frees any memory allocated by the constructor.
Definition at line 96 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mDeleteMesh, and AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mrMesh.
| void VertexBasedCellPopulation< DIM >::AcceptCellWriter | ( | boost::shared_ptr< AbstractCellWriter< DIM, DIM > > | pCellWriter, | |
| CellPtr | pCell | |||
| ) | [inline, virtual] |
A virtual method to accept a cell writer so it can write data from this object to file.
| pCellWriter | the population writer. | |
| pCell | the cell whose data is being written. |
Definition at line 368 of file VertexBasedCellPopulation.cpp.
| void VertexBasedCellPopulation< DIM >::AcceptPopulationWriter | ( | boost::shared_ptr< AbstractCellPopulationWriter< DIM, DIM > > | pPopulationWriter | ) | [inline, virtual] |
A virtual method to accept a cell population writer so it can write data from this object to file.
| pPopulationWriter | the population writer. |
Definition at line 362 of file VertexBasedCellPopulation.cpp.
| CellPtr VertexBasedCellPopulation< DIM >::AddCell | ( | CellPtr | pNewCell, | |
| const c_vector< double, DIM > & | rCellDivisionVector, | |||
| CellPtr | pParentCell = CellPtr() | |||
| ) | [inline] |
Overridden AddCell() method.
Add a new cell to the cell population.
| pNewCell | the cell to add | |
| rCellDivisionVector | if this vector has any non-zero component, then it is used as the axis along which the parent cell divides | |
| pParentCell | pointer to a parent cell (if required) |
Definition at line 195 of file VertexBasedCellPopulation.cpp.
References MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), VertexBasedCellPopulation< DIM >::GetElementCorrespondingToCell(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCellLocationMap, AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCells, VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, and AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::SetCellUsingLocationIndex().
| unsigned VertexBasedCellPopulation< DIM >::AddNode | ( | Node< DIM > * | pNewNode | ) | [inline] |
Overridden AddNode() method.
Add a new node to the cell population.
| pNewNode | pointer to the new node |
Definition at line 171 of file VertexBasedCellPopulation.cpp.
References MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::AddNode(), and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
| double VertexBasedCellPopulation< DIM >::GetDampingConstant | ( | unsigned | nodeIndex | ) | [inline, virtual] |
Overridden GetDampingConstant() method.
| nodeIndex | the global index of this node |
Implements AbstractOffLatticeCellPopulation< DIM >.
Definition at line 105 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetCellUsingLocationIndex(), AbstractOffLatticeCellPopulation< DIM >::GetDampingConstantMutant(), AbstractOffLatticeCellPopulation< DIM >::GetDampingConstantNormal(), and VertexBasedCellPopulation< DIM >::GetNode().
Referenced by VertexBasedCellPopulation< DIM >::UpdateNodeLocations(), and NodeVelocityWriter< ELEMENT_DIM, SPACE_DIM >::Visit().
| VertexElement< DIM, DIM > * VertexBasedCellPopulation< DIM >::GetElement | ( | unsigned | elementIndex | ) | [inline] |
Get a particular VertexElement.
| elementIndex | the global index of the VertexElement |
Definition at line 147 of file VertexBasedCellPopulation.cpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
Referenced by NagaiHondaForce< DIM >::AddForceContribution(), FarhadifarForce< DIM >::AddForceContribution(), VertexBasedCellPopulation< DIM >::RemoveDeadCells(), and CellPopulationElementWriter< ELEMENT_DIM, SPACE_DIM >::Visit().
| VertexElement< DIM, DIM > * VertexBasedCellPopulation< DIM >::GetElementCorrespondingToCell | ( | CellPtr | pCell | ) | [inline] |
Get a pointer to the element corresponding to a given CellPtr.
| pCell | the cell |
Definition at line 183 of file VertexBasedCellPopulation.cpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetLocationIndexUsingCell(), and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
Referenced by VertexBasedCellPopulation< DIM >::AddCell(), and VertexBasedCellPopulation< DIM >::IsCellAssociatedWithADeletedLocation().
| c_vector< double, DIM > VertexBasedCellPopulation< DIM >::GetLocationOfCellCentre | ( | CellPtr | pCell | ) | [inline, virtual] |
Overridden GetLocationOfCellCentre() method.
Find the centre of mass of a given cell (assuming uniform density). Note that, as there is no guarantee of convexity, this may lie outside the VertexElement corresponding to the cell.
| pCell | a cell in the population |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 159 of file VertexBasedCellPopulation.cpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfElement(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCellLocationMap, and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
| std::set< unsigned > VertexBasedCellPopulation< DIM >::GetNeighbouringNodeIndices | ( | unsigned | index | ) | [inline, virtual] |
Overridden GetNeighbouringNodeIndices() method.
| index | the node index |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 536 of file VertexBasedCellPopulation.cpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringNodeIndices(), and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
| Node< DIM > * VertexBasedCellPopulation< DIM >::GetNode | ( | unsigned | index | ) | [inline, virtual] |
Overridden GetNode() method.
| index | global index of the specified node |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 165 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mrMesh.
Referenced by WelikyOsterForce< DIM >::AddForceContribution(), NagaiHondaForce< DIM >::AddForceContribution(), FarhadifarForce< DIM >::AddForceContribution(), VertexBasedCellPopulation< DIM >::GetDampingConstant(), PlaneBoundaryCondition< DIM >::ImposeBoundaryCondition(), and VertexBasedCellPopulation< DIM >::UpdateNodeLocations().
| unsigned VertexBasedCellPopulation< DIM >::GetNumElements | ( | ) | [inline] |
Definition at line 189 of file VertexBasedCellPopulation.cpp.
References MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
Referenced by NagaiHondaForce< DIM >::AddForceContribution(), FarhadifarForce< DIM >::AddForceContribution(), and VertexBasedCellPopulation< DIM >::Validate().
| unsigned VertexBasedCellPopulation< DIM >::GetNumNodes | ( | ) | [inline, virtual] |
Overridden GetNumNodes() method.
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 153 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mrMesh.
Referenced by NagaiHondaForce< DIM >::AddForceContribution(), FarhadifarForce< DIM >::AddForceContribution(), PlaneBoundaryCondition< DIM >::ImposeBoundaryCondition(), and VertexBasedCellPopulation< DIM >::UpdateNodeLocations().
| bool VertexBasedCellPopulation< DIM >::GetOutputCellRearrangementLocations | ( | ) | [inline] |
Definition at line 498 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mOutputCellRearrangementLocations.
| TetrahedralMesh< DIM, DIM > * VertexBasedCellPopulation< DIM >::GetTetrahedralMeshUsingVertexMesh | ( | ) | [inline] |
Definition at line 554 of file VertexBasedCellPopulation.cpp.
References TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::CreateOrderedPair(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), Node< SPACE_DIM >::GetIndex(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNode(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), Node< SPACE_DIM >::IsBoundaryNode(), PetscTools::IsSequential(), VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, Node< SPACE_DIM >::rGetLocation(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::SetMeshHasChangedSinceLoading().
| boost::shared_ptr< AbstractVertexBasedDivisionRule< DIM > > VertexBasedCellPopulation< DIM >::GetVertexBasedDivisionRule | ( | ) | [inline] |
Definition at line 542 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mpVertexBasedDivisionRule.
Referenced by OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::CalculateCellDivisionVector().
| double VertexBasedCellPopulation< DIM >::GetVolumeOfCell | ( | CellPtr | pCell | ) | [inline, virtual] |
Overridden GetVolumeOfCell() method.
| pCell | boost shared pointer to a cell |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 374 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetLocationIndexUsingCell(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfElement(), and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
| double VertexBasedCellPopulation< DIM >::GetWidth | ( | const unsigned & | rDimension | ) | [inline, virtual] |
Overridden GetWidth() method.
Calculate the 'width' of any dimension of the cell population by calling GetWidth() on the mesh.
| rDimension | a dimension (0,1 or 2) |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 527 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mrMesh.
| bool VertexBasedCellPopulation< DIM >::IsCellAssociatedWithADeletedLocation | ( | CellPtr | pCell | ) | [inline, virtual] |
Overridden IsCellAssociatedWithADeletedLocation() method.
| pCell | the cell |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 293 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::GetElementCorrespondingToCell().
| void VertexBasedCellPopulation< DIM >::OpenWritersFiles | ( | const std::string & | rDirectory | ) | [inline, virtual] |
Overridden OpenWritersFiles() method.
Open all files in mCellPopulationWriters and mCellWriters for writing (not appending).
| rDirectory | pathname of the output directory, relative to where Chaste output is stored |
Reimplemented from AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 468 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mOutputCellRearrangementLocations, and AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mOutputResultsForChasteVisualizer.
| void VertexBasedCellPopulation< DIM >::OutputCellPopulationParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Overridden OutputCellPopulationParameters() method.
| rParamsFile | the file stream to which the parameters are output |
Reimplemented from AbstractOffLatticeCellPopulation< DIM >.
Definition at line 510 of file VertexBasedCellPopulation.cpp.
References MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCellRearrangementRatio(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCellRearrangementThreshold(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetT2Threshold(), VertexBasedCellPopulation< DIM >::mOutputCellRearrangementLocations, VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, and VertexBasedCellPopulation< DIM >::mpVertexBasedDivisionRule.
| unsigned VertexBasedCellPopulation< DIM >::RemoveDeadCells | ( | ) | [inline, virtual] |
Remove all cells labelled as dead.
Note that after calling this method the cell population will be in an inconsistent state until the equivalent of a 'remesh' is performed! So don't try iterating over cells or anything like that.
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 217 of file VertexBasedCellPopulation.cpp.
References MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DeleteElementPriorToReMesh(), VertexBasedCellPopulation< DIM >::GetElement(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetLocationIndexUsingCell(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCells, and VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
| const MutableVertexMesh< DIM, DIM > & VertexBasedCellPopulation< DIM >::rGetMesh | ( | ) | const [inline] |
Definition at line 141 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
| MutableVertexMesh< DIM, DIM > & VertexBasedCellPopulation< DIM >::rGetMesh | ( | ) | [inline] |
Reimplemented from AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 135 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mpMutableVertexMesh.
Referenced by VertexCryptBoundaryForce< DIM >::AddForceContribution(), WelikyOsterForce< DIM >::AddForceContribution(), NagaiHondaForce< DIM >::AddForceContribution(), FarhadifarForce< DIM >::AddForceContribution(), ShortAxisVertexBasedDivisionRule< SPACE_DIM >::CalculateCellDivisionVector(), VertexT3SwapLocationsWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VertexT2SwapLocationsWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VertexT1SwapLocationsWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), NodeVelocityWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), and CellPopulationElementWriter< ELEMENT_DIM, SPACE_DIM >::Visit().
| void VertexBasedCellPopulation< DIM >::serialize | ( | Archive & | archive, | |
| const unsigned int | version | |||
| ) | [inline, private] |
Serialize the object and its member variables.
Note that serialization of the mesh and cells is handled by load/save_construct_data.
Note also that member data related to writers is not saved - output must be set up again by the caller after a restart.
| archive | the archive | |
| version | the current version of this class |
Reimplemented from AbstractOffLatticeCellPopulation< DIM >.
Definition at line 109 of file VertexBasedCellPopulation.hpp.
References VertexBasedCellPopulation< DIM >::mOutputCellRearrangementLocations, and VertexBasedCellPopulation< DIM >::mpVertexBasedDivisionRule.
| void VertexBasedCellPopulation< DIM >::SetNode | ( | unsigned | index, | |
| ChastePoint< DIM > & | rNewLocation | |||
| ) | [inline] |
Overridden SetNode() method.
Move the node with a given index to a new point in space.
| index | the index of the node to be moved | |
| rNewLocation | the new target location of the node |
Definition at line 177 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, and MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::SetNode().
Referenced by VertexBasedCellPopulation< DIM >::UpdateNodeLocations().
| void VertexBasedCellPopulation< DIM >::SetOutputCellRearrangementLocations | ( | bool | outputCellRearrangementLocations | ) | [inline] |
Set mOutputCellRearrangementLocations.
| outputCellRearrangementLocations | the new value of mOutputCellRearrangementLocations |
Definition at line 504 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mOutputCellRearrangementLocations.
| void VertexBasedCellPopulation< DIM >::SetVertexBasedDivisionRule | ( | boost::shared_ptr< AbstractVertexBasedDivisionRule< DIM > > | pVertexBasedDivisionRule | ) | [inline] |
Set the division rule for this population.
| pVertexBasedDivisionRule | pointer to the new division rule |
Definition at line 548 of file VertexBasedCellPopulation.cpp.
References VertexBasedCellPopulation< DIM >::mpVertexBasedDivisionRule.
| void VertexBasedCellPopulation< DIM >::Update | ( | bool | hasHadBirthsOrDeaths = true |
) | [inline, virtual] |
Remove the VertexElements which have been marked as deleted, perform any cell rearrangements if required, and update the correspondence with CellPtrs.
| hasHadBirthsOrDeaths | - a bool saying whether cell population has had Births Or Deaths not needed in this cell population class |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 299 of file VertexBasedCellPopulation.cpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNumAllElements(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCellLocationMap, AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCells, AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mLocationCellMap, VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::SetCellUsingLocationIndex(), and VertexBasedCellPopulation< DIM >::Validate().
| void VertexBasedCellPopulation< DIM >::UpdateNodeLocations | ( | double | dt | ) | [inline, virtual] |
Overridden UpdateNodeLocations() method.
| dt | the time step |
Implements AbstractOffLatticeCellPopulation< DIM >.
Definition at line 252 of file VertexBasedCellPopulation.cpp.
References MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCellRearrangementThreshold(), VertexBasedCellPopulation< DIM >::GetDampingConstant(), VertexBasedCellPopulation< DIM >::GetNode(), VertexBasedCellPopulation< DIM >::GetNumNodes(), VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, and VertexBasedCellPopulation< DIM >::SetNode().
| void VertexBasedCellPopulation< DIM >::Validate | ( | ) | [inline, private, virtual] |
Check the consistency of internal data structures. Each VertexElement must have a CellPtr associated with it.
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 334 of file VertexBasedCellPopulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::Begin(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::End(), EXCEPTION, AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetLocationIndexUsingCell(), and VertexBasedCellPopulation< DIM >::GetNumElements().
Referenced by VertexBasedCellPopulation< DIM >::Update(), and VertexBasedCellPopulation< DIM >::VertexBasedCellPopulation().
| void VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile | ( | const std::string & | rDirectory | ) | [inline, private, virtual] |
Overridden WriteVtkResultsToFile() method.
| rDirectory | pathname of the output directory, relative to where Chaste output is stored |
Implements AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 386 of file VertexBasedCellPopulation.cpp.
References VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddCellData(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::Begin(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetCellUsingLocationIndex(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::GetNumAllCells(), SimulationTime::GetTimeStepsElapsed(), SimulationTime::Instance(), AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mCellWriters, VertexBasedCellPopulation< DIM >::mpMutableVertexMesh, AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM >::mpVtkMetaFile, and VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteVtkUsingMesh().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractOffLatticeCellPopulation< DIM >.
Definition at line 96 of file VertexBasedCellPopulation.hpp.
friend class TestVertexBasedDivisionRules [friend] |
This test uses the private constructor to simplify testing.
Definition at line 68 of file VertexBasedCellPopulation.hpp.
bool VertexBasedCellPopulation< DIM >::mDeleteMesh [private] |
Whether to delete the mesh when we are destroyed. Needed if this cell population has been de-serialized.
Definition at line 74 of file VertexBasedCellPopulation.hpp.
Referenced by VertexBasedCellPopulation< DIM >::~VertexBasedCellPopulation().
bool VertexBasedCellPopulation< DIM >::mOutputCellRearrangementLocations [private] |
Whether to output the locations of T1 swaps and T3 swaps to files. Defaults to true.
Definition at line 83 of file VertexBasedCellPopulation.hpp.
Referenced by VertexBasedCellPopulation< DIM >::GetOutputCellRearrangementLocations(), VertexBasedCellPopulation< DIM >::OpenWritersFiles(), VertexBasedCellPopulation< DIM >::OutputCellPopulationParameters(), VertexBasedCellPopulation< DIM >::serialize(), and VertexBasedCellPopulation< DIM >::SetOutputCellRearrangementLocations().
MutableVertexMesh<DIM, DIM>* VertexBasedCellPopulation< DIM >::mpMutableVertexMesh [private] |
A static cast of the AbstractMesh from AbstractCellPopulation for use in this class
Definition at line 80 of file VertexBasedCellPopulation.hpp.
Referenced by VertexBasedCellPopulation< DIM >::AddCell(), VertexBasedCellPopulation< DIM >::AddNode(), VertexBasedCellPopulation< DIM >::GetElement(), VertexBasedCellPopulation< DIM >::GetElementCorrespondingToCell(), VertexBasedCellPopulation< DIM >::GetLocationOfCellCentre(), VertexBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), VertexBasedCellPopulation< DIM >::GetNumElements(), VertexBasedCellPopulation< DIM >::GetTetrahedralMeshUsingVertexMesh(), VertexBasedCellPopulation< DIM >::GetVolumeOfCell(), VertexBasedCellPopulation< DIM >::OutputCellPopulationParameters(), VertexBasedCellPopulation< DIM >::RemoveDeadCells(), VertexBasedCellPopulation< DIM >::rGetMesh(), VertexBasedCellPopulation< DIM >::SetNode(), VertexBasedCellPopulation< DIM >::Update(), VertexBasedCellPopulation< DIM >::UpdateNodeLocations(), VertexBasedCellPopulation< DIM >::VertexBasedCellPopulation(), and VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile().
boost::shared_ptr<AbstractVertexBasedDivisionRule<DIM> > VertexBasedCellPopulation< DIM >::mpVertexBasedDivisionRule [private] |
A pointer to a division rule that is used to generate the axis when dividing cells. This is a specialisation for Vertex models.
Definition at line 87 of file VertexBasedCellPopulation.hpp.
Referenced by VertexBasedCellPopulation< DIM >::GetVertexBasedDivisionRule(), VertexBasedCellPopulation< DIM >::OutputCellPopulationParameters(), VertexBasedCellPopulation< DIM >::serialize(), VertexBasedCellPopulation< DIM >::SetVertexBasedDivisionRule(), and VertexBasedCellPopulation< DIM >::VertexBasedCellPopulation().
1.6.2