QGaussLegendre1D

class QGaussLegendre1D : public QuadratureBase

Public Functions

void SetName() override

sets: order of the quadrature

Sets: name of the quadrature

void SetNq() override

sets: number of gridpoints of the quadrature

void SetPointsAndWeights() override

Computes the a vector (length: nq) of (coordinates of) gridpoints used for the quadrature rule. Computes the a vector (length: nq) of weights for the gridpoints. The indices match the gridpoints VectorVector. Sets computed values for _points and _weights.

void SetConnectivity() override

sets: Connectivity Adjacency Matrix as VektorVektor

double Integrate(double (*f)(double, double, double)) override

Integrates f(x,y,z) with the quadrature.

Return

result of the quadrature rule

Parameters
  • f: density function that depends on a three spatial dimensions.

double IntegrateSpherical(double (*f)(double, double)) override

Integrates f(x,y,z) with the quadrature.

Return

result of the quadrature rule

Parameters
  • f: density function that depends on a spherical coordinates.

std::vector<double> Integrate(std::vector<double> (*f)(double, double, double), unsigned, ) override

Integrates vector valued f(x,y,z) with the quadrature. Each dimension is integrated by itself.

Return

result of the quadrature rule (vector valued)

Parameters
  • f: density function that depends on a three spatial dimensions.