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