Go to the documentation of this file.
21 #include "libmesh/quadrature_clough.h"
22 #include "libmesh/quadrature_gauss.h"
23 #include "libmesh/enum_to_string.h"
45 std::vector<Point> & gausspoints = gauss_rule.
get_points();
46 std::vector<Real> & gaussweights = gauss_rule.
get_weights();
47 std::size_t numgausspts = gausspoints.size();
50 for (std::size_t i = 0; i != numgausspts; ++i)
52 _points[3*i](0) = gausspoints[i](0) +
53 gausspoints[i](1) / 3.;
54 _points[3*i](1) = gausspoints[i](1) / 3.;
55 _points[3*i+1](0) = gausspoints[i](1) / 3.;
56 _points[3*i+1](1) = gausspoints[i](0) +
57 gausspoints[i](1) / 3.;
59 gausspoints[i](0) * 2./3. -
60 gausspoints[i](1) / 3.;
62 gausspoints[i](0) / 3. +
63 gausspoints[i](1) * 2./3.;
64 _weights[3*i] = gaussweights[i] / 3.;
unsigned int _p_level
The p-level of the element for which the current values have been computed.
This class implements specific orders of Gauss quadrature.
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.
const std::vector< Point > & get_points() const
ElemType _type
The type of element for which the current values have been computed.
std::string enum_to_string(const T e)
virtual void init_2D(const ElemType, unsigned int) override
Initializes the 2D quadrature rule by filling the points and weights vectors with the appropriate val...
const std::vector< Real > & get_weights() const
std::vector< Real > _weights
The quadrature weights.
std::vector< Point > _points
The locations of the quadrature points in reference element space.
ElemType
Defines an enum for geometric element types.