Skip to content
Snippets Groups Projects
Commit 9105248a authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add Gauss quadrature for pyramids up to degree 20

parent 8b669d7b
No related branches found
No related tags found
1 merge request!124Add files for high order integration with quadratures
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
add_library( add_library(
PugsAnalysis PugsAnalysis
CubeGaussQuadrature.cpp CubeGaussQuadrature.cpp
PyramidGaussQuadrature.cpp
SquareGaussQuadrature.cpp SquareGaussQuadrature.cpp
TensorialGaussLegendreQuadrature.cpp TensorialGaussLegendreQuadrature.cpp
TensorialGaussLobattoQuadrature.cpp TensorialGaussLobattoQuadrature.cpp
......
This diff is collapsed.
#ifndef PYRAMID_GAUSS_QUADRATURE_HPP
#define PYRAMID_GAUSS_QUADRATURE_HPP
#include <analysis/QuadratureFormula.hpp>
/**
* Defines Gauss quadrature on the reference pyramid element
*
* \note formulae are provided by
*
* 'High-order symmetric cubature rules for tetrahedra and pyramids'
* Jan Jaśkowiec & N. Sukumar (2020).
*/
class PyramidGaussQuadrature final : public QuadratureForumla<3>
{
private:
void _buildPointAndWeightLists();
public:
PyramidGaussQuadrature(PyramidGaussQuadrature&&) = default;
PyramidGaussQuadrature(const PyramidGaussQuadrature&) = default;
explicit PyramidGaussQuadrature(const size_t degree) : QuadratureForumla<3>(degree)
{
this->_buildPointAndWeightLists();
}
PyramidGaussQuadrature() = delete;
~PyramidGaussQuadrature() = default;
};
#endif // PYRAMID_GAUSS_QUADRATURE_HPP
...@@ -98,6 +98,7 @@ add_executable (unit_tests ...@@ -98,6 +98,7 @@ add_executable (unit_tests
test_PugsAssert.cpp test_PugsAssert.cpp
test_PugsFunctionAdapter.cpp test_PugsFunctionAdapter.cpp
test_PugsUtils.cpp test_PugsUtils.cpp
test_PyramidGaussQuadrature.cpp
test_Q1Transformation.cpp test_Q1Transformation.cpp
test_RevisionInfo.cpp test_RevisionInfo.cpp
test_SmallArray.cpp test_SmallArray.cpp
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment