Class GaussLegendreQuadrature
Defined in File gausslegendre_quadrature.h
Inheritance Relationships
Base Type
public opensn::GaussQuadrature
(Class GaussQuadrature)
Class Documentation
-
class GaussLegendreQuadrature : public opensn::GaussQuadrature
Public Functions
-
explicit GaussLegendreQuadrature(QuadratureOrder order, bool verbose = false, unsigned int max_iters = 1000, double tol = 1.0e-12)
Populates the abscissae and weights for a Gauss-Legendre quadrature given the degree \( p \) of the mononomial such that the quadrature rule integrates exactly the weighted integrand \(\rho(x) x^{p} \), with \( \rho(x) := 1 \), on the interval \( [-1;+1] \). The number of points generated will be ceil((O+1)/2).
-
explicit GaussLegendreQuadrature(unsigned int N, bool verbose = false, unsigned int max_iters = 1000, double tol = 1.0e-12)
Populates the abscissae and weights for a Gauss-Legendre quadrature given the number of desired quadrature points. The order of the quadrature will be 2N-1.
-
explicit GaussLegendreQuadrature(QuadratureOrder order, bool verbose = false, unsigned int max_iters = 1000, double tol = 1.0e-12)