Ansys Employee

Your looping is not ideal as there is no warranty that you will get the data of the faces of the cells you are currenlty in! For that reason I recommend using c_face_loop inside the Thread Cell Loop. We have done that before when trying to get distance of cell centroids to face centroids. You can aslo check the macros under Connectivity Macros in the Customization Manual if they are helpful for your task.