pysdic.IntegrationPoints.disable_points#

IntegrationPoints.disable_points(indices, inplace=False)[source]#

Disable specific integration points by their indices without removing them.

Disabled points will have their element indices set to -1 and their natural coordinates set to NaN.

The inverse operation can be done by re-assigning valid values to the natural_coordinates and element_indices attributes.

Parameters:
  • indices (ArrayLike) – The indices of the integration points to disable as a numpy ndarray with shape (\(R\),), where \(R\) is the number of points to disable.

  • inplace (bool, optional) – If True, modify the current instance in place. If False, return a new IntegrationPoints instance (default is False).

Returns:

A new IntegrationPoints instance with the specified points disabled or the modified current instance if inplace is True.

Return type:

IntegrationPoints

Raises:

IndexError – If any index is out of bounds.