OGS
LinearSaturationSwellingStress.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
64{
65public:
67 double const coefficient,
68 double const reference_saturation);
69
70 void checkScale() const override
71 {
72 if (!std::holds_alternative<Phase*>(scale_))
73 {
75 "The property 'LinearSaturationSwellingStress' is "
76 "implemented on the 'phase' scale only.");
77 }
78 }
79
80 PropertyDataType value(VariableArray const& variable_array,
82 double const t,
83 double const dt) const override;
84
86 PropertyDataType value(VariableArray const& variable_array,
87 VariableArray const& variable_array_prev,
89 double const t,
90 double const dt) const override;
91
94 PropertyDataType dValue(VariableArray const& variable_array,
95 Variable const variable,
97 double const t, double const dt) const override;
98
99private:
110 double const coefficient_;
111
115};
116
117} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
This class defines a linear saturation rate dependent swelling stress model for the materials that sw...
LinearSaturationSwellingStress(std::string name, double const coefficient, double const reference_saturation)
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
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