dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dune::Fem::GaussPts Class Reference

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

#include </local/tomalk/somewhere/tmp/dune-fem/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

double point (int m, int i) const
 obtain the i-th point of the m-th quadratre More...
 
double weight (int m, int i) const
 obtain the i-th weight of the m-th quadratre More...
 
int order (int m) const
 obtain the order of the m-th quadratre More...
 
int power (int y, int d) const
 a simple power method More...
 

Static Public Member Functions

static const GaussPtsinstance ()
 obtain the singleton object More...
 

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

number of available quadratures

Enumerator
MAXP 
anonymous enum

highest quadrature order within the array

Enumerator
highestOrder 

Member Function Documentation

static const GaussPts& Dune::Fem::GaussPts::instance ( )
inlinestatic
int Dune::Fem::GaussPts::order ( int  m) const
inline
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

Referenced by Dune::Fem::CubeQuadrature< FieldImp, dim >::CubeQuadrature(), Dune::Fem::HexaQuadrature< FieldImp >::HexaQuadrature(), Dune::Fem::LineQuadrature< FieldImp >::LineQuadrature(), Dune::Fem::PrismQuadrature< FieldImp >::PrismQuadrature(), and Dune::Fem::QuadrilateralQuadrature< FieldImp >::QuadrilateralQuadrature().

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

Referenced by Dune::Fem::CubeQuadrature< FieldImp, dim >::CubeQuadrature(), Dune::Fem::HexaQuadrature< FieldImp >::HexaQuadrature(), Dune::Fem::LineQuadrature< FieldImp >::LineQuadrature(), Dune::Fem::PrismQuadrature< FieldImp >::PrismQuadrature(), and Dune::Fem::QuadrilateralQuadrature< FieldImp >::QuadrilateralQuadrature().


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