1 #ifndef DUNE_FEM_SPACE_DISCONTINUOUSGALERKIN_LAGRANGE_HH 2 #define DUNE_FEM_SPACE_DISCONTINUOUSGALERKIN_LAGRANGE_HH 4 #include <dune/geometry/type.hh> 6 #include <dune/grid/common/gridenums.hh> 34 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
46 GridPartType::dimension, 1
67 template <
class DiscreteFunction,
class Operation = DFCommunicationOperation::Copy >
80 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage =
CachingStorage >
87 using BaseType::basisFunctionSet;
89 static const int polynomialOrder = polOrder;
105 const InterfaceType commInterface = InteriorBorder_All_Interface,
106 const CommunicationDirection commDirection = ForwardCommunication )
107 : BaseType( gridPart, basisFunctionSets( gridPart ), commInterface, commDirection )
114 return InterpolationType( basisFunctionSet( entity ) );
118 static BasisFunctionSetsType basisFunctionSets (
const GridPartType &gridPart )
121 ShapeFunctionSetsType shapeFunctionSets( gridPart );
128 namespace Capabilities
131 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
134 static const bool v =
true;
137 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
140 static const bool v =
true;
141 static const int order = polOrder;
144 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
147 static const bool v =
false;
150 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
153 static const bool v =
true;
156 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
162 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
165 static const bool v =
true;
168 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
171 static const bool v =
false;
174 template<
class FunctionSpace,
class Gr
idPart,
int polOrder,
template<
class >
class Storage >
177 static const bool v =
true;
186 #endif // #ifndef DUNE_FEM_SPACE_DISCONTINUOUSGALERKIN_LAGRANGE_HH Definition: shapefunctionsets.hh:268
Definition: selectcaching.hh:17
VectorSpaceTraits< DomainField, RangeField, dimD, dimR >::RangeFieldType RangeFieldType
Intrinsic type used for values in the range field (usually a double)
Definition: functionspaceinterface.hh:62
Definition: local/l2projection.hh:114
specialize with true if the space is localized, * i.e., the basis function set is based on a shape fu...
Definition: space/common/capabilities.hh:64
BaseType::EntityType EntityType
Definition: discontinuousgalerkin/lagrange.hh:92
A vector valued function space.
Definition: functionspace.hh:16
CodimensionMapper< GridPartType, codimension > BlockMapperType
Definition: discontinuousgalerkin/lagrange.hh:55
Definition: space/discontinuousgalerkin/declaration.hh:22
Default communication handler for discrete functions.
Definition: defaultcommhandler.hh:23
GridPart GridPartType
Definition: discontinuousgalerkin/lagrange.hh:40
specialize with 'true' if implementation supports parallelism (default=false)
Definition: gridpart/common/capabilities.hh:59
DFSpaceIdentifier
enumerator for identification of spaces
Definition: discretefunctionspace.hh:88
DefaultBasisFunctionSets< GridPartType, ShapeFunctionSetsType > BasisFunctionSetsType
Definition: discontinuousgalerkin/lagrange.hh:52
BaseType::BasisFunctionSetType BasisFunctionSetType
Definition: discontinuousgalerkin/lagrange.hh:95
LagrangeDiscontinuousGalerkinSpace(GridPartType &gridPart, const InterfaceType commInterface=InteriorBorder_All_Interface, const CommunicationDirection commDirection=ForwardCommunication)
Definition: discontinuousgalerkin/lagrange.hh:104
SelectCachingShapeFunctionSets< GridPartType, LagrangeShapeFunctionSet< ScalarShapeFunctionSpaceType, polOrder >, Storage > ScalarShapeFunctionSetsType
Definition: discontinuousgalerkin/lagrange.hh:49
VectorialShapeFunctionSets< ScalarShapeFunctionSetsType, typename FunctionSpaceType::RangeType > ShapeFunctionSetsType
Definition: discontinuousgalerkin/lagrange.hh:50
BaseType::BasisFunctionSetsType BasisFunctionSetsType
Definition: discontinuousgalerkin/lagrange.hh:94
ShapeFunctionSets ShapeFunctionSetsType
shape function sets type
Definition: discontinuousgalerkin/basisfunctionsets.hh:91
quadrature class supporting base function caching
Definition: cachingquadrature.hh:41
dimension of range vector space
Definition: functionspaceinterface.hh:47
mapper allocating one DoF per subentity of a given codimension
Definition: codimensionmapper.hh:28
GeometryWrapper< Dune::Fem::GridPartCapabilities::hasSingleGeometryType< GridPartType >::topologyId, GridPartType::dimension >::GenericGeometryType GenericGeometryType
Definition: discontinuousgalerkin/lagrange.hh:59
VectorSpaceTraits< DomainField, RangeField, dimD, dimR >::DomainFieldType DomainFieldType
Intrinsic type used for values in the domain field (usually a double)
Definition: functionspaceinterface.hh:59
specialize with true if space is always continuous
Definition: space/common/capabilities.hh:46
DefaultCommunicationHandler< DiscreteFunction, Operation > Type
Definition: discontinuousgalerkin/lagrange.hh:71
specialize with true if space can be used with AdaptiveDiscreteFunction
Definition: space/common/capabilities.hh:89
id for Lagrange Discontinuous Galerkin Space
Definition: discretefunctionspace.hh:99
Definition: discontinuousgalerkin/lagrange.hh:68
LagrangeDiscontinuousGalerkinSpace< FunctionSpace, GridPart, polOrder, Storage > DiscreteFunctionSpaceType
Definition: discontinuousgalerkin/lagrange.hh:37
GenericLagrangeBaseFunction< typename FunctionSpaceType::ScalarFunctionSpaceType, GenericGeometryType, polOrder > GenericBaseFunctionType
Definition: discontinuousgalerkin/lagrange.hh:62
Dune::Fem::FunctionSpace< typename FunctionSpace::DomainFieldType, typename FunctionSpace::RangeFieldType, GridPartType::dimension, 1 > ScalarShapeFunctionSpaceType
Definition: discontinuousgalerkin/lagrange.hh:47
BaseType::GridPartType GridPartType
Definition: discontinuousgalerkin/lagrange.hh:91
Definition: coordinate.hh:4
Definition: genericgeometry.hh:172
static const int localBlockSize
Definition: discontinuousgalerkin/lagrange.hh:65
specialize with true if space can be used in parallel
Definition: space/common/capabilities.hh:76
generic implementation of a Discontinuous Galerkin space based on a fixed family of basis function se...
Definition: discontinuousgalerkin/generic.hh:33
DefaultLocalL2Projection< LocalRieszProjectionType, QuadratureType > InterpolationType
Definition: discontinuousgalerkin/lagrange.hh:102
specialize with 'true' for if the codimension 0 entity of the grid part has only one possible geometr...
Definition: gridpart/common/capabilities.hh:28
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38
generate a set of default basis function sets from given set of shape function sets ...
Definition: discontinuousgalerkin/basisfunctionsets.hh:82
static DFSpaceIdentifier type()
Definition: discontinuousgalerkin/lagrange.hh:110
specialize with true if polynomial order does not depend on the grid (part) entity ...
Definition: space/common/capabilities.hh:20
Definition: discontinuousgalerkin/lagrange.hh:35
specialize with true if the space implementation is thread safe
Definition: space/common/capabilities.hh:102
BasisFunctionSetsType::BasisFunctionSetType BasisFunctionSetType
Definition: discontinuousgalerkin/lagrange.hh:53
specialize with true if polynomial order fixed and compile time static
Definition: space/common/capabilities.hh:33
InterpolationType interpolation(const EntityType &entity) const
Definition: discontinuousgalerkin/lagrange.hh:112
FunctionSpace FunctionSpaceType
Definition: discontinuousgalerkin/lagrange.hh:39
Definition: genericbasefunctions.hh:15
specialize with true if the space implementation is thread safe, while it is not modified ...
Definition: space/common/capabilities.hh:116
VectorSpaceTraits< DomainField, RangeField, dimD, dimR >::ScalarFunctionSpaceType ScalarFunctionSpaceType
corresponding scalar function space
Definition: functionspaceinterface.hh:82
Definition: shapefunctionsets.hh:196
Operation OperationType
Definition: discontinuousgalerkin/lagrange.hh:70
implementation of a basis function set for given entity
Definition: default.hh:46
static const int codimension
Definition: discontinuousgalerkin/lagrange.hh:42