3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
discretization/staggered/freeflow/properties.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 *****************************************************************************/
28#ifndef DUMUX_STAGGERD_FREE_FLOW_PROPERTIES_HH
29#define DUMUX_STAGGERD_FREE_FLOW_PROPERTIES_HH
30
34
39
40#include "facevariables.hh"
41#include "velocityoutput.hh"
44
46
47namespace Dumux {
48namespace Properties {
49
51// Create new type tags
52namespace TTag {
53struct StaggeredFreeFlowModel { using InheritsFrom = std::tuple<StaggeredModel>; };
54} // end namespace TTag
55
60template<class TypeTag>
61struct NumEqFace<TypeTag, TTag::StaggeredFreeFlowModel> { static constexpr int value = 1; };
62
69template<class TypeTag>
70struct NumEqCellCenter<TypeTag, TTag::StaggeredFreeFlowModel>
71{
72private:
75 static constexpr auto dim = GridView::dimension;
76 static constexpr auto numEq = ModelTraits::numEq();
77public:
78 static constexpr int value = numEq - dim;
79};
80
82template<class TypeTag>
83struct GridGeometry<TypeTag, TTag::StaggeredFreeFlowModel>
84{
85private:
86 static constexpr auto upwindSchemeOrder = getPropValue<TypeTag, Properties::UpwindSchemeOrder>();
87 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridGeometryCache>();
90public:
92};
93
95template<class TypeTag>
96struct FaceVariables<TypeTag, TTag::StaggeredFreeFlowModel>
97{
98private:
101 static constexpr auto upwindSchemeOrder = getPropValue<TypeTag, Properties::UpwindSchemeOrder>();
102public:
104};
105
107template<class TypeTag>
108struct GridVolumeVariables<TypeTag, TTag::StaggeredFreeFlowModel>
109{
110private:
113 static constexpr auto enableCache = getPropValue<TypeTag, Properties::EnableGridVolumeVariablesCache>();
115public:
117};
118
119DUNE_NO_DEPRECATED_BEGIN
121template<class TypeTag>
122struct BoundaryTypes<TypeTag, TTag::StaggeredFreeFlowModel>
123{
125};
126DUNE_NO_DEPRECATED_END
127
129template<class TypeTag>
130struct VelocityOutput<TypeTag, TTag::StaggeredFreeFlowModel>
131{
134};
135
139template<class TypeTag>
140struct UpwindSchemeOrder<TypeTag, TTag::StaggeredFreeFlowModel> { static constexpr int value = 1; };
141
142} // namespace Properties
143} // namespace Dumux
144
145#endif
Defines the default element and vertex mapper types.
defines intersection mappers.
Helpers for deprecation.
Defines a type tag and some properties for models using the staggered scheme. This scheme features de...
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
Stores the boundary types of a single degree of freedom.
Definition: common/properties.hh:72
Definition: common/properties.hh:101
The type for a global container for the volume variables.
Definition: common/properties.hh:108
specifies the velocity calculation module to be used
Definition: common/properties.hh:167
The number of equations for cell-centered dofs.
Definition: common/properties.hh:209
The number of equations for face dofs.
Definition: common/properties.hh:211
Class containing local face-related data.
Definition: common/properties.hh:229
Specifies the order of the upwinding scheme (1 == first order, 2 == second order(tvd methods))
Definition: common/properties.hh:237
The face variables class for free flow staggered grid models. Contains all relevant velocities for th...
Definition: facevariables.hh:63
Default traits for the finite volume grid geometry.
Definition: staggered/freeflow/fvgridgeometrytraits.hh:96
Definition: staggered/freeflow/gridvolumevariables.hh:39
Grid volume variables class for staggered models.
Definition: staggered/freeflow/gridvolumevariables.hh:130
Definition: discretization/staggered/freeflow/properties.hh:53
std::tuple< StaggeredModel > InheritsFrom
Definition: discretization/staggered/freeflow/properties.hh:53
Velocity output for staggered free-flow models.
Definition: discretization/staggered/freeflow/velocityoutput.hh:38
Base class for the finite volume geometry vector for staggered models This builds up the sub control ...
Definition: discretization/staggered/fvgridgeometry.hh:170
Class to specify the type of a boundary condition for the Navier-Stokes model.
Definition: freeflow/navierstokes/boundarytypes.hh:38
Declares all properties used in Dumux.
Defines a type tag and some properties for free flow models.
Velocity output for porous media models.