Ansys APDL 拿来即用的命令流分享(一)点号及坐标获取
! 选中所有的点,得到nset
*get,node_count,node,,count
! 存节点号,获取坐标
*dim,node_num,array,node_count
*do,i,1,node_count
*get,node_num(i),node,,num,max
nsel,u,,,node_num(i)
*enddo
! 获取坐标
*dim,xyz,array,node_count,3
*do,i,1,node_count
nsel,s,node,,node_num(i)
xyz(i,1) = nx(node_num(i))
xyz(i,2) = ny(node_num(i))
xyz(i,3) = nz(node_num(i))
*enddo