13#ifndef DUMUX_DISCRETIZATION_PQ1_HH
14#define DUMUX_DISCRETIZATION_PQ1_HH
19#include <dune/common/fvector.hh>
20#include <dune/geometry/multilineargeometry.hh>
21#include <dune/istl/bvector.hh>
22#include <dune/istl/bcrsmatrix.hh>
26#include <dumux/common/concepts/variables_.hh>
28#include <dumux/common/typetraits/boundary_.hh>
31#include <dumux/assembly/cvfelocalresidual_.hh>
65template<
class TypeTag>
66struct GridGeometry<TypeTag,
TTag::PQ1FVModel>
77template<
class TypeTag>
78struct GridVolumeVariables<TypeTag,
TTag::PQ1FVModel>
90template<
class TypeTag>
91struct GridFluxVariablesCache<TypeTag,
TTag::PQ1FVModel>
106template<
class TypeTag>
107struct FluxVariablesCache<TypeTag,
TTag::PQ1FVModel>
117template<
class TypeTag>
118struct ElementBoundaryTypes<TypeTag,
TTag::PQ1FVModel>
127 using type = std::conditional_t<
128 Dumux::Detail::hasProblemBoundaryTypesForFaceFunction<Problem, typename GG::LocalView>(),
136template<
class TypeTag>
137struct GridGeometry<TypeTag,
TTag::PQ1FEModel>
147template<
class TypeTag>
148struct GridVariables<TypeTag,
TTag::PQ1FEModel>
163template<
class TypeTag>
164struct ElementBoundaryTypes<TypeTag,
TTag::PQ1FEModel>
171 using type = std::conditional_t<
172 Dumux::Detail::hasProblemBoundaryTypesForFaceFunction<Problem, typename GG::LocalView>(),
179template<
class TypeTag>
180struct EnableGridVolumeVariablesCache<TypeTag,
TTag::PQ1FEModel> {
static constexpr bool value =
false; };
183template<
class TypeTag>
184struct SolutionVector<TypeTag,
TTag::PQ1FEModel> {
using type = Dune::BlockVector<GetPropType<TypeTag, Properties::PrimaryVariables>>; };
187template<
class TypeTag>
188struct JacobianMatrix<TypeTag,
TTag::PQ1FEModel>
193 using MatrixBlock =
typename Dune::FieldMatrix<Scalar, numEq, numEq>;
202template<
class Problem>
210 using BoundaryTypes = Detail::BoundaryTypes<Problem, typename GG::LocalView>::type;
213template<
class TypeTag>
222template<PQ1Model TypeTag>
227 static constexpr bool usesGeneralGridVariables =
228 Dumux::Concept::GridVariables<GV> && !Dumux::Concept::FVGridVariables<GV>;
230 using type = std::conditional_t<usesGeneralGridVariables,
231 Dumux::Experimental::CVFELocalResidual<TypeTag>,
235template<
class TypeTag>
238template<PQ1FEModel TypeTag>
The element-wise residual for grid-based discretization schemes.
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:83
Interpolation point data related to a local basis.
Definition cvfe/interpolationpointdata.hh:161
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
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:60
A class for providing the new update interface of variables. This allows to still use the VolumesVari...
Definition variablesadapter.hh:36
This class stores an array of BoundaryTypes objects. This class is not dependent on the used discreti...
Definition elementboundarytypes.hh:30
Base class for the grid local variables.
Definition fem/gridvariablescache.hh:50
The grid variables class for general schemes, storing variables and data.
Definition discretization/gridvariables.hh:27
The element-wise residual for grid-based discretization schemes.
Definition assembly/localresidual.hh:39
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.
Classes representing interpolation point data for control-volume finite element schemes.
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.
The grid variables class for general schemes, storing variables and data.
Boundary types gathered on an element.
The element variables class.
The grid local variables class for finite element methods.
Classes related to flux variables caching.
Declares properties required for finite-volume models models.
CVFEGridFluxVariablesCacheImpl< Problem, FluxVariablesCache, cachingEnabled, Traits, Detail::ScvfQuadratureRuleOrDefault_t< typename Traits::FluxVariablesCache > > CVFEGridFluxVariablesCache
Flux variable caches on a gridview.
Definition discretization/cvfe/gridfluxvariablescache.hh:58
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:310
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
constexpr bool inheritsFrom()
Return true if the given type tag inherits from the given parent type tag.
Definition propertysystem.hh:262
The available discretization methods in Dumux.
Definition boxgeometryhelper.hh:55
Definition cvfelocalresidual.hh:25
typename ProblemGridGeometryHelper< Problem >::type ProblemGridGeometry
Definition common/typetraits/problem.hh:40
CVFE< CVFEMethods::PQ1 > PQ1
Definition method.hh:108
FEGridDiscretization< GV, Traits > PQ1FEGridDiscretization
Finite element grid discretization for the PQ1 FE method.
Definition pq1/fegriddiscretization.hh:92
Type tag for numeric models.
Definition grid.hh:24
The energy balance equation for a porous solid.
Definition common/properties.hh:26
Finite element grid discretization for the PQ1 FE method.
Definition cvfe/gridvolumevariables.hh:31
CCLocalResidual< TypeTag > type
Definition ccmpfa.hh:185
Definition defaultlocaloperator.hh:19
Detail::BoundaryTypes< Problem, typename GG::LocalView >::type BoundaryTypes
Definition pq1.hh:210
GG GridGeometry
Definition pq1.hh:208
Definition common/typetraits/problem.hh:23
Definition fem/gridvariablescache.hh:36
An empty flux variables cache.
Definition fluxvariablescaching.hh:35
typename Detail::template ProblemTraits< Problem, typename GridGeometry::DiscretizationMethod >::BoundaryTypes BoundaryTypes
Definition common/typetraits/problem.hh:51
std::conditional_t< Dumux::Detail::hasProblemBoundaryTypesForFaceFunction< Problem, typename GG::LocalView >(), Dumux::ElementIntersectionBoundaryTypes< BoundaryTypes >, Dumux::CVFEElementBoundaryTypes< BoundaryTypes > > type
Definition pq1.hh:171
std::conditional_t< Dumux::Detail::hasProblemBoundaryTypesForFaceFunction< Problem, typename GG::LocalView >(), Dumux::ElementIntersectionBoundaryTypes< BoundaryTypes >, Dumux::CVFEElementBoundaryTypes< BoundaryTypes > > type
Definition pq1.hh:127
static constexpr bool value
Definition pq1.hh:180
CVFEFluxVariablesCache< Scalar, GridGeometry > type
Definition pq1.hh:113
CVFEGridFluxVariablesCache< Problem, FluxVariablesCache, enableCache > type
Definition pq1.hh:102
Dumux::Experimental::PQ1FEGridDiscretization< Scalar, GridView, enableCache > type
Definition pq1.hh:144
BoxFVGridGeometry< Scalar, GridView, enableCache > type
Definition pq1.hh:73
Dumux::Experimental::GridVariables< GG, GVC > type
Definition pq1.hh:159
CVFEGridVolumeVariables< Traits, enableCache > type
Definition pq1.hh:86
typename Dune::BCRSMatrix< MatrixBlock > type
Definition pq1.hh:195
Dune::BlockVector< GetPropType< TypeTag, Properties::PrimaryVariables > > type
Definition pq1.hh:184
std::tuple< GridProperties > InheritsFrom
Definition pq1.hh:61
std::tuple< FiniteVolumeModel > InheritsFrom
Definition pq1.hh:60