Model.isolatesegments#
- Model.isolatesegments(set_ids, elem_ids, face_indices=hwIntList(), consider_elems=0)#
Isolates segments. A segment is defined using its corresponding set ID, element ID, and face index.
- Parameters:
set_ids (hwIntList) – The ordered list of set IDs from which the segments need to be isolated.
elem_ids (hwIntList) – The ordered list of element IDs corresponding to the segments.
face_indices (hwIntList) – The ordered list of face indices corresponding to the segments.
consider_elems (int) –
Flag to consider underlying structural elements during unmasking of the segments. Valid values are:
0 - Do not consider underlying structural elements during unmasking of the segments.
1 - Consider underlying structural elements during unmasking of the segments.
Example#
Isolate segments with face indices with IDs 4 and 3 on element with ID 78 from set with ID 5#import hm import hm.entities as ent model = hm.Model() model.isolatesegments(set_ids=[5, 5], elem_ids=[78, 78], face_indices=[4, 3])