How do I use FastGaussQuadrature.jl to compute the integral of a 2d triangle element and 3d tetrahedron element

FastGaussQuadrature constructs 1d quadrature rules. Of course, you can integrate over a 2d or 3d region by doing nested integrals (either with QuadGK or via tensor products of quadrature rules), or you can use a multi-dimensional integration package like HCubature.jl. See also

If you want a fixed-order quadrature rule for a 2d triangle or 3d tetrahedron, see e.g. the SimplexQuad.jl package, or FEMQuad.jl, or the quadrature routines in NESSie.jl or …

1 Like