19 std::optional<BaseLib::ConfigTree>
const& config,
MeshLib::Mesh const& mesh)
26 std::vector<PhaseComponent> phase_components;
28 auto const& phase_component_config :
30 config->getConfigSubtreeList(
"phase_component"))
34 phase_component_config.getConfigParameter<std::string>(
"name");
36 double const initial_amount =
38 phase_component_config.getConfigParameter<
double>(
"initial_amount");
40 double const saturation_index =
42 phase_component_config.getConfigParameter<
double>(
50 std::fill(amount->begin(), amount->end(), initial_amount);
52 phase_components.emplace_back(
53 std::move(name), initial_amount, saturation_index);
56 return std::make_unique<EquilibriumReactants>(phase_components);