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 22 of file ArbitraryQuadrature.h.

Constructor & Destructor Documentation

◆ ArbitraryQuadrature()

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

Definition at line 15 of file ArbitraryQuadrature.C.

15 : QBase(d, o) {}

◆ ~ArbitraryQuadrature()

virtual ArbitraryQuadrature::~ArbitraryQuadrature ( )
virtualdefault

Member Function Documentation

◆ init_1D()

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 31 of file ArbitraryQuadrature.C.

32 {
33  this->_type = _type;
34  this->_p_level = p_level;
35 }

◆ init_2D()

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

Definition at line 38 of file ArbitraryQuadrature.C.

39 {
40  this->_type = _type;
41  this->_p_level = p_level;
42 }

◆ init_3D()

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

Definition at line 45 of file ArbitraryQuadrature.C.

46 {
47  this->_type = _type;
48  this->_p_level = p_level;
49 }

◆ setPoints()

void ArbitraryQuadrature::setPoints ( const std::vector< Point > &  points)

Definition at line 24 of file ArbitraryQuadrature.C.

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

25 {
26  _points = points;
27  _weights.resize(points.size(), 1.0);
28 }

◆ shapes_need_reinit()

virtual bool ArbitraryQuadrature::shapes_need_reinit ( )
inlineoverridevirtual

Definition at line 33 of file ArbitraryQuadrature.h.

33 { return true; }

◆ type()

QuadratureType ArbitraryQuadrature::type ( ) const
override

Definition at line 18 of file ArbitraryQuadrature.C.

19 {
20  return INVALID_Q_RULE;
21 }

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