pysdic.compute_supported_vertices#
- compute_supported_vertices(mesh, integration_points)[source]#
Compute the vertices of a mesh that support integration points: the vertices of the elements containing at least one located integration point.
In the correlation term (see
pysdic.SDICCorrelationTerm), the displacement of a vertex only appears through the integration points of its elements: the displacement of a vertex that supports no integration point has a zero column in the Jacobian. Such vertices make the problem singular, unless another term constrains them (e.g. a temporal regularization). Use this function to select the displacements to optimize withpysdic.SDICFixedParametrization(orpysdic.SDICAnalysis.compute_unknowns_indices()).Note
To exclude elements from the SDIC operators, remove their integration points (the operators are built from the integration points only). Do not modify the mesh of the analysis: its connectivity defines the element indices of the integration points and the neighborhoods of the gray level corrections.
- Parameters:
mesh (
pysdic.Mesh) – The mesh, with an element type.integration_points (
pysdic.IntegrationPoints) – The integration points, consistent with the mesh (the unlocated points are ignored).
- Returns:
The sorted indices of the supported vertices.
- Return type:
Examples
vertices = compute_supported_vertices(analysis.mesh, integration_points) print(f"{vertices.size} / {analysis.mesh.n_vertices} vertices support integration points")