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
▼
FractureModels
▼
Permeability
ConstantPermeability.cpp
►
ConstantPermeability.h
►
CreateConstantPermeability.cpp
►
CreateConstantPermeability.h
►
CreateCubicLaw.cpp
►
CreateCubicLaw.h
►
CreatePermeabilityModel.cpp
►
CreatePermeabilityModel.h
CubicLaw.cpp
►
CubicLaw.h
►
Permeability.h
►
CohesiveZoneModeI.cpp
►
CohesiveZoneModeI.h
►
Coulomb.cpp
►
Coulomb.h
►
CreateCohesiveZoneModeI.cpp
►
CreateCohesiveZoneModeI.h
►
CreateCoulomb.cpp
►
CreateCoulomb.h
►
CreateLinearElasticIsotropic.cpp
►
CreateLinearElasticIsotropic.h
►
FractureIdentity2.cpp
►
FractureIdentity2.h
►
FractureModelBase.h
LinearElasticIsotropic.cpp
►
LinearElasticIsotropic.h
►
LogPenalty.h
►
MPL
►
PorousMedium
►
SolidModels
►
Utils
►
PhysicalConstant.h
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
CreateConstantPermeability.cpp
Go to the documentation of this file.
1
10
#include "
CreateConstantPermeability.h
"
11
12
#include "
BaseLib/ConfigTree.h
"
13
#include "
BaseLib/Error.h
"
14
#include "
ConstantPermeability.h
"
15
16
namespace
MaterialLib::Fracture::Permeability
17
{
18
std::unique_ptr<Permeability>
createConstantPermeability
(
19
BaseLib::ConfigTree
const
& config)
20
{
22
config.
checkConfigParameter
(
"type"
,
"ConstantPermeability"
);
23
24
auto
const
permeability =
26
config.
getConfigParameter
<
double
>(
"value"
);
27
28
if
(permeability < 0)
29
{
30
OGS_FATAL
(
31
"The permeability parameter must be non-negative. Given value "
32
"{:g}."
,
33
permeability);
34
}
35
36
return
std::make_unique<ConstantPermeability>(permeability);
37
}
18
std::unique_ptr<Permeability>
createConstantPermeability
( {
…
}
38
}
// namespace MaterialLib::Fracture::Permeability
ConfigTree.h
ConstantPermeability.h
CreateConstantPermeability.h
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:41
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:151
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
FractureModels
Permeability
CreateConstantPermeability.cpp
Generated by
1.12.0