General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Get the element number at a location

    • roshanpj4
      Subscriber
      Hello, I am using ESOL command ESOL, NVAR, ELEM, NODE, Item, Comp, Namein ANSYS APDL script to extract the strain value at an element. I understood ELErepresents the element number, of which I need the result. I want to get the element number at a particular location by specifying the location coordinates (x, y,z) to put in the ESOL command. Is it possible to get the element number using the location coordinates?n
    • 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
    • roshanpj4
      Subscriber
      Thank you very much for the reply. I have tried this command. I got the following warning and I could not get the result in time-history postprocessing.nn
Viewing 2 reply threads
  • The topic ‘Get the element number at a location’ is closed to new replies.