CENTROID
Swamy
Member Posts: 3 **
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?
0
Answers
-
@Swamy please tag your post with the products/scripting tool you are using. The developers and ACE team members look for the tags to offer help on a question in their area.
0 -
Your script looks good. What is not working? What does it say in the output?
0