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