pysdic.Mesh.compute_integration_points_neighborhood#
- Mesh.compute_integration_points_neighborhood(integration_points, *, max_distance=1, self_neighborhood=True, skip_m1=True)[source]#
Compute, for each element of the mesh, the integration points located in the elements of its neighborhood.
Shortcut for
pysdic.fem.compute_integration_points_neighborhood()with the connectivity of the mesh.- Parameters:
integration_points (
pysdic.IntegrationPoints) – The integration points, consistent with the mesh (seevalidate_integration_points()).max_distance (Integral, optional (default:
1)) – The maximum distance of the elements in the neighborhood.self_neighborhood (bool, optional (default:
True)) – If True, the neighborhood of each element includes the element itself (and so its own integration points).skip_m1 (bool, optional (default:
True)) – If True, the unlocated points (element index-1) belong to no neighborhood. Otherwise, they raise anIndexError.
- Returns:
A boolean sparse matrix of shape \((N_e, N_p)\), where the integration points in the neighborhood of element \(i\) are
points_neighborhood[i].indices(sorted).- Return type: