get_selected_indices#

ansys.dpf.composites.select_indices.get_selected_indices(element_info, layers=None, nodes=None, spots=None, disable_checks=False)#

Get elementary indices based on element information, layers, nodes, and spots.

Parameters:
  • element_info (ElementInfo) – Lay-up information for the element.

  • layers (Optional[Collection[int]], default: None) – List of selected layers.

  • nodes (Optional[Collection[int]], default: None) – List of selected corner nodes.

  • spots (Optional[Collection[Spot]], default: None) – List of selected spots.

  • disable_checks (bool, default: False) – Whether to disable checks. Set to True to disable checks. Disabling checks results in better performance but potentially cryptic error messages or invalid indices.

Returns:

Array of selected indices.

Return type:

NDArray

Notes

Returns an empty selection if any of the collections is empty.

The indices (nodes, layers, and spots) are 0-based. Pay attention to this when using the “composite::minmax_per_element_operator” or evaluate_failure_criteria where the min/max layer indices are 1-based starting with Workbench 2024 R1 (DPF server 7.1).