Flow123d  jenkins-Flow123d-linux-release-multijob-198
Public Member Functions | List of all members
QGauss< dim > Class Template Reference

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

#include <quadrature_lib.hh>

Inheritance diagram for QGauss< dim >:
Inheritance graph
[legend]
Collaboration diagram for QGauss< dim >:
Collaboration graph
[legend]

Public Member Functions

 QGauss (const unsigned int order)
 Create a formula of given order. More...
 
- Public Member Functions inherited from Quadrature< dim >
 Quadrature (const unsigned int n_quadrature_points=0)
 Constructor. More...
 
 Quadrature (const Quadrature< dim > &q)
 Copy constructor. More...
 
virtual ~Quadrature ()
 Virtual destructor. More...
 
void resize (const unsigned int n_q_points)
 Modify the number of quadrature points. More...
 
const unsigned int size () const
 Returns number of quadrature points. More...
 
const arma::vec::fixed< dim > & point (const unsigned int i) const
 Returns the ith quadrature point. More...
 
const std::vector
< arma::vec::fixed< dim > > & 
get_points () const
 Return a reference to the whole array of quadrature points. More...
 
void set_point (const unsigned int i, const arma::vec::fixed< dim > &p)
 Sets individual quadrature point coordinates. More...
 
double weight (const unsigned int i) const
 Returns the ith weight. More...
 
const std::vector< double > & get_weights () const
 Return a reference to the whole array of weights. More...
 
void set_weight (const unsigned int i, const double w)
 Sets individual quadrature weight. More...
 

Additional Inherited Members

- Protected Attributes inherited from Quadrature< dim >
std::vector< arma::vec::fixed
< dim > > 
quadrature_points
 List of quadrature points. More...
 
std::vector< double > weights
 List of weights to the quadrature points. More...
 

Detailed Description

template<unsigned int dim>
class QGauss< dim >

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 44 of file quadrature_lib.hh.

Constructor & Destructor Documentation

template<unsigned int dim>
QGauss< dim >::QGauss ( const unsigned int  order)

Create a formula of given order.

The formula is exact for polynomials of degree order.

Definition at line 48 of file quadrature_lib.cc.


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