3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
dumux
flux
forchheimerslaw.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
*****************************************************************************/
27
#ifndef DUMUX_DISCRETIZATION_FORCHHEIMERS_LAW_HH
28
#define DUMUX_DISCRETIZATION_FORCHHEIMERS_LAW_HH
29
30
#include <
dumux/common/properties.hh
>
31
#include <
dumux/discretization/method.hh
>
32
33
namespace
Dumux
{
34
35
// forward declaration
36
template
<
class
TypeTag, DiscretizationMethod discMethod>
37
class
ForchheimersLawImplementation
38
{
39
static_assert
(discMethod ==
DiscretizationMethod::cctpfa
,
"Forchheimer only implemented for cctpfa!"
);
40
};
41
48
template
<
class
TypeTag>
49
using
ForchheimersLaw
=
ForchheimersLawImplementation<TypeTag, GetPropType<TypeTag, Properties::GridGeometry>::discMethod
>;
50
51
}
// end namespace Dumux
52
53
#include <
dumux/flux/cctpfa/forchheimerslaw.hh
>
54
55
#endif
method.hh
The available discretization methods in Dumux.
Dumux::DiscretizationMethod::cctpfa
@ cctpfa
Dumux
Definition:
adapt.hh:29
Dumux::ForchheimersLawImplementation
forward declare
Definition:
forchheimerslaw.hh:38
properties.hh
Declares all properties used in Dumux.
forchheimerslaw.hh
Forchheimers's law for cell-centered finite volume schemes with two-point flux approximation.
Generated by
1.9.3