19 std::optional<BaseLib::ConfigTree>
const& config,
MeshLib::Mesh const& mesh)
26 std::vector<KineticReactant> kinetic_reactants;
28 auto const& reactant_config :
30 config->getConfigSubtreeList(
"kinetic_reactant"))
33 auto name = reactant_config.getConfigParameter<std::string>(
"name");
35 double const initial_amount =
37 reactant_config.getConfigParameter<
double>(
"initial_amount");
44 std::fill(std::begin(*amount), std::end(*amount), initial_amount);
46 kinetic_reactants.emplace_back(std::move(name), initial_amount);
49 return std::make_unique<Kinetics>(kinetic_reactants);