3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
evalcflflux.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 *****************************************************************************/
24#ifndef DUMUX_EVALCFLFLUX_HH
25#define DUMUX_EVALCFLFLUX_HH
26
28
29namespace Dumux {
50template<class TypeTag>
52{
53private:
56 using Intersection = typename GridView::Intersection;
57 using Element = typename GridView::Traits::template Codim<0>::Entity;
58
59public:
60
63 {}
64
76 void addFlux(Scalar& lambdaW, Scalar& lambdaNw, Scalar& viscosityW, Scalar& viscosityNw, Scalar flux,
77 const Intersection& intersection, int phaseIdx)
78 {}
79
91 void addFlux(Scalar& lambdaW, Scalar& lambdaNw, Scalar& viscosityW, Scalar& viscosityNw, Scalar flux,
92 const Element& element, int phaseIdx)
93 {}
94
101 Scalar getCflFluxFunction(const Element& element)
102 {
103 return 0.0;
104 }
105
112 Scalar getDt(const Element& element)
113 {
114 return 0.0;
115 }
116
118 void reset()
119 {}
120
123 {}
124};
125} // end namespace Dumux
126
127#endif
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
Base class for implementations of different kinds of fluxes to evaluate a CFL-Condition.
Definition: evalcflflux.hh:52
void reset()
reset function
Definition: evalcflflux.hh:118
Scalar getDt(const Element &element)
Returns the CFL time-step.
Definition: evalcflflux.hh:112
void initialize()
For initialization.
Definition: evalcflflux.hh:62
void addFlux(Scalar &lambdaW, Scalar &lambdaNw, Scalar &viscosityW, Scalar &viscosityNw, Scalar flux, const Element &element, int phaseIdx)
adds a flux to the cfl-criterion evaluation
Definition: evalcflflux.hh:91
EvalCflFlux()
Constructs a EvalCflFlux instance.
Definition: evalcflflux.hh:122
void addFlux(Scalar &lambdaW, Scalar &lambdaNw, Scalar &viscosityW, Scalar &viscosityNw, Scalar flux, const Intersection &intersection, int phaseIdx)
adds a flux to the cfl-criterion evaluation
Definition: evalcflflux.hh:76
Scalar getCflFluxFunction(const Element &element)
Returns the CFL flux-function.
Definition: evalcflflux.hh:101
Defines the properties required for (immiscible) two-phase sequential models.