www.mooseframework.org
ArbitraryQuadrature.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #include "ArbitraryQuadrature.h"
16 
17 ArbitraryQuadrature::ArbitraryQuadrature(const unsigned int d, const Order o) : QBase(d, o) {}
18 
19 QuadratureType
21 {
22  return INVALID_Q_RULE;
23 }
24 
25 void
26 ArbitraryQuadrature::setPoints(const std::vector<Point> & points)
27 {
28  _points = points;
29  _weights.resize(points.size(), 1.0);
30 }
31 
32 void
33 ArbitraryQuadrature::init_1D(const ElemType _type, unsigned int p_level)
34 {
35  this->_type = _type;
36  this->_p_level = p_level;
37 }
38 
39 void
40 ArbitraryQuadrature::init_2D(const ElemType _type, unsigned int p_level)
41 {
42  this->_type = _type;
43  this->_p_level = p_level;
44 }
45 
46 void
47 ArbitraryQuadrature::init_3D(const ElemType _type, unsigned int p_level)
48 {
49  this->_type = _type;
50  this->_p_level = p_level;
51 }
void init_2D(const ElemType _type=INVALID_ELEM, unsigned int p_level=0) override
void setPoints(const std::vector< Point > &points)
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 ro...
QuadratureType type() const override
void init_3D(const ElemType _type=INVALID_ELEM, unsigned int p_level=0) override
ArbitraryQuadrature(const unsigned int _dim, const Order _order=INVALID_ORDER)