version 3.10-dev
forchheimerslaw_fwd.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
// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5
// SPDX-License-Identifier: GPL-3.0-or-later
6
//
15
#ifndef DUMUX_FLUX_FORCHHEIMERS_LAW_FWD_HH
16
#define DUMUX_FLUX_FORCHHEIMERS_LAW_FWD_HH
17
18
#include <
dumux/common/properties.hh
>
19
#include <
dumux/discretization/method.hh
>
20
#include <
dumux/flux/forchheimervelocity.hh
>
21
22
namespace
Dumux
{
23
24
// definition of primary template
25
template
<
class
TypeTag,
class
VelocityLaw,
class
DiscretizationMethod>
26
class
ForchheimersLawImplementation
27
{
28
static_assert
(
29
GetPropType<TypeTag, Properties::GridGeometry>::discMethod
==
DiscretizationMethods::cctpfa
||
30
GetPropType<TypeTag, Properties::GridGeometry>::discMethod
==
DiscretizationMethods::box
,
31
"Forchheimer only implemented for cctpfa or box!"
32
);
33
};
34
41
template
<
class
TypeTag>
42
using
ForchheimersLaw
=
ForchheimersLawImplementation
<
43
TypeTag,
44
ForchheimerVelocity
<
45
GetPropType<TypeTag, Properties::Scalar>
,
46
GetPropType<TypeTag, Properties::GridGeometry>
,
47
GetPropType<TypeTag, Properties::FluxVariables>
48
>,
49
typename
GetPropType<TypeTag, Properties::GridGeometry>::DiscretizationMethod
50
>;
51
52
}
// end namespace Dumux
53
54
#endif
Dumux::ForchheimerVelocity
Forchheimer's law For a detailed description see dumux/flow/forchheimerslaw.hh.
Definition:
forchheimervelocity.hh:39
Dumux::ForchheimersLawImplementation
forward declare
Definition:
forchheimerslaw_fwd.hh:27
properties.hh
Defines all properties used in Dumux.
forchheimervelocity.hh
Forchheimer's law This file contains the calculation of the Forchheimer velocity for a given Darcy ve...
Dumux::GetPropType
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition:
propertysystem.hh:296
method.hh
The available discretization methods in Dumux.
Dumux::DiscretizationMethods::cctpfa
constexpr CCTpfa cctpfa
Definition:
method.hh:145
Dumux::DiscretizationMethods::box
constexpr Box box
Definition:
method.hh:147
Dumux
Definition:
adapt.hh:17
dumux
flux
forchheimerslaw_fwd.hh
© Copyright 2010-
DuMux project contributors
(doc pages:
CC-BY 4.0
/ code examples:
GPLv3 or later
)
3.10-dev Generated by
1.9.3