Skip to main content

Module quadrature

Module quadrature 

Source
Expand description

Gauss rules as (xi, eta, weight) triples ((t, weight) for the edge rule). Triangle weights sum to the reference area 1/2, quadrilateral weights to 4, edge weights to 2.

Constants§

EDGE_GAUSS_2
Two-point rule on [-1, 1] for element edges, exact for degree 3.
QUAD4_GAUSS_2X2
2x2 rule on [-1, 1]^2, exact for degree 3 per axis. Point order is (-,-), (+,-), (+,+), (-,+), matching the quad’s node order.
TRI3_GAUSS_1
One-point triangle rule (centroid), exact for degree 1.
TRI3_GAUSS_3
Three-point triangle rule (interior points), exact for degree 2.