*vwrite写出数据时为什么会缺少第一个数剧
*CFOPEN,ceshi,txt*do,i,1,10
*vwrite,i
(1x,f3.0)
*enddo
*cfclos
输出后的结果是2
3
4
5
6
7
8
9
10
为什么 1 没有输出
本帖最后由 htbbzzg 于 2018-12-23 10:36 编辑
试了一下,没有问题的。可能你的操作有问题。
请见附件。操作过程是:
将 1.txt拷贝到工作目录下,打开 ANSYS,执行:
Utility Menu > /Read Input from > 选择 1.txt 文件,点击 OK 执行命令流。
所输出的 ceshi.txt 文件也在附件中。内容是:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
看看。。。。。。。。。 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.
大概是因为这个原因,用input读入就不会有问题了
页:
[1]