25 namespace CellDaughters {
39 double const area1 = daughter1->
GetArea();
40 double const area2 = daughter2->
GetArea();
41 double const tot_area = area1 + area2;
43 daughter1->SetChemical(0, daughter1->GetChemical(0) * (area1 / tot_area));
44 daughter2->SetChemical(0, daughter2->GetChemical(0) * (area2 / tot_area));
45 daughter1->SetChemical(1, daughter1->GetChemical(1) * (area1 / tot_area));
46 daughter2->SetChemical(1, daughter2->GetChemical(1) * (area2 / tot_area));
47 daughter1->SetChemical(2, daughter1->GetChemical(2) * (area1 / tot_area));
48 daughter2->SetChemical(2, daughter2->GetChemical(2) * (area2 / tot_area));
49 daughter1->SetChemical(3, daughter1->GetChemical(3) * (area1 / tot_area));
50 daughter2->SetChemical(3, daughter2->GetChemical(3) * (area2 / tot_area));
51 daughter1->SetChemical(4, daughter1->GetChemical(4) * (area1 / tot_area));
52 daughter2->SetChemical(4, daughter2->GetChemical(4) * (area2 / tot_area));
53 daughter1->SetChemical(5, daughter1->GetChemical(5) * (area1 / tot_area));
54 daughter2->SetChemical(5, daughter2->GetChemical(5) * (area2 / tot_area));
55 daughter1->SetChemical(6, daughter1->GetChemical(6) * (area1 / tot_area));
56 daughter2->SetChemical(6, daughter2->GetChemical(6) * (area2 / tot_area));
57 daughter1->SetChemical(7, daughter1->GetChemical(7) * (area1 / tot_area));
58 daughter2->SetChemical(7, daughter2->GetChemical(7) * (area2 / tot_area));
59 daughter1->SetChemical(8, daughter1->GetChemical(8) * (area1 / tot_area));
60 daughter2->SetChemical(8, daughter2->GetChemical(8) * (area2 / tot_area));
62 daughter1->SetTransporters(1, 1., 1.);
63 daughter2->SetTransporters(1, 1., 1.);
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
void operator()(Cell *daughter1, Cell *daughter2)
Execute.
Wortel(const CoreData &cd)
Initializing constructor.
Namespace for components of the Default model group.
void Initialize(const CoreData &cd)
Initialize or re-initialize.
CellDaughters for Wortel model.
double GetArea() const
Return the area of the cell.