OGS
LinearSaturationSwellingStress.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/MPL/Property.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
class
Phase;
63
class
LinearSaturationSwellingStress
final :
public
Property
64
{
65
public
:
66
LinearSaturationSwellingStress
(std::string
name
,
67
double
const
coefficient,
68
double
const
reference_saturation);
69
70
void
checkScale
()
const override
71
{
72
if
(!std::holds_alternative<Phase*>(
scale_
))
73
{
74
OGS_FATAL
(
75
"The property 'LinearSaturationSwellingStress' is "
76
"implemented on the 'phase' scale only."
);
77
}
78
}
79
80
PropertyDataType
value
(
VariableArray
const
& variable_array,
81
ParameterLib::SpatialPosition
const
& pos,
82
double
const
t,
83
double
const
dt)
const override
;
84
86
PropertyDataType
value
(
VariableArray
const
& variable_array,
87
VariableArray
const
& variable_array_prev,
88
ParameterLib::SpatialPosition
const
& pos,
89
double
const
t,
90
double
const
dt)
const override
;
91
94
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
95
Variable
const
variable,
96
ParameterLib::SpatialPosition
const
& pos,
97
double
const
t,
double
const
dt)
const override
;
98
99
private
:
110
double
const
coefficient_
;
111
114
double
const
reference_saturation_
;
115
};
116
117
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
MaterialPropertyLib::LinearSaturationSwellingStress
This class defines a linear saturation rate dependent swelling stress model for the materials that sw...
Definition
LinearSaturationSwellingStress.h:64
MaterialPropertyLib::LinearSaturationSwellingStress::checkScale
void checkScale() const override
Definition
LinearSaturationSwellingStress.h:70
MaterialPropertyLib::LinearSaturationSwellingStress::LinearSaturationSwellingStress
LinearSaturationSwellingStress(std::string name, double const coefficient, double const reference_saturation)
Definition
LinearSaturationSwellingStress.cpp:19
MaterialPropertyLib::LinearSaturationSwellingStress::coefficient_
double const coefficient_
Definition
LinearSaturationSwellingStress.h:110
MaterialPropertyLib::LinearSaturationSwellingStress::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
LinearSaturationSwellingStress.cpp:57
MaterialPropertyLib::LinearSaturationSwellingStress::reference_saturation_
double const reference_saturation_
Definition
LinearSaturationSwellingStress.h:114
MaterialPropertyLib::Property
Definition
Property.h:51
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
Property.h:297
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:66
MaterialPropertyLib::PropertyDataType
std::variant< double, Eigen::Matrix< double, 2, 1 >, Eigen::Matrix< double, 3, 1 >, Eigen::Matrix< double, 2, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 >, Eigen::MatrixXd > PropertyDataType
Definition
Property.h:31
MaterialLib
MPL
Properties
SwellingStress
LinearSaturationSwellingStress.h
Generated by
1.11.0