OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-171-gf370a16a5 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
▼
MaterialLib
►
Adsorption
▼
Fluid
►
Density
►
FluidProperties
►
GibbsFreeEnergy
►
SpecificHeatCapacity
▼
ThermalConductivity
►
CreateFluidThermalConductivityModel.cpp
►
CreateFluidThermalConductivityModel.h
►
Viscosity
►
WaterVaporProperties
►
ConstantFluidProperty.h
►
FluidProperty.h
FluidPropertyHeaders.h
►
PropertyVariableType.h
►
FractureModels
►
MPL
►
PorousMedium
►
SolidModels
►
Utils
►
PhysicalConstant.h
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
CreateFluidThermalConductivityModel.cpp
Go to the documentation of this file.
1
13
#include "
CreateFluidThermalConductivityModel.h
"
14
15
#include "
BaseLib/ConfigTree.h
"
16
#include "
BaseLib/Error.h
"
17
#include "
MaterialLib/Fluid/ConstantFluidProperty.h
"
18
#include "
MaterialLib/Fluid/FluidProperty.h
"
19
20
namespace
MaterialLib
21
{
22
namespace
Fluid
23
{
24
std::unique_ptr<FluidProperty>
createFluidThermalConductivityModel
(
25
BaseLib::ConfigTree
const
& config)
26
{
28
auto
const
type = config.
getConfigParameter
<std::string>(
"type"
);
29
30
if
(type ==
"Constant"
)
31
{
32
return
std::make_unique<ConstantFluidProperty>(
34
config.
getConfigParameter
<
double
>(
"value"
));
35
}
36
// TODO: add more models
37
38
OGS_FATAL
(
39
"The viscosity type {:s} is unavailable.\n"
40
"The available type is \n\tConstant\n"
,
41
type.data());
42
}
24
std::unique_ptr<FluidProperty>
createFluidThermalConductivityModel
( {
…
}
43
44
}
// namespace Fluid
45
}
// namespace MaterialLib
ConfigTree.h
ConstantFluidProperty.h
CreateFluidThermalConductivityModel.h
A function for creating a thermal conductivity model for fluid.
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
FluidProperty.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:41
MaterialLib::Fluid::createFluidThermalConductivityModel
std::unique_ptr< FluidProperty > createFluidThermalConductivityModel(BaseLib::ConfigTree const &config)
Definition
CreateFluidThermalConductivityModel.cpp:24
MaterialLib
Definition
ConstantFluidProperty.h:18
MaterialLib
Fluid
ThermalConductivity
CreateFluidThermalConductivityModel.cpp
Generated by
1.12.0