27 namespace CellHousekeep {
29 using boost::property_tree::ptree;
40 const auto& p = m_cd.m_parameters->get_child(
"blad");
41 m_M_threshold_expansion = p.get<
double>(
"M_threshold_expansion");
42 m_relative_growth = p.get<
double>(
"relative_growth");
47 const double chem1 = cell->GetChemical(1);
48 const double t_area = cell->GetTargetArea();
49 const double a_area = cell->
GetArea();
51 if (cell->GetBoundaryType() == BoundaryType::None) {
52 if ( ( chem1 / a_area ) > m_M_threshold_expansion ) {
53 const double incr = m_relative_growth * a_area;
54 const double update_t_area = t_area + incr;
55 cell->SetTargetArea(update_t_area);
Namespace for components of the Blad model group.
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Blad(const CoreData &cd)
Initializing constructor.
void operator()(Cell *cell)
Execute.
void Initialize(const CoreData &cd)
Initialize or re-initialize.
BoundaryType enumeration class.
CellHousekeep for Blad model.
double GetArea() const
Return the area of the cell.