dune-fem
2.4.1-rc
|
Generic implementation of an IntegrationPointList. More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/quadrature/quadratureimp.hh>
Public Types | |
enum | { codimension = 0 } |
to be revised, look at caching quad More... | |
typedef FieldImp | FieldType |
field type More... | |
typedef FieldVector< FieldType, dim > | CoordinateType |
type of local coordinates More... | |
Public Member Functions | |
virtual | ~IntegrationPointListImp () |
const CoordinateType & | point (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... | |
virtual int | order () const =0 |
obtain order of the integration point list More... | |
virtual GeometryType | geometryType () const =0 |
obtain GeometryType for this integration point list More... | |
Protected Member Functions | |
IntegrationPointListImp (size_t id) | |
Constructor. More... | |
void | addIntegrationPoint (const CoordinateType &point) |
Adds an integration point to the list. More... | |
Generic implementation of an IntegrationPointList.
An integration point list is simply a list of points, given in local coordinates, i.e., coordinates within the reference element.
typedef FieldVector< FieldType, dim > Dune::Fem::IntegrationPointListImp< FieldImp, dim >::CoordinateType |
type of local coordinates
typedef FieldImp Dune::Fem::IntegrationPointListImp< FieldImp, dim >::FieldType |
field type
anonymous enum |
|
inlineexplicitprotected |
Constructor.
The constructor simply creates an empty point list and stores the specified identifier.
[in] | id | unique identifier of the integration point list (provided by QuadratureProvider) |
Referenced by Dune::Fem::IntegrationPointListImp< ct, Topology::dimension >::IntegrationPointListImp().
|
inlinevirtual |
|
inlineprotected |
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.
Referenced by Dune::Fem::QuadratureImp< FieldImp, 1 >::addQuadraturePoint(), and Dune::Fem::QuadratureImp< FieldImp, 1 >::weight().
|
pure virtual |
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::PyramidQuadrature< FieldImp >, Dune::Fem::PrismQuadrature< FieldImp >, Dune::Fem::HexaQuadrature< FieldImp >, Dune::Fem::TetraQuadrature< FieldImp >, Dune::Fem::QuadrilateralQuadrature< FieldImp >, Dune::Fem::TestQuadrature< ct, dim >, Dune::Fem::LagrangePointListInterface< FieldImp, dim, maxPolOrder >, Dune::Fem::TriangleQuadrature< FieldImp >, Dune::Fem::LineQuadrature< FieldImp >, Dune::Fem::CubeQuadrature< FieldImp, dim >, Dune::Fem::CornerPointList< ct, Topology >, Dune::Fem::QuadratureRulesFactory< FieldImp, dim >, Dune::Fem::SimplexQuadrature< FieldImp, dim >, and Dune::Fem::LumpingQuadrature< FieldImp, Topology >.
Referenced by Dune::Fem::IntegrationPointListImp< ct, Topology::dimension >::id(), Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature(), and Dune::Fem::TwistMapperCreator< ct, dim >::TwistMapperCreator().
|
inline |
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.
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().
|
inline |
obtain the number of integration points
Referenced by Dune::Fem::LocalDGPass< DiscreteModelImp, PreviousPassImp >::applyLocalNeighbor(), Dune::Fem::TwistMapperCreator< ct, dim >::createStorage(), Dune::Fem::PointProvider< ct, dim, 1 >::getMappers(), Dune::Fem::IntegrationPointListImp< ct, Topology::dimension >::point(), and Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature().
|
pure virtual |
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::PyramidQuadrature< FieldImp >, Dune::Fem::PrismQuadrature< FieldImp >, Dune::Fem::HexaQuadrature< FieldImp >, Dune::Fem::TetraQuadrature< FieldImp >, Dune::Fem::QuadrilateralQuadrature< FieldImp >, Dune::Fem::LagrangePointListInterface< FieldImp, dim, maxPolOrder >, Dune::Fem::TestQuadrature< ct, dim >, Dune::Fem::TriangleQuadrature< FieldImp >, Dune::Fem::LineQuadrature< FieldImp >, Dune::Fem::CubeQuadrature< FieldImp, dim >, Dune::Fem::CornerPointList< ct, Topology >, Dune::Fem::SimplexQuadrature< FieldImp, dim >, Dune::Fem::QuadratureRulesFactory< FieldImp, dim >, and Dune::Fem::LumpingQuadrature< FieldImp, Topology >.
Referenced by Dune::Fem::IntegrationPointListImp< ct, Topology::dimension >::id().
|
inline |
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() |
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().