OGS
CreateAqueousSolution.cpp
Go to the documentation of this file.
1
11
#include "
AqueousSolution.h
"
12
#include "
BaseLib/ConfigTree.h
"
13
#include "
CreateInitialAqueousSolution.h
"
14
#include "
InitialAqueousSolution.h
"
15
16
namespace
ChemistryLib
17
{
18
namespace
PhreeqcKernelData
19
{
20
AqueousSolution
createAqueousSolution
(
21
BaseLib::ConfigTree
const
& config,
22
std::vector<std::pair<int, std::string>>
const
&
23
process_id_to_component_name_map)
24
{
26
auto
const
temperature = config.
getConfigParameter
<
double
>(
"temperature"
);
27
29
auto
const
pressure = config.
getConfigParameter
<
double
>(
"pressure"
);
30
32
auto
const
pe
= config.
getConfigParameter
<
double
>(
"pe"
);
33
34
auto
const
initial_aqueous_solution =
35
createInitialAqueousSolution
(config, process_id_to_component_name_map);
36
37
return
{temperature, pressure,
pe
, initial_aqueous_solution};
38
}
39
}
// namespace PhreeqcKernelData
40
}
// namespace ChemistryLib
ConfigTree.h
CreateInitialAqueousSolution.h
InitialAqueousSolution.h
AqueousSolution.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:41
ChemistryLib::PhreeqcKernelData::AqueousSolution
Definition
AqueousSolution.h:25
ChemistryLib::PhreeqcKernelData::createInitialAqueousSolution
InitialAqueousSolution createInitialAqueousSolution(BaseLib::ConfigTree const &config, std::vector< std::pair< int, std::string > > const &process_id_to_component_name_map)
Definition
CreateInitialAqueousSolution.cpp:23
ChemistryLib::PhreeqcKernelData::createAqueousSolution
AqueousSolution createAqueousSolution(BaseLib::ConfigTree const &config, std::vector< std::pair< int, std::string > > const &process_id_to_component_name_map)
Definition
CreateAqueousSolution.cpp:20
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib::ChargeBalance::pe
@ pe
ChemistryLib
PhreeqcKernelData
CreateAqueousSolution.cpp
Generated by
1.12.0