OGS
CreateLinearSaturationSwellingStress.cpp
Go to the documentation of this file.
1
13
14#include "BaseLib/ConfigTree.h"
17
18namespace MaterialPropertyLib
19{
20std::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
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
T peekConfigParameter(std::string const &param) const
T getConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< Property > createLinearSaturationSwellingStress(BaseLib::ConfigTree const &config)