3.1-git
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
29
30namespace Dumux {
31
37template<class ScalarT>
39{
40public:
41 using Scalar = ScalarT;
42
44 {
45 setKrLowS(0.05);
46 setKrHighS(0.95);
47 }
48
54 {
55 krLowS_ = krLowS;
56 }
57
62 Scalar krLowS() const
63 {
64 return krLowS_;
65 }
66
72 {
73 krHighS_ = krHighS;
74 }
75
81 {
82 return krHighS_;
83 }
84
85private:
86 Scalar krLowS_;
87 Scalar krHighS_;
88};
89} // namespace Dumux
90
91#endif
Parameters for the linear capillary pressure and relative permeability <-> saturation relations.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Reference implementation of params for the linear material law.
Definition: linearmaterialparams.hh:37
ScalarT Scalar
Definition: linearmaterialparams.hh:39
Parameters that are necessary for the regularization of the linear constitutive relations.
Definition: regularizedlinearmaterialparams.hh:39
RegularizedLinearMaterialParams()
Definition: regularizedlinearmaterialparams.hh:43
Scalar krLowS() const
Return the threshold saturation respective phase below which the relative permeability gets regulariz...
Definition: regularizedlinearmaterialparams.hh:62
ScalarT Scalar
Definition: regularizedlinearmaterialparams.hh:41
void setKrHighS(Scalar krHighS)
Set the threshold saturation of the respective phase above which the relative permeability gets regul...
Definition: regularizedlinearmaterialparams.hh:71
Scalar krHighS() const
Return the threshold saturation of the respective phase above which the relative permeability gets re...
Definition: regularizedlinearmaterialparams.hh:80
void setKrLowS(Scalar krLowS)
Set the threshold saturation respective phase below which the relative permeability gets regularized.
Definition: regularizedlinearmaterialparams.hh:53