dune-fem
2.8-git
|
This is the interface for discrete function spaces. All methods declared here have to be implemented by the implementation class. More...
#include <dune/fem/space/common/discretefunctionspace.hh>
Classes | |
struct | CommDataHandle |
defines type of data handle for communication More... | |
struct | ToNewDimRange |
typedef struct for defining the same discrete function space with a different dimRange More... | |
struct | ToNewFunctionSpace |
typedef struct for defining the same discrete function space with a different function space More... | |
Public Types | |
typedef FunctionSpaceTraits | Traits |
type of traits class More... | |
typedef Traits ::DiscreteFunctionSpaceType | DiscreteFunctionSpaceType |
type of DiscretefunctionSapce implementation (Barton-Nackman) More... | |
typedef Traits ::FunctionSpaceType | FunctionSpaceType |
type of function space More... | |
typedef Traits ::BasisFunctionSetType | BasisFunctionSetType |
type of basis function set of this space More... | |
typedef Traits ::BlockMapperType | BlockMapperType |
type of block mapper of this space More... | |
typedef Traits::LocalBlockIndices | LocalBlockIndices |
typedef Traits ::GridPartType | GridPartType |
type of underlying grid part More... | |
typedef GridPartType ::GridType | GridType |
type of underlying dune grid More... | |
typedef GridPartType ::IndexSetType | IndexSetType |
type of used dune index set More... | |
typedef GridPartType ::template Codim< Traits::codimension >::IteratorType | IteratorType |
type of iterator for grid traversal More... | |
typedef GridPartType ::template Codim< Traits::codimension >::EntityType | EntityType |
type of entity of codimension 0 More... | |
typedef GridPartType ::IntersectionType | IntersectionType |
type of the intersections More... | |
typedef AuxiliaryDofs< GridPartType, BlockMapperType > | AuxiliaryDofsType |
type of auxiliary dofs More... | |
typedef AuxiliaryDofsType | SlaveDofsType |
deprecated type More... | |
typedef CommunicationManager< DiscreteFunctionSpaceType > | CommunicationManagerType |
type of communication manager More... | |
Public Member Functions | |
DFSpaceIdentifier | type () const |
return type identifier of discrete function space More... | |
const BasisFunctionSetType | basisFunctionSet (const EntityType &entity) const |
get basis function set for given entity More... | |
bool | continuous () const |
returns true if the space contains only globally continuous functions More... | |
int | sequence () const |
get index of the sequence in grid sequences More... | |
int | order () const |
get global order of space More... | |
bool | continuous (const IntersectionType &intersection) const |
returns true if discrete functions over this space have zero jump over the given intersection. More... | |
BlockMapperType & | blockMapper () const |
get a reference to the block mapper More... | |
const GridType & | grid () const |
get reference to grid this discrete function space belongs to More... | |
GridType & | grid () |
get reference to grid this discrete function space belongs to More... | |
GridPartType & | gridPart () |
get a reference to the associated grid partition More... | |
const IndexSetType & | indexSet () const |
Get a reference to the associated index set. More... | |
int | size () const |
get number of DoFs for this space More... | |
IteratorType | begin () const |
get iterator pointing to the first entity of the associated grid partition More... | |
IteratorType | end () const |
get iterator pointing behind the last entity of the associated grid partition More... | |
template<class FunctorType > | |
void | forEach (FunctorType &f) const |
apply a functor to each entity in the associated grid partition More... | |
bool | multipleGeometryTypes () const |
returns true if the grid has more than one geometry type More... | |
bool | multipleBasisFunctionSets () const |
returns true if base function sets depend on the entity More... | |
InterfaceType | communicationInterface () const |
return the communication interface appropriate for this space More... | |
CommunicationDirection | communicationDirection () const |
return the communication direction appropriate for this space More... | |
const CommunicationManagerType & | communicator () const |
return reference to communicator (see CommunicationManager) More... | |
template<class DiscreteFunction > | |
void | communicate (DiscreteFunction &discreteFunction) const |
communicate data for given discrete function using the space's default communication operation More... | |
template<class DiscreteFunction , class Operation > | |
void | communicate (DiscreteFunction &discreteFunction, const Operation &op) const |
communicate data for given discrete function More... | |
template<class DiscreteFunction , class Operation > | |
CommDataHandle< DiscreteFunction, Operation >::Type | createDataHandle (DiscreteFunction &discreteFunction, const Operation &operation) const |
Creates DataHandle for given discrete function. More... | |
const AuxiliaryDofsType & | auxiliaryDofs () const |
get auxiliary dofs More... | |
const AuxiliaryDofsType & | slaveDofs () const |
deprecated method, use auxiliaryDofs More... | |
Static Public Attributes | |
static constexpr std::size_t | localBlockSize = Hybrid::size( LocalBlockIndices() ) |
size of local blocks More... | |
Protected Member Functions | |
DiscreteFunctionSpaceInterface () | |
const DiscreteFunctionSpaceType & | asImp () const |
DiscreteFunctionSpaceType & | asImp () |
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 More... | |
This is the interface for discrete function spaces. All methods declared here have to be implemented by the implementation class.
The discrete function space always depends on a given grid. For all diffrent element types of the grid the function space provides a set of base functions for the different element types. Because of the knowledge of on the one hand the grid an on the other hand the base functions sets, the discrete function space provides the size of the function space and a mapping from entity and local dof number to global dof number of the level of the entity.
typedef AuxiliaryDofs< GridPartType, BlockMapperType > Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::AuxiliaryDofsType |
type of auxiliary dofs
typedef Traits :: BasisFunctionSetType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::BasisFunctionSetType |
type of basis function set of this space
typedef Traits :: BlockMapperType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::BlockMapperType |
type of block mapper of this space
typedef CommunicationManager< DiscreteFunctionSpaceType > Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::CommunicationManagerType |
type of communication manager
typedef Traits :: DiscreteFunctionSpaceType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::DiscreteFunctionSpaceType |
type of DiscretefunctionSapce implementation (Barton-Nackman)
typedef GridPartType :: template Codim< Traits::codimension >:: EntityType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::EntityType |
type of entity of codimension 0
typedef Traits :: FunctionSpaceType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::FunctionSpaceType |
type of function space
typedef Traits :: GridPartType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::GridPartType |
type of underlying grid part
typedef GridPartType :: GridType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::GridType |
type of underlying dune grid
typedef GridPartType :: IndexSetType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::IndexSetType |
type of used dune index set
typedef GridPartType :: IntersectionType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::IntersectionType |
type of the intersections
typedef GridPartType :: template Codim< Traits::codimension >:: IteratorType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::IteratorType |
type of iterator for grid traversal
typedef Traits::LocalBlockIndices Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::LocalBlockIndices |
typedef AuxiliaryDofsType Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::SlaveDofsType |
deprecated type
typedef FunctionSpaceTraits Dune::Fem::DiscreteFunctionSpaceInterface< FunctionSpaceTraits >::Traits |
type of traits class
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
get auxiliary dofs
|
inline |
get basis function set for given entity
[in] | entity | entity (of codim 0) for which base function is requested |
|
inline |
get iterator pointing to the first entity of the associated grid partition
|
inline |
get a reference to the block mapper
|
inline |
communicate data for given discrete function using the space's default communication operation
discreteFunction | discrete function to be communicated |
|
inline |
communicate data for given discrete function
discreteFunction | discrete function to be communicated | |
[in] | op | communication operation to use (see DFCommunicationOperation) |
|
inline |
return the communication direction appropriate for this space
|
inline |
return the communication interface appropriate for this space
|
inline |
return reference to communicator (see CommunicationManager)
|
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.
|
inline |
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 |
Creates DataHandle for given discrete function.
[in] | discreteFunction | discrete function to create the data handle for |
[in] | operation | operation to perform on scatter |
|
inline |
get iterator pointing behind the last entity of the associated grid partition
|
inline |
apply a functor to each entity in the associated grid partition
The functor must provide an the following operator
[in] | f | functor to apply |
|
inline |
get reference to grid this discrete function space belongs to
|
inline |
get reference to grid this discrete function space belongs to
|
inline |
get a reference to the associated grid partition
|
inline |
Get a reference to the associated index set.
|
inline |
returns true if base function sets depend on the entity
|
inline |
returns true if the grid has more than one geometry type
|
inline |
get global order of space
|
inline |
get index of the sequence in grid sequences
|
inline |
get number of DoFs for this space
|
inline |
deprecated method, use auxiliaryDofs
|
inline |
return type identifier of discrete function space
|
staticconstexpr |
size of local blocks