15#ifndef DUMUX_DISCRETIZATION_FACECENTERED_PQ1NONCONFORMING_HH
16#define DUMUX_DISCRETIZATION_FACECENTERED_PQ1NONCONFORMING_HH
22#include <dumux/common/concepts/variables_.hh>
26#include <dumux/assembly/cvfelocalresidual_.hh>
35#include <dumux/common/typetraits/boundary_.hh>
63template<
class TypeTag>
64struct GridGeometry<TypeTag,
TTag::PQ1NonconformingFVModel>
74template<
class TypeTag>
75struct GridVolumeVariables<TypeTag,
TTag::PQ1NonconformingFVModel>
87template<
class TypeTag>
88struct GridFluxVariablesCache<TypeTag,
TTag::PQ1NonconformingFVModel>
103template<
class TypeTag>
104struct GridVariables<TypeTag,
TTag::PQ1NonconformingFVModel>
115template<
class TypeTag>
116struct FluxVariablesCache<TypeTag,
TTag::PQ1NonconformingFVModel>
126template<
class TypeTag>
127struct ElementBoundaryTypes<TypeTag,
TTag::PQ1NonconformingBase>
131 using GG = std::decay_t<decltype(std::declval<Problem>().gridGeometry())>;
136 using type = std::conditional_t<
137 Dumux::Detail::hasProblemBoundaryTypesForFaceFunction<Problem, typename GG::LocalView>(),
144template<
class TypeTag>
145struct GridGeometry<TypeTag,
TTag::PQ1NonconformingFEModel>
155template<
class TypeTag>
156struct GridVariables<TypeTag,
TTag::PQ1NonconformingFEModel>
172template<
class TypeTag>
173struct EnableGridVolumeVariablesCache<TypeTag,
TTag::PQ1NonconformingFEModel> {
static constexpr bool value =
false; };
176template<
class TypeTag>
177struct SolutionVector<TypeTag,
TTag::PQ1NonconformingFEModel> {
using type = Dune::BlockVector<GetPropType<TypeTag, Properties::PrimaryVariables>>; };
180template<
class TypeTag>
181struct JacobianMatrix<TypeTag,
TTag::PQ1NonconformingFEModel>
186 using MatrixBlock =
typename Dune::FieldMatrix<Scalar, numEq, numEq>;
195template<
class Problem>
199 using GG = std::decay_t<decltype(std::declval<Problem>().gridGeometry())>;
203 using BoundaryTypes = Detail::BoundaryTypes<Problem, typename GG::LocalView>::type;
206template<
class TypeTag>
213template<PQ1NonconformingFVModel TypeTag>
218 static constexpr bool usesGeneralGridVariables =
219 Dumux::Concept::GridVariables<GV> && !Dumux::Concept::FVGridVariables<GV>;
221 using type = std::conditional_t<usesGeneralGridVariables,
222 Dumux::Experimental::CVFELocalResidual<TypeTag>,
229template<PQ1NonconformingFEModel TypeTag>
The element-wise residual for grid-based discretization schemes.
Boundary flag to store e.g. in sub control volume faces.
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
The element-wise residual for control-volume finite element schemes.
Definition cvfelocalresidual.hh:60
Base class for the grid local variables.
Definition cvfe/gridvariablescache.hh:44
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
The grid variable class for finite volume schemes storing variables on scv and scvf (volume and flux ...
Definition discretization/fvgridvariables.hh:30
Grid geometry for the diamond discretization.
Definition discretization/facecentered/diamond/fvgridgeometry.hh:84
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 local 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.
Flux variables cache class for control-volume finite element schemes.
Global flux variable cache.
Grid geometry for the diamond discretization.
The grid variable class for finite volume schemes, storing variables on scv and scvf (volume and flux...
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 cvfelocalresidual.hh:25
CVFE< CVFEMethods::CR_RT > PQ1Nonconforming
Definition method.hh:114
FEGridDiscretization< GV, Traits > PQ1NonconformingFEGridDiscretization
Finite element grid discretization for the PQ1 non-conforming (face-centered) method....
Definition pq1nonconforming/fegriddiscretization.hh:90
Type tag for numeric models.
Definition grid.hh:24
The energy balance equation for a porous solid.
Definition common/properties.hh:26
Definition cvfe/gridvariablescache.hh:31
CCLocalResidual< TypeTag > type
Definition ccmpfa.hh:185
Definition defaultlocaloperator.hh:19
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
static constexpr bool value
Definition pq1nonconforming.hh:173