3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
ccmpfa.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 *****************************************************************************/
25#ifndef DUMUX_DISCRETIZATION_CC_MPFA_HH
26#define DUMUX_DISCRETIZATION_CC_MPFA_HH
27
28#include <dune/common/deprecated.hh>
29#include <dune/common/reservedvector.hh>
30
33
35
37
40
48
50
51namespace Dumux {
52namespace Properties {
53
55// Create new type tags
56namespace TTag {
57struct CCMpfaModel { using InheritsFrom = std::tuple<FiniteVolumeModel>; };
58} // end namespace TTag
59
61template<class TypeTag>
62struct DualGridNodalIndexSet<TypeTag, TTag::CCMpfaModel>
63{
64private:
65 DUNE_NO_DEPRECATED_BEGIN
67 DUNE_NO_DEPRECATED_END
69
70public:
72};
73
75template<class TypeTag>
76struct PrimaryInteractionVolume<TypeTag, TTag::CCMpfaModel>
77{
78private:
81
82 // use the default traits
84public:
86};
87
89template<class TypeTag>
90struct SecondaryInteractionVolume<TypeTag, TTag::CCMpfaModel>
91{
92private:
95
96 // use the default traits
98public:
100};
101
103template<class TypeTag>
104struct GridGeometry<TypeTag, TTag::CCMpfaModel>
105{
106private:
107 DUNE_NO_DEPRECATED_BEGIN
109 DUNE_NO_DEPRECATED_END
114public:
116};
117
119template<class TypeTag>
120struct GridVolumeVariables<TypeTag, TTag::CCMpfaModel>
121{
122private:
123 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridVolumeVariablesCache>();
126public:
128};
129
131template<class TypeTag>
132struct GridFluxVariablesCache<TypeTag, TTag::CCMpfaModel>
133{
134private:
135 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridFluxVariablesCache>();
138 using FluxVariablesCacheFiller = GetPropType<TypeTag, Properties::FluxVariablesCacheFiller>;
139
140 using PrimaryInteractionVolume = GetPropType<TypeTag, Properties::PrimaryInteractionVolume>;
141 using SecondaryInteractionVolume = GetPropType<TypeTag, Properties::SecondaryInteractionVolume>;
142
144 using PrimaryMatVecTraits = typename PrimaryInteractionVolume::Traits::MatVecTraits;
145 using SecondaryMatVecTraits = typename SecondaryInteractionVolume::Traits::MatVecTraits;
146
149
151 FluxVariablesCache, FluxVariablesCacheFiller,
152 PrimaryInteractionVolume, SecondaryInteractionVolume,
154public:
156};
157
159template<class TypeTag>
160struct ElementBoundaryTypes<TypeTag, TTag::CCMpfaModel> { using type = CCElementBoundaryTypes; };
161
163template<class TypeTag>
164struct BaseLocalResidual<TypeTag, TTag::CCMpfaModel> { using type = CCLocalResidual<TypeTag>; };
165} // namespace Properties
166} // namespace Dumux
167
168#endif
Calculates the element-wise residual for cell-centered discretization schemes.
Defines the default element and vertex mapper types.
Class for the index sets of the dual grid in mpfa schemes.
Data handle class for interaction volumes of mpfa methods. This class is passed to interaction volume...
The available mpfa schemes in Dumux.
Declares properties required for finite-volume models models.
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
Calculates the element-wise residual for the cell-centered discretization schemes.
Definition: cclocalresidual.hh:42
The type of the base class of the local residual (specific to a discretization scheme)
Definition: common/properties.hh:78
Stores the boundary types on an element.
Definition: common/properties.hh:110
Definition: common/properties.hh:113
The type for a global container for the volume variables.
Definition: common/properties.hh:120
The global vector of flux variable containers.
Definition: common/properties.hh:130
The primary interaction volume type.
Definition: common/properties.hh:140
The secondary interaction volume type used e.g. on the boundaries.
Definition: common/properties.hh:142
The type used for the nodal index sets of the dual grid.
Definition: common/properties.hh:144
Definition: ccmpfa.hh:57
std::tuple< FiniteVolumeModel > InheritsFrom
Definition: ccmpfa.hh:57
Boundary types gathered on an element.
Definition: discretization/cellcentered/elementboundarytypes.hh:38
Default traits to be used in conjuntion with the dual grid nodal index set.
Definition: dualgridindexset.hh:45
Nodal index set for mpfa schemes, constructed around grid vertices.
Definition: dualgridindexset.hh:70
The finite volume geometry (scvs and scvfs) for cell-centered mpfa models on a grid view This builds ...
Definition: discretization/cellcentered/mpfa/fvgridgeometry.hh:51
Traits class to be used for the CCMpfaFVGridGeometry.
Definition: cellcentered/mpfa/fvgridgeometrytraits.hh:50
Data handle physics traits.
Definition: cellcentered/mpfa/gridfluxvariablescache.hh:39
Data handle physics traits.
Definition: cellcentered/mpfa/gridfluxvariablescache.hh:57
Flux variable caches on a gridview.
Definition: cellcentered/mpfa/gridfluxvariablescache.hh:85
Base class for the grid volume variables.
Definition: cellcentered/mpfa/gridvolumevariables.hh:56
Class for the interaction volume data handle.
Definition: interactionvolumedatahandle.hh:229
Forward declaration of the o-method's interaction volume.
Definition: discretization/cellcentered/mpfa/omethod/interactionvolume.hh:115
The default interaction volume traits class for the mpfa-o method. This uses dynamic types types for ...
Definition: discretization/cellcentered/mpfa/omethod/interactionvolume.hh:60
Declares all properties used in Dumux.
Boundary types gathered on an element.
The local element solution class for cell-centered methods.
The finite volume geometry (scvs and scvfs) for cell-centered mpfa models on a grid view This builds ...
Flux variable caches on a gridview.
The grid volume variables class for cell centered mpfa models.
Traits class to be used in conjunction with the CCMpfaFVGridGeometry.
Class for the interaction volume of the mpfa-o scheme.