libMesh
quadrature_conical.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2024 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  virtual std::unique_ptr<QBase> clone() const override;
71 
72 private:
73 
79  virtual void init_1D (const ElemType, unsigned int) override;
80  virtual void init_2D (const ElemType, unsigned int) override;
81  virtual void init_3D (const ElemType, unsigned int) override;
82 
87  void conical_product_tri();
88 
93  void conical_product_tet();
94 
100 };
101 
102 } // namespace libMesh
103 
104 #endif // LIBMESH_QUADRATURE_CONICAL_H
void conical_product_tri()
Implementation of conical product rule for a Tri in 2D of order get_order().
ElemType
Defines an enum for geometric element types.
Order
defines an enum for polynomial orders.
Definition: enum_order.h:40
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...
QuadratureType
Defines an enum for currently available quadrature rules.
QConical(unsigned int d, Order o=INVALID_ORDER)
Constructor.
void conical_product_tet()
Implementation of conical product rule for a Tet in 3D of order get_order().
The libMesh namespace provides an interface to certain functionality in the library.
void conical_product_pyramid()
Implementation of conical product rule for a Pyramid in 3D of order get_order().
virtual std::unique_ptr< QBase > clone() const override
This class implements the so-called conical product quadrature rules for Tri and Tet elements...
virtual void init_1D(const ElemType, unsigned int) override
In 1D, use a Gauss rule.
virtual QuadratureType type() const override
QConical & operator=(const QConical &)=default
virtual ~QConical()=default
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...
The QBase class provides the basic functionality from which various quadrature rules can be derived...
Definition: quadrature.h:53