libMesh
quadrature_conical.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 #ifndef LIBMESH_QUADRATURE_CONICAL_H
20 #define LIBMESH_QUADRATURE_CONICAL_H
21 
22 // Local includes
23 #include "libmesh/quadrature.h"
24 
25 namespace libMesh
26 {
27 
43 class QConical final : public QBase
44 {
45 public:
46 
50  QConical (unsigned int d,
51  Order o=INVALID_ORDER) :
52  QBase(d,o)
53  {}
54 
59  QConical (const QConical &) = default;
60  QConical (QConical &&) = default;
61  QConical & operator= (const QConical &) = default;
62  QConical & operator= (QConical &&) = default;
63  virtual ~QConical() = default;
64 
68  virtual QuadratureType type() const override;
69 
70 private:
71 
77  virtual void init_1D (const ElemType, unsigned int) override;
78  virtual void init_2D (const ElemType, unsigned int) override;
79  virtual void init_3D (const ElemType, unsigned int) override;
80 
85  void conical_product_tri();
86 
91  void conical_product_tet();
92 
98 };
99 
100 } // namespace libMesh
101 
102 #endif // LIBMESH_QUADRATURE_CONICAL_H
libMesh::QBase
The QBase class provides the basic functionality from which various quadrature rules can be derived.
Definition: quadrature.h:61
libMesh::QConical::conical_product_pyramid
void conical_product_pyramid()
Implementation of conical product rule for a Pyramid in 3D of order get_order().
Definition: quadrature_conical.C:180
libMesh::QConical
This class implements the so-called conical product quadrature rules for Tri and Tet elements.
Definition: quadrature_conical.h:43
libMesh::QConical::conical_product_tri
void conical_product_tri()
Implementation of conical product rule for a Tri in 2D of order get_order().
Definition: quadrature_conical.C:52
libMesh
The libMesh namespace provides an interface to certain functionality in the library.
Definition: factoryfunction.C:55
libMesh::QuadratureType
QuadratureType
Defines an enum for currently available quadrature rules.
Definition: enum_quadrature_type.h:33
libMesh::Order
Order
Definition: enum_order.h:40
libMesh::QConical::~QConical
virtual ~QConical()=default
libMesh::QConical::init_2D
virtual void init_2D(const ElemType, unsigned int) override
Initializes the 2D quadrature rule by filling the points and weights vectors with the appropriate val...
Definition: quadrature_conical_2D.C:28
libMesh::QConical::operator=
QConical & operator=(const QConical &)=default
libMesh::INVALID_ORDER
Definition: enum_order.h:86
libMesh::QConical::conical_product_tet
void conical_product_tet()
Implementation of conical product rule for a Tet in 3D of order get_order().
Definition: quadrature_conical.C:103
libMesh::QConical::init_3D
virtual void init_3D(const ElemType, unsigned int) override
Initializes the 3D quadrature rule by filling the points and weights vectors with the appropriate val...
Definition: quadrature_conical_3D.C:26
libMesh::QConical::type
virtual QuadratureType type() const override
Definition: quadrature_conical.C:33
libMesh::QConical::init_1D
virtual void init_1D(const ElemType, unsigned int) override
In 1D, use a Gauss rule.
Definition: quadrature_conical.C:38
libMesh::ElemType
ElemType
Defines an enum for geometric element types.
Definition: enum_elem_type.h:33
libMesh::QConical::QConical
QConical(unsigned int d, Order o=INVALID_ORDER)
Constructor.
Definition: quadrature_conical.h:50