OGS
CreateLinearSaturationSwellingStress.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
CreateLinearSaturationSwellingStress.h
"
5
6
#include "
BaseLib/ConfigTree.h
"
7
#include "
LinearSaturationSwellingStress.h
"
8
#include "
MaterialLib/MPL/Property.h
"
9
10
namespace
MaterialPropertyLib
11
{
12
std::unique_ptr<Property>
createLinearSaturationSwellingStress
(
13
BaseLib::ConfigTree
const
& config)
14
{
16
config.
checkConfigParameter
(
"type"
,
"LinearSaturationSwellingStress"
);
17
19
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
20
21
DBUG
(
"Create LinearSaturationSwellingStress phase property {:s}."
,
22
property_name);
23
24
auto
const
coefficient =
26
config.
getConfigParameter
<
double
>(
"coefficient"
);
27
28
auto
const
reference_saturation =
30
config.
getConfigParameter
<
double
>(
"reference_saturation"
);
31
32
return
std::make_unique<LinearSaturationSwellingStress>(
33
property_name, coefficient, reference_saturation);
34
}
35
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateLinearSaturationSwellingStress.h
LinearSaturationSwellingStress.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:22
Property.h
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:116
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:35
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:166
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::createLinearSaturationSwellingStress
std::unique_ptr< Property > createLinearSaturationSwellingStress(BaseLib::ConfigTree const &config)
Definition
CreateLinearSaturationSwellingStress.cpp:12
MaterialLib
MPL
Properties
SwellingStress
CreateLinearSaturationSwellingStress.cpp
Generated by
1.14.0