26 #include <boost/property_tree/ptree.hpp>
27 #include <trng/uniform01_dist.hpp>
43 const trng::uniform01_dist<double> dist;
44 m_uniform_generator = cd.m_random_engine->GetGenerator(dist);
46 const auto& p = cd.m_parameters;
47 m_cell_division_threshold = p->get<
double>(
"wrapper_model.cell_division_threshold");
52 bool must_divide =
false;
54 if( cell->
GetArea() >= ( m_cell_division_threshold * CCnoise2 )) {
58 return std::make_tuple(must_divide,
true, array<double, 3> {{1.0, 0.0, 0.0}});
Core data with mesh, parameters, random engine and time data.
CellSplit for Wrapper model.
A cell contains walls and nodes.
Core data used during model execution.
Interface of RandomEngine.
Namespace for components of the Default model group.
void Initialize(const CoreData &cd)
Initialize or re-initialize.
WrapperModel(const CoreData &cd)
Initializing constructor.
std::tuple< bool, bool, std::array< double, 3 > > operator()(Cell *cell)
Execute.
double GetArea() const
Return the area of the cell.