28 using boost::property_tree::ptree;
31 namespace CellChemistry {
41 const auto& p = m_cd.m_parameters->get_child(
"auxin_transport");
43 const auto& q = m_cd.m_parameters->get_child(
"blad");
44 m_aux1prod = p.get<
double>(
"aux1prod");
45 m_aux_breakdown = p.get<
double>(
"aux_breakdown");
46 m_grid_size = q.get<
int>(
"grid_size");
47 m_M_degradation = q.get<
double>(
"M_degradation");
48 m_M_duration = q.get<
double>(
"M_duration");
49 m_M_production = q.get<
double>(
"M_production");
52 void Blad::operator()(
Cell* cell,
double* dchem)
55 double time_now = m_cd.m_time_data->m_sim_time;
56 const double chem1 = cell->GetChemical(1);
59 bool produces_M =
false;
60 if (m_grid_size == 32) {
64 }
else if (m_grid_size == 128) {
73 }
else if (m_grid_size == 512) {
91 if( produces_M && time_now < m_M_duration ) {
92 dchem[1] = m_M_production - m_M_degradation * chem1;
94 dchem[1] = -m_M_degradation * chem1;
Namespace for components of the Blad model group.
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Namespace for miscellaneous utilities.
BoundaryType enumeration class.
CellChemistry for Blad model.
int GetIndex() const
Return the index.
Interface/Implementation for ReduceCellWalls.