Flow123d  JS_before_hm-2198-g122e1f2e2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QGauss Class Reference

Symmetric Gauss-Legendre quadrature formulae on simplices. More...

#include <quadrature_lib.hh>

Inheritance diagram for QGauss:
Inheritance graph
[legend]
Collaboration diagram for QGauss:
Collaboration graph
[legend]

Public Types

typedef std::array< QGauss, 4 > array
 

Public Member Functions

 QGauss (unsigned int dim, const unsigned int order)
 Create a formula of given order. More...
 
template<uint dimension>
void init (uint order)
 
- Public Member Functions inherited from Quadrature
 Quadrature (const Quadrature &q)
 Copy constructor. More...
 
 Quadrature (unsigned int dimension, unsigned int n_quadrature_points=0)
 Constructor. More...
 
virtual ~Quadrature ()
 Constructor from quadrature of lower dimension (e.g. for side integration). More...
 
unsigned int dim () const
 
void resize (unsigned int n_q_points)
 Modify the number of quadrature points. More...
 
unsigned int size () const
 Returns number of quadrature points. More...
 
template<unsigned int point_dim>
Armor::ArmaVec< double, point_dim > point (unsigned int i) const
 Returns the ith quadrature point. More...
 
Armor::Array< double >::ArrayMatSet set (uint i)
 
const Armor::Array< double > & get_points () const
 Return a reference to the whole array of quadrature points. More...
 
double weight (unsigned int i) const
 Returns the ith weight. More...
 
double & weight (unsigned int i)
 Returns the ith weight (non-const version). More...
 
const std::vector< double > & get_weights () const
 Return a reference to the whole array of weights. More...
 
Quadratureoperator= (const Quadrature &q)
 
template<unsigned int bulk_dim>
Quadrature make_from_side (unsigned int sid) const
 
template<>
Quadrature make_from_side (unsigned int sid) const
 

Static Public Member Functions

static std::array< QGauss, 4 > make_array (unsigned int order)
 

Additional Inherited Members

- Protected Attributes inherited from Quadrature
const unsigned int dim_
 Dimension of quadrature points. More...
 
Armor::Array< double > quadrature_points
 List of quadrature points. More...
 
std::vector< double > weights
 List of weights to the quadrature points. More...
 

Detailed Description

Symmetric Gauss-Legendre quadrature formulae on simplices.

Symmetric Gauss-Legendre quadrature on a dim dimensional simplex. The coefficients are taken from Parallel Hierarchical Grid project.

Definition at line 34 of file quadrature_lib.hh.

Member Typedef Documentation

◆ array

typedef std::array<QGauss, 4> QGauss::array

Definition at line 36 of file quadrature_lib.hh.

Constructor & Destructor Documentation

◆ QGauss()

QGauss::QGauss ( unsigned int  dim,
const unsigned int  order 
)

Create a formula of given order.

The formula is exact for polynomials of degree order.

Definition at line 79 of file quadrature_lib.cc.

Here is the caller graph for this function:

Member Function Documentation

◆ init()

template<uint dimension>
void QGauss::init ( uint  order)

Definition at line 63 of file quadrature_lib.cc.

◆ make_array()

static std::array<QGauss, 4> QGauss::make_array ( unsigned int  order)
inlinestatic

Create a

Definition at line 40 of file quadrature_lib.hh.


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