EvgeniiStudent
Student
- Sep 7, 2024
- 1
Hello,
I am trying to output the Y coordinates of beam elements in Workbench Mechanical by inserting APDL code. The code is as follows:
“/POST1
*CFOPEN, Yposition, txt, 'path', append
nelems = 100
*DO, j, 1, nelems
*get,elemYposition,ELEM,j,cent,y
*VWRITE,elemYposition.
%G
*ENDDO
*CFCLOS”
Only zeros are written to the file.
How to get coordinates of beam elements center correctly?
I am trying to output the Y coordinates of beam elements in Workbench Mechanical by inserting APDL code. The code is as follows:
“/POST1
*CFOPEN, Yposition, txt, 'path', append
nelems = 100
*DO, j, 1, nelems
*get,elemYposition,ELEM,j,cent,y
*VWRITE,elemYposition.
%G
*ENDDO
*CFCLOS”
Only zeros are written to the file.
How to get coordinates of beam elements center correctly?