OGS
LinearSaturationSwellingStress.h
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#pragma once
5
7
9{
10class Phase;
56{
57public:
59 double const coefficient,
60 double const reference_saturation);
61
62 void checkScale() const override
63 {
64 if (!std::holds_alternative<Phase*>(scale_))
65 {
67 "The property 'LinearSaturationSwellingStress' is "
68 "implemented on the 'phase' scale only.");
69 }
70 }
71
72 PropertyDataType value(VariableArray const& variable_array,
74 double const t,
75 double const dt) const override;
76
78 PropertyDataType value(VariableArray const& variable_array,
79 VariableArray const& variable_array_prev,
81 double const t,
82 double const dt) const override;
83
86 PropertyDataType dValue(VariableArray const& variable_array,
87 Variable const variable,
89 double const t, double const dt) const override;
90
91private:
102 double const coefficient_;
103
107};
108
109} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
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
std::variant< Medium *, Phase *, Component * > scale_
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