OGS
EquilibriumReactants.cpp
Go to the documentation of this file.
1
12
13namespace ChemistryLib
14{
15namespace PhreeqcKernelData
16{
18 double const initial_amount,
19 double const saturation_index)
20{
21 name = std::move(name_);
22 moles = initial_amount;
23 si = saturation_index;
24 si_org = saturation_index;
25}
26
28 std::vector<PhaseComponent> const& phase_components)
29{
30 for (auto const& phase_component : phase_components)
31 {
32 auto& name = phase_component.getName();
33 pp_assemblage_comps[name] = *phase_component.castToBaseClass();
34 }
35}
36} // namespace PhreeqcKernelData
37} // namespace ChemistryLib
EquilibriumReactants(std::vector< PhaseComponent > const &phase_components)
PhaseComponent(std::string &&name_, double const initial_amount, double const saturation_index)