13#ifndef DUMUX_DISCRETIZTAION_BOX_HH
14#define DUMUX_DISCRETIZTAION_BOX_HH
19#include <dune/common/fvector.hh>
20#include <dune/geometry/multilineargeometry.hh>
24#include <dumux/common/concepts/variables_.hh>
26#include <dumux/common/typetraits/boundary_.hh>
29#include <dumux/assembly/cvfelocalresidual_.hh>
54template<
class TypeTag>
55struct GridGeometry<TypeTag, TTag::BoxModel>
58 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridGeometryCache>();
66template<
class TypeTag>
67struct GridVolumeVariables<TypeTag, TTag::BoxModel>
70 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridVolumeVariablesCache>();
79template<
class TypeTag>
80struct GridFluxVariablesCache<TypeTag, TTag::BoxModel>
83 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridFluxVariablesCache>();
95template<
class TypeTag>
96struct FluxVariablesCache<TypeTag, TTag::BoxModel>
106template<
class TypeTag>
107struct ElementBoundaryTypes<TypeTag, TTag::BoxModel>
111 using GG = std::decay_t<decltype(std::declval<Problem>().gridGeometry())>;
116 using type = std::conditional_t<
117 Dumux::Detail::hasProblemBoundaryTypesForIntersectionFunction<Problem, typename GG::LocalView, typename GG::GridView::Intersection>(),
127template<
class Problem>
131 using GG = std::decay_t<decltype(std::declval<Problem>().gridGeometry())>;
135 using BoundaryTypes = Detail::BoundaryTypes<Problem, typename GG::LocalView, typename GG::GridView::Intersection>::type;
138template<
class TypeTag>
140 typename GetPropType<TypeTag, Properties::GridGeometry>::DiscretizationMethod,
144template<BoxModel TypeTag>
149 static constexpr bool usesGeneralGridVariables =
150 Dumux::Concept::GridVariables<GV> && !Dumux::Concept::FVGridVariables<GV>;
152 using type = std::conditional_t<usesGeneralGridVariables,
153 Dumux::Experimental::CVFELocalResidual<TypeTag>,
Boundary flag to store e.g. in sub control volume faces.
Base class for the finite volume geometry vector for box schemes This builds up the sub control volum...
Definition: discretization/box/fvgridgeometry.hh:81
This class stores an array of BoundaryTypes objects.
Definition: cvfe/elementboundarytypes.hh:28
Flux variables cache class for control-volume finite element schemes. For control-volume finite eleme...
Definition: discretization/cvfe/fluxvariablescache.hh:34
Flux variable caches implementation on a gridview.
Definition: discretization/cvfe/gridfluxvariablescache.hh:48
Base class for the grid volume variables.
Definition: cvfe/gridvolumevariables.hh:44
The element-wise residual for control-volume finite element schemes.
Definition: cvfelocalresidual.hh:77
This class stores an array of BoundaryTypes objects. This class is not dependent on the used discreti...
Definition: elementboundarytypes.hh:30
Defines all properties used in Dumux.
Type traits for problem classes.
Boundary types gathered on an element.
The local element solution class for control-volume finite element methods.
The grid volume variables class for control-volume finite element methods.
Calculates the element-wise residual for control-volume finite element schemes.
The default local operator than can be specialized for each discretization scheme.
Base class for the finite volume geometry vector for box models This builds up the sub control volume...
Flux variables cache class for control-volume finite element schemes.
Global flux variable cache.
Boundary types gathered on an element.
Classes related to flux variables caching.
Declares properties required for finite-volume models models.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
typename GetPropOr< TypeTag, Property, T >::type GetPropTypeOr
get the type alias defined in the property or the type T if the property is undefined
Definition: propertysystem.hh:303
The available discretization methods in Dumux.
Definition: cvfelocalresidual.hh:30
CVFE< CVFEMethods::PQ1 > Box
Definition: method.hh:98
The energy balance equation for a porous solid.
Definition: common/properties.hh:26
Definition: cvfe/gridvolumevariables.hh:31
std::conditional_t< usesGeneralGridVariables, Dumux::Experimental::CVFELocalResidual< TypeTag >, Dumux::CVFELocalResidual< TypeTag > > type
Definition: box.hh:154
Definition: defaultlocaloperator.hh:19
Detail::BoundaryTypes< Problem, typename GG::LocalView, typename GG::GridView::Intersection >::type BoundaryTypes
Definition: box.hh:135
GG GridGeometry
Definition: box.hh:133
Definition: common/typetraits/problem.hh:23
An empty flux variables cache.
Definition: fluxvariablescaching.hh:35
typename Detail::template ProblemTraits< Problem, typename GridGeometry::DiscretizationMethod >::BoundaryTypes BoundaryTypes
Definition: common/typetraits/problem.hh:34
std::conditional_t< Dumux::Detail::hasProblemBoundaryTypesForIntersectionFunction< Problem, typename GG::LocalView, typename GG::GridView::Intersection >(), Dumux::ElementIntersectionBoundaryTypes< BoundaryTypes >, Dumux::CVFEElementBoundaryTypes< BoundaryTypes > > type
Definition: box.hh:120
std::tuple< FiniteVolumeModel > InheritsFrom
Definition: box.hh:50