pysdic.Mesh.keep_connectivity_by_index#

Mesh.keep_connectivity_by_index(indices, *, propagate_properties=True)[source]#

Keep only the elements with the given indices (in their original order). The vertices are unchanged.

Parameters:
  • indices (Union[Integral, ArrayLike]) – An index or an integer array of shape \((R,)\) with indices in \([0, N_e)\).

  • propagate_properties (bool, optional (default: True)) – If False, the new mesh has no element properties.

Returns:

The mesh with the selected elements.

Return type:

pysdic.Mesh