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
-1and their natural coordinates set toNaN.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) – IfTrue, modify the current instance in place. IfFalse, return a newIntegrationPointsinstance (default isFalse).
- Returns:
A new
IntegrationPointsinstance with the specified points disabled or the modified current instance ifinplaceisTrue.- Return type:
- Raises:
IndexError – If any index is out of bounds.