|
Chaste Release::3.1
|
#include <VolumeTrackedOffLatticeSimulation.hpp>
Inheritance diagram for VolumeTrackedOffLatticeSimulation< DIM >:
Collaboration diagram for VolumeTrackedOffLatticeSimulation< DIM >:Public Member Functions | |
| VolumeTrackedOffLatticeSimulation (AbstractCellPopulation< DIM > &rCellPopulation, bool deleteCellPopulationInDestructor=false, bool initialiseCells=true) | |
| ~VolumeTrackedOffLatticeSimulation () | |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &archive, const unsigned int version) |
| void | SetupSolve () |
| void | UpdateAtEndOfTimeStep () |
| void | UpdateCellData () |
Friends | |
| class | boost::serialization::access |
Subclass of OffLatticeSimulation in which the volume of the cells is used in a CellData structure for contact inhibition below a threshold volume.
Definition at line 49 of file VolumeTrackedOffLatticeSimulation.hpp.
| VolumeTrackedOffLatticeSimulation< DIM >::VolumeTrackedOffLatticeSimulation | ( | AbstractCellPopulation< DIM > & | rCellPopulation, |
| bool | deleteCellPopulationInDestructor = false, |
||
| bool | initialiseCells = true |
||
| ) |
Default constructor.
| rCellPopulation | A cell population facade class (contains a mesh and cells) |
| deleteCellPopulationInDestructor | Whether to delete the cell population on destruction to free up memory (defaults to false) |
| initialiseCells | whether to initialise cells (defaults to true, set to false when loading from an archive) |
Definition at line 40 of file VolumeTrackedOffLatticeSimulation.cpp.
| VolumeTrackedOffLatticeSimulation< DIM >::~VolumeTrackedOffLatticeSimulation | ( | ) |
Destructor.
Definition at line 48 of file VolumeTrackedOffLatticeSimulation.cpp.
| void VolumeTrackedOffLatticeSimulation< DIM >::serialize | ( | Archive & | archive, |
| const unsigned int | version | ||
| ) | [inline, private] |
Archive the object and its member variables.
| archive | the archive |
| version | the current version of this class |
Reimplemented from OffLatticeSimulation< DIM >.
Definition at line 62 of file VolumeTrackedOffLatticeSimulation.hpp.
| void VolumeTrackedOffLatticeSimulation< DIM >::SetupSolve | ( | ) | [private, virtual] |
Overridden SetupSolve() method. Calls UpdateCellData().
Reimplemented from OffLatticeSimulation< DIM >.
Definition at line 53 of file VolumeTrackedOffLatticeSimulation.cpp.
| void VolumeTrackedOffLatticeSimulation< DIM >::UpdateAtEndOfTimeStep | ( | ) | [private, virtual] |
Overridden UpdateAtEndOfTimeStep() method. Calls UpdateCellData().
Reimplemented from AbstractCellBasedSimulation< ELEMENT_DIM, ELEMENT_DIM >.
Definition at line 63 of file VolumeTrackedOffLatticeSimulation.cpp.
| void VolumeTrackedOffLatticeSimulation< DIM >::UpdateCellData | ( | ) | [private] |
Compute the volume of each cell in the population and store these in the CellData.
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.
Definition at line 69 of file VolumeTrackedOffLatticeSimulation.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin(), and MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::CreateVoronoiTessellation().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from OffLatticeSimulation< DIM >.
Definition at line 54 of file VolumeTrackedOffLatticeSimulation.hpp.