OGS
CreateTemperatureDependentFraction.cpp
Go to the documentation of this file.
1
10
#include "
BaseLib/ConfigTree.h
"
11
#include "
TemperatureDependentFraction.h
"
12
13
namespace
MaterialPropertyLib
14
{
15
std::unique_ptr<TemperatureDependentFraction>
16
createTemperatureDependentFraction
(
BaseLib::ConfigTree
const
& config)
17
{
19
config.
checkConfigParameter
(
"type"
,
"TemperatureDependentFraction"
);
20
21
// Second access for storage.
23
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
24
25
DBUG
(
"Create temperature dependent fraction property {:s}."
, property_name);
26
27
auto
const
k =
29
config.
getConfigParameter
<
double
>(
"steepness"
);
30
31
auto
const
T_c
=
33
config.
getConfigParameter
<
double
>(
"characteristic_temperature"
);
34
35
return
std::make_unique<MaterialPropertyLib::TemperatureDependentFraction>(
36
std::move(property_name), k,
T_c
);
37
}
38
}
// namespace MaterialPropertyLib
ConfigTree.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
TemperatureDependentFraction.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::createTemperatureDependentFraction
std::unique_ptr< TemperatureDependentFraction > createTemperatureDependentFraction(BaseLib::ConfigTree const &config)
Definition
CreateTemperatureDependentFraction.cpp:16
MaterialPropertyLib::T_c
constexpr double T_c
Critical temperature.
Definition
WaterVapourLatentHeatWithCriticalTemperature.cpp:24
MaterialLib
MPL
Properties
CreateTemperatureDependentFraction.cpp
Generated by
1.11.0