I have 11 elements after meshing and I need the location of centroid of each element in a list so that I can use it again.
The code that I am using is
*DIM, CENT_X, ARRAY, 11
*DIM, CENT_Y, ARRAY, 11
*DO, I, 1, 11
*GET, XE, ELEM, I, CENT, X
*GET, YE, ELEM, I, CENT, Y
CENT_X(I) = XE
CENT_Y(I) = YE
*ENDDO
Can someone tell me where I am going wrong?