OGS
ReservoirProperties.cpp
Go to the documentation of this file.
1
11#include "ReservoirProperties.h"
12
13#include "BaseLib/ConfigTree.h"
14#include "ParameterLib/Utils.h"
15
16namespace ProcessLib
17{
18namespace WellboreSimulator
19{
21 BaseLib::ConfigTree const& config,
22 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const& parameters)
23{
24 auto const& temperature = ParameterLib::findParameter<double>(
26 config.getConfigParameter<std::string>("temperature"),
27 parameters,
28 1,
29 nullptr);
30
31 auto const& thermal_conductivity = ParameterLib::findParameter<double>(
33 config.getConfigParameter<std::string>("thermal_conductivity"),
34 parameters,
35 1,
36 nullptr);
37
38 auto const& density = ParameterLib::findParameter<double>(
40 config.getConfigParameter<std::string>("density"),
41 parameters,
42 1,
43 nullptr);
44
45 auto const& specific_heat_capacity = ParameterLib::findParameter<double>(
47 config.getConfigParameter<std::string>("specific_heat_capacity"),
48 parameters,
49 1,
50 nullptr);
51
52 auto const& pressure = ParameterLib::findParameter<double>(
54 config.getConfigParameter<std::string>("pressure"),
55 parameters,
56 1,
57 nullptr);
58
59 return {temperature, thermal_conductivity, density, specific_heat_capacity,
60 pressure};
61}
62} // namespace WellboreSimulator
63} // namespace ProcessLib
T getConfigParameter(std::string const &param) const
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const &parameter_name, std::vector< std::unique_ptr< ParameterBase > > const &parameters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
Definition Utils.h:102
ReservoirProperties createReservoirProperties(BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)