Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › Get the element number at a location › Reply To: Get the element number at a location
August 19, 2020 at 6:47 pm
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