pysdic.fem.get_quadrangle_8_gauss_points#

get_quadrangle_8_gauss_points(return_weights=False)[source]#

Get the natural coordinates \((\xi, \eta)\) and weights of Gauss quadrature points for an 8-node (serendipity) quadrangle element.

The \(3 \times 3\) tensor Gauss-Legendre rule is used. It integrates exactly polynomials up to degree 5 in each direction over the reference square \([-1, 1]^2\).

Parameters:

return_weights (bool, optional (default: False)) – If True, the function will also return the weights associated with each Gauss point.

Returns:

  • gauss_points (numpy.ndarray) – Natural coordinates of the Gauss points. The returned array has shape \((9, 2)\).

  • weights (numpy.ndarray) – Only returned if return_weights is True. Weights associated with each Gauss point, with shape \((9,)\). They sum to \(4\), the area of the reference square.

Return type:

ndarray | Tuple[ndarray, ndarray]

Notes

An 8-node quadrangle element uses the following Gauss points and weights for numerical integration (center, then corners, then mid-edges):

Point No.

\((\xi, \eta)\)

Weight \(w\)

1

\((0, 0)\)

\(\frac{64}{81}\)

2

\((\sqrt{\frac{3}{5}}, \sqrt{\frac{3}{5}})\)

\(\frac{25}{81}\)

3

\((-\sqrt{\frac{3}{5}}, \sqrt{\frac{3}{5}})\)

\(\frac{25}{81}\)

4

\((-\sqrt{\frac{3}{5}}, -\sqrt{\frac{3}{5}})\)

\(\frac{25}{81}\)

5

\((\sqrt{\frac{3}{5}}, -\sqrt{\frac{3}{5}})\)

\(\frac{25}{81}\)

6

\((0, \sqrt{\frac{3}{5}})\)

\(\frac{40}{81}\)

7

\((-\sqrt{\frac{3}{5}}, 0)\)

\(\frac{40}{81}\)

8

\((0, -\sqrt{\frac{3}{5}})\)

\(\frac{40}{81}\)

9

\((\sqrt{\frac{3}{5}}, 0)\)

\(\frac{40}{81}\)

Gauss quadrature points for 8-node quadrangle element

See also

pysdic.fem.compute_quadrangle_8_shape_functions

Shape functions for 8-node quadrangle 2D-elements.

pysdic.fem.get_gauss_points

Gauss points for any supported element type.

Examples

Get the Gauss points for an 8-node quadrangle element:

1import numpy
2from pysdic.fem import get_quadrangle_8_gauss_points
3
4gauss_points = get_quadrangle_8_gauss_points()
5print("Gauss points:")
6print(gauss_points)
Gauss points:
[[ 0.          0.        ]
 [ 0.77459667  0.77459667]
 [-0.77459667  0.77459667]
 [-0.77459667 -0.77459667]
 [ 0.77459667 -0.77459667]
 [ 0.          0.77459667]
 [-0.77459667  0.        ]
 [ 0.         -0.77459667]
 [ 0.77459667  0.        ]]