pysdic.Mesh.compute_integration_points_normals#

Mesh.compute_integration_points_normals(integration_points, *, allow_unlocated_points=False, tolerance=0.0)[source]#

Compute the unit normal of a 3D surface mesh (\(K = 2\), \(E = 3\)) at integration points.

Shortcut for pysdic.fem.compute_integration_points_normals() with the coordinates, connectivity and element type of the mesh.

Parameters:
  • integration_points (pysdic.IntegrationPoints) – The integration points, consistent with the mesh (see validate_integration_points()).

  • allow_unlocated_points (bool, optional (default: False)) – If True, the unlocated points (element index -1) get NaN normals. Otherwise, they raise an error.

  • tolerance (Real, optional (default: 0.0)) – The tolerance to decide if a point is inside the reference element.

Returns:

An array of shape \((N_p, 3)\) with the unit normals.

Return type:

numpy.ndarray