Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
FE_DGVector< POLY, dim, spacedim > Class Template Reference
Inheritance diagram for FE_DGVector< POLY, dim, spacedim >:
Inheritance graph
[legend]

List of all members.

Classes

class  InternalData

Public Member Functions

 FE_DGVector (const unsigned int p, MappingType m)
FiniteElement< dim, spacedim > * clone () const
virtual std::string get_name () const
virtual bool has_support_on_face (const unsigned int shape_index, const unsigned int face_index) const
virtual void interpolate (std::vector< double > &local_dofs, const std::vector< double > &values) const
virtual void interpolate (std::vector< double > &local_dofs, const std::vector< Vector< double > > &values, unsigned int offset=0) const
virtual void interpolate (std::vector< double > &local_dofs, const VectorSlice< const std::vector< std::vector< double > > > &values) const
virtual unsigned int memory_consumption () const

Private Member Functions

void initialize_support_points (const unsigned int degree)
void initialize_restriction ()

Static Private Member Functions

static std::vector< unsigned int > get_dpo_vector (const unsigned int degree)

Private Attributes

Table< 3, double > interior_weights

Detailed Description

template<class POLY, int dim, int spacedim = dim>
class FE_DGVector< POLY, dim, spacedim >

DG elements based on vector valued polynomials.

These elements use vector valued polynomial spaces as they have been introduced for Hdiv and Hcurl conforming finite elements, but do not use the usual continuity of these elements. Thus, they are suitable for DG and hybrid formulations involving these function spaces.

The template argument POLY refers to a vector valued polynomial space like PolynomialsRaviartThomas or PolynomialsNedelec. Note that the dimension of the polynomial space and the argument dim must coincide.

Author:
Guido Kanschat
Date:
2010

Constructor & Destructor Documentation

template<class POLY , int dim, int spacedim = dim>
FE_DGVector< POLY, dim, spacedim >::FE_DGVector ( const unsigned int  p,
MappingType  m 
)

Constructor for the vector element of degree p.


Member Function Documentation

template<class POLY , int dim, int spacedim = dim>
FiniteElement<dim, spacedim>* FE_DGVector< POLY, dim, spacedim >::clone ( ) const [virtual]

A sort of virtual copy constructor. Some places in the library, for example the constructors of FESystem as well as the hp::FECollection class, need to make copied of finite elements without knowing their exact type. They do so through this function.

Implements FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
virtual std::string FE_DGVector< POLY, dim, spacedim >::get_name ( ) const [virtual]

Return a string that uniquely identifies a finite element. This class returns FE_RaviartThomas<dim>(degree), with dim and degree replaced by appropriate values.

Implements FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
virtual bool FE_DGVector< POLY, dim, spacedim >::has_support_on_face ( const unsigned int  shape_index,
const unsigned int  face_index 
) const [virtual]

Check whether a shape function may be non-zero on a face.

Returns always true.

Reimplemented from FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
virtual void FE_DGVector< POLY, dim, spacedim >::interpolate ( std::vector< double > &  local_dofs,
const std::vector< double > &  values 
) const [virtual]

Interpolate a set of scalar values, computed in the generalized support points.

Note:
This function is implemented in FiniteElement for the case that the element has support points. In this case, the resulting coefficients are just the values in the suport points. All other elements must reimplement it.

Reimplemented from FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
virtual void FE_DGVector< POLY, dim, spacedim >::interpolate ( std::vector< double > &  local_dofs,
const std::vector< Vector< double > > &  values,
unsigned int  offset = 0 
) const [virtual]

Interpolate a set of vector values, computed in the generalized support points.

Since a finite element often only interpolates part of a vector, offset is used to determine the first component of the vector to be interpolated. Maybe consider changing your data structures to use the next function.

Reimplemented from FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
virtual void FE_DGVector< POLY, dim, spacedim >::interpolate ( std::vector< double > &  local_dofs,
const VectorSlice< const std::vector< std::vector< double > > > &  values 
) const [virtual]

Interpolate a set of vector values, computed in the generalized support points.

Reimplemented from FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
virtual unsigned int FE_DGVector< POLY, dim, spacedim >::memory_consumption ( ) const [virtual]

Determine an estimate for the memory consumption (in bytes) of this object.

This function is made virtual, since finite element objects are usually accessed through pointers to their base class, rather than the class itself.

Reimplemented from FiniteElement< dim, spacedim >.

template<class POLY , int dim, int spacedim = dim>
static std::vector<unsigned int> FE_DGVector< POLY, dim, spacedim >::get_dpo_vector ( const unsigned int  degree) [static, private]

Only for internal use. Its full name is get_dofs_per_object_vector function and it creates the dofs_per_object vector that is needed within the constructor to be passed to the constructor of FiniteElementData.

template<class POLY , int dim, int spacedim = dim>
void FE_DGVector< POLY, dim, spacedim >::initialize_support_points ( const unsigned int  degree) [private]

Initialize the generalized_support_points field of the FiniteElement class and fill the tables with interior_weights. Called from the constructor.

template<class POLY , int dim, int spacedim = dim>
void FE_DGVector< POLY, dim, spacedim >::initialize_restriction ( ) [private]

Initialize the interpolation from functions on refined mesh cells onto the father cell. According to the philosophy of the Raviart-Thomas element, this restriction operator preserves the divergence of a function weakly.


Member Data Documentation

template<class POLY , int dim, int spacedim = dim>
Table<3, double> FE_DGVector< POLY, dim, spacedim >::interior_weights [private]

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

deal.II documentation generated on Fri Aug 12 2011 15:01:03 by doxygen 1.7.4