ANSYS APDL 命令流問題
瀏覽:1630 回答:5
我現在用apdl命令流找出一列數組的最大值、最小值然后賦值給另一個數組的1、2列,下面是我現在編寫的,但是結果不對,請高手幫忙看下哪錯了,謝謝!!!!!!!!
*dim,cir,array,1,6
*dim,st,array,1,2
cir(1,1)=1
cir(1,2)=3
cir(1,3)=6
cir(1,4)=8
cir(1,5)=9
cir(1,6)=2
*do,j,1,6
*if,st(1,1),ge,cir(1,j),then
*exit
*else
*set,st(1,1),cir(1,j)
*endif
*enddo
*do,j,1,6
*if,st(1,2),le,cir(1,j),then
*exit
*else
*set,st(1,2),cir(1,j)
*endif
*enddo
*status,cir,1,1,1,6,,
*status,st,1,1,1,2,,
*status,cir,1,1,1,6,,
*status,st,1,1,1,2,,




















