capytaine.meshes.quadratures module

capytaine.meshes.quadratures.compute_quadrature_on_faces(faces, method)[source]

Compute the quadrature points and weight for numerical integration over the faces.

Parameters:
  • faces (array of shape (nb_faces, 4, 3)) – The 3D-coordinates of each of the 4 corners of each face.

  • method (string or quadpy object) – The method used to compute the quadrature scheme

Returns:

  • points (array of shape (nb_faces, nb_quad_points, 3)) – The 3D-coordinates of each of the quadrature points (their number depends on the method) of each face.

  • weights (array of shape (nb_faces, nb_quad_points)) – Weights associated to each of the quadrature points.