Chaste Release::3.1
CryptCellsGenerator< CELL_CYCLE_MODEL > Class Template Reference

#include <CryptCellsGenerator.hpp>

Inheritance diagram for CryptCellsGenerator< CELL_CYCLE_MODEL >:
Collaboration diagram for CryptCellsGenerator< CELL_CYCLE_MODEL >:

List of all members.

Public Member Functions

void Generate (std::vector< CellPtr > &rCells, AbstractMesh< 2, 2 > *pMesh, const std::vector< unsigned > locationIndices, bool randomBirthTimes, double y0=0.3, double y1=2.0, double y2=3.0, double y3=4.0, bool initialiseCells=false)

Detailed Description

template<class CELL_CYCLE_MODEL>
class CryptCellsGenerator< CELL_CYCLE_MODEL >

A subclass of CellsGenerator that generates cells for crypt simulations.

It is templated over types of cell-cycle model.

Definition at line 80 of file CryptCellsGenerator.hpp.


Member Function Documentation

template<class CELL_CYCLE_MODEL >
void CryptCellsGenerator< CELL_CYCLE_MODEL >::Generate ( std::vector< CellPtr > &  rCells,
AbstractMesh< 2, 2 > *  pMesh,
const std::vector< unsigned locationIndices,
bool  randomBirthTimes,
double  y0 = 0.3,
double  y1 = 2.0,
double  y2 = 3.0,
double  y3 = 4.0,
bool  initialiseCells = false 
)

Generates cells of a specified cell cycle type under the correct crypt conditions and gives random ages if required, or gives them an age of 0.0 - creates least work for solver startup.

Parameters:
rCellsAn empty cells vector for this function to fill up
pMeshThe crypt mesh (can be cylindrical)
locationIndicesthe node indices corresponding to real cells
randomBirthTimesWhether to assign the cells random birth times (this can be expensive computationally with ODE models)
y0below this line cells are generation 0 (defaults to 0.3)
y1below this line cells are generation 1 (defaults to 2.0)
y2below this line cells are generation 2 (defaults to 3.0)
y3below this line cells are generation 3 (defaults to 4.0)
initialiseCellswhether to initialise the cell-cycle models as each cell is created

Definition at line 114 of file CryptCellsGenerator.hpp.

References CellPropertyRegistry::Clear(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNode(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), RandomNumberGenerator::Instance(), CellPropertyRegistry::Instance(), NEVER_REACHED, and RandomNumberGenerator::ranf().


The documentation for this class was generated from the following file: