SimWe仿真论坛's Archiver

cjc1982 发表于 2008-7-7 09:15

文件套文件的解决方法

在进行分析过程中,我需要打开两个文件,而且这两个文件是嵌套在一起的,比如:
*cfopen,file1,dat
*vrite,
.....
.....
*cfopen,file2,dat
......
*vwrite,
......
*cfclose
*cfclose

因为第二个文件必须在第一个文件写的过程中写进去,实际上是两个循环套循环的问题。
但是ansys好像不支持上述问题,至少*cfclose命令不支持上述问题。
所以,哪位能解决这个问题?或许apdl里面有另外的命令可以利用,但我目前还没有找到,请大家帮忙解决一下,多谢各位!

iomega 发表于 2008-7-7 10:23

You can try to put the second cfopen operation into a mac file with args. After you call the first cfopen, file1, dat, you can call the above mac file with desired input as arg...

cjc1982 发表于 2008-7-7 13:06

ok,thank you for your suggestion, i will try it!

joannaxve 发表于 2008-7-8 17:50

ok,thank you for your suggestion, i will try it!

页: [1]
 

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.