Quadrature Rules for Triangles
These are some examples of quadrature rules for a triangular region.
A quadrature rule is a set of n points (x,y) and
associated weights w so that the integral of a function
f(x,y) over the triangle can be approximated by:
Integral f(x,y) dx dy = Sum ( 1 <= i <= n ) w(i) * f(x(i),y(i))
Most quadrature rules for the triangle are defined on the
unit triangle whose vertices are (0,0), (1,0), (0,1).
There is a standard technique for transforming such a rule
if it is needed to be applied to a general triangle.
For this directory, a quadrature rule is stored as three files,
containing the weights, the points, and the vertices that define
the triangular region.
Example:
Here is an example of a quadrature rule for the unit triangle,
of order 6.
Here is the text of a "X" file storing the abscissas of such a rule:
0.659027622374092 0.231933368553031
0.659027622374092 0.109039009072877
0.231933368553031 0.659027622374092
0.231933368553031 0.109039009072877
0.109039009072877 0.659027622374092
0.109039009072877 0.231933368553031
Here is the text of an "W" file storing the weights of such a rule
0.16666666666666666667
0.16666666666666666667
0.16666666666666666667
0.16666666666666666667
0.16666666666666666667
0.16666666666666666667
Here is the text of an "R" file storing the veretices of the triangle:
0.0 0.0
1.0 0.0
0.0 1.0
Related Data and Programs:
-
DUNAVANT
is a FORTRAN90 library of routines
for defining Dunavant rules for quadrature
on a triangle.
-
FEKETE
is a FORTRAN90 library of routines for defining
a Fekete rule for quadrature or interpolation over a triangle.
-
GM_RULES
is a FORTRAN90 library of routines for defining a Grundmann-Moeller
rule for quadrature over a triangle, tetrahedron, or general
M-dimensional simplex.
-
NCC_TRIANGLE
is a FORTRAN90 library defining Newton-Cotes closed quadrature
rules on a triangle.
-
NCO_TRIANGLE
is a FORTRAN90 library defining Newton-Cotes open quadrature
rules on a triangle.
-
NINT_EXACTBESS_TRI
is an executable FORTRAN90 program which investigates the polynomial
exactness of a quadrature rule for the triangle.
-
QUADRATURE_RULES
is a dataset directory of quadrature rules for rectangular regions.
-
QUADRATURE_TEST
an executable MATLAB program which reads the definition of a
multidimensional quadrature rule from three files, applies
the rule to a number of test integrals, and prints the
results.
-
QUADRULE
is a FORTRAN90 library of routines which
defines various quadrature rules.
-
SIMPACK
is a FORTRAN77 library of routines which
approximate the integral of a function or vector of functions
over a multidimensional simplex, or a region which is the
sum of multidimensional simplexes.
-
STROUD
is a FORTRAN90 library of routines which
defines quadrature rules for a variety of geometric figures.
-
TABLE
is the file format used to store this data;
-
TEST_TRI_INT
is a FORTRAN90 library of functions that can be used to test algorithms
for quadrature over a triangle.
-
TRIANGULATION
is a FORTRAN90 library of routines for dealing with triangulated data.
References:
-
Jarle Berntsen, Terje Espelid,
Algorithm 706,
DCUTRI: an algorithm for adaptive cubature
over a collection of triangles,
ACM Transactions on Mathematical Software,
Volume 18, Number 3, September 1992, pages 329-342.
-
Elise deDoncker, Ian Robinson,
Algorithm 612:
Integration over a Triangle Using Nonlinear Extrapolation,
ACM Transactions on Mathematical Software,
Volume 10, Number 1, March 1984, pages 17-22.
-
Dirk Laurie,
Algorithm 584,
CUBTRI, Automatic Cubature Over a Triangle,
ACM Transactions on Mathematical Software,
Volume 8, Number 2, 1982, pages 210-218.
-
James Lyness, Dennis Jespersen,
Moderate Degree Symmetric Quadrature Rules for the Triangle,
Journal of the Institute of Mathematics and its Applications,
Volume 15, Number 1, February 1975, pages 19-32.
-
Hans Rudolf Schwarz,
Finite Element Methods,
Academic Press, 1988,
ISBN: 0126330107,
LC: TA347.F5.S3313.
-
Gilbert Strang, George Fix,
An Analysis of the Finite Element Method,
Cambridge, 1973,
ISBN: 096140888X,
LC: TA335.S77.
-
Arthur Stroud,
Approximate Calculation of Multiple Integrals,
Prentice Hall, 1971,
ISBN: 0130438936,
LC: QA311.S85.
-
Olgierd Zienkiewicz,
The Finite Element Method,
Sixth Edition,
Butterworth-Heinemann, 2005,
ISBN: 0750663200,
LC: TA640.2.Z54
Sample Files:
CENTROID, the centroid rule, order 1, degree of precision 1.
GAUSS4X4, order 16, degree of precision 7,
(essentially a product of two 4 point 1D Gauss-Legendre rules).
GAUSS8X8, order 64, degree of precision 15,
(essentially a product of two 8 point 1D Gauss-Legendre rules).
SEVEN_POINT, order 7, degree of precision 3.
STRANG1, order 3, degree of precision 2.
STRANG2, order 3, degree of precision 2.
STRANG3, order 4, degree of precision 3.
STRANG4, order 6, degree of precision 3.
STRANG5, order 6, degree of precision 4.
STRANG6, order 7, degree of precision 4.
STRANG7, order 7, degree of precision 5.
STRANG8, order 9, degree of precision 6.
STRANG9, order 12, degree of precision 6.
STRANG10, order 13, degree of precision 7.
TOMS584_19, order 19, degree of precision 8, a rule from
ACM TOMS algorithm #584.
TOMS612_19, order 19, degree of precision 9, a rule from
ACM TOMS algorithm #612.
TOMS612_28, order 28, degree of precision 11, a rule from
ACM TOMS algorithm #612.
TOMS706_37, order 37, degree of precision 13, a rule from
ACM TOMS algorithm #706.
VERTEX, the vertex rule, order 3, degree of precision 1.
You can go up one level to
the DATASETS page.
Last revised on 03 July 2007.