dune-fem 2.8.0
|
Generic implementation of a Dune quadrature. More...
#include <dune/fem/quadrature/quadratureimp.hh>
Public Types | |
typedef FieldImp | FieldType |
field type | |
typedef BaseType::CoordinateType | CoordinateType |
type of local coordinates | |
enum | { codimension = 0 } |
to be revised, look at caching quad More... | |
Public Member Functions | |
QuadratureImp (const QuadratureImp &)=delete | |
virtual | ~QuadratureImp ()=default |
const FieldType & | weight (size_t i) const |
obtain weight of i-th integration point | |
const CoordinateType & | point (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 int | order () const =0 |
obtain order of the integration point list | |
virtual GeometryType | geometryType () const =0 |
obtain GeometryType for this integration point list | |
virtual std::vector< ElementCoordinateType > | interpolationPoints (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 Attributes | |
static const int | dimension = dim |
dimension of quadrature | |
Protected Types | |
typedef FieldVector< FieldType, dim+1 > | ElementCoordinateType |
Protected Member Functions | |
QuadratureImp (size_t id) | |
Constructor. | |
void | addQuadraturePoint (const CoordinateType &point, const FieldType weight) |
Adds a point-weight pair to the quadrature. | |
void | addIntegrationPoint (const CoordinateType &point) |
Adds an integration point to the list. | |
void | setIntegrationPoints (std::vector< CoordinateType > &&points) |
Overwrites integration point list | |
Protected Attributes | |
std::vector< FieldType > | weights_ |
std::vector< CoordinateType > | points_ |
const size_t | id_ |
Generic implementation of a Dune quadrature.
A Dune Quadrature is nothing but a list of integration points (see also IntegrationPointsListImp) and their respective weights.
typedef BaseType::CoordinateType Dune::Fem::QuadratureImp< FieldImp, dim >::CoordinateType |
type of local coordinates
|
protectedinherited |
typedef FieldImp Dune::Fem::QuadratureImp< FieldImp, dim >::FieldType |
field type
|
inherited |
|
inlineexplicitprotected |
Constructor.
The constructor simply creates an empty quadrature and stores the specified identifier.
[in] | id | unique identifier of the quadrature (provided by QuadratureProvider) |
|
delete |
|
virtualdefault |
|
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.
|
inlineprotected |
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.
|
pure virtualinherited |
obtain GeometryType for this integration point list
Integration point lists are specified in local coordinates, i.e., coordinates with respect to the reference element. Hence, each integration point list is only valid for one type of geometry, i.e., for one reference element. The type can be retrieved via this method.
Implemented in Dune::Fem::CornerPointList< ct, geometryId >, Dune::Fem::QuadratureRulesFactory< FieldImp, dim >, Dune::Fem::SimplexQuadrature< FieldImp, dim >, Dune::Fem::CubeQuadrature< FieldImp, dim >, Dune::Fem::PrismQuadrature< FieldImp >, Dune::Fem::PyramidQuadrature< FieldImp >, Dune::Fem::PolyhedronQuadrature< FieldImp, dim >, Dune::Fem::LumpingQuadrature< FieldImp, geometryId >, Dune::Fem::TestQuadrature< ct, dim >, and Dune::Fem::LagrangePointListInterface< FieldImp, dim, maxPolOrder >.
|
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.
|
inlinevirtualinherited |
returns list of element interpolation points for a given face quadrature
|
inlinevirtualinherited |
return true if quadrature is also a set of interpolation points for a given number of shape functions
|
inlineinherited |
obtain the number of integration points
|
pure virtualinherited |
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.
Implemented in Dune::Fem::CornerPointList< ct, geometryId >, Dune::Fem::QuadratureRulesFactory< FieldImp, dim >, Dune::Fem::SimplexQuadrature< FieldImp, dim >, Dune::Fem::CubeQuadrature< FieldImp, dim >, Dune::Fem::PrismQuadrature< FieldImp >, Dune::Fem::PyramidQuadrature< FieldImp >, Dune::Fem::PolyhedronQuadrature< FieldImp, dim >, Dune::Fem::LumpingQuadrature< FieldImp, geometryId >, Dune::Fem::TestQuadrature< ct, dim >, and Dune::Fem::LagrangePointListInterface< FieldImp, dim, maxPolOrder >.
|
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.
[in] | i | number of the integration point, 0 <= i < nop() |
|
inlineprotectedinherited |
Overwrites integration point list
|
inline |
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.
[in] | i | number of the integration point, 0 <= i < nop() |
|
staticinherited |
dimension of quadrature
|
protectedinherited |
|
mutableprotectedinherited |
|
mutableprotected |