Hello, I am trying to print element ids of the contact region but it gives an error that "CONTACT_01" (name of contact region is not defined., even though I have created a contact with this name and same is present in the .inp file. Below is the code I am using. Pls give suggestions if any.
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
mapdl.input("model1_input4.inp")
mapdl.cmsel('S', 'CONTACT_01')
element_ids = mapdl.cmlist("ELEM")
print(element_ids)
Thanks