OGS
EquilibriumReactants.cpp
Go to the documentation of this file.
1
11
#include "
EquilibriumReactants.h
"
12
13
namespace
ChemistryLib
14
{
15
namespace
PhreeqcKernelData
16
{
17
PhaseComponent::PhaseComponent
(std::string&& name_,
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
27
EquilibriumReactants::EquilibriumReactants
(
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.h
ChemistryLib::PhreeqcKernelData::EquilibriumReactants::EquilibriumReactants
EquilibriumReactants(std::vector< PhaseComponent > const &phase_components)
Definition
EquilibriumReactants.cpp:27
ChemistryLib::PhreeqcKernelData::PhaseComponent::PhaseComponent
PhaseComponent(std::string &&name_, double const initial_amount, double const saturation_index)
Definition
EquilibriumReactants.cpp:17
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib
PhreeqcKernelData
EquilibriumReactants.cpp
Generated by
1.11.0