3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/boxdfm/model.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 *****************************************************************************/
26#ifndef DUMUX_POROUSMEDIUMFLOW_BOXDFM_MODEL_HH
27#define DUMUX_POROUSMEDIUMFLOW_BOXDFM_MODEL_HH
28
30
31#include "fvgridgeometry.hh"
32#include "fluxvariablescache.hh"
33
34namespace Dumux {
35namespace Properties {
36
38// Create new type tags
39namespace TTag {
40struct BoxDfmModel { using InheritsFrom = std::tuple<BoxModel>; };
41} // end namespace TTag
42
44template<class TypeTag>
45struct GridGeometry<TypeTag, TTag::BoxDfmModel>
46{
47private:
48 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridGeometryCache>();
51public:
53};
54
56template<class TypeTag>
57struct FluxVariablesCache<TypeTag, TTag::BoxDfmModel> { using type = BoxDfmFluxVariablesCache<TypeTag>; };
58
59} // namespace Properties
60} // namespace Dumux
61
62#endif
Defines a type tag and some properties for models using the box scheme.
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:150
Definition: common/properties.hh:102
Stores data associated with flux vars.
Definition: common/properties.hh:115
We only store discretization-related quantities for the box method. However, we cannot reuse the cach...
Definition: porousmediumflow/boxdfm/fluxvariablescache.hh:43
Base class for the finite volume geometry vector for box schemes.
Definition: porousmediumflow/boxdfm/fvgridgeometry.hh:87
Definition: porousmediumflow/boxdfm/model.hh:40
std::tuple< BoxModel > InheritsFrom
Definition: porousmediumflow/boxdfm/model.hh:40
Base class for the flux variables.
Base class for the finite volume geometry vector for box schemes that consider extra connectivity bet...