相信大家经常遇到一个问题:需要在同一张曲线图里面画出两条路径的结果;但是ANSYS不能同时操作两条路径。怎么办?以下是本人编辑的一段命令流,希望作为例子,可以帮助大家解决这个问题:
path,path1 ! Recall path1
paget,path1,table ! Archive all data of path1 to array 'path1'
path,path2 ! Recall path2
paget,path2,table ! Archive all data of path1 to array 'path2'
*get,n_row,parm,path1,dim,1 ! Get rows of 'path1'
*dim,curve,table,n_row,3,1 ! Define table 'curve'
*do,n,1,n_row,1
curve(n,1)=path1(n,1)
curve(n,2)=path1(n,4) ! set the 2nd column of 'curve' equal the first results of path1
curve(n,3)=path2(n,4) ! set the 3nd column of 'curve' equal the first results of path2
*enddo
*vplot,curve(1,1),curve(1,2),3 ! Plot curves