dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Dune::Fem::PrismQuadrature< FieldImp > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/quadrature/femquadratures.hh>

Inheritance diagram for Dune::Fem::PrismQuadrature< FieldImp >:
Inheritance graph

Public Types

typedef FieldImp FieldType
 
typedef BaseType::CoordinateType CoordinateType
 type of local coordinates More...
 
enum  { codimension = 0 }
 to be revised, look at caching quad More...
 

Public Member Functions

 PrismQuadrature (const GeometryType &geometry, int order, size_t id)
 constructor filling the list of points and weights More...
 
virtual GeometryType geometryType () const
 
virtual int order () const
 obtain order of the integration point list More...
 
const FieldTypeweight (size_t i) const
 obtain weight of i-th integration point More...
 
const CoordinateTypepoint (size_t i) const
 obtain coordinates of i-th integration point More...
 
size_t nop () const
 obtain the number of integration points More...
 
size_t id () const
 obtain the identifier of the integration point list More...
 

Static Public Member Functions

static size_t maxOrder ()
 maximal order of available quadratures More...
 

Protected Member Functions

void addQuadraturePoint (const CoordinateType &point, const FieldType weight)
 Adds a point-weight pair to the quadrature. More...
 

Member Typedef Documentation

template<class FieldImp >
typedef BaseType :: CoordinateType Dune::Fem::PrismQuadrature< FieldImp >::CoordinateType

type of local coordinates

template<class FieldImp >
typedef FieldImp Dune::Fem::PrismQuadrature< FieldImp >::FieldType

Member Enumeration Documentation

template<typename FieldImp, int dim>
anonymous enum
inherited

to be revised, look at caching quad

Enumerator
codimension 

Constructor & Destructor Documentation

template<class ct >
Dune::Fem::PrismQuadrature< ct >::PrismQuadrature ( const GeometryType &  geometry,
int  order,
size_t  id 
)

constructor filling the list of points and weights

Parameters
[in]geometrygeometry type for which a quadrature is desired
[in]orderdesired order (provided by the user)
[in]idunique identifier (provided by QuadratureProvider)

References Dune::Fem::QuadratureImp< FieldImp, 3 >::addQuadraturePoint(), Dune::Fem::GaussPts::instance(), Dune::Fem::GaussPts::MAXP, Dune::Fem::GaussPts::order(), Dune::Fem::GaussPts::point(), Dune::Fem::GaussPts::power(), Dune::Fem::GaussPts::weight(), and Dune::Fem::QuadratureImp< FieldImp, 3 >::weight().

Member Function Documentation

void Dune::Fem::QuadratureImp< FieldImp, dim >::addQuadraturePoint ( const CoordinateType point,
const FieldType  weight 
)
inlineprotectedinherited

Adds a point-weight pair to the quadrature.

This method allows derived classes to add quadrature points (and their respective weights) to the list. This mehtod should only be used within the constructor of the derived class.

Referenced by Dune::Fem::HexaQuadrature< FieldImp >::HexaQuadrature(), Dune::Fem::PrismQuadrature< FieldImp >::PrismQuadrature(), Dune::Fem::PyramidQuadrature< FieldImp >::PyramidQuadrature(), and Dune::Fem::TetraQuadrature< FieldImp >::TetraQuadrature().

template<class FieldImp >
virtual GeometryType Dune::Fem::PrismQuadrature< FieldImp >::geometryType ( ) const
inlinevirtual
template<typename FieldImp, int dim>
size_t Dune::Fem::IntegrationPointListImp< FieldImp, dim >::id ( ) const
inlineinherited

obtain the identifier of the integration point list

The identifier of an integration point list must be globally unique. Even integration point lists for different dimensions must have different identifiers.

Note
Quadratures are considered distinct if they differ in one of the following points: geometry type, order, dimension or implementation.
Returns
globally unique identifier of the integration point list

Referenced by Dune::Fem::CacheProvider< GridPart, 1 >::getMapper(), Dune::Fem::PointProvider< ct, dim, 1 >::getMappers(), Dune::Fem::PointProvider< ct, dim, 1 >::getPoints(), Dune::Fem::TwistProvider< ct, dim >::getTwistStorage(), and Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature().

template<class FieldImp >
static size_t Dune::Fem::PrismQuadrature< FieldImp >::maxOrder ( )
inlinestatic

maximal order of available quadratures

References Dune::Fem::SimplexMaxOrder::maxOrder2.

template<typename FieldImp, int dim>
size_t Dune::Fem::IntegrationPointListImp< FieldImp, dim >::nop ( ) const
inlineinherited
template<class FieldImp >
virtual int Dune::Fem::PrismQuadrature< FieldImp >::order ( ) const
inlinevirtual

obtain order of the integration point list

The order of a quadrature is the maximal polynomial degree that is guaranteed to be integrated exactly by the quadrature.

In case of an integration point list, the definition of this value is left to the implementor.

Returns
the order of the integration point list

Implements Dune::Fem::IntegrationPointListImp< FieldImp, dim >.

template<typename FieldImp, int dim>
const CoordinateType& Dune::Fem::IntegrationPointListImp< FieldImp, dim >::point ( size_t  i) const
inlineinherited

obtain coordinates of i-th integration point

This method returns a reference to the coordinates of the i-th integration point for 0 <= i < nop(). The integration point is given in local coordinates, i.e., coordinates with respect to the reference element.

Parameters
[in]inumber of the integration point, 0 <= i < nop()
Returns
reference to i-th integration point

Referenced by Dune::Fem::TwistMapperCreator< ct, dim >::createStorage(), Dune::Fem::PointProvider< ct, dim, 1 >::getMappers(), Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature(), and Dune::Fem::QuadratureImp< FieldImp, 1 >::weight().

const FieldType& Dune::Fem::QuadratureImp< FieldImp, dim >::weight ( size_t  i) const
inlineinherited

obtain weight of i-th integration point

This method returns the weight of the i-th integration point for 0 <= i < nop() within the quadrature.

Note
The integration point can be obtained via the point() method.
The quadrature weights sum up to the volume of the reference element.
Parameters
[in]inumber of the integration point, 0 <= i < nop()
Returns
weight of the i-th integration point

Referenced by Dune::Fem::HexaQuadrature< FieldImp >::HexaQuadrature(), and Dune::Fem::PrismQuadrature< FieldImp >::PrismQuadrature().


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