27 #include <boost/property_tree/ptree.hpp>
30 namespace CellHousekeep {
32 using boost::property_tree::ptree;
43 const auto& p = m_cd.m_parameters->get_child(
"wrapper_model");
44 m_ch0_threshold = p.get<
double>(
"ch0_threshold");
45 m_expansion_rate = p.get<
double>(
"expansion_rate");
50 const double t_area = cell->GetTargetArea();
51 const double a_area = cell->
GetArea();
56 if ((cell->GetChemical(0) / a_area) > m_ch0_threshold ) {
57 const double incr = m_expansion_rate * a_area;
58 const double update_t_area = t_area + incr;
59 cell->SetTargetArea(update_t_area);
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Core data used during model execution.
CellHousekeep for Wrapper model.
Namespace for components of the Default model group.
void operator()(Cell *cell)
Execute.
BoundaryType enumeration class.
void Initialize(const CoreData &cd)
Initialize or re-initialize.
int GetIndex() const
Return the index.
WrapperModel(const CoreData &cd)
Initializing constructor.
double GetArea() const
Return the area of the cell.