3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
efftoabslawia.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 *****************************************************************************/
26#ifndef DUMUX_EFF_TO_ABS_LAW_IA_HH
27#define DUMUX_EFF_TO_ABS_LAW_IA_HH
28
29#warning "This header is deprecated. Removal after 3.3. Use new material laws."
30
33
34namespace Dumux {
35
61template <class EffLawIAT,
62 class MaterialAbsParamsT ,
63 class InterfacialAreaAbsParamsT = typename EffLawIAT::Params>
65{
66 using EffLawIA = EffLawIAT;
67 using MaterialParams = MaterialAbsParamsT;
68
69public:
70 using Params = InterfacialAreaAbsParamsT;
71 using Scalar = typename MaterialParams::Scalar;
72
80 static Scalar interfacialArea(const Params & iaParams,
81 const MaterialParams & params,
82 const Scalar sw,
83 const Scalar pc)
84 {
85 return EffLawIA::interfacialArea(iaParams,
86 swToSwe(params, sw),
87 pc);
88 }
89
90protected:
100 static Scalar swToSwe(const MaterialParams & params, Scalar sw)
101 {
102 return (sw - params.swr())/(1. - params.swr() - params.snr());
103 }
104};
105} // end namespace Dumux
106
107#endif
A default implementation of the parameters for the adapter class to convert material laws – in this c...
Definition: adapt.hh:29
This material law takes a material law (interfacial area surface) defined for effective saturations a...
Definition: efftoabslawia.hh:65
static Scalar swToSwe(const MaterialParams &params, Scalar sw)
Convert an absolute wetting saturation to an effective one.
Definition: efftoabslawia.hh:100
typename MaterialParams::Scalar Scalar
Definition: efftoabslawia.hh:71
InterfacialAreaAbsParamsT Params
Definition: efftoabslawia.hh:70
static Scalar interfacialArea(const Params &iaParams, const MaterialParams &params, const Scalar sw, const Scalar pc)
The interfacial area relation.
Definition: efftoabslawia.hh:80
This material law takes a material law defined for effective saturations and converts it to a materia...