Loading [MathJax]/extensions/tex2jax.js
OGS
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
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
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Typedefs
b
c
e
f
h
j
k
l
m
n
p
q
r
s
t
v
w
x
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
h
i
k
l
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
x
Variables
Typedefs
Enumerations
Macros
a
b
c
e
g
h
i
l
m
n
o
p
r
s
t
v
w
x
createStorageModel.cpp
Go to the documentation of this file.
1
13
#include "
createStorageModel.h
"
14
15
#include "
BaseLib/ConfigTree.h
"
16
#include "
BaseLib/Error.h
"
17
#include "
ConstantStorage.h
"
18
#include "
Storage.h
"
19
20
namespace
MaterialLib
21
{
22
namespace
PorousMedium
23
{
24
std::unique_ptr<Storage>
createStorageModel
(
BaseLib::ConfigTree
const
& config)
25
{
27
auto
const
type = config.
getConfigParameter
<std::string>(
"type"
);
28
29
if
(type ==
"Constant"
)
30
{
31
return
std::make_unique<ConstantStorage>(
33
config.
getConfigParameter
<
double
>(
"value"
));
34
}
35
36
OGS_FATAL
(
"The storage type {:s} is unavailable.\n"
, type.data(),
37
"The available type is Constant."
);
38
}
39
40
}
// namespace PorousMedium
41
}
// namespace MaterialLib
ConfigTree.h
ConstantStorage.h
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition:
Error.h:26
Storage.h
BaseLib::ConfigTree
Definition:
ConfigTree.h:103
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition:
ConfigTree-impl.h:39
createStorageModel.h
MaterialLib::PorousMedium::createStorageModel
std::unique_ptr< Storage > createStorageModel(BaseLib::ConfigTree const &config)
Definition:
createStorageModel.cpp:24
MaterialLib
Definition:
ConstantFluidProperty.h:18
MaterialLib
PorousMedium
Storage
createStorageModel.cpp
Generated by
1.9.1