Go to the documentation of this file.
21 #include "libmesh/quadrature_grid.h"
22 #include "libmesh/enum_to_string.h"
65 for (
int i = 0; i !=
_order + 1; ++i)
67 for (
int j = 0; j !=
_order + 1 - i; ++j)
69 for (
int k = 0; k !=
_order + 1 - i - j; ++k)
121 for (
int k = 0; k !=
_order + 1; ++k)
123 for (
int i = 0; i !=
_order + 1 - k; ++i)
125 for (
int j = 0; j !=
_order + 1 - k; ++j)
127 _points[pt](0) = (i+0.5)*dx-1.0 +
129 _points[pt](1) = (j+0.5)*dx-1.0 +
void tensor_product_hex(const QBase &q1D)
Computes the tensor product quadrature rule [q1D x q1D x q1D] from the 1D rule q1D.
The libMesh namespace provides an interface to certain functionality in the library.
virtual void init(const ElemType type=INVALID_ELEM, unsigned int p_level=0)
Initializes the data structures for a quadrature rule for an element of type type.
Order _order
The polynomial order which the quadrature rule is capable of integrating exactly.
ElemType _type
The type of element for which the current values have been computed.
virtual void init_3D(const ElemType, unsigned int) override
Initializes the 3D quadrature rule by filling the points and weights vectors with the appropriate val...
std::string enum_to_string(const T e)
This class creates quadrature points on a uniform grid, with order+1 points on an edge.
void tensor_product_prism(const QBase &q1D, const QBase &q2D)
Computes the tensor product of a 1D quadrature rule and a 2D quadrature rule.
std::vector< Real > _weights
The quadrature weights.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< Point > _points
The locations of the quadrature points in reference element space.
ElemType
Defines an enum for geometric element types.