#include <CryptSimulationBoundaryCondition.hpp>
Inherits AbstractCellPopulationBoundaryCondition< DIM >.
Public Member Functions | |
CryptSimulationBoundaryCondition (AbstractCellPopulation< DIM > *pCellPopulation) | |
void | ImposeBoundaryCondition (const std::vector< c_vector< double, DIM > > &rOldLocations) |
bool | VerifyBoundaryCondition () |
void | SetUseJiggledBottomCells (bool useJiggledBottomCells) |
bool | GetUseJiggledBottomCells () |
void | OutputCellPopulationBoundaryConditionParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
bool | mUseJiggledBottomCells |
Friends | |
class | boost::serialization::access |
A boundary condition class for use with CryptSimulation2d, which pins stem cells in the absence of a Wnt stimulus, and optionally prevents cells moving below the y=0 boundary via random jiggling.
Definition at line 44 of file CryptSimulationBoundaryCondition.hpp.
CryptSimulationBoundaryCondition< DIM >::CryptSimulationBoundaryCondition | ( | AbstractCellPopulation< DIM > * | pCellPopulation | ) | [inline] |
Constructor.
pCellPopulation | pointer to the cell population |
Definition at line 35 of file CryptSimulationBoundaryCondition.cpp.
bool CryptSimulationBoundaryCondition< DIM >::GetUseJiggledBottomCells | ( | ) | [inline] |
Get method for mUseJiggledBottomCells.
Definition at line 186 of file CryptSimulationBoundaryCondition.cpp.
References CryptSimulationBoundaryCondition< DIM >::mUseJiggledBottomCells.
void CryptSimulationBoundaryCondition< DIM >::ImposeBoundaryCondition | ( | const std::vector< c_vector< double, DIM > > & | rOldLocations | ) | [inline, virtual] |
Overridden ImposeBoundaryCondition() method.
Apply the cell population boundary conditions.
rOldLocations | the node locations before any boundary conditions are applied |
Implements AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 42 of file CryptSimulationBoundaryCondition.cpp.
References RandomNumberGenerator::Instance(), AbstractCellPopulationBoundaryCondition< DIM >::mpCellPopulation, CryptSimulationBoundaryCondition< DIM >::mUseJiggledBottomCells, RandomNumberGenerator::ranf(), Node< SPACE_DIM >::rGetLocation(), and Node< SPACE_DIM >::rGetModifiableLocation().
void CryptSimulationBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Overridden OutputCellPopulationBoundaryConditionParameters() method. Output cell population boundary condition parameters to file.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 192 of file CryptSimulationBoundaryCondition.cpp.
References CryptSimulationBoundaryCondition< DIM >::mUseJiggledBottomCells.
void CryptSimulationBoundaryCondition< 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 from AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 63 of file CryptSimulationBoundaryCondition.hpp.
References CryptSimulationBoundaryCondition< DIM >::mUseJiggledBottomCells.
void CryptSimulationBoundaryCondition< DIM >::SetUseJiggledBottomCells | ( | bool | useJiggledBottomCells | ) | [inline] |
Set method for mUseJiggledBottomCells
useJiggledBottomCells | whether to jiggle the cells on the bottom surface |
Definition at line 180 of file CryptSimulationBoundaryCondition.cpp.
References CryptSimulationBoundaryCondition< DIM >::mUseJiggledBottomCells.
bool CryptSimulationBoundaryCondition< DIM >::VerifyBoundaryCondition | ( | ) | [inline, virtual] |
Overridden VerifyBoundaryCondition() method. Verify the boundary conditions have been applied. This is called after ImposeBoundaryCondition() to ensure the condition is still satisfied.
Implements AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 150 of file CryptSimulationBoundaryCondition.cpp.
References AbstractCellPopulationBoundaryCondition< DIM >::mpCellPopulation, and Node< SPACE_DIM >::rGetLocation().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 55 of file CryptSimulationBoundaryCondition.hpp.
bool CryptSimulationBoundaryCondition< DIM >::mUseJiggledBottomCells [private] |
Whether to jiggle the cells on the bottom surface, initialised to false in the constructor.
Definition at line 52 of file CryptSimulationBoundaryCondition.hpp.
Referenced by CryptSimulationBoundaryCondition< DIM >::GetUseJiggledBottomCells(), CryptSimulationBoundaryCondition< DIM >::ImposeBoundaryCondition(), CryptSimulationBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters(), CryptSimulationBoundaryCondition< DIM >::serialize(), and CryptSimulationBoundaryCondition< DIM >::SetUseJiggledBottomCells().