28 using boost::property_tree::ptree;
31 namespace CellChemistry {
38 void TestCoupling::Initialize(
const CoreData& cd)
41 const auto& p = m_cd.m_parameters->get_child(
"test_coupling");
42 m_ch0_production = p.get<
double>(
"ch0_production");
43 m_ch0_breakdown = p.get<
double>(
"ch0_breakdown");
44 m_ch1_production = p.get<
double>(
"ch1_production");
45 m_ch1_breakdown = p.get<
double>(
"ch1_breakdown");
48 void TestCoupling::operator()(
Cell* cell,
double* dchem)
53 const double chem0 = cell->GetChemical(0);
54 const double chem1 = cell->GetChemical(1);
56 dchem[0] = m_ch0_production - m_ch0_breakdown * chem0;
57 dchem[1] = m_ch1_production - m_ch1_breakdown * chem1;
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Namespace for miscellaneous utilities.
Namespace for components of the Default model group.
BoundaryType enumeration class.
Interface/Implementation for ReduceCellWalls.
CellChemistry component for the TestCoupling model.