3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
regularizedbrookscoreyparams.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 DUMUX_REGULARIZED_BROOKS_COREY_PARAMS_HH
26#define DUMUX_REGULARIZED_BROOKS_COREY_PARAMS_HH
27
28#warning "This header is deprecated. Removal after 3.3. Use new material laws."
29
30#include <dune/common/float_cmp.hh>
31
32#include "brookscoreyparams.hh"
33
34namespace Dumux {
35
41template <class ScalarT>
42class [[deprecated("Use new material laws! Removal after 3.3")]] RegularizedBrooksCoreyParams : public BrooksCoreyParams<ScalarT>
43{
45
46public:
47 using Scalar = ScalarT;
48
51 {
52 setThresholdSw(0.01);
53 }
54
56 : BrooksCoreyParams(pe, lambda)
57 {
58 setThresholdSw(0.01);
59 }
60
64 template<class OtherParams>
65 bool operator== (const OtherParams& otherParams) const
66 {
67 return Dune::FloatCmp::eq(thresholdSw_, otherParams.thresholdSw(), /*eps*/1e-6*thresholdSw_)
68 && BrooksCoreyParams::operator==(otherParams);
69 }
70
78 void setThresholdSw(Scalar thresholdSw)
79 {
80 thresholdSw_ = thresholdSw;
81 }
82
88 {
89 return thresholdSw_;
90 }
91
92private:
93 Scalar thresholdSw_;
94};
95} // namespace Dumux
96
97#endif
Specification of the material parameters for the Brooks Corey constitutive relations.
Definition: adapt.hh:29
constexpr bool operator==(Tag< T1 >, Tag< T2 >)
Tags are equality comparable and return true if the tagged types are equal.
Definition: tag.hh:46
Specification of the material parameters for the Brooks Corey constitutive relations.
Definition: brookscoreyparams.hh:42
bool operator==(const OtherParams &otherParams) const
Equality comparison with another set of params.
Definition: brookscoreyparams.hh:56
ScalarT Scalar
Definition: brookscoreyparams.hh:44
Parameters that are necessary for the regularization of the Brooks-Corey capillary pressure model.
Definition: regularizedbrookscoreyparams.hh:43
Scalar thresholdSw() const
Threshold saturation below which the capillary pressure is regularized.
Definition: regularizedbrookscoreyparams.hh:87
void setThresholdSw(Scalar thresholdSw)
Set the threshold saturation below which the capillary pressure is regularized.
Definition: regularizedbrookscoreyparams.hh:78
RegularizedBrooksCoreyParams(Scalar pe, Scalar lambda)
Definition: regularizedbrookscoreyparams.hh:55
RegularizedBrooksCoreyParams()
Definition: regularizedbrookscoreyparams.hh:49