dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::TestQuadrature< ct, dim > Class Template Reference

#include <dune/fem/quadrature/quadratureimp.hh>

Inheritance diagram for Dune::Fem::TestQuadrature< ct, dim >:
Inheritance graph

Public Types

enum  { maxOrder_ = 10 }
 
typedef FieldVector< ct, dim > CoordinateType
 
typedef ct FieldType
 field type
 
enum  { codimension = 0 }
 to be revised, look at caching quad More...
 

Public Member Functions

 TestQuadrature (const GeometryType &geo, int order)
 Constructor.
 
void newQuadraturePoint (const CoordinateType &c, ct weight)
 Adds new quadrature point/weight pair.
 
virtual GeometryType geometryType () const
 Desired geometry.
 
virtual int order () const
 Dummy order method.
 
const FieldTypeweight (size_t i) const
 obtain weight of i-th integration point
 
const CoordinateTypepoint (size_t i) const
 obtain coordinates of i-th integration point
 
size_t nop () const
 obtain the number of integration points
 
size_t id () const
 obtain the identifier of the integration point list
 
virtual std::vector< ElementCoordinateTypeinterpolationPoints (const int reqDim) const
 returns list of element interpolation points for a given face quadrature
 
virtual bool isFaceInterpolationQuadrature (const size_t numShapeFunctions) const
 return true if quadrature is also a set of interpolation points for a given number of shape functions
 

Static Public Member Functions

static size_t maxOrder ()
 Dummy max order method.
 

Static Public Attributes

static const int dimension = dim
 dimension of quadrature
 

Protected Types

typedef FieldVector< FieldType, dim+1 > ElementCoordinateType
 

Protected Member Functions

void addIntegrationPoint (const CoordinateType &point)
 Adds an integration point to the list.
 
void addQuadraturePoint (const CoordinateType &point, const FieldType weight)
 Adds a point-weight pair to the quadrature.
 
void setIntegrationPoints (std::vector< CoordinateType > &&points)
 Overwrites integration point list

 

Protected Attributes

std::vector< FieldTypeweights_
 
std::vector< CoordinateTypepoints_
 
const size_t id_
 

Member Typedef Documentation

◆ CoordinateType

template<class ct , int dim>
typedef FieldVector<ct, dim> Dune::Fem::TestQuadrature< ct, dim >::CoordinateType

◆ ElementCoordinateType

template<typename FieldImp , int dim>
typedef FieldVector< FieldType, dim+1 > Dune::Fem::IntegrationPointListImp< FieldImp, dim >::ElementCoordinateType
protectedinherited

◆ FieldType

typedef ct Dune::Fem::QuadratureImp< ct , dim >::FieldType
inherited

field type

Member Enumeration Documentation

◆ anonymous enum

template<typename FieldImp , int dim>
anonymous enum
inherited

to be revised, look at caching quad

Enumerator
codimension 

◆ anonymous enum

template<class ct , int dim>
anonymous enum
Enumerator
maxOrder_ 

Constructor & Destructor Documentation

◆ TestQuadrature()

template<class ct , int dim>
Dune::Fem::TestQuadrature< ct, dim >::TestQuadrature ( const GeometryType &  geo,
int  order 
)
inline

Constructor.

Member Function Documentation

◆ addIntegrationPoint()

template<typename FieldImp , int dim>
void Dune::Fem::IntegrationPointListImp< FieldImp, dim >::addIntegrationPoint ( const CoordinateType point)
inlineprotectedinherited

Adds an integration point to the list.

This method allows derived classes to add integration points to the list. This mehtod should only be used within the constructor of the derived class.

◆ addQuadraturePoint()

void Dune::Fem::QuadratureImp< ct , 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.

◆ geometryType()

template<class ct , int dim>
virtual GeometryType Dune::Fem::TestQuadrature< ct, dim >::geometryType ( ) const
inlinevirtual

◆ id()

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

◆ interpolationPoints()

template<typename FieldImp , int dim>
virtual std::vector< ElementCoordinateType > Dune::Fem::IntegrationPointListImp< FieldImp, dim >::interpolationPoints ( const int  reqDim) const
inlinevirtualinherited

returns list of element interpolation points for a given face quadrature

◆ isFaceInterpolationQuadrature()

template<typename FieldImp , int dim>
virtual bool Dune::Fem::IntegrationPointListImp< FieldImp, dim >::isFaceInterpolationQuadrature ( const size_t  numShapeFunctions) const
inlinevirtualinherited

return true if quadrature is also a set of interpolation points for a given number of shape functions

◆ maxOrder()

template<class ct , int dim>
static size_t Dune::Fem::TestQuadrature< ct, dim >::maxOrder ( )
inlinestatic

Dummy max order method.

◆ newQuadraturePoint()

template<class ct , int dim>
void Dune::Fem::TestQuadrature< ct, dim >::newQuadraturePoint ( const CoordinateType c,
ct  weight 
)
inline

Adds new quadrature point/weight pair.

◆ nop()

template<typename FieldImp , int dim>
size_t Dune::Fem::IntegrationPointListImp< FieldImp, dim >::nop ( ) const
inlineinherited

obtain the number of integration points

Returns
number of integration points within this list

◆ order()

template<class ct , int dim>
virtual int Dune::Fem::TestQuadrature< ct, dim >::order ( ) const
inlinevirtual

Dummy order method.

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

◆ point()

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

◆ setIntegrationPoints()

template<typename FieldImp , int dim>
void Dune::Fem::IntegrationPointListImp< FieldImp, dim >::setIntegrationPoints ( std::vector< CoordinateType > &&  points)
inlineprotectedinherited

Overwrites integration point list

◆ weight()

const FieldType & Dune::Fem::QuadratureImp< ct , 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

Member Data Documentation

◆ dimension

template<typename FieldImp , int dim>
const int Dune::Fem::IntegrationPointListImp< FieldImp, dim >::dimension = dim
staticinherited

dimension of quadrature

◆ id_

template<typename FieldImp , int dim>
const size_t Dune::Fem::IntegrationPointListImp< FieldImp, dim >::id_
protectedinherited

◆ points_

template<typename FieldImp , int dim>
std::vector< CoordinateType > Dune::Fem::IntegrationPointListImp< FieldImp, dim >::points_
mutableprotectedinherited

◆ weights_

std::vector< FieldType > Dune::Fem::QuadratureImp< ct , dim >::weights_
mutableprotectedinherited

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