26 #include <boost/property_tree/ptree.hpp>
43 auto& p = m_cd.m_parameters;
45 m_base_area = p->get<
double>(
"cell_mechanics.base_area");
46 m_division_ratio = p->get<
double>(
"cell_mechanics.division_ratio");
47 m_div_area = m_division_ratio * m_base_area;
52 bool must_divide =
false;
55 if (cell->GetBoundaryType() == BoundaryType::None && cell->
GetArea() > m_div_area) {
59 return make_tuple(must_divide,
false, array<double, 3>());
void Initialize(const CoreData &cd)
Initialize or re-initialize.
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Core data used during model execution.
Namespace for miscellaneous utilities.
Namespace for components of the Default model group.
AreaThresholdBased(const CoreData &cd)
Initializing constructor.
std::tuple< bool, bool, std::array< double, 3 > > operator()(Cell *cell)
Execute.
BoundaryType enumeration class.
CellSplit for AreaThresholdBased model.
double GetArea() const
Return the area of the cell.