OGS
CreateCubicLawPermeability.cpp
Go to the documentation of this file.
1
10
#include "
CreateCubicLawPermeability.h
"
11
12
#include "
BaseLib/ConfigTree.h
"
13
#include "
CubicLawPermeability.h
"
14
#include "
ParameterLib/Utils.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
std::unique_ptr<Property>
createCubicLawPermeability
(
19
BaseLib::ConfigTree
const
& config,
20
std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const
& parameters)
21
{
23
config.
checkConfigParameter
(
"type"
,
"CubicLawPermeability"
);
24
DBUG
(
"Create CubicLaw Permeability model"
);
25
26
// Second access for storage.
28
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
29
30
auto
const
& b = ParameterLib::findParameter<double>(
32
config.
getConfigParameter
<std::string>(
"fracture_aperture"
), parameters,
33
0,
nullptr
);
34
35
return
std::make_unique<CubicLawPermeability>(std::move(property_name), b);
36
}
37
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateCubicLawPermeability.h
CubicLawPermeability.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
Utils.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:126
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
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createCubicLawPermeability
std::unique_ptr< Property > createCubicLawPermeability(BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)
Definition
CreateCubicLawPermeability.cpp:18
MaterialLib
MPL
Properties
CreateCubicLawPermeability.cpp
Generated by
1.10.0