|
dune-fem 2.12-git
|
adaptive DG discrete function space More...
#include <dune/fem/space/padaptivespace/discontinuousgalerkin.hh>

Public Member Functions | |
| PAdaptiveDGSpace (GridPartType &gridPart, const int order, const InterfaceType commInterface=defaultInterface, const CommunicationDirection commDirection=defaultDirection) | |
| constructor | |
| PAdaptiveDGSpace (GridPartType &gridPart, const InterfaceType commInterface=defaultInterface, const CommunicationDirection commDirection=defaultDirection) | |
| constructor | |
| PAdaptiveDGSpace (const PAdaptiveDGSpace &other) | |
| bool | continuous (const IntersectionType &intersection) const |
| returns true if the space contains only globally continuous functions | |
| const CompiledLocalKeyType & | lagrangePointSet (const GeometryType &type, const int order=BaseType::polynomialOrder) const |
| Please doc me. | |
| InterpolationType | interpolation () const |
| InterpolationImplType | interpolation (const EntityType &entity) const |
| InterpolationImplType | localInterpolation (const EntityType &entity) const |
| bool | continuous () const |
| returns true if the space contains only globally continuous functions | |
| BlockMapperType & | blockMapper () const |
| get a reference to the block mapper | |
| template<class EntityType > | |
| const CompiledLocalKeyType & | compiledLocalKey (const EntityType &entity) const |
| provide access to the compiled local keys for an entity | |
| const CompiledLocalKeyType & | compiledLocalKey (const GeometryType type, const int order=polynomialOrder) const |
| provide access to the compiled local keys for a geometry type and polynomial order | |
| BasisFunctionSetType | basisFunctionSet (const EntityType &entity) const |
| get basis function set for given entity | |
| DFSpaceIdentifier | type () const |
| return type identifier of discrete function space | |
| const BasisFunctionSetType | basisFunctionSet (const EntityType &entity) const |
| get basis function set for given entity | |
| bool | continuous (const IntersectionType &intersection) const |
| returns true if discrete functions over this space have zero jump over the given intersection. | |
| int | order () const |
| get global order of space | |
| int | order (const typename BaseType::EntityType &entity) const |
| get global order of space | |
| int | order (const EntityType &entity) const |
| default implementation of the method order | |
| bool | multipleBaseFunctionSets () const |
| this space has more than one base function set | |
| ShapeFunctionSetType | shapeFunctionSet (const EntityType &entity) const |
| return shape function set for given entity | |
| ShapeFunctionSetType | shapeFunctionSet (const GeometryType &type, const int order=polynomialOrder) const |
| return shape unique function set for geometry type | |
| void | adapt (const Vector &polynomialOrders, const int polOrderShift=0) const |
| default implementation of adapt does nothing, its only used in PAdaptiveLagrangeSpace | |
| int | sequence () const |
| get index of the sequence in grid sequences | |
| const GridType & | grid () const |
| get reference to grid this discrete function space belongs to | |
| GridType & | grid () |
| get reference to grid this discrete function space belongs to | |
| GridPartType & | gridPart () const |
| GridPartType & | gridPart () |
| get a reference to the associated grid partition | |
| const IndexSetType & | indexSet () const |
| Get a reference to the associated index set. | |
| int | size () const |
| get number of DoFs for this space | |
| int | primarySize () const |
| get number of primary DoFs for this space | |
| int | auxiliarySize () const |
| get number of auxiliary DoFs for this space | |
| int | maxNumDofs () const |
| return the maximal number of dofs on entities | |
| IteratorType | begin () const |
| get iterator pointing to the first entity of the associated grid partition | |
| IteratorType | end () const |
| get iterator pointing behind the last entity of the associated grid partition | |
| void | forEach (FunctorType &f) const |
| apply a functor to each entity in the associated grid partition | |
| bool | multipleGeometryTypes () const |
| returns true if the grid has more than one geometry type | |
| bool | multipleBasisFunctionSets () const |
| returns true if base function sets depend on the entity | |
| InterfaceType | communicationInterface () const |
| return the communication interface appropriate for this space | |
| CommunicationDirection | communicationDirection () const |
| return the communication interface appropriate for this space | |
| const CommunicationManagerType & | communicator () const |
| return reference to communicator (see CommunicationManager) | |
| void | communicate (DiscreteFunction &discreteFunction) const |
| communicate data for given discrete function using the space's default communication operation | |
| void | communicate (DiscreteFunction &discreteFunction, const Operation &op) const |
| communicate data for given discrete function | |
| BaseType::template CommDataHandle< DiscreteFunction, Operation >::Type | createDataHandle (DiscreteFunction &discreteFunction, const Operation &operation) const |
| const AuxiliaryDofsType & | auxiliaryDofs () const |
| get auxiliary dofs | |
| void | addFunction (DiscreteFunction &df) const |
| default implementation of addFunction does nothing at the moment | |
| void | removeFunction (DiscreteFunction &df) const |
| default implementation of removeFunction does nothing at the moment | |
| const std::vector< GeometryType > & | geomTypes (int codim) const |
| returns true if the grid has more than one geometry type | |
| const AuxiliaryDofsType & | slaveDofs () const |
| deprecated method, use auxiliaryDofs | |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Adaptation | |
| KeyType | key (const EntityType &entity) const |
| get identifiying basis function set key assigned to given entity | |
| void | mark (const KeyType &key, const EntityType &entity) |
| assign new key to given entity | |
| KeyType | getMark (const EntityType &entity) const |
| get key to be assigned to an entity after next call to adapt() | |
| void | adapt () |
| p adaptation | |
| template<class DiscreteFunctionSpace , class Implementation > | |
| void | adapt (DataProjection< DiscreteFunctionSpace, Implementation > &projection) |
Static Public Attributes | |
| static const InterfaceType | defaultInterface = InteriorBorder_All_Interface |
| static const CommunicationDirection | defaultDirection = ForwardCommunication |
| static const int | polynomialOrder = Traits::polynomialOrder |
| maximal available polynomial order | |
| static const IdentifierType | id = 665 |
| identifier of this discrete function space | |
| static constexpr std::size_t | localBlockSize = Hybrid::size( LocalBlockIndices() ) |
| size of local blocks | |
Protected Types | |
| typedef Traits::ScalarShapeFunctionSetType | ScalarShapeFunctionSetType |
| typedef BaseSetLocalKeyStorage< ScalarShapeFunctionSetType > | ScalarShapeFunctionSetStorageType |
| typedef SingletonList< std::pair< GridPartType *, BlockMapperType * >, std::pair< AuxiliaryDofsType, int >, AuxiliaryDofsFactory > | AuxiliaryDofsProviderType |
| typedef ThreadSafeValue< UninitializedObjectStack > | LocalDofVectorStackType |
| typedef StackAllocator< typename BaseType::RangeFieldType, LocalDofVectorStackType * > | LocalDofVectorAllocatorType |
| typedef Dune::DynamicVector< typename BaseType::RangeFieldType, LocalDofVectorAllocatorType > | LocalDofVectorType |
| typedef BasicTemporaryLocalFunction< ThisType, LocalDofVectorType > | LocalFunctionType |
| typedef AllGeomTypes< IndexSetType, GridType > | AllGeometryTypes |
Protected Member Functions | |
| BlockMapperType * | initialize (const BlockMapperType *otherMapper=0) |
| const DiscreteFunctionSpaceType & | asImp () const |
| DiscreteFunctionSpaceType & | asImp () |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<class Traits > | |
| bool | operator== (const DiscreteFunctionSpaceInterface< Traits > &X, const DiscreteFunctionSpaceInterface< Traits > &Y) |
| check two spaces for equality | |
Detailed Description
class Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >
adaptive DG discrete function space
Member Typedef Documentation
◆ AllGeometryTypes
|
protectedinherited |
◆ AuxiliaryDofsProviderType
|
protectedinherited |
◆ AuxiliaryDofsType
|
inherited |
◆ BasisFunctionSetType
| typedef BaseType::BasisFunctionSetType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::BasisFunctionSetType |
◆ BlockMapperType
|
inherited |
◆ CommunicationManagerType
|
inherited |
type of communication manager
◆ CompiledLocalKeyType
| typedef BaseType::CompiledLocalKeyType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::CompiledLocalKeyType |
◆ DiscreteFunctionSpaceType
|
inherited |
◆ DofManagerType
|
inherited |
type of DoF manager
◆ EntityType
| typedef BaseType::EntityType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::EntityType |
◆ FunctionSpaceType
|
inherited |
◆ GenericDiscreteFunctionSpaceType
|
inherited |
◆ GridPartType
| typedef BaseType::GridPartType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::GridPartType |
◆ GridType
|
inherited |
◆ IdentifierType
|
inherited |
type of identifier for this discrete function space
◆ IndexSetType
|
inherited |
◆ InterpolationImplType
| typedef DiscontinuousGalerkinLocalL2Projection< GridPartType, BasisFunctionSetType > Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::InterpolationImplType |
◆ InterpolationType
| typedef LocalInterpolationWrapper< ThisType > Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::InterpolationType |
◆ IntersectionType
| typedef BaseType::IntersectionType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::IntersectionType |
◆ IteratorType
|
inherited |
◆ KeyType
|
inherited |
◆ LagrangePointSetType
| typedef CompiledLocalKeyType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::LagrangePointSetType |
◆ LocalBlockIndices
|
inherited |
◆ LocalDofVectorAllocatorType
|
protectedinherited |
◆ LocalDofVectorStackType
|
protectedinherited |
◆ LocalDofVectorType
|
protectedinherited |
◆ LocalFunctionType
|
protectedinherited |
◆ LocalKeyStorageType
|
inherited |
◆ PAdaptiveDGSpaceType
| typedef ThisType Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::PAdaptiveDGSpaceType |
◆ ScalarShapeFunctionSetStorageType
|
protectedinherited |
◆ ScalarShapeFunctionSetType
|
protectedinherited |
◆ ShapeFunctionSetType
|
inherited |
◆ SlaveDofsType
|
inherited |
deprecated type
◆ Traits
| typedef BaseType::Traits Dune::Fem::PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage >::Traits |
Constructor & Destructor Documentation
◆ PAdaptiveDGSpace() [1/3]
|
inlineexplicit |
constructor
- Parameters
-
[in] gridPart grid part for the Discontinuous Galerkin space [in] order dynamically set maximal polynomial order between 1 and maxPolOrder [in] commInterface communication interface to use (optional) [in] commDirection communication direction to use (optional)
◆ PAdaptiveDGSpace() [2/3]
|
inlineexplicit |
constructor
- Parameters
-
[in] gridPart grid part for the Lagrange space [in] commInterface communication interface to use (optional) [in] commDirection communication direction to use (optional)
◆ PAdaptiveDGSpace() [3/3]
|
inline |
Member Function Documentation
◆ adapt() [1/3]
|
inlineinherited |
p adaptation
- Parameters
-
[in] function oialOrders vector containing polynomial orders for each cell [in] polOrderShift possible shift of polynomial order (i.e. in case of Taylor-Hood put -1 for the pressure) (default = 0)
◆ adapt() [2/3]
|
inlineinherited |
default implementation of adapt does nothing, its only used in PAdaptiveLagrangeSpace
◆ adapt() [3/3]
|
inlineinherited |
◆ addFunction()
|
inlineinherited |
default implementation of addFunction does nothing at the moment
◆ asImp() [1/2]
|
inlineprotectedinherited |
◆ asImp() [2/2]
|
inlineprotectedinherited |
◆ auxiliaryDofs()
|
inlineinherited |
get auxiliary dofs
◆ auxiliarySize()
|
inlineinherited |
get number of auxiliary DoFs for this space
- Returns
- number of auxiliary DoFs (degrees of freedom that are NOT owned by this process)
◆ basisFunctionSet() [1/2]
|
inlineinherited |
get basis function set for given entity
- Parameters
-
[in] entity entity (of codim 0) for which base function is requested
- Returns
- BasisFunctionSet for the entity
◆ basisFunctionSet() [2/2]
|
inline |
get basis function set for given entity
- Parameters
-
[in] entity entity (of codim 0) for which base function is requested
- Returns
- BasisFunctionSet for the entity
◆ begin()
|
inlineinherited |
get iterator pointing to the first entity of the associated grid partition
- Returns
- iterator pointing to first entity
- Note
- The default implementation uses the codim 0 iterators of the associated grid partition.
◆ blockMapper()
|
inline |
get a reference to the block mapper
- Returns
- refernce to the block mapper
◆ communicate() [1/2]
|
inlineinherited |
communicate data for given discrete function using the space's default communication operation
- Parameters
-
discreteFunction discrete function to be communicated
◆ communicate() [2/2]
|
inlineinherited |
communicate data for given discrete function
- Parameters
-
discreteFunction discrete function to be communicated [in] op communication operation to use (see DFCommunicationOperation)
◆ communicationDirection()
|
inlineinherited |
return the communication interface appropriate for this space
- Returns
- communication interface
◆ communicationInterface()
|
inlineinherited |
return the communication interface appropriate for this space
- Returns
- communication interface
◆ communicator()
|
inlineinherited |
return reference to communicator (see CommunicationManager)
- Returns
- reference to communicator
◆ compiledLocalKey() [1/2]
|
inline |
provide access to the compiled local keys for an entity
- Note
- This method is not part of the DiscreteFunctionSpaceInterface. It is unique to the GenericDiscreteFunctionSpace.
- Parameters
-
[in] entity entity the Lagrange point set is requested for
- Returns
- CompiledLocalKey
◆ compiledLocalKey() [2/2]
|
inline |
provide access to the compiled local keys for a geometry type and polynomial order
- Note
- This method is not part of the DiscreteFunctionSpaceInterface. It is unique to the GenericDiscreteFunctionSpace.
- Parameters
-
[in] type type of geometry the compiled local key is requested for [in] order polynomial order for given geometry type
- Returns
- CompiledLocalKey
◆ continuous() [1/3]
|
inline |
returns true if the space contains only globally continuous functions
For example, a Lagrange space returns true while a discontiuous Galerkin space returns false.
- Returns
- true if the space contians only globally continous functions, false otherwise
◆ continuous() [2/3]
|
inlineinherited |
returns true if discrete functions over this space have zero jump over the given intersection.
For example, a Lagrange space returns true iff the intersection is conforming while a discontiuous Galerkin space always returns false.
- Parameters
-
intersection Intersection for which we want to know the continuety
- Returns
- true if the space contians functions which are continuous over the intersection, false otherwise
◆ continuous() [3/3]
|
inline |
returns true if the space contains only globally continuous functions
For example, a Lagrange space returns true while a discontiuous Galerkin space returns false.
- Returns
- true if the space contians only globally continous functions, false otherwise
◆ createDataHandle()
|
inlineinherited |
- Note
- The default implementation is return CommDataHandle< DiscreteFunction, Operation > :: Type( discreteFunction );defines type of data handle for communicationDefinition discretefunctionspace.hh:245
◆ end()
|
inlineinherited |
get iterator pointing behind the last entity of the associated grid partition
- Returns
- iterator pointing behind last entity
- Note
- The default implementation uses the codim 0 iterators of the associated grid partition.
◆ forEach()
|
inlineinherited |
apply a functor to each entity in the associated grid partition
The functor must provide an the following operator
- Parameters
-
[in] f functor to apply
- Note
- The default implementation simply does the following: f( *it );const DiscreteFunctionSpaceType & asImp() constDefinition discretefunctionspace.hh:597IteratorType end() constget iterator pointing behind the last entity of the associated grid partitionDefinition discretefunctionspace.hh:817IteratorType begin() constget iterator pointing to the first entity of the associated grid partitionDefinition discretefunctionspace.hh:807BaseType::IteratorType IteratorTypeDefinition padaptivespace/generic.hh:56
◆ geomTypes()
|
inlineinherited |
returns true if the grid has more than one geometry type
- Returns
- true if the underlying grid has more than one geometry type (hybrid grid), false otherwise
◆ getMark()
|
inlineinherited |
get key to be assigned to an entity after next call to adapt()
- Parameters
-
[in] entity grid part entity
- Returns
- key
◆ grid() [1/2]
|
inlineinherited |
get reference to grid this discrete function space belongs to
- Returns
- reference to grid
◆ grid() [2/2]
|
inlineinherited |
get reference to grid this discrete function space belongs to
- Returns
- constant reference to grid
◆ gridPart() [1/2]
|
inlineinherited |
get a reference to the associated grid partition
- Returns
- reference to the grid partition
◆ gridPart() [2/2]
|
inlineinherited |
◆ indexSet()
|
inlineinherited |
Get a reference to the associated index set.
- Returns
- const reference to index set
◆ initialize()
|
inlineprotectedinherited |
◆ interpolation() [1/2]
|
inline |
◆ interpolation() [2/2]
|
inline |
◆ key()
|
inlineinherited |
get identifiying basis function set key assigned to given entity
- Parameters
-
[in] entity grid part entity
- Returns
- key
◆ lagrangePointSet()
|
inline |
Please doc me.
◆ localInterpolation()
|
inline |
◆ mark()
|
inlineinherited |
assign new key to given entity
- Parameters
-
[in] key key identifying basis function set [in] entity grid part entity
◆ maxNumDofs()
|
inlineinherited |
return the maximal number of dofs on entities
◆ multipleBaseFunctionSets()
|
inlineinherited |
this space has more than one base function set
◆ multipleBasisFunctionSets()
|
inlineinherited |
returns true if base function sets depend on the entity
- Returns
- true if base function set depend on entities, false otherwise
- Note
- The default implementation returns false.
◆ multipleGeometryTypes()
|
inlineinherited |
returns true if the grid has more than one geometry type
- Returns
- true if the underlying grid has more than one geometry type (hybrid grid), false otherwise
◆ order() [1/3]
|
inlineinherited |
get global order of space
- Returns
- order of space, i.e., the maximal polynomial order of base functions
◆ order() [2/3]
|
inlineinherited |
default implementation of the method order
- Returns
- returns max polynomial order for each entity using the method order()
◆ order() [3/3]
|
inlineinherited |
get global order of space
- Returns
- order of space, i.e., the maximal polynomial order of base functions
◆ primarySize()
|
inlineinherited |
get number of primary DoFs for this space
- Returns
- number of primary DoFs (degrees of freedom that are owned by this process )
◆ removeFunction()
|
inlineinherited |
default implementation of removeFunction does nothing at the moment
◆ sequence()
|
inlineinherited |
get index of the sequence in grid sequences
- Returns
- number of current sequence
◆ shapeFunctionSet() [1/2]
|
inlineinherited |
return shape function set for given entity
- Parameters
-
[in] entity entity (of codim 0) for which shape function set is requested
- Returns
- ShapeFunctionSetType shape function set
◆ shapeFunctionSet() [2/2]
|
inlineinherited |
return shape unique function set for geometry type
- Parameters
-
[in] type geometry type (must be a cube) for which shape function set is requested [in] order polynomial order
- Returns
- ShapeFunctionSetType shape function set
◆ size()
|
inlineinherited |
get number of DoFs for this space
- Returns
- number of DoFs (degrees of freedom)
◆ slaveDofs()
|
inlineinherited |
deprecated method, use auxiliaryDofs
◆ type()
|
inlineinherited |
return type identifier of discrete function space
- Returns
- return type identifier of discrete function space
Member Data Documentation
◆ allGeomTypes_
|
protectedinherited |
◆ auxiliaryDofs_
|
mutableprotectedinherited |
◆ blockMapper_
|
protectedinherited |
◆ commDirection_
|
protectedinherited |
◆ commInterface_
|
protectedinherited |
◆ communicator_
|
mutableprotectedinherited |
◆ compiledLocalKeys_
|
protectedinherited |
◆ defaultDirection
|
static |
◆ defaultInterface
|
static |
◆ dofManager_
|
protectedinherited |
◆ gridPart_
|
protectedinherited |
◆ id
|
staticinherited |
identifier of this discrete function space
◆ ldvAllocator_
|
mutableprotectedinherited |
◆ ldvStack_
|
mutableprotectedinherited |
◆ localBlockSize
|
staticconstexprinherited |
size of local blocks
◆ order_
|
protectedinherited |
◆ polynomialOrder
|
staticinherited |
maximal available polynomial order
◆ scalarShapeFunctionSets_
|
protectedinherited |
The documentation for this class was generated from the following files:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8