OGS
ReservoirProperties.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
ReservoirProperties.h
"
5
6
#include "
BaseLib/ConfigTree.h
"
7
#include "
ParameterLib/Utils.h
"
8
9
namespace
ProcessLib
10
{
11
namespace
WellboreSimulator
12
{
13
ReservoirProperties
createReservoirProperties
(
14
BaseLib::ConfigTree
const
& config,
15
std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const
& parameters)
16
{
17
auto
const
& temperature =
ParameterLib::findParameter<double>
(
19
config.
getConfigParameter
<std::string>(
"temperature"
),
20
parameters,
21
1,
22
nullptr
);
23
24
auto
const
& thermal_conductivity =
ParameterLib::findParameter<double>
(
26
config.
getConfigParameter
<std::string>(
"thermal_conductivity"
),
27
parameters,
28
1,
29
nullptr
);
30
31
auto
const
& density =
ParameterLib::findParameter<double>
(
33
config.
getConfigParameter
<std::string>(
"density"
),
34
parameters,
35
1,
36
nullptr
);
37
38
auto
const
& specific_heat_capacity =
ParameterLib::findParameter<double>
(
40
config.
getConfigParameter
<std::string>(
"specific_heat_capacity"
),
41
parameters,
42
1,
43
nullptr
);
44
45
auto
const
& pressure =
ParameterLib::findParameter<double>
(
47
config.
getConfigParameter
<std::string>(
"pressure"
),
48
parameters,
49
1,
50
nullptr
);
51
52
return
{temperature, thermal_conductivity, density, specific_heat_capacity,
53
pressure};
54
}
55
}
// namespace WellboreSimulator
56
}
// namespace ProcessLib
ConfigTree.h
Utils.h
ReservoirProperties.h
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:35
ParameterLib::findParameter
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
Definition
ParameterLib/Utils.h:95
ProcessLib::WellboreSimulator
Definition
CreateWellboreSimulatorProcess.cpp:22
ProcessLib::WellboreSimulator::createReservoirProperties
ReservoirProperties createReservoirProperties(BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)
Definition
ReservoirProperties.cpp:13
ProcessLib
Definition
ProjectData.h:40
ProcessLib::WellboreSimulator::ReservoirProperties
Definition
ReservoirProperties.h:26
ProcessLib
WellboreSimulator
ReservoirProperties.cpp
Generated by
1.14.0