3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
regularizedlinearmaterialparams.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef REGULARIZED_LINEAR_PARAMS_HH
26#define REGULARIZED_LINEAR_PARAMS_HH
27
28#warning "This header is deprecated. Use SmoothedLinearLaw instead. Removal after 3.3"
29
31
32namespace Dumux {
33
39template<class ScalarT>
40class [[deprecated("Use new material laws! Removal after 3.3")]] RegularizedLinearMaterialParams : public LinearMaterialParams<ScalarT>
41{
42public:
43 using Scalar = ScalarT;
44
46 {
47 setKrLowS(0.05);
48 setKrHighS(0.95);
49 }
50
55 void setKrLowS(Scalar krLowS)
56 {
57 krLowS_ = krLowS;
58 }
59
64 Scalar krLowS() const
65 {
66 return krLowS_;
67 }
68
73 void setKrHighS(Scalar krHighS)
74 {
75 krHighS_ = krHighS;
76 }
77
83 {
84 return krHighS_;
85 }
86
87private:
88 Scalar krLowS_;
89 Scalar krHighS_;
90};
91} // namespace Dumux
92
93#endif
Parameters for the linear capillary pressure and relative permeability <-> saturation relations.
Definition: adapt.hh:29
Reference implementation of params for the linear material law.
Definition: linearmaterialparams.hh:39
ScalarT Scalar
Definition: linearmaterialparams.hh:41
Parameters that are necessary for the regularization of the linear constitutive relations.
Definition: regularizedlinearmaterialparams.hh:41
RegularizedLinearMaterialParams()
Definition: regularizedlinearmaterialparams.hh:45
Scalar krLowS() const
Return the threshold saturation respective phase below which the relative permeability gets regulariz...
Definition: regularizedlinearmaterialparams.hh:64
void setKrHighS(Scalar krHighS)
Set the threshold saturation of the respective phase above which the relative permeability gets regul...
Definition: regularizedlinearmaterialparams.hh:73
Scalar krHighS() const
Return the threshold saturation of the respective phase above which the relative permeability gets re...
Definition: regularizedlinearmaterialparams.hh:82
void setKrLowS(Scalar krLowS)
Set the threshold saturation respective phase below which the relative permeability gets regularized.
Definition: regularizedlinearmaterialparams.hh:55