36#include "CryptSimulation2d.hpp"
37#include "CellAncestor.hpp"
38#include "CellBetaCateninWriter.hpp"
39#include "MeshBasedCellPopulation.hpp"
41#include "StemCellProliferativeType.hpp"
42#include "VanLeeuwen2009WntSwatCellCycleModelHypothesisOne.hpp"
43#include "VanLeeuwen2009WntSwatCellCycleModelHypothesisTwo.hpp"
44#include "WntConcentration.hpp"
47 bool deleteCellPopulationInDestructor,
50 deleteCellPopulationInDestructor,
52 mUsingMeshBasedCellPopulation(false)
61 EXCEPTION(
"CryptSimulation2d is to be used with MeshBasedCellPopulation or VertexBasedCellPopulation (or subclasses) only");
114 boost::static_pointer_cast<CryptSimulationBoundaryCondition<2> >(
mBoundaryConditions[0])->SetUseJiggledBottomCells(
true);
127 double threshold_height = 1.0;
130 threshold_height = 0.5;
138 if (
mrCellPopulation.GetLocationOfCellCentre(*cell_iter)[1] < threshold_height)
141 cell_iter->SetAncestor(p_cell_ancestor);
149 bool use_jiggled_bottom_cells = boost::static_pointer_cast<CryptSimulationBoundaryCondition<2> >(
mBoundaryConditions[0])->GetUseJiggledBottomCells();
151 *rParamsFile <<
"\t\t<CryptCircumference>" << width <<
"</CryptCircumference>\n";
152 *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)