FLUENT后处理数据批量提取小软件及使用方法
本帖最后由 lps13 于 2009-6-30 17:16 编辑在用FLUENT进行非稳态流动计算时,可以用AutoSave存下不同时刻的计算结果,为了分析某些点的压强脉动,或者某些面的压力脉动等等,需要把不同时刻不同点或面的压强或压力提取出来,整理分析,进一步进行频谱分析。一般先在计算模型的CAS文件里建立相应的点或面,然后用Report->Surface Integerals 提取写到文件中。但如果数据文件多了,就得每次手工打开DAT文件,进行提取,很是繁琐。所以就编了个小程序,用来生成FLUENT可以读取的日志文件,即命令流,来批量处理数据提取,大大节省了体力劳动。
使用方法:
1.把“FLUENT数据提取.exe”和“FLUENT命令流.txt”两个文件拷贝到计算目录下,把所有的计算结果DAT文件放到一个新文件夹“DATA”里,如图:
图01 图02
2.运行“FLUENT数据提取.exe”,并确定数据目录,如“D:\FLUENT数据提取\DATA”
,输入单个提取命令(具体命令格式可参考“FLUENT命令流参考.doc”和“FLUENT 6.0 Text Command List.pdf”文件),点“提取”,则生成提取命令流,如图:图03 图04 图05
3.打开FLUENT,读入计算模型的CAS文件,再读入“FLUENT命令流.txt”,就可以批量提取所需数据,如图:图06 图07
呵呵正需要 这种东西啊,看看啊! 本帖最后由 fox000002 于 2009-6-29 21:08 编辑
直接用命令重复的部分过多
能用 scheme 写的话可以简化一些
如果能再配合上 SHELL 脚本 (batch 有点弱) 就更方便了 本帖最后由 lps13 于 2009-6-29 21:18 编辑
直接用命令重复的部分确实过多,当时就是因为重复的多,所以编了个程序
不过运行过程中发现,如果命令太多,影响速度,不知道你用
scheme 速度怎么样? 命令多了,如果用 GUI 的话确实很慢
不要 GUI 速度会提升不少 本帖最后由 lps13 于 2009-6-29 23:28 编辑
1.3.2 Background Execution on Windows Systems To run FLUENT in the background on a Windows system, the following commands can be used: fluent 3d -g -i journalfluent 3d -g -wait -i journalfluent 3d -g -hidden -i journalIn these examples, [*]fluent is the command you type to execute FLUENT interactively.[*]-g indicates that the program is to be run minimized in the taskbar.[*]-i journal reads the specified journal file.[*]-wait is the command you type in a DOS batch file or some other script in a situation where the script needs to wait until FLUENT has completed its run.[*]-hidden is similar to the -wait command, but also executes FLUENT completely hidden and noninteractively.To get an output (or transcript) file while running FLUENT in the background on a Windows system, the journal file must contain the following command to write a transcript file: start transcript file/file/start-transcript outputfile.trnwhere the outputfile is a file that the background job will create and which will contain the output that FLUENT would normally print to the screen (e.g., the menu prompts and residual reports).
这种是不是速度跟GUI差不多? 其实提升的空间比较有限,而且瓶颈应该在 I/O 上
倒是没有比较过 windows 下运行的情况 我觉得直接用SCHEME速度会更快! 谢谢分享,赞一个. 就是不知道怎么在udf中定义一个点或者单元,然后直接在udf中输出一点的压力? 非常需要,下载收藏了 :'(我按照说明试了一下,发现还是没有办法提取,不太会用:$ 我也需要这样的东西,下下来看一下,大家可以一起完善一下 上学期做毕业设计时 你就该传上来啊 好东西,谢谢分享 适用于fluent哪个版本啊? 应该都可以吧,我用的是6.3.26 谢谢,总算找到方法了! :'(我按照说明试了一下,发现还是没有办法提取,不太会用:$
start2008 发表于 2009-8-30 15:51 http://forum.simwe.com/images/common/back.gif
我也是啊!:dizzy: 多谢楼主分享好东西