www.mooseframework.org
Public Member Functions | Private Member Functions | List of all members
ArbitraryQuadrature Class Reference

Implements a fake quadrature rule where you can specify the locations (in the reference domain) of the quadrature points. More...

#include <ArbitraryQuadrature.h>

Inheritance diagram for ArbitraryQuadrature:
[legend]

Public Member Functions

 ArbitraryQuadrature (const unsigned int _dim, const Order _order=INVALID_ORDER)
 
virtual ~ArbitraryQuadrature ()=default
 
QuadratureType type () const override
 
void setPoints (const std::vector< Point > &points)
 
virtual bool shapes_need_reinit () override
 

Private Member Functions

void init_1D (const ElemType _type=INVALID_ELEM, unsigned int p_level=0) override
 These functions must be defined to fulfill the interface expected by the quadrature initialization routines. More...
 
void init_2D (const ElemType _type=INVALID_ELEM, unsigned int p_level=0) override
 
void init_3D (const ElemType _type=INVALID_ELEM, unsigned int p_level=0) override
 

Detailed Description

Implements a fake quadrature rule where you can specify the locations (in the reference domain) of the quadrature points.

Definition at line 27 of file ArbitraryQuadrature.h.

Constructor & Destructor Documentation

ArbitraryQuadrature::ArbitraryQuadrature ( const unsigned int  _dim,
const Order  _order = INVALID_ORDER 
)

Definition at line 17 of file ArbitraryQuadrature.C.

17 : QBase(d, o) {}
virtual ArbitraryQuadrature::~ArbitraryQuadrature ( )
virtualdefault

Member Function Documentation

void ArbitraryQuadrature::init_1D ( const ElemType  _type = INVALID_ELEM,
unsigned int  p_level = 0 
)
overrideprivate

These functions must be defined to fulfill the interface expected by the quadrature initialization routines.

Please do not modify the function names or signatures.

Definition at line 33 of file ArbitraryQuadrature.C.

Referenced by shapes_need_reinit().

34 {
35  this->_type = _type;
36  this->_p_level = p_level;
37 }
void ArbitraryQuadrature::init_2D ( const ElemType  _type = INVALID_ELEM,
unsigned int  p_level = 0 
)
overrideprivate

Definition at line 40 of file ArbitraryQuadrature.C.

Referenced by shapes_need_reinit().

41 {
42  this->_type = _type;
43  this->_p_level = p_level;
44 }
void ArbitraryQuadrature::init_3D ( const ElemType  _type = INVALID_ELEM,
unsigned int  p_level = 0 
)
overrideprivate

Definition at line 47 of file ArbitraryQuadrature.C.

Referenced by shapes_need_reinit().

48 {
49  this->_type = _type;
50  this->_p_level = p_level;
51 }
void ArbitraryQuadrature::setPoints ( const std::vector< Point > &  points)

Definition at line 26 of file ArbitraryQuadrature.C.

Referenced by Assembly::reinit(), and Assembly::reinitNeighbor().

27 {
28  _points = points;
29  _weights.resize(points.size(), 1.0);
30 }
virtual bool ArbitraryQuadrature::shapes_need_reinit ( )
inlineoverridevirtual

Definition at line 38 of file ArbitraryQuadrature.h.

38 { return true; }
QuadratureType ArbitraryQuadrature::type ( ) const
override

Definition at line 20 of file ArbitraryQuadrature.C.

21 {
22  return INVALID_Q_RULE;
23 }

The documentation for this class was generated from the following files: