OGS
CreateLinearSaturationSwellingStress.cpp
Go to the documentation of this file.
1
12
#include "
CreateLinearSaturationSwellingStress.h
"
13
14
#include "
BaseLib/ConfigTree.h
"
15
#include "
LinearSaturationSwellingStress.h
"
16
#include "
MaterialLib/MPL/Property.h
"
17
18
namespace
MaterialPropertyLib
19
{
20
std::unique_ptr<Property>
createLinearSaturationSwellingStress
(
21
BaseLib::ConfigTree
const
& config)
22
{
24
config.
checkConfigParameter
(
"type"
,
"LinearSaturationSwellingStress"
);
25
27
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
28
29
DBUG
(
"Create LinearSaturationSwellingStress phase property {:s}."
,
30
property_name);
31
32
auto
const
coefficient =
34
config.
getConfigParameter
<
double
>(
"coefficient"
);
35
36
auto
const
reference_saturation =
38
config.
getConfigParameter
<
double
>(
"reference_saturation"
);
39
40
return
std::make_unique<LinearSaturationSwellingStress>(
41
property_name, coefficient, reference_saturation);
42
}
43
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateLinearSaturationSwellingStress.h
LinearSaturationSwellingStress.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
Property.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::createLinearSaturationSwellingStress
std::unique_ptr< Property > createLinearSaturationSwellingStress(BaseLib::ConfigTree const &config)
Definition
CreateLinearSaturationSwellingStress.cpp:20
MaterialLib
MPL
Properties
SwellingStress
CreateLinearSaturationSwellingStress.cpp
Generated by
1.10.0