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();
187 const Real weight = master_poly_area / nn;
The C0Polygon is an element in 2D with an arbitrary (but fixed) number of first-order (EDGE2) sides.
virtual ElemType type() const =0
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual Point master_point(const unsigned int i) const override
virtual unsigned int n_nodes() const override
virtual unsigned int n_sides() const override final
std::vector< Point > _points
The locations of the quadrature points in reference element space.
ElemType _type
The type of element for which the current values have been computed.
const std::vector< Point > & get_points() const
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 ...
std::vector< Real > _weights
The quadrature weights.
virtual void init(const Elem &e, unsigned int p_level=invalid_uint)
Initializes the data structures for a quadrature rule for the element e.
Order _order
The polynomial order which the quadrature rule is capable of integrating exactly.
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.
This class implements trapezoidal quadrature.
std::string enum_to_string(const T e)
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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...