21 #include "libmesh/quadrature_nodal.h" 23 #include "libmesh/enum_to_string.h" 24 #include "libmesh/face_c0polygon.h" 25 #include "libmesh/quadrature_trap.h" 26 #include "libmesh/quadrature_simpson.h" 135 _weights = {wv, wv, wv, wv, we, we, we, we};
182 const unsigned int ns = poly.
n_sides();
184 const Real master_poly_area = ns * 0.25 / tan(pi_over_ns);
186 const unsigned int nn = poly.n_nodes();
190 _points.resize(poly.n_nodes());
192 _points[n] = poly.master_point(n);
virtual void init_2D() override
Initializes the 2D quadrature rule by filling the points and weights vectors with the appropriate val...
This class implements Simpson quadrature.
ElemType _type
The type of element for which the current values have been computed.
const std::vector< Real > & get_weights() const
const Elem * _elem
The element for which the current values were computed, or nullptr if values were computed without a ...
The libMesh namespace provides an interface to certain functionality in the library.
std::vector< Point > _points
The locations of the quadrature points in reference element space.
std::vector< Real > _weights
The quadrature weights.
std::string enum_to_string(const T e)
Order _order
The polynomial order which the quadrature rule is capable of integrating exactly. ...
The C0Polygon is an element in 2D with an arbitrary (but fixed) number of first-order (EDGE2) sides...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const std::vector< Point > & get_points() const
IntRange< T > make_range(T beg, T end)
The 2-parameter make_range() helper function returns an IntRange<T> when both input parameters are of...
virtual void init(const Elem &e, unsigned int p_level=invalid_uint)
Initializes the data structures for a quadrature rule for the element e.
virtual unsigned int n_sides() const override final
virtual ElemType type() const =0
A Point defines a location in LIBMESH_DIM dimensional Real space.
This class implements trapezoidal quadrature.