dune-fem 2.12-git
Loading...
Searching...
No Matches
Dune::Fem::GaussPts Class Reference

one-dimensional Gauss points and their weights More...

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

Inheritance diagram for Dune::Fem::GaussPts:
Inheritance graph

Public Member Functions

 GaussPts ()
 constructor initializing the Gauss points for all orders
 
double point (int m, int i) const
 obtain the i-th point of the m-th quadrature
 
double weight (int m, int i) const
 obtain the i-th weight of the m-th quadrature
 
int order (int m) const
 obtain the order of the m-th quadrature
 
int power (int y, int d) const
 a simple power method
 

Static Public Attributes

static const int MAXP =10
 number of available quadratures
 
static const int highestOrder =19
 highest quadrature order within the array
 

Protected Attributes

std::vector< std::vector< double > > G
 
std::vector< std::vector< double > > W
 
std::vector< int > O
 

Detailed Description

one-dimensional Gauss points and their weights

GaussPtr is an array of one-dimensional Gauss quadratures for the interval [0,1]. The index of a quadrature equals its number of quadrature points (so there is no 0-th quadrature).

Note
This class implements the Singleton pattern

Constructor & Destructor Documentation

◆ GaussPts()

Dune::Fem::GaussPts::GaussPts ( )
inline

constructor initializing the Gauss points for all orders

Member Function Documentation

◆ order()

int Dune::Fem::QuadPtsBase::order ( int  m) const
inlineinherited

obtain the order of the m-th quadrature

Parameters
[in]mindex of the quadrature
Returns
a double representing the weight i-th Gauss point

◆ point()

double Dune::Fem::QuadPtsBase::point ( int  m,
int  i 
) const
inlineinherited

obtain the i-th point of the m-th quadrature

Parameters
[in]mindex of the quadrature
[in]inumber of the point within the quadrature (0 <= i < m)
Returns
a double in [0,1] representing the i-th Gauss point

◆ power()

int Dune::Fem::QuadPtsBase::power ( int  y,
int  d 
) const
inlineinherited

a simple power method

Note
This method does not use a template meta program
Parameters
[in]ybase \(y\) of the power
[in]dexponent \(d\) of the power
Returns
\(y^d\)

◆ weight()

double Dune::Fem::QuadPtsBase::weight ( int  m,
int  i 
) const
inlineinherited

obtain the i-th weight of the m-th quadrature

Parameters
[in]mindex of the quadrature
[in]inumber of the weight within the quadrature (0 <= i < m)
Returns
a double representing the weight i-th Gauss point

Member Data Documentation

◆ G

std::vector< std::vector< double > > Dune::Fem::QuadPtsBase::G
protectedinherited

◆ highestOrder

const int Dune::Fem::GaussPts::highestOrder =19
static

highest quadrature order within the array

◆ MAXP

const int Dune::Fem::GaussPts::MAXP =10
static

number of available quadratures

◆ O

std::vector< int > Dune::Fem::QuadPtsBase::O
protectedinherited

◆ W

std::vector< std::vector< double > > Dune::Fem::QuadPtsBase::W
protectedinherited

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