您的位置:网站首页 > Ansys教程

如何在ansys中获取变形后所有结点坐标

时间:2010-01-29 05:24:22 来源:

如何在ansys中获取变形后所有结点坐标

allsel                             !选择所有
*cfopen,'r_out','txt',             !定义输出文件名
*get,minnum,node,0,num,min         !取最小节点编号 
*get,enum,node,0,count             !取节点数目
*do,i,1,enum,1                     !循环开始
 *vwrite,minnum,NX(minnum),NY(minnum),NZ(minnum),ux(minnum),uy(minnum),uz(minnum) 

!将节点坐标及变形值写入文件中
 (F8.0,tl1,' ','(',f6.4,',',f6.4,',',f6.4,')',' x',f15.12,'x y',f15.12,'y z',f15.12) 
 minnum=ndnext(minnum)             !取下一个节点
*enddo                             !循环结束