25 #include <boost/property_tree/ptree.hpp>
28 namespace CellDaughters {
31 using boost::property_tree::ptree;
46 double const area1 = daughter1->
GetArea();
47 double const area2 = daughter2->
GetArea();
48 double const tot_area = area1 + area2;
50 daughter1->SetChemical(0, daughter1->GetChemical(0) * (area1 / tot_area));
51 daughter2->SetChemical(0, daughter2->GetChemical(0) * (area2 / tot_area));
52 daughter1->SetChemical(1, daughter1->GetChemical(1) * (area1 / tot_area));
53 daughter2->SetChemical(1, daughter2->GetChemical(1) * (area2 / tot_area));
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Core data used during model execution.
Namespace for components of the Default model group.
void operator()(Cell *daughter1, Cell *daughter2)
Execute.
CellDaughter component for Wrapper model.
void Initialize(const CoreData &cd)
Initialize or re-initialize.
WrapperModel(const CoreData &cd)
Initializing constructor.
double GetArea() const
Return the area of the cell.