OGS
CreateVapourDiffusionPMQ.cpp
Go to the documentation of this file.
1
12
#include "
CreateVapourDiffusionPMQ.h
"
13
14
#include "
BaseLib/ConfigTree.h
"
15
#include "
MaterialLib/MPL/Property.h
"
16
#include "
VapourDiffusionPMQ.h
"
17
18
namespace
MaterialPropertyLib
19
{
20
std::unique_ptr<Property>
createVapourDiffusionPMQ
(
21
BaseLib::ConfigTree
const
& config)
22
{
24
config.
checkConfigParameter
(
"type"
,
"VapourDiffusionPMQ"
);
25
DBUG
(
"Create VapourDiffusionPMQ phase property"
);
26
28
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
29
30
double
const
base_diffusion_coefficient =
32
config.
getConfigParameter
<
double
>(
"base_diffusion_coefficient"
,
33
2.16e-5);
34
35
double
const
exponent =
37
config.
getConfigParameter
<
double
>(
"exponent"
, 1.8);
38
40
return
std::make_unique<VapourDiffusionPMQ>(
41
std::move(property_name), base_diffusion_coefficient, exponent);
42
}
43
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateVapourDiffusionPMQ.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
Property.h
VapourDiffusionPMQ.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::createVapourDiffusionPMQ
std::unique_ptr< Property > createVapourDiffusionPMQ(BaseLib::ConfigTree const &config)
Definition
CreateVapourDiffusionPMQ.cpp:20
MaterialLib
MPL
Properties
VapourDiffusion
CreateVapourDiffusionPMQ.cpp
Generated by
1.12.0