Flow123d
JS_before_hm-1-ge159291
|
Symmetric Gauss-Legendre quadrature formulae on simplices. More...
#include <quadrature_lib.hh>
Public Member Functions | |
QGauss (unsigned int dim, const unsigned int order) | |
Create a formula of given order. More... | |
Public Member Functions inherited from Quadrature | |
Quadrature (const Quadrature &q) | |
Copy constructor. More... | |
Quadrature (unsigned int dimension, const 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 (const 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::vec< point_dim > | point (const unsigned int i) const |
Returns the i th quadrature point. More... | |
const Armor::array & | get_points () const |
Return a reference to the whole array of quadrature points. More... | |
double | weight (const unsigned int i) const |
Returns the i th weight. More... | |
double & | weight (const unsigned int i) |
Returns the i th weight (non-const version). More... | |
const std::vector< double > & | get_weights () const |
Return a reference to the whole array of weights. More... | |
Quadrature & | operator= (const Quadrature &q) |
template<unsigned int bulk_dim> | |
Quadrature | make_from_side (unsigned int sid, unsigned int pid) |
template<> | |
Quadrature | make_from_side (unsigned int sid, unsigned int) |
Additional Inherited Members | |
Protected Attributes inherited from Quadrature | |
const unsigned int | dim_ |
Dimension of quadrature points. More... | |
Armor::array | quadrature_points |
List of quadrature points. More... | |
std::vector< double > | weights |
List of weights to the quadrature points. More... | |
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 32 of file quadrature_lib.hh.
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 36 of file quadrature_lib.cc.