3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
awnsurfacepcmaxfct.hh
Go to the documentation of this file.
1/*****************************************************************************
2 * See the file COPYING for full copying permissions. *
3 * *
4 * This program is free software: you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation, either version 3 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
16 *****************************************************************************/
23#ifndef AWN_SURFACE_PCMAX_FCT_HH
24#define AWN_SURFACE_PCMAX_FCT_HH
25
27#include <dune/common/exceptions.hh>
28
29#warning "This header is deprecated. Removal after 3.3. Use new material laws."
30
31namespace Dumux {
32
44template <class ScalarT, class ParamsT =AwnSurfacePcMaxFctParams<ScalarT> >
45class [[deprecated("Use new material laws and FluidMatrix::InterfacialAreaPcMax instead!")]] AwnSurfacePcMaxFct
46{
47public:
48 using Params = ParamsT;
49 using Scalar = typename Params::Scalar;
50
62 static Scalar interfacialArea(const Params & params, const Scalar Sw, const Scalar pc)
63 {
64 // TODO think about awn surface for relative saturation
65 const Scalar a1 = params.a1();
66 const Scalar a2 = params.a2();
67 const Scalar a3 = params.a3();
68 const Scalar pcMax = params.pcMax() ;
69
70 const Scalar aAlphaBeta = a1 * (pcMax-pc) * (1.-Sw) + a2*(pcMax-pc)*(pcMax-pc) * (1.-Sw) + a3 * (pcMax-pc)*(1-Sw)*(1-Sw);
71 return aAlphaBeta;
72 }
73
81 static Scalar dawn_dpc (const Params &params, const Scalar Sw, const Scalar pc)
82 {
83
84 DUNE_THROW(Dune::NotImplemented, __FILE__ << " dawndpc()");
85 }
86
94 static Scalar dawn_dsw (const Params &params, const Scalar Sw, const Scalar pc)
95 {
96 DUNE_THROW(Dune::NotImplemented, __FILE__ << " dawndSw()");
97 }
98};
99} // end namespace Dumux
100
101#endif
Specification of the parameters for a function relating volume specific interfacial area to capillary...
Definition: adapt.hh:29
Implementation of an interfacial area surface.
Definition: awnsurfacepcmaxfct.hh:46
static Scalar dawn_dpc(const Params &params, const Scalar Sw, const Scalar pc)
the derivative of specific interfacial area function w.r.t. capillary pressure
Definition: awnsurfacepcmaxfct.hh:81
typename Params::Scalar Scalar
Definition: awnsurfacepcmaxfct.hh:49
static Scalar dawn_dsw(const Params &params, const Scalar Sw, const Scalar pc)
the derivative of specific interfacial area function w.r.t. saturation
Definition: awnsurfacepcmaxfct.hh:94
ParamsT Params
Definition: awnsurfacepcmaxfct.hh:48
static Scalar interfacialArea(const Params &params, const Scalar Sw, const Scalar pc)
The awn surface.
Definition: awnsurfacepcmaxfct.hh:62