OGS
CreatePermeabilityModel.cpp
Go to the documentation of this file.
1
10
#include "
CreatePermeabilityModel.h
"
11
12
#include "
BaseLib/ConfigTree.h
"
13
#include "
BaseLib/Error.h
"
14
#include "
CreateConstantPermeability.h
"
15
#include "
CreateCubicLaw.h
"
16
17
namespace
MaterialLib::Fracture::Permeability
18
{
19
std::unique_ptr<Permeability>
createPermeabilityModel
(
20
BaseLib::ConfigTree
const
& config)
21
{
22
auto
const
permeability_model_type =
24
config.
peekConfigParameter
<std::string>(
"type"
);
25
if
(permeability_model_type ==
"ConstantPermeability"
)
26
{
27
return
MaterialLib::Fracture::Permeability::createConstantPermeability
(
28
config);
29
}
30
if
(permeability_model_type ==
"CubicLaw"
)
31
{
32
return
MaterialLib::Fracture::Permeability::createCubicLaw
(config);
33
}
34
OGS_FATAL
(
"Unknown fracture permeability model type \"{:s}\"."
,
35
permeability_model_type);
36
}
37
}
// namespace MaterialLib::Fracture::Permeability
ConfigTree.h
CreateConstantPermeability.h
CreateCubicLaw.h
CreatePermeabilityModel.h
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:126
MaterialLib::Fracture::Permeability
Definition
ConstantPermeability.cpp:13
MaterialLib::Fracture::Permeability::createConstantPermeability
std::unique_ptr< Permeability > createConstantPermeability(BaseLib::ConfigTree const &config)
Definition
CreateConstantPermeability.cpp:18
MaterialLib::Fracture::Permeability::createCubicLaw
std::unique_ptr< Permeability > createCubicLaw(BaseLib::ConfigTree const &config)
Definition
CreateCubicLaw.cpp:17
MaterialLib::Fracture::Permeability::createPermeabilityModel
std::unique_ptr< Permeability > createPermeabilityModel(BaseLib::ConfigTree const &config)
Definition
CreatePermeabilityModel.cpp:19
MaterialLib
FractureModels
Permeability
CreatePermeabilityModel.cpp
Generated by
1.10.0