36#include "CryptSimulation2d.hpp"
37#include "AbstractVanLeeuwen2009WntSwatCellCycleModel.hpp"
38#include "CellAncestor.hpp"
39#include "CellBetaCateninWriter.hpp"
40#include "MeshBasedCellPopulation.hpp"
42#include "StemCellProliferativeType.hpp"
43#include "WntConcentration.hpp"
46 bool deleteCellPopulationInDestructor,
49 deleteCellPopulationInDestructor,
51 mUsingMeshBasedCellPopulation(false)
60 EXCEPTION(
"CryptSimulation2d is to be used with MeshBasedCellPopulation or VertexBasedCellPopulation (or subclasses) only");
113 boost::static_pointer_cast<CryptSimulationBoundaryCondition<2> >(
mBoundaryConditions[0])->SetUseJiggledBottomCells(
true);
126 double threshold_height = 1.0;
129 threshold_height = 0.5;
137 if (
mrCellPopulation.GetLocationOfCellCentre(*cell_iter)[1] < threshold_height)
140 cell_iter->SetAncestor(p_cell_ancestor);
148 bool use_jiggled_bottom_cells = boost::static_pointer_cast<CryptSimulationBoundaryCondition<2> >(
mBoundaryConditions[0])->GetUseJiggledBottomCells();
150 *rParamsFile <<
"\t\t<CryptCircumference>" << width <<
"</CryptCircumference>\n";
151 *rParamsFile <<
"\t\t<UseJiggledBottomCells>" << use_jiggled_bottom_cells <<
"</UseJiggledBottomCells>\n";
#define EXCEPTION(message)
#define CHASTE_CLASS_EXPORT(T)
#define MAKE_PTR_ARGS(TYPE, NAME, ARGS)
#define MAKE_PTR(TYPE, NAME)
AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > & mrCellPopulation
bool mDeleteCellPopulationInDestructor
out_stream mpVizSetupFile
void SetBottomCellAncestors()
CryptSimulation2d(AbstractCellPopulation< 2 > &rCellPopulation, bool deleteCellPopulationInDestructor=false, bool initialiseCells=true)
void OutputSimulationParameters(out_stream &rParamsFile)
bool mUsingMeshBasedCellPopulation
virtual ~CryptSimulation2d()
void UseJiggledBottomCells()
void AddCellPopulationBoundaryCondition(boost::shared_ptr< AbstractCellPopulationBoundaryCondition< ELEMENT_DIM, ELEMENT_DIM > > pBoundaryCondition)
std::vector< boost::shared_ptr< AbstractCellPopulationBoundaryCondition< ELEMENT_DIM, ELEMENT_DIM > > > mBoundaryConditions
virtual void SetupSolve()
virtual void OutputSimulationParameters(out_stream &rParamsFile)