#include <CellBasedSimulation.hpp>
Public Member Functions | |
CellBasedSimulation (AbstractCellPopulation< DIM > &rCellPopulation, bool deleteCellPopulationAndForceCollection=false, bool initialiseCells=true) | |
virtual | ~CellBasedSimulation () |
std::vector< double > | GetNodeLocation (const unsigned &rNodeIndex) |
double | GetDt () |
unsigned | GetNumBirths () |
unsigned | GetNumDeaths () |
std::string | GetOutputDirectory () |
void | SetDt (double dt) |
void | SetEndTime (double endTime) |
void | SetOutputDirectory (std::string outputDirectory) |
void | SetSamplingTimestepMultiple (unsigned samplingTimestepMultiple) |
void | SetNoBirth (bool noBirth) |
void | SetUpdateCellPopulationRule (bool updateCellPopulation) |
void | AddCellKiller (AbstractCellKiller< DIM > *pCellKiller) |
void | AddForce (AbstractForce< DIM > *pForce) |
void | AddCellPopulationBoundaryCondition (AbstractCellPopulationBoundaryCondition< DIM > *pBoundaryCondition) |
void | Solve () |
AbstractCellPopulation< DIM > & | rGetCellPopulation () |
const AbstractCellPopulation < DIM > & | rGetCellPopulation () const |
bool | GetOutputNodeVelocities () |
void | SetOutputNodeVelocities (bool outputNodeVelocities) |
virtual void | OutputSimulationParameters (out_stream &rParamsFile) |
Protected Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
virtual void | WriteVisualizerSetupFile () |
virtual unsigned | DoCellBirth () |
virtual c_vector< double, DIM > | CalculateCellDivisionVector (CellPtr pParentCell) |
unsigned | DoCellRemoval () |
virtual void | UpdateNodePositions (const std::vector< c_vector< double, DIM > > &rNodeForces) |
virtual void | ApplyCellPopulationBoundaryConditions (const std::vector< c_vector< double, DIM > > &rOldLocations) |
virtual void | PostSolve () |
virtual void | SetupSolve () |
virtual void | AfterSolve () |
virtual bool | StoppingEventHasOccurred () |
void | UpdateCellPopulation () |
void | OutputSimulationSetup () |
Protected Attributes | |
double | mDt |
double | mEndTime |
AbstractCellPopulation< DIM > & | mrCellPopulation |
bool | mDeleteCellPopulationAndForcesAndBCsInDestructor |
bool | mInitialiseCells |
bool | mNoBirth |
bool | mUpdateCellPopulation |
std::string | mOutputDirectory |
std::string | mSimulationOutputDirectory |
out_stream | mpVizSetupFile |
out_stream | mpNodeVelocitiesFile |
RandomNumberGenerator * | mpRandomGenerator |
unsigned | mNumBirths |
unsigned | mNumDeaths |
unsigned | mSamplingTimestepMultiple |
std::vector < AbstractCellKiller< DIM > * > | mCellKillers |
std::vector< AbstractForce < DIM > * > | mForceCollection |
std::vector < AbstractCellPopulationBoundaryCondition < DIM > * > | mBoundaryConditions |
bool | mOutputNodeVelocities |
Friends | |
class | TestCryptSimulation2d |
class | TestCellBasedSimulation3d |
class | TestCellBasedSimulation |
class | boost::serialization::access |
In cell-centre-based cell populations, each cell is represented by a single node (corresponding to its centre), and connectivity is defined either by a Delaunay triangulation or a radius of influence. In vertex- based cell populations, each cell is represented by a polytope (corresponding to its membrane) with a variable number of vertices.
The CellBasedSimulation is constructed with a CellPopulation, which updates the correspondence between each Cell and its spatial representation and handles cell division (governed by the CellCycleModel associated with each cell). Once constructed, one or more Force laws may be passed to the CellBasedSimulation object, to define the mechanical properties of the CellPopulation. Similarly, one or more CellKillers may be passed to the CellBasedSimulation object to specify conditions in which Cells may die, and one or more CellPopulationBoundaryConditions to specify regions in space beyond which Cells may not move.
Definition at line 65 of file CellBasedSimulation.hpp.
CellBasedSimulation< DIM >::CellBasedSimulation | ( | AbstractCellPopulation< DIM > & | rCellPopulation, | |
bool | deleteCellPopulationAndForceCollection = false , |
|||
bool | initialiseCells = true | |||
) | [inline] |
Constructor.
rCellPopulation | A cell population object | |
deleteCellPopulationAndForceCollection | Whether to delete the cell population and force collection on destruction to free up memory | |
initialiseCells | Whether to initialise cells (set to false when loading from an archive) |
Definition at line 45 of file CellBasedSimulation.cpp.
References RandomNumberGenerator::Instance(), CellBasedSimulation< DIM >::mDt, CellBasedSimulation< DIM >::mInitialiseCells, CellBasedSimulation< DIM >::mpRandomGenerator, and CellBasedSimulation< DIM >::mrCellPopulation.
CellBasedSimulation< DIM >::~CellBasedSimulation | ( | ) | [inline, virtual] |
Destructor.
This frees the cell population and cell killers, if they were created by de-serialization.
Definition at line 82 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mBoundaryConditions, CellBasedSimulation< DIM >::mCellKillers, CellBasedSimulation< DIM >::mDeleteCellPopulationAndForcesAndBCsInDestructor, CellBasedSimulation< DIM >::mForceCollection, and CellBasedSimulation< DIM >::mrCellPopulation.
void CellBasedSimulation< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, protected] |
Archive the member variables.
Serialization of singleton objects must be done with care. Before the object is serialized via a pointer, it *MUST* be serialized directly, or an assertion will trip when a second instance of the class is created on de-serialization.
archive | the archive | |
version | the current version of this class |
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation1d, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 149 of file CellBasedSimulation.hpp.
virtual void CellBasedSimulation< DIM >::WriteVisualizerSetupFile | ( | ) | [inline, protected, virtual] |
Writes out special information about the mesh to the visualizer.
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 174 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::Solve().
unsigned CellBasedSimulation< DIM >::DoCellBirth | ( | ) | [inline, protected, virtual] |
During a simulation time step, process any cell divisions that need to occur. If the simulation includes cell birth, causes (almost) all cells that are ready to divide to produce daughter cells.
Definition at line 113 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::CalculateCellDivisionVector(), CellBasedSimulation< DIM >::mNoBirth, and CellBasedSimulation< DIM >::mrCellPopulation.
Referenced by CellBasedSimulation< DIM >::UpdateCellPopulation().
c_vector< double, DIM > CellBasedSimulation< DIM >::CalculateCellDivisionVector | ( | CellPtr | pParentCell | ) | [inline, protected, virtual] |
Method for determining how cell division occurs. This method returns a vector which is then passed into the CellPopulation method AddCell(). This method may be overridden by subclasses.
For a centre-based cell population, this method calculates the new locations of the cell centres of a dividing cell, moves the parent cell and returns the location of the daughter cell. The new locations are found by picking a random direction and placing the parent and daughter in opposing directions along this axis.
For a vertex-based cell population, the method returns the zero vector.
pParentCell | the parent cell |
Reimplemented in CryptSimulation1d, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 171 of file CellBasedSimulation.cpp.
References RandomNumberGenerator::Instance(), CellBasedSimulation< DIM >::mrCellPopulation, NEVER_REACHED, and RandomNumberGenerator::ranf().
Referenced by CellBasedSimulation< DIM >::DoCellBirth().
unsigned CellBasedSimulation< DIM >::DoCellRemoval | ( | ) | [inline, protected] |
During a simulation time step, process any cell sloughing or death
This uses the cell killers to remove cells and associated nodes from the facade class.
Definition at line 151 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mCellKillers, and CellBasedSimulation< DIM >::mrCellPopulation.
Referenced by CellBasedSimulation< DIM >::UpdateCellPopulation().
void CellBasedSimulation< DIM >::UpdateNodePositions | ( | const std::vector< c_vector< double, DIM > > & | rNodeForces | ) | [inline, protected, virtual] |
Moves each node to a new position for this timestep by calling the CellPopulation::UpdateNodeLocations() method then applying any boundary conditions.
rNodeForces | the forces on nodes |
Definition at line 246 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::ApplyCellPopulationBoundaryConditions(), EXCEPTION, SimulationTime::GetTime(), SimulationTime::Instance(), CellBasedSimulation< DIM >::mBoundaryConditions, CellBasedSimulation< DIM >::mDt, CellBasedSimulation< DIM >::mOutputNodeVelocities, CellBasedSimulation< DIM >::mpNodeVelocitiesFile, CellBasedSimulation< DIM >::mrCellPopulation, and CellBasedSimulation< DIM >::mSamplingTimestepMultiple.
Referenced by CellBasedSimulation< DIM >::Solve().
virtual void CellBasedSimulation< DIM >::ApplyCellPopulationBoundaryConditions | ( | const std::vector< c_vector< double, DIM > > & | rOldLocations | ) | [inline, protected, virtual] |
Apply any cell population boundary conditions. Can be overridden in subclasses.
rOldLocations | the node locations before any boundary conditions are applied |
Definition at line 231 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::UpdateNodePositions().
virtual void CellBasedSimulation< DIM >::PostSolve | ( | ) | [inline, protected, virtual] |
A method for subclasses to do something at the end of each timestep
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 238 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::Solve().
virtual void CellBasedSimulation< DIM >::SetupSolve | ( | ) | [inline, protected, virtual] |
A method for subclasses to do something at before the start of the time loop.
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 245 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::Solve().
virtual void CellBasedSimulation< DIM >::AfterSolve | ( | ) | [inline, protected, virtual] |
This method may be overridden in subclasses to do something at the end of each time loop.
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 253 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::Solve().
bool CellBasedSimulation< DIM >::StoppingEventHasOccurred | ( | ) | [inline, protected, virtual] |
A child class can overload this if they want the simulation to stop based on certain conditions before the specified end time (for example, run until a crypt becomes monoclonal).
Definition at line 633 of file CellBasedSimulation.cpp.
Referenced by CellBasedSimulation< DIM >::Solve().
void CellBasedSimulation< DIM >::UpdateCellPopulation | ( | ) | [inline, protected] |
Calls the deaths, births and (if mUpdateCellPopulation is true) CellPopulation::Update() methods.
Definition at line 640 of file CellBasedSimulation.cpp.
References GenericEventHandler< 9, CellBasedEventHandler >::BeginEvent(), CellBasedSimulation< DIM >::DoCellBirth(), CellBasedSimulation< DIM >::DoCellRemoval(), GenericEventHandler< 9, CellBasedEventHandler >::EndEvent(), EXCEPTION, CellBasedSimulation< DIM >::mNumBirths, CellBasedSimulation< DIM >::mNumDeaths, CellBasedSimulation< DIM >::mrCellPopulation, and CellBasedSimulation< DIM >::mUpdateCellPopulation.
Referenced by CellBasedSimulation< DIM >::Solve().
void CellBasedSimulation< DIM >::OutputSimulationSetup | ( | ) | [inline, protected] |
Helper method to output all the simulations parameters and information to file.
Definition at line 681 of file CellBasedSimulation.cpp.
References Identifiable::GetIdentifier(), CellBasedSimulation< DIM >::mBoundaryConditions, CellBasedSimulation< DIM >::mCellKillers, CellBasedSimulation< DIM >::mForceCollection, CellBasedSimulation< DIM >::mrCellPopulation, CellBasedSimulation< DIM >::mSimulationOutputDirectory, OutputFileHandler::OpenOutputFile(), CellBasedSimulation< DIM >::OutputSimulationParameters(), ExecutableSupport::WriteLibraryInfo(), and ExecutableSupport::WriteMachineInfoFile().
Referenced by CellBasedSimulation< DIM >::Solve().
std::vector< double > CellBasedSimulation< DIM >::GetNodeLocation | ( | const unsigned & | rNodeIndex | ) | [inline] |
Get a node's location (ONLY FOR TESTING).
rNodeIndex | the node index |
Definition at line 443 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mrCellPopulation.
double CellBasedSimulation< DIM >::GetDt | ( | ) | [inline] |
Definition at line 345 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mDt.
unsigned CellBasedSimulation< DIM >::GetNumBirths | ( | ) | [inline] |
Definition at line 352 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mNumBirths.
unsigned CellBasedSimulation< DIM >::GetNumDeaths | ( | ) | [inline] |
Definition at line 359 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mNumDeaths.
std::string CellBasedSimulation< DIM >::GetOutputDirectory | ( | ) | [inline] |
Get the output directory of the simulation.
Definition at line 382 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mOutputDirectory.
void CellBasedSimulation< DIM >::SetDt | ( | double | dt | ) | [inline] |
Set the timestep of the simulation.
dt | the timestep to use |
Definition at line 337 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mDt.
void CellBasedSimulation< DIM >::SetEndTime | ( | double | endTime | ) | [inline] |
Set the end time and resets the timestep to be endtime/100.
endTime | the end time to use |
Definition at line 366 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mEndTime.
void CellBasedSimulation< DIM >::SetOutputDirectory | ( | std::string | outputDirectory | ) | [inline] |
Set the output directory of the simulation.
outputDirectory | the output directory to use |
Definition at line 374 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mOutputDirectory, and CellBasedSimulation< DIM >::mSimulationOutputDirectory.
void CellBasedSimulation< DIM >::SetSamplingTimestepMultiple | ( | unsigned | samplingTimestepMultiple | ) | [inline] |
Set the ratio of the number of actual timesteps to the number of timesteps at which results are written to file. Default value is set to 1 by the constructor.
samplingTimestepMultiple | the ratio to use |
Definition at line 388 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mSamplingTimestepMultiple.
void CellBasedSimulation< DIM >::SetNoBirth | ( | bool | noBirth | ) | [inline] |
Set the simulation to run with no birth.
noBirth | whether to run with no birth |
Definition at line 417 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mNoBirth.
void CellBasedSimulation< DIM >::SetUpdateCellPopulationRule | ( | bool | updateCellPopulation | ) | [inline] |
Set whether to update the topology of the cell population at each time step.
updateCellPopulation | whether to update the cell population each time step |
Definition at line 410 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mUpdateCellPopulation.
void CellBasedSimulation< DIM >::AddCellKiller | ( | AbstractCellKiller< DIM > * | pCellKiller | ) | [inline] |
Add a cell killer to be used in this simulation.
pCellKiller | pointer to a cell killer |
Definition at line 424 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mCellKillers.
void CellBasedSimulation< DIM >::AddForce | ( | AbstractForce< DIM > * | pForce | ) | [inline] |
Add a force to be used in this simulation (use this to set the mechanics system).
pForce | pointer to a force law |
Definition at line 430 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mForceCollection.
void CellBasedSimulation< DIM >::AddCellPopulationBoundaryCondition | ( | AbstractCellPopulationBoundaryCondition< DIM > * | pBoundaryCondition | ) | [inline] |
Add a cell population boundary condition to be used in this simulation.
pBoundaryCondition | pointer to a boundary condition |
Definition at line 436 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mBoundaryConditions.
void CellBasedSimulation< DIM >::Solve | ( | ) | [inline] |
Main solve method.
This method sets up the simulation time, creates output files, and initialises the cell population. It then iterates through a time loop. At each time step, first any cell death or birth is implemented, then the cell population topology is updated, then the forces are recalculated and the cell population evolved according to whatever force laws are present in the simulation, and finally the results for that time step are output to file. At the end of the time loop, the method closes any output files.
This function calls: DoCellRemoval() DoCellBirth() CellPopulation::Update()
Definition at line 455 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::AfterSolve(), GenericEventHandler< 9, CellBasedEventHandler >::BeginEvent(), GenericEventHandler< 9, CellBasedEventHandler >::EndEvent(), EXCEPTION, SimulationTime::GetTime(), SimulationTime::GetTimeStepsElapsed(), SimulationTime::IncrementTimeOneStep(), SimulationTime::Instance(), CellBasedSimulation< DIM >::mDt, CellBasedSimulation< DIM >::mEndTime, CellBasedSimulation< DIM >::mForceCollection, CellBasedSimulation< DIM >::mOutputDirectory, CellBasedSimulation< DIM >::mOutputNodeVelocities, CellBasedSimulation< DIM >::mpNodeVelocitiesFile, CellBasedSimulation< DIM >::mpVizSetupFile, CellBasedSimulation< DIM >::mrCellPopulation, CellBasedSimulation< DIM >::mSamplingTimestepMultiple, CellBasedSimulation< DIM >::mSimulationOutputDirectory, OutputFileHandler::OpenOutputFile(), CellBasedSimulation< DIM >::OutputSimulationSetup(), CellBasedSimulation< DIM >::PostSolve(), SimulationTime::ResetEndTimeAndNumberOfTimeSteps(), SimulationTime::SetEndTimeAndNumberOfTimeSteps(), CellBasedSimulation< DIM >::SetupSolve(), CellBasedSimulation< DIM >::StoppingEventHasOccurred(), CellBasedSimulation< DIM >::UpdateCellPopulation(), CellBasedSimulation< DIM >::UpdateNodePositions(), and CellBasedSimulation< DIM >::WriteVisualizerSetupFile().
AbstractCellPopulation< DIM > & CellBasedSimulation< DIM >::rGetCellPopulation | ( | ) | [inline] |
Definition at line 396 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mrCellPopulation.
const AbstractCellPopulation< DIM > & CellBasedSimulation< DIM >::rGetCellPopulation | ( | ) | const [inline] |
Definition at line 403 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mrCellPopulation.
bool CellBasedSimulation< DIM >::GetOutputNodeVelocities | ( | ) | [inline] |
Definition at line 746 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mOutputNodeVelocities.
void CellBasedSimulation< DIM >::SetOutputNodeVelocities | ( | bool | outputNodeVelocities | ) | [inline] |
Set mOutputNodeVelocities.
outputNodeVelocities | the new value of mOutputNodeVelocities |
Definition at line 752 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mOutputNodeVelocities.
void CellBasedSimulation< DIM >::OutputSimulationParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Outputs simulation 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 |
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation1d, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 758 of file CellBasedSimulation.cpp.
References CellBasedSimulation< DIM >::mDt, CellBasedSimulation< DIM >::mEndTime, CellBasedSimulation< DIM >::mOutputNodeVelocities, and CellBasedSimulation< DIM >::mSamplingTimestepMultiple.
Referenced by VertexCryptSimulation2d::OutputSimulationParameters(), CryptSimulation2d::OutputSimulationParameters(), CryptSimulation1d::OutputSimulationParameters(), CellBasedSimulationWithPdes< DIM >::OutputSimulationParameters(), and CellBasedSimulation< DIM >::OutputSimulationSetup().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in CellBasedSimulationWithPdes< DIM >, CryptSimulation1d, CryptSimulation2d, and VertexCryptSimulation2d.
Definition at line 136 of file CellBasedSimulation.hpp.
double CellBasedSimulation< DIM >::mDt [protected] |
Time step.
Definition at line 76 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::CellBasedSimulation(), CellBasedSimulation< DIM >::GetDt(), CellBasedSimulation< DIM >::OutputSimulationParameters(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::SetDt(), CellBasedSimulation< DIM >::Solve(), and CellBasedSimulation< DIM >::UpdateNodePositions().
double CellBasedSimulation< DIM >::mEndTime [protected] |
Time to run the Solve() method up to.
Definition at line 79 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::OutputSimulationParameters(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::SetEndTime(), and CellBasedSimulation< DIM >::Solve().
AbstractCellPopulation<DIM>& CellBasedSimulation< DIM >::mrCellPopulation [protected] |
Facade encapsulating cells in the cell population being simulated.
Definition at line 82 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulationWithPdes< DIM >::AfterSolve(), CellBasedSimulation< DIM >::CalculateCellDivisionVector(), CellBasedSimulation< DIM >::CellBasedSimulation(), CellBasedSimulationWithPdes< DIM >::CellBasedSimulationWithPdes(), CellBasedSimulationWithPdes< DIM >::CreateCoarsePdeMesh(), CellBasedSimulation< DIM >::DoCellBirth(), CellBasedSimulation< DIM >::DoCellRemoval(), CellBasedSimulationWithPdes< DIM >::FindCoarseElementContainingCell(), CellBasedSimulation< DIM >::GetNodeLocation(), CellBasedSimulationWithPdes< DIM >::InitialiseCoarsePdeMesh(), CellBasedSimulation< DIM >::OutputSimulationSetup(), CellBasedSimulation< DIM >::rGetCellPopulation(), CellBasedSimulationWithPdes< DIM >::SetupSolve(), CellBasedSimulation< DIM >::Solve(), CellBasedSimulationWithPdes< DIM >::SolvePde(), CellBasedSimulationWithPdes< DIM >::SolvePdeUsingCoarseMesh(), CellBasedSimulation< DIM >::UpdateCellPopulation(), CellBasedSimulation< DIM >::UpdateNodePositions(), CellBasedSimulationWithPdes< DIM >::WriteAverageRadialPdeSolution(), CellBasedSimulationWithPdes< DIM >::WritePdeSolution(), and CellBasedSimulation< DIM >::~CellBasedSimulation().
bool CellBasedSimulation< DIM >::mDeleteCellPopulationAndForcesAndBCsInDestructor [protected] |
Whether to delete the cell population, force laws and boundary conditions in the destructor.
Definition at line 85 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::~CellBasedSimulation().
bool CellBasedSimulation< DIM >::mInitialiseCells [protected] |
Whether to initialise the cells.
Definition at line 88 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::CellBasedSimulation().
bool CellBasedSimulation< DIM >::mNoBirth [protected] |
Whether to run the simulation with no birth (defaults to false).
Definition at line 91 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::DoCellBirth(), CellBasedSimulation< 2 >::serialize(), and CellBasedSimulation< DIM >::SetNoBirth().
bool CellBasedSimulation< DIM >::mUpdateCellPopulation [protected] |
Whether to update the topology of the cell population at each time step (defaults to true).
Definition at line 94 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::SetUpdateCellPopulationRule(), and CellBasedSimulation< DIM >::UpdateCellPopulation().
std::string CellBasedSimulation< DIM >::mOutputDirectory [protected] |
Output directory (a subfolder of tmp/[USERNAME]/testoutput).
Definition at line 97 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::GetOutputDirectory(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::SetOutputDirectory(), and CellBasedSimulation< DIM >::Solve().
std::string CellBasedSimulation< DIM >::mSimulationOutputDirectory [protected] |
Simulation Output directory either the same as mOutputDirectory or includes mOutputDirectory/results_from_time_[TIME].
Definition at line 100 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::OutputSimulationSetup(), CellBasedSimulation< DIM >::SetOutputDirectory(), CellBasedSimulationWithPdes< DIM >::SetupWritePdeSolution(), and CellBasedSimulation< DIM >::Solve().
out_stream CellBasedSimulation< DIM >::mpVizSetupFile [protected] |
Visualiser setup file.
Definition at line 103 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulationWithPdes< DIM >::SetupWritePdeSolution(), CellBasedSimulation< DIM >::Solve(), and CellBasedSimulationWithPdes< DIM >::WriteVisualizerSetupFile().
out_stream CellBasedSimulation< DIM >::mpNodeVelocitiesFile [protected] |
Results file node velocities.
Definition at line 106 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::Solve(), and CellBasedSimulation< DIM >::UpdateNodePositions().
RandomNumberGenerator* CellBasedSimulation< DIM >::mpRandomGenerator [protected] |
The singleton RandomNumberGenerator.
Definition at line 109 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::CellBasedSimulation(), and CellBasedSimulation< 2 >::serialize().
unsigned CellBasedSimulation< DIM >::mNumBirths [protected] |
Counts the number of births during the simulation.
Definition at line 112 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::GetNumBirths(), CellBasedSimulation< 2 >::serialize(), and CellBasedSimulation< DIM >::UpdateCellPopulation().
unsigned CellBasedSimulation< DIM >::mNumDeaths [protected] |
Counts the number of deaths during the simulation.
Definition at line 115 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::GetNumDeaths(), CellBasedSimulation< 2 >::serialize(), and CellBasedSimulation< DIM >::UpdateCellPopulation().
unsigned CellBasedSimulation< DIM >::mSamplingTimestepMultiple [protected] |
The ratio of the number of actual timesteps to the number of timesteps at which results are written to file.
Definition at line 121 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::OutputSimulationParameters(), CellBasedSimulationWithPdes< DIM >::PostSolve(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::SetSamplingTimestepMultiple(), CellBasedSimulation< DIM >::Solve(), and CellBasedSimulation< DIM >::UpdateNodePositions().
std::vector<AbstractCellKiller<DIM>*> CellBasedSimulation< DIM >::mCellKillers [protected] |
List of cell killers.
Definition at line 124 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::AddCellKiller(), CellBasedSimulation< DIM >::DoCellRemoval(), CellBasedSimulation< DIM >::OutputSimulationSetup(), CellBasedSimulation< 2 >::serialize(), and CellBasedSimulation< DIM >::~CellBasedSimulation().
std::vector<AbstractForce<DIM>*> CellBasedSimulation< DIM >::mForceCollection [protected] |
The mechanics used to determine the new location of the cells, a list of the forces.
Definition at line 127 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::AddForce(), CellBasedSimulation< DIM >::OutputSimulationSetup(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::Solve(), CellBasedSimulationWithPdes< DIM >::WriteVisualizerSetupFile(), and CellBasedSimulation< DIM >::~CellBasedSimulation().
std::vector<AbstractCellPopulationBoundaryCondition<DIM>*> CellBasedSimulation< DIM >::mBoundaryConditions [protected] |
List of boundary conditions.
Definition at line 130 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::AddCellPopulationBoundaryCondition(), CellBasedSimulation< DIM >::OutputSimulationSetup(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::UpdateNodePositions(), and CellBasedSimulation< DIM >::~CellBasedSimulation().
bool CellBasedSimulation< DIM >::mOutputNodeVelocities [protected] |
Whether to write the node velocities to a file.
Definition at line 133 of file CellBasedSimulation.hpp.
Referenced by CellBasedSimulation< DIM >::GetOutputNodeVelocities(), CellBasedSimulation< DIM >::OutputSimulationParameters(), CellBasedSimulation< 2 >::serialize(), CellBasedSimulation< DIM >::SetOutputNodeVelocities(), CellBasedSimulation< DIM >::Solve(), and CellBasedSimulation< DIM >::UpdateNodePositions().