25 namespace CellDaughters {
38 auto& p = m_cd.m_parameters;
40 ptree
const& arr_initval = p->get_child(
"auxin_transport.initval.value_array");
41 m_x_initval = (++arr_initval.begin())->second.get_value<
double>();
46 const double area1 = daughter1->
GetArea();
47 const double area2 = daughter2->
GetArea();
48 const double tot_area = area1 + area2;
51 daughter1->SetChemical(0, daughter1->GetChemical(0) * (area1 / tot_area));
52 daughter2->SetChemical(0, daughter2->GetChemical(0) * (area2 / tot_area));
55 daughter1->SetChemical(1, m_x_initval);
56 daughter2->SetChemical(1, m_x_initval);
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.
Interface for CellDaughters::Auxin.
Auxin(const CoreData &cd)
Initializing constructor.
Namespace for components of the Default model group.
void operator()(Cell *daughter1, Cell *daughter2)
Execute.
double GetArea() const
Return the area of the cell.