OGS
CreateAqueousSolution.cpp
Go to the documentation of this file.
1
11#include "AqueousSolution.h"
12#include "BaseLib/ConfigTree.h"
15
16namespace ChemistryLib
17{
18namespace PhreeqcKernelData
19{
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
T getConfigParameter(std::string const &param) const
InitialAqueousSolution createInitialAqueousSolution(BaseLib::ConfigTree const &config, std::vector< std::pair< int, std::string > > const &process_id_to_component_name_map)
AqueousSolution createAqueousSolution(BaseLib::ConfigTree const &config, std::vector< std::pair< int, std::string > > const &process_id_to_component_name_map)