version 3.11-dev
Loading...
Searching...
No Matches
pq3.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// SPDX-FileCopyrightText: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12
13#ifndef DUMUX_DISCRETIZATION_PQ3_HH
14#define DUMUX_DISCRETIZATION_PQ3_HH
15
16#include <concepts>
17#include <type_traits>
18
22#include <dumux/common/typetraits/boundary_.hh>
23
24#include <dumux/assembly/cvfelocalresidual_.hh>
25
30
37
43
44
45namespace Dumux::Properties {
46
47namespace TTag {
48struct PQ3Base { using InheritsFrom = std::tuple<GridProperties>; };
49struct PQ3HybridModel { using InheritsFrom = std::tuple<PQ3Base>; };
50struct PQ3FEModel { using InheritsFrom = std::tuple<PQ3Base>; };
51} // end namespace TTag
52
53template<class TypeTag>
54struct GridGeometry<TypeTag, TTag::PQ3HybridModel>
55{
56private:
57 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridGeometryCache>();
60public:
62};
63
65template<class TypeTag>
80
82template<class TypeTag>
83struct EnableGridGeometryCache<TypeTag, TTag::PQ3HybridModel> { static constexpr bool value = false; };
84
86template<class TypeTag>
87struct EnableGridVolumeVariablesCache<TypeTag, TTag::PQ3HybridModel> { static constexpr bool value = false; };
88
90template<class TypeTag>
91struct SolutionVector<TypeTag, TTag::PQ3HybridModel> { using type = Dune::BlockVector<GetPropType<TypeTag, Properties::PrimaryVariables>>; };
92
94template<class TypeTag>
95struct JacobianMatrix<TypeTag, TTag::PQ3HybridModel>
96{
97private:
100 using MatrixBlock = typename Dune::FieldMatrix<Scalar, numEq, numEq>;
101public:
103};
104
105template<class TypeTag>
106struct ElementBoundaryTypes<TypeTag, TTag::PQ3Base>
107{
108private:
110 using GG = std::decay_t<decltype(std::declval<Problem>().gridDiscretization())>;
111 using BoundaryTypes = typename ProblemTraits<Problem>::BoundaryTypes;
112public:
113 using type = std::conditional_t<
114 Dumux::Detail::hasProblemBoundaryTypesForFaceFunction<Problem, typename GG::LocalView>(),
117 >;
118};
119
121template<class TypeTag>
122struct GridGeometry<TypeTag, TTag::PQ3FEModel>
123{
124private:
125 static constexpr bool enableCache = getPropValue<TypeTag, Properties::EnableGridGeometryCache>();
128public:
130};
131
132template<class TypeTag>
146
148template<class TypeTag>
149struct EnableGridVolumeVariablesCache<TypeTag, TTag::PQ3FEModel> { static constexpr bool value = false; };
150
152template<class TypeTag>
153struct SolutionVector<TypeTag, TTag::PQ3FEModel> { using type = Dune::BlockVector<GetPropType<TypeTag, Properties::PrimaryVariables>>; };
154
156template<class TypeTag>
157struct JacobianMatrix<TypeTag, TTag::PQ3FEModel>
158{
159private:
162 using MatrixBlock = typename Dune::FieldMatrix<Scalar, numEq, numEq>;
163public:
165};
166
167} // namespace Dumux::Properties
168
169namespace Dumux::Detail {
170
171template<class Problem>
173{
174private:
175 using GG = std::decay_t<decltype(std::declval<Problem>().gridDiscretization())>;
176public:
177 using GridGeometry = GG;
178 using BoundaryTypes = Detail::BoundaryTypes<Problem, typename GG::LocalView>::type;
179};
180
181template<class TypeTag>
182concept PQ3Model = std::is_same_v<
185>;
186
187template<class T>
189
190template<PQ3HybridModel TypeTag>
192{ using type = Dumux::Experimental::CVFELocalResidual<TypeTag>; };
193
194template<class T>
196
197template<PQ3FEModel TypeTag>
200
201} // end namespace Dumux::Detail
202
203#endif
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:29
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
The grid variables cache class for hybrid control-volume finite element methods.
Definition cvfe/hybrid/gridvariablescache.hh:50
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
Class for pq3 finite element grid discretizations.
Definition pq3/fegriddiscretization.hh:84
Finite volume geometry for the pq3 hybrid CVFE scheme (order-3 Lagrange elements).
Definition discretization/pq3/fvgridgeometry.hh:157
Definition matrix.hh:20
Defines all properties used in Dumux.
Type traits for problem classes.
Definition pq3.hh:195
Definition pq3.hh:188
Definition pq3.hh:182
Boundary types gathered on an element.
The local element solution class for control-volume finite element methods.
The grid variables cache class for hybrid control-volume finite element methods.
Classes representing interpolation point data for control-volume finite element schemes.
The default local operator than can be specialized for each discretization scheme.
The grid variables class for general schemes, storing variables and data.
Base class for the finite volume geometry vector for the pq3 method This builds up the sub control vo...
Boundary types gathered on an element.
The element variables class.
The grid local variables class for finite element methods.
Declares properties required for finite-volume models models.
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
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
Definition method.hh:20
CVFE< CVFEMethods::PQ3 > PQ3
Definition method.hh:138
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 PQ3 method.
CCLocalResidual< TypeTag > type
Definition ccmpfa.hh:185
Definition defaultlocaloperator.hh:19
Detail::BoundaryTypes< Problem, typename GG::LocalView >::type BoundaryTypes
Definition pq3.hh:178
Definition common/typetraits/problem.hh:23
Definition cvfe/hybrid/gridvariablescache.hh:36
Definition fem/gridvariablescache.hh:36
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 pq3.hh:113
Dumux::Experimental::PQ3FEGridDiscretization< Scalar, GridView, enableCache > type
Definition pq3.hh:129
PQ3FVGridGeometry< Scalar, GridView, enableCache > type
Definition pq3.hh:61
Dumux::Experimental::GridVariables< GG, GVC > type
Definition pq3.hh:144
Dumux::Experimental::GridVariables< GG, GVC > type
Definition pq3.hh:78
typename Dune::BCRSMatrix< MatrixBlock > type
Definition pq3.hh:164
typename Dune::BCRSMatrix< MatrixBlock > type
Definition pq3.hh:102
Dune::BlockVector< GetPropType< TypeTag, Properties::PrimaryVariables > > type
Definition pq3.hh:153
Dune::BlockVector< GetPropType< TypeTag, Properties::PrimaryVariables > > type
Definition pq3.hh:91
std::tuple< GridProperties > InheritsFrom
Definition pq3.hh:48
std::tuple< PQ3Base > InheritsFrom
Definition pq3.hh:50
std::tuple< PQ3Base > InheritsFrom
Definition pq3.hh:49