刚开始学用ansys编程,按照书上编了一个程序,但一运行就出现 ','V is not a recognized begin command,这是哪里出错了?
程序如下:
finish
/clear
Item='weight'
data=234.56
Unit='Kg'
*dim,aa,array,4,1,1
aa(1)=10.2,324.5,123.7,908
*dim,bb,char,3,1,1
bb(1)='I am','a good','man'
*cfopen,datafile,dat
*vwrite,
(5X,'vwrite demo')
*vwrite
('**************')
*vwrite,Item,data,Unit
(a8,F10.2,a8)
*vwrite
(/'****array parameter output demo******')
*vwrite
('float format/sequ keyword:')
*vwrite,sequ,aa(1)
(f3.0,f10.4)
*vwrite,aa(1),aa(2),aa(3),aa(4)
(//'float/x format:'/f3.1,2x,f4.2,2x,f5.2,2x,f6.2)
*vwrite,aa(1),aa(2),aa(3),aa(4)
(//'float format:'/4f10.4)
*vwrite,aa(1),aa(2),aa(3),aa(4)
(//'double format:'/d13.5,/d15.6,/d18.10,/d10.3)
*vwrite
(/'****char parameter output demo******')
*vwrite,bb(1),bb(2),bb(3)
(3a6)
*cfclos