24 #include <boost/property_tree/ptree.hpp>
37 const double c1 = (cell->GetChemicals().size() >= 2) ? cell->GetChemical(1) / cell->
GetArea() : 0.0;
38 return (c1 <= 0.5) ? array<double, 3> {{ 1.0, 1.0, 1.0}} : array<double, 3> {{1.0, c1 / (5. + c1 ), 0.0 }};
Namespace for components of the Blad model group.
A cell contains walls and nodes.
Blad(const boost::property_tree::ptree &pt)
Straight initialization.
CellColor for Blad model.
std::array< double, 3 > operator()(SimPT_Sim::Cell *cell)
Return color value.
double GetArea() const
Return the area of the cell.