马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在后处理中,我希望将结果存储在txt文件中,可是在文件中始终找不到这些数据,为什么?程序如下
csys,0
*dim,results,array,10,1 !定义二维数组results
*vfill,results(1,1),data,fluxlinkageA1_phase !填充数组
*vfill,results(2,1),data,fluxlinkagePM_phase
*vfill,results(3,1),data,fluxlinkageB1_phase
*vfill,results(4,1),data,fluxlinkageC1_phase
*vfill,results(5,1),data,fluxlinkageD1_phase
*vfill,results(6,1),data,savese
*vfill,results(7,1),data,savece
*vfill,results(8,1),data,torqmx_real
*vfill,results(9,1),data,torqvw_real
*vfill,results(10,1),data,torqc2d_real
*cfopen,results,txt,E:\ANSYS\ !打开e盘文件
*vwrite,sequ,results(1,1),results(2,1),results(3,1),results(4,1),results(5,1),results(6,1),results(7,1),results(8,1),results(9,1),results(10,1)
(1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6,1x,f15.6)
*cfclos
运行后有warning如下
*** WARNING *** CP = 272.953 TIME= 23:34:03
In the graphical user interface,the *VWRITE command can only be
executed from an external file such as /INPUT or *USE. The command is
ignored.
*** WARNING *** CP = 273.000 TIME= 23:34:03
Error in format, not enough data format specifiers
.
*** WARNING *** CP = 273.047 TIME= 23:34:03
(1X,F15. Is not a recognized POST1 command, abbreviation, or macro.
This command will be ignored. |