Skip to content

Commit

Permalink
Try scoping on element_ids when ENF to filter-out contact elements
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed May 12, 2023
1 parent d03e3a4 commit 1b127c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ansys/dpf/post/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,12 @@ def _build_selection(
)
selection.select_nodes(nodes=node_ids)

# Treat for now the case of ENF with no scoping
# -> scope on "all" elements for DPF to filter-out contact elements as rotation to global
# cannot work for those
if (base_name == "ENF") and (element_ids is None):
selection.select_elements(elements=self.mesh.element_ids)

# Create the TimeFreqSelection
if all_sets:
selection.time_freq_selection.select_with_scoping(
Expand Down

0 comments on commit 1b127c1

Please sign in to comment.