dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/combinedspace/combinedspace.hh>

Inheritance diagram for Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >:
Inheritance graph

Public Types

typedef BaseType::GridPartType GridPartType
 
typedef BaseType::ContainedDiscreteFunctionSpaceType ContainedDiscreteFunctionSpaceType
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > Traits
 
enum  
 dimension of the grid (not the world) More...
 
enum  
 maximum polynomial order of functions in this space More...
 
enum  
 size of local blocks More...
 
using SubDiscreteFunctionSpace = typename PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::template SubDiscreteFunctionSpace< i >
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::GridType GridType
 
typedef GridPartType::IntersectionType IntersectionType
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::IndexSetType IndexSetType
 extract informations about IndexSet and Iterators More...
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::IteratorType IteratorType
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::FunctionSpaceType FunctionSpaceType
 the underlaying Analytical function space More...
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::BasisFunctionSetType BasisFunctionSetType
 type of the base function set(s) More...
 
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N >::BlockMapperType BlockMapperType
 mapper used to for block vector function More...
 
typedef int IdentifierType
 type of identifier for this discrete function space More...
 
typedef DofManager< GridTypeDofManagerType
 type of DofManager More...
 
enum  
 size of local blocks More...
 
typedef Traits::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
 
typedef BaseType::EntityType EntityType
 
typedef CommunicationManager< DiscreteFunctionSpaceTypeCommunicationManagerType
 type of communication manager More...
 
enum  
 size of local blocks More...
 

Public Member Functions

 CombinedSpace (GridPartType &gridPart, const InterfaceType commInterface=InteriorBorder_All_Interface, const CommunicationDirection commDirection=ForwardCommunication)
 
 CombinedSpace (const ThisType &)=delete
 
ThisTypeoperator= (const ThisType &)=delete
 
int numComponents () const
 number of components More...
 
DofStoragePolicy myPolicy () const
 policy of this space More...
 
const ContainedDiscreteFunctionSpaceTypecontainedSpace () const
 contained space More...
 
bool contains (const int codim) const
 
bool continuous () const
 returns true if the space contains only globally continuous functions More...
 
bool continuous (const IntersectionType &intersection) const
 returns true if the space contains only globally continuous functions More...
 
DFSpaceIdentifier type () const
 get the type of this discrete function space More...
 
int order () const
 get global order of space More...
 
int order (const Entity &entity) const
 get global order of space More...
 
int order (const EntityType &entity) const
 default implementation of the method order More...
 
BasisFunctionSetType basisFunctionSet (const EntityType &entity) const
 get basis function set for given entity More...
 
BlockMapperTypeblockMapper () const
 obtain the DoF block mapper of this space More...
 
const SubDiscreteFunctionSpace< i >::Type & subDiscreteFunctionSpace () const
 obtain the i-th subspace More...
 
int sequence () const
 get index of the sequence in grid sequences More...
 
LocalFunctionType localFunction (const EntityType &entity) const
 
const GridTypegrid () const
 get reference to grid this discrete function space belongs to More...
 
GridTypegrid ()
 get reference to grid this discrete function space belongs to More...
 
GridPartTypegridPart () const
 
GridPartTypegridPart ()
 get a reference to the associated grid partition More...
 
const IndexSetTypeindexSet () 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...
 
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 interface appropriate for this space More...
 
const CommunicationManagerTypecommunicator () const
 return reference to communicator (see CommunicationManager) More...
 
void communicate (DiscreteFunction &discreteFunction) const
 communicate data for given discrete function using the space's default communication operation More...
 
void communicate (DiscreteFunction &discreteFunction, const Operation *op) const
 communicate data for given discrete function More...
 
BaseType::template CommDataHandle< DiscreteFunction, Operation >::Type createDataHandle (DiscreteFunction &discreteFunction, const Operation *operation) const
 
void addFunction (DiscreteFunction &df) const
 default implementation of addFunction does nothing at the moment More...
 
void removeFunction (DiscreteFunction &df) const
 default implementation of removeFunction does nothing at the moment More...
 
void adapt (const Vector &polynomialOrders, const int polOrderShift=0) const
 default implementation of adapt does nothing, its only used in PAdaptiveLagrangeSpace More...
 

Static Public Attributes

static const IdentifierType id
 identifier of this discrete function space More...
 
static const InterfaceType defaultInterface
 default communication interface More...
 
static const CommunicationDirection defaultDirection
 default communication direction More...
 

Protected Types

typedef ThreadSafeValue< UninitializedObjectStackLocalDofVectorStackType
 
typedef StackAllocator< typename BaseType::RangeFieldType, LocalDofVectorStackType * > LocalDofVectorAllocatorType
 
typedef Dune::DynamicVector< typename BaseType::RangeFieldType, LocalDofVectorAllocatorTypeLocalDofVectorType
 
typedef BasicTemporaryLocalFunction< ThisType, LocalDofVectorTypeLocalFunctionType
 
typedef AllGeomTypes< IndexSetType, GridTypeAllGeometryTypes
 

Protected Member Functions

const std::vector< GeometryType > & geomTypes (int codim) const
 returns true if the grid has more than one geometry type More...
 
const DiscreteFunctionSpaceTypeasImp () const
 
DiscreteFunctionSpaceTypeasImp ()
 

Protected Attributes

GridPartTypegridPart_
 
LocalDofVectorStackType ldvStack_
 
LocalDofVectorAllocatorType ldvAllocator_
 
const AllGeometryTypes allGeomTypes_
 
DofManagerTypedofManager_
 
const InterfaceType commInterface_
 
const CommunicationDirection commDirection_
 
std::unique_ptr< CommunicationManagerTypecommunicator_
 

Member Typedef Documentation

type of the base function set(s)

mapper used to for block vector function

type of communication manager

type of DofManager

the underlaying Analytical function space

template<class DiscreteFunctionSpace , int N>
typedef BaseType::GridPartType Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::GridPartType

type of identifier for this discrete function space

extract informations about IndexSet and Iterators

typedef Dune::DynamicVector< typename BaseType::RangeFieldType, LocalDofVectorAllocatorType > Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::LocalDofVectorType
protectedinherited
template<class DiscreteFunctionSpace , int N>
typedef PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > Dune::Fem::PowerDiscreteFunctionSpace< DiscreteFunctionSpace, N >::Traits
inherited

Member Enumeration Documentation

anonymous enum
inherited

dimension of the grid (not the world)

anonymous enum
inherited

maximum polynomial order of functions in this space

anonymous enum
inherited

size of local blocks

anonymous enum
inherited

size of local blocks

anonymous enum
inherited

size of local blocks

Constructor & Destructor Documentation

template<class DiscreteFunctionSpace , int N>
Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::CombinedSpace ( GridPartType gridPart,
const InterfaceType  commInterface = InteriorBorder_All_Interface,
const CommunicationDirection  commDirection = ForwardCommunication 
)
inline
template<class DiscreteFunctionSpace , int N>
Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::CombinedSpace ( const ThisType )
delete

Member Function Documentation

void Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::adapt ( const Vector &  polynomialOrders,
const int  polOrderShift = 0 
) const
inlineinherited

default implementation of adapt does nothing, its only used in PAdaptiveLagrangeSpace

void Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::addFunction ( DiscreteFunction &  df) const
inlineinherited

default implementation of addFunction does nothing at the moment

get basis function set for given entity

Parameters
[in]entityentity (of codim 0) for which base function is requested
Returns
BasisFunctionSet for the entity

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.

obtain the DoF block mapper of this space

Returns
BlockMapperType
void Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::communicate ( DiscreteFunction &  discreteFunction) const
inlineinherited

communicate data for given discrete function using the space's default communication operation

Parameters
discreteFunctiondiscrete function to be communicated
void Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::communicate ( DiscreteFunction &  discreteFunction,
const Operation *  op 
) const
inlineinherited

communicate data for given discrete function

Parameters
discreteFunctiondiscrete function to be communicated
[in]opcommunication operation to use (see DFCommunicationOperation)
CommunicationDirection Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::communicationDirection ( ) const
inlineinherited

return the communication interface appropriate for this space

Returns
communication interface
InterfaceType Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::communicationInterface ( ) const
inlineinherited

return the communication interface appropriate for this space

Returns
communication interface

return reference to communicator (see CommunicationManager)

Returns
reference to communicator
template<class DiscreteFunctionSpace , int N>
const ContainedDiscreteFunctionSpaceType& Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::containedSpace ( ) const
inline

contained space

bool Dune::Fem::GenericCombinedDiscreteFunctionSpace< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::contains ( const int  codim) const
inlineinherited

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
bool Dune::Fem::GenericCombinedDiscreteFunctionSpace< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::continuous ( const IntersectionType intersection) const
inlineinherited

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
BaseType :: template CommDataHandle< DiscreteFunction, Operation >:: Type Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::createDataHandle ( DiscreteFunction &  discreteFunction,
const Operation *  operation 
) const
inlineinherited

Note
The default implementation is
return CommDataHandle< DiscreteFunction, Operation > :: Type( discreteFunction );

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.
void Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::forEach ( FunctorType &  f) const
inlineinherited

apply a functor to each entity in the associated grid partition

The functor must provide an the following operator

template< class EntityType >
void operator() ( const EntityType & );
Parameters
[in]ffunctor to apply
Note
The default implementation simply does the following:
const IteratorType end = asImp().end();
for( IteratorType it = asImp().begin(); it != end; ++it )
f( *it );
const std::vector<GeometryType>& Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::geomTypes ( int  codim) const
inlineprotectedinherited

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

get reference to grid this discrete function space belongs to

Returns
constant reference to grid

get reference to grid this discrete function space belongs to

Returns
reference to grid

get a reference to the associated grid partition

Returns
reference to the grid partition

Get a reference to the associated index set.

Returns
const reference to index set

obtain a local function for an entity (to store intermediate values)

Parameters
[in]entityentity (of codim 0) for which a local function is desired
Returns
a local function backed by a small, fast array
bool Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::multipleBasisFunctionSets ( ) const
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.
bool Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::multipleGeometryTypes ( ) const
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
template<class DiscreteFunctionSpace , int N>
DofStoragePolicy Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::myPolicy ( ) const
inline

policy of this space

template<class DiscreteFunctionSpace , int N>
int Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::numComponents ( ) const
inline

number of components

template<class DiscreteFunctionSpace , int N>
ThisType& Dune::Fem::CombinedSpace< DiscreteFunctionSpace, N, VariableBased >::operator= ( const ThisType )
delete

get global order of space

Returns
order of space, i.e., the maximal polynomial order of base functions

References Dune::Fem::GenericCombinedDiscreteFunctionSpace< Traits >::polynomialOrder.

int Dune::Fem::GenericCombinedDiscreteFunctionSpace< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::order ( const Entity &  entity) const
inlineinherited

get global order of space

Returns
order of space, i.e., the maximal polynomial order of base functions

References Dune::Fem::GenericCombinedDiscreteFunctionSpace< Traits >::polynomialOrder.

default implementation of the method order

Returns
returns max polynomial order for each entity using the method order()
void Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::removeFunction ( DiscreteFunction &  df) const
inlineinherited

default implementation of removeFunction does nothing at the moment

get index of the sequence in grid sequences

Returns
number of current sequence

get number of DoFs for this space

Returns
number of DoFs (degrees of freedom)
const SubDiscreteFunctionSpace< i >::Type& Dune::Fem::GenericCombinedDiscreteFunctionSpace< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::subDiscreteFunctionSpace ( ) const
inlineinherited

obtain the i-th subspace

get the type of this discrete function space

Returns
DFSpaceIdentifier

Member Data Documentation

const CommunicationDirection Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::commDirection_
protectedinherited
const InterfaceType Dune::Fem::DiscreteFunctionSpaceDefault< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::commInterface_
protectedinherited
const CommunicationDirection Dune::Fem::GenericCombinedDiscreteFunctionSpace< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::defaultDirection
staticinherited

default communication direction

const InterfaceType Dune::Fem::GenericCombinedDiscreteFunctionSpace< PowerDiscreteFunctionSpaceTraits< DiscreteFunctionSpace, N > >::defaultInterface
staticinherited

default communication interface

identifier of this discrete function space


The documentation for this class was generated from the following file: