We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Get the element number at a location Reply To: Get the element number at a location

Erik Kostson
Ansys Employee
One way could be to use esel to select the element based on position, and the use the elnext function to obtain the element number. So a small example is:nnXmin=0.5nXmax=1nElnow=0nESEL,S,CENT,X,Xmin,Xmax ! Select element based on centroid x locationnElnow=elnext(Elnow) ! This variable will be the ELEM in the ESOL commandnnFor more info see the ESEL and ELNEXT commands in the help