Dune Core Modules (unstable)
Public Types |
Public Member Functions |
Public Attributes |
Static Public Attributes |
Protected Member Functions |
List of all members
Dune::QuadratureRule< ct, dim > Class Template Reference
Abstract base class for quadrature rules. More...
#include <dune/geometry/quadraturerules.hh>
Public Types | |
typedef ct | CoordType |
The type used for coordinates. | |
typedef std::vector< QuadraturePoint< ct, dim > >::const_iterator | iterator |
Public Member Functions | |
QuadratureRule () | |
Default constructor. More... | |
virtual int | order () const |
return order | |
virtual GeometryType | type () const |
return type of element | |
Public Attributes | |
T | elements |
STL member. | |
Static Public Attributes | |
static constexpr int | d = dim |
The space dimension. | |
Protected Member Functions | |
QuadratureRule (GeometryType t) | |
Constructor for a given geometry type. Leaves the quadrature order invalid | |
QuadratureRule (GeometryType t, int order) | |
Constructor for a given geometry type and a given quadrature order. | |
Detailed Description
template<typename ct, int dim>
class Dune::QuadratureRule< ct, dim >
class Dune::QuadratureRule< ct, dim >
Abstract base class for quadrature rules.
Contains a list of QuadraturePoint used to integrate numerically a function with a domain given by the a GeometryType.
Usage:
QuadratureRule<ct,dim> quadrature = Dune::QuadratureRules<ct,dim>::rule(...); // obtain a quadrature rule
double integral = 0.;
for(auto [position, weight] : quadrature) // iterate over quadrature points
integral += f(position) * weight; // accumulate weighted results
static const QuadratureRule & rule(const GeometryType &t, int p, QuadratureType::Enum qt=QuadratureType::GaussLegendre)
select the appropriate QuadratureRule for GeometryType t and order p
Definition: quadraturerules.hh:326
Member Typedef Documentation
◆ iterator
template<typename ct , int dim>
typedef std::vector<QuadraturePoint<ct,dim>>::const_iterator Dune::QuadratureRule< ct, dim >::iterator |
this container is always a const container, therefore iterator is the same as const_iterator
Constructor & Destructor Documentation
◆ QuadratureRule()
template<typename ct , int dim>
|
inline |
Default constructor.
Create an invalid empty quadrature rule. This must be initialized later by copying another quadraturerule before it can be used.
The documentation for this class was generated from the following file:
- dune/geometry/quadraturerules.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 20, 23:30, 2024)