3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
linearmaterialparams.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 LINEAR_MATERIAL_PARAMS_HH
26#define LINEAR_MATERIAL_PARAMS_HH
27
28namespace Dumux {
29
35template<class ScalarT>
37{
38public:
39 using Scalar = ScalarT;
40
42 {}
43
45 {
48 }
49
50
57 { return entryPc_; }
58
65 { entryPc_ = v; }
66
72 Scalar maxPc() const
73 { return maxPc_; }
74
81 { maxPc_ = v; }
82
83private:
84 Scalar entryPc_;
85 Scalar maxPc_;
86};
87} // namespace Dumux
88
89#endif
Definition: adapt.hh:29
Reference implementation of params for the linear material law.
Definition: linearmaterialparams.hh:37
LinearMaterialParams()
Definition: linearmaterialparams.hh:41
Scalar maxPc() const
Return the maximum capillary pressure for the linear material law in ..
Definition: linearmaterialparams.hh:72
void setEntryPc(Scalar v)
Set the entry pressure for the linear material law in .
Definition: linearmaterialparams.hh:64
Scalar entryPc() const
Return the entry pressure for the linear material law in .
Definition: linearmaterialparams.hh:56
void setMaxPc(Scalar v)
Set the maximum capillary pressure for the linear material law in ..
Definition: linearmaterialparams.hh:80
LinearMaterialParams(Scalar entryPc, Scalar maxPc)
Definition: linearmaterialparams.hh:44
ScalarT Scalar
Definition: linearmaterialparams.hh:39