veitweight
Materials
- May 7, 2015
- 1
hi,
im very new to ansys apdl. i want to export the forces and x-location of my previously selected nodes.
im very new to apdl-coding and therefore have no idea how to export it into a pdf via macro. i would even like it way more to directly write it into a .xml for excel.
i want to get the x-location and stresses Sxx, Szz, Sxy, Sxz. actually i need a path with the x-value starting from the first node but i think i can change the x-location data in excel to get that easily.
this is what i found so far:
FLST,5,3,4,ORDE,3
FITEM,5,29
FITEM,5,41
FITEM,5,-42
LSEL,S, , ,P51X
nsll,s,1
! selects my nodes on selected lines
*get,NCOUNT,node,,count
*dim,NARRAY,array,NCOUNT,5
/post1
set,last
*cfopen,temp,txt
*vwrite
('x-loc',8x,'Sxx',10x,'Szz',10x,'Sxz',10x,'Sxy')
*vget,NARRAY(1,1),node,1,loc,x
*vget,NARRAY(1,2),node,1,s,x
*vget,NARRAY(1,3),node,1,s,z
*vget,NARRAY(1,4),node,1,s,xz
*vget,NARRAY(1,5),node,1,s,xy
*vwrite,NARRAY(1,1),NARRAY(1,2),NARRAY(1,3),NARRAY(1,4),NARRAY(1,5)
finish
it doesnt work yet. i think i need *do and *endo commands but i have no idea how to implement them.
in another thread of this forum someone exported it directly into excel format:
*CFOPEN,C:\Temp\RESULTS_Face,xls,,
*VWRITE,
('X Y Z UX UY UZ USUM ROTX ROTY ROTZ ROTSUM')
*VWRITE,RESULTS_Face(1,1), RESULTS_Face(1,2), RESULTS_Face(1,3), RESULTS_Face(1,4), RESULTS_Face(1,5), RESULTS_Face(1,6), RESULTS_Face(1,7), RESULTS_Face(1,8), RESULTS_Face(1,9), RESULTS_Face(1,10), RESULTS_Face(1,11)
(F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9)
*CFCLOS
can anyone help me with this? i need to do this for my master thesis and i have no clue about apdl coding
im very new to ansys apdl. i want to export the forces and x-location of my previously selected nodes.
im very new to apdl-coding and therefore have no idea how to export it into a pdf via macro. i would even like it way more to directly write it into a .xml for excel.
i want to get the x-location and stresses Sxx, Szz, Sxy, Sxz. actually i need a path with the x-value starting from the first node but i think i can change the x-location data in excel to get that easily.
this is what i found so far:
FLST,5,3,4,ORDE,3
FITEM,5,29
FITEM,5,41
FITEM,5,-42
LSEL,S, , ,P51X
nsll,s,1
! selects my nodes on selected lines
*get,NCOUNT,node,,count
*dim,NARRAY,array,NCOUNT,5
/post1
set,last
*cfopen,temp,txt
*vwrite
('x-loc',8x,'Sxx',10x,'Szz',10x,'Sxz',10x,'Sxy')
*vget,NARRAY(1,1),node,1,loc,x
*vget,NARRAY(1,2),node,1,s,x
*vget,NARRAY(1,3),node,1,s,z
*vget,NARRAY(1,4),node,1,s,xz
*vget,NARRAY(1,5),node,1,s,xy
*vwrite,NARRAY(1,1),NARRAY(1,2),NARRAY(1,3),NARRAY(1,4),NARRAY(1,5)
finish
it doesnt work yet. i think i need *do and *endo commands but i have no idea how to implement them.
in another thread of this forum someone exported it directly into excel format:
*CFOPEN,C:\Temp\RESULTS_Face,xls,,
*VWRITE,
('X Y Z UX UY UZ USUM ROTX ROTY ROTZ ROTSUM')
*VWRITE,RESULTS_Face(1,1), RESULTS_Face(1,2), RESULTS_Face(1,3), RESULTS_Face(1,4), RESULTS_Face(1,5), RESULTS_Face(1,6), RESULTS_Face(1,7), RESULTS_Face(1,8), RESULTS_Face(1,9), RESULTS_Face(1,10), RESULTS_Face(1,11)
(F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9,' ',F17.9)
*CFCLOS
can anyone help me with this? i need to do this for my master thesis and i have no clue about apdl coding