Getting element ids from contact #2402
Answered
by
germa89
ShaileshFle
asked this question in
Q&A
-
I need to get element ids of a named selection and then check if its element type is 174 for it to be a contact element and then append it in a list. But I am not even able to get element ids of the named selection. Can anyone help in this. here is the apdl code, need to change it in pymapdl component = 'CONTACT'
|
Beta Was this translation helpful? Give feedback.
Answered by
germa89
Oct 11, 2023
Replies: 1 comment 2 replies
-
Hi @ShaileshFle Presumably this code should work: component = "contact"
mapdl.cmsel("s", component)
mapdl.esln()
mapdl.esel("r", "ename", "", 174)
list_elements_ids = mapdl.mesh.enum |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
germa89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ShaileshFle
Presumably this code should work: