dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Fem::GaussPts Class Reference

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

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

Public Types

enum  { MAXP =10 }
 number of available quadratures More...
 
enum  { highestOrder =19 }
 highest quadrature order within the array More...
 

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 quadratre
 
double weight (int m, int i) const
 obtain the i-th weight of the m-th quadratre
 
int order (int m) const
 obtain the order of the m-th quadratre
 
int power (int y, int d) const
 a simple power method
 

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 quadreture equals its number of quadratrue points (so there is no 0-th quadrature).

Note
This class implements the Singleton pattern

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

number of available quadratures

Enumerator
MAXP 

◆ anonymous enum

anonymous enum

highest quadrature order within the array

Enumerator
highestOrder 

Constructor & Destructor Documentation

◆ GaussPts()

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

constructor initializing the Gauss points for all orders

Member Function Documentation

◆ order()

int Dune::Fem::GaussPts::order ( int  m) const
inline

obtain the order of the m-th quadratre

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

◆ point()

double Dune::Fem::GaussPts::point ( int  m,
int  i 
) const
inline

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

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::GaussPts::power ( int  y,
int  d 
) const
inline

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::GaussPts::weight ( int  m,
int  i 
) const
inline

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

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

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