dune-fem 2.8.0
|
Lagrange discrete function space. More...
#include <dune/fem/space/padaptivespace/lagrange.hh>
Public Member Functions | |
PAdaptiveLagrangeSpace (GridPartType &gridPart, const int order, const InterfaceType commInterface=defaultInterface, const CommunicationDirection commDirection=defaultDirection) | |
constructor | |
PAdaptiveLagrangeSpace (GridPartType &gridPart, const InterfaceType commInterface=defaultInterface, const CommunicationDirection commDirection=defaultDirection) | |
constructor | |
PAdaptiveLagrangeSpace (const PAdaptiveLagrangeSpace &other) | |
bool | continuous (const IntersectionType &intersection) const |
returns true if the space contains only globally continuous functions | |
template<class EntityType > | |
const CompiledLocalKeyType & | lagrangePointSet (const EntityType &entity) const |
provide access to the Lagrange point set for an entity | |
InterpolationType | interpolation () const |
InterpolationImplType | interpolation (const EntityType &entity) const |
InterpolationImplType | localInterpolation (const EntityType &entity) const |
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 | |
bool | continuous () const |
returns true if the space contains only globally continuous functions | |
int | order () const |
get global order of space | |
int | order (const typename BaseType::EntityType &entity) const |
get global order of space | |
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 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 | 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 AuxiliaryDofsType & | slaveDofs () const |
deprecated method, use auxiliaryDofs | |
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_InteriorBorder_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 std::vector< GeometryType > & | geomTypes (int codim) const |
returns true if the grid has more than one geometry type | |
const DiscreteFunctionSpaceType & | asImp () const |
DiscreteFunctionSpaceType & | asImp () |
Protected Attributes | |
const int | order_ |
std::vector< ScalarShapeFunctionSetStorageType > | scalarShapeFunctionSets_ |
std::vector< LocalKeyStorageType > | compiledLocalKeys_ |
std::unique_ptr< BlockMapperType > | blockMapper_ |
GridPartType & | gridPart_ |
LocalDofVectorStackType | ldvStack_ |
LocalDofVectorAllocatorType | ldvAllocator_ |
const AllGeometryTypes | allGeomTypes_ |
DofManagerType & | dofManager_ |
const InterfaceType | commInterface_ |
const CommunicationDirection | commDirection_ |
std::unique_ptr< CommunicationManagerType > | communicator_ |
std::unique_ptr< std::pair< AuxiliaryDofsType, int >, typename AuxiliaryDofsProviderType::Deleter > | auxiliaryDofs_ |
Related Functions | |
(Note that these are not member functions.) | |
template<class Traits > | |
bool | operator== (const DiscreteFunctionSpaceInterface< Traits > &X, const DiscreteFunctionSpaceInterface< Traits > &Y) |
check two spaces for equality | |
Lagrange discrete function space.
|
protectedinherited |
|
protectedinherited |
|
inherited |
typedef BaseType::BasisFunctionSetType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::BasisFunctionSetType |
|
inherited |
|
inherited |
type of communication manager
typedef BaseType::CompiledLocalKeyType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::CompiledLocalKeyType |
|
inherited |
|
inherited |
type of DoF manager
typedef BaseType::EntityType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::EntityType |
|
inherited |
|
inherited |
typedef BaseType::GridPartType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::GridPartType |
|
inherited |
|
inherited |
type of identifier for this discrete function space
|
inherited |
typedef LagrangeLocalInterpolation< GridPartType, maxPolOrder, BasisFunctionSetType > Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::InterpolationImplType |
typedef LocalInterpolationWrapper< ThisType > Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::InterpolationType |
typedef BaseType::IntersectionType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::IntersectionType |
|
inherited |
|
inherited |
typedef CompiledLocalKeyType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::LagrangePointSetType |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
typedef ThisType Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::PAdaptiveLagrangeSpaceType |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
deprecated type
typedef BaseType::Traits Dune::Fem::PAdaptiveLagrangeSpace< FunctionSpace, GridPart, maxPolOrder, Storage >::Traits |
|
inlineexplicit |
constructor
[in] | gridPart | grid part for the Lagrange 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) |
|
inlineexplicit |
constructor
[in] | gridPart | grid part for the Lagrange space |
[in] | commInterface | communication interface to use (optional) |
[in] | commDirection | communication direction to use (optional) |
|
inline |
|
inlineinherited |
p adaptation
[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) |
|
inlineinherited |
default implementation of adapt does nothing, its only used in PAdaptiveLagrangeSpace
|
inlineinherited |
|
inlineinherited |
default implementation of addFunction does nothing at the moment
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
get auxiliary dofs
|
inlineinherited |
get basis function set for given entity
[in] | entity | entity (of codim 0) for which base function is requested |
|
inline |
get basis function set for given entity
[in] | entity | entity (of codim 0) for which base function is requested |
|
inlineinherited |
get iterator pointing to the first entity of the associated grid partition
|
inline |
get a reference to the block mapper
|
inlineinherited |
communicate data for given discrete function using the space's default communication operation
discreteFunction | discrete function to be communicated |
|
inlineinherited |
communicate data for given discrete function
discreteFunction | discrete function to be communicated | |
[in] | op | communication operation to use (see DFCommunicationOperation) |
|
inlineinherited |
return the communication interface appropriate for this space
|
inlineinherited |
return the communication interface appropriate for this space
|
inlineinherited |
return reference to communicator (see CommunicationManager)
|
inline |
provide access to the compiled local keys for an entity
[in] | entity | entity the Lagrange point set is requested for |
|
inline |
provide access to the compiled local keys for a geometry type and polynomial order
[in] | type | type of geometry the compiled local key is requested for |
[in] | order | polynomial order for given geometry type |
|
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.
|
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.
intersection | Intersection for which we want to know the continuety |
|
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.
|
inlineinherited |
|
inlineinherited |
get iterator pointing behind the last entity of the associated grid partition
|
inlineinherited |
apply a functor to each entity in the associated grid partition
The functor must provide an the following operator
[in] | f | functor to apply |
|
inlineprotectedinherited |
returns true if the grid has more than one geometry type
|
inlineinherited |
get key to be assigned to an entity after next call to adapt()
[in] | entity | grid part entity |
|
inlineinherited |
get reference to grid this discrete function space belongs to
|
inlineinherited |
get reference to grid this discrete function space belongs to
|
inlineinherited |
get a reference to the associated grid partition
|
inlineinherited |
|
inlineinherited |
Get a reference to the associated index set.
|
inlineprotectedinherited |
|
inline |
|
inline |
|
inlineinherited |
get identifiying basis function set key assigned to given entity
[in] | entity | grid part entity |
|
inline |
provide access to the Lagrange point set for an entity
[in] | entity | entity the Lagrange point set is requested for |
|
inline |
|
inlineinherited |
assign new key to given entity
[in] | key | key identifying basis function set |
[in] | entity | grid part entity |
|
inlineinherited |
return the maximal number of dofs on entities
|
inlineinherited |
this space has more than one base function set
|
inlineinherited |
returns true if base function sets depend on the entity
|
inlineinherited |
returns true if the grid has more than one geometry type
|
inline |
get global order of space
|
inlineinherited |
default implementation of the method order
|
inlineinherited |
get global order of space
|
inline |
get global order of space
|
inlineinherited |
default implementation of removeFunction does nothing at the moment
|
inlineinherited |
get index of the sequence in grid sequences
|
inlineinherited |
return shape function set for given entity
[in] | entity | entity (of codim 0) for which shape function set is requested |
|
inlineinherited |
return shape unique function set for geometry type
[in] | type | geometry type (must be a cube) for which shape function set is requested |
[in] | order | polynomial order |
|
inlineinherited |
get number of DoFs for this space
|
inlineinherited |
deprecated method, use auxiliaryDofs
|
inlineinherited |
return type identifier of discrete function space
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
static |
|
static |
|
protectedinherited |
|
protectedinherited |
|
staticinherited |
identifier of this discrete function space
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
staticconstexprinherited |
size of local blocks
|
protectedinherited |
|
staticinherited |
maximal available polynomial order
|
protectedinherited |