求助
在后处理中,我希望将结果存储在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. If you are in the GUI, the *VWRITE command must be contained in an externally prepared file and read into ANSYS (i.e., *USE, /INPUT, etc.).
注意这句,指的是在GUI下,需要将*vwrite放在宏或者外部文件下通过*use或者/input读入就行了
页:
[1]