3.2-git
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
31
32namespace Dumux {
33
59template <class EffLawIAT,
60 class MaterialAbsParamsT ,
61 class InterfacialAreaAbsParamsT = typename EffLawIAT::Params>
63{
64 using EffLawIA = EffLawIAT;
65 using MaterialParams = MaterialAbsParamsT;
66
67public:
68 using Params = InterfacialAreaAbsParamsT;
69 using Scalar = typename MaterialParams::Scalar;
70
78 static Scalar interfacialArea(const Params & iaParams,
79 const MaterialParams & params,
80 const Scalar sw,
81 const Scalar pc)
82 {
83 return EffLawIA::interfacialArea(iaParams,
84 swToSwe(params, sw),
85 pc);
86 }
87
88protected:
98 static Scalar swToSwe(const MaterialParams & params, Scalar sw)
99 {
100 return (sw - params.swr())/(1. - params.swr() - params.snr());
101 }
102};
103} // end namespace Dumux
104
105#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:63
static Scalar swToSwe(const MaterialParams &params, Scalar sw)
Convert an absolute wetting saturation to an effective one.
Definition: efftoabslawia.hh:98
typename MaterialParams::Scalar Scalar
Definition: efftoabslawia.hh:69
InterfacialAreaAbsParamsT Params
Definition: efftoabslawia.hh:68
static Scalar interfacialArea(const Params &iaParams, const MaterialParams &params, const Scalar sw, const Scalar pc)
The interfacial area relation.
Definition: efftoabslawia.hh:78
This material law takes a material law defined for effective saturations and converts it to a materia...