lps13 发表于 2009-6-29 19:38:11

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

ustbdynamic 发表于 2009-6-29 20:07:41

呵呵正需要 这种东西啊,看看啊!

fox000002 发表于 2009-6-29 21:04:43

本帖最后由 fox000002 于 2009-6-29 21:08 编辑

直接用命令重复的部分过多

能用 scheme 写的话可以简化一些

如果能再配合上 SHELL 脚本 (batch 有点弱) 就更方便了

lps13 发表于 2009-6-29 21:11:55

本帖最后由 lps13 于 2009-6-29 21:18 编辑

直接用命令重复的部分确实过多,当时就是因为重复的多,所以编了个程序
不过运行过程中发现,如果命令太多,影响速度,不知道你用
scheme 速度怎么样?

fox000002 发表于 2009-6-29 23:09:52

命令多了,如果用 GUI 的话确实很慢

不要 GUI 速度会提升不少

lps13 发表于 2009-6-29 23:22:04

本帖最后由 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差不多?

fox000002 发表于 2009-6-30 00:44:57

其实提升的空间比较有限,而且瓶颈应该在 I/O 上

倒是没有比较过 windows 下运行的情况

LOGO213 发表于 2009-7-21 23:08:16

我觉得直接用SCHEME速度会更快!

mycfdname 发表于 2009-7-29 10:29:41

谢谢分享,赞一个.

zhipengfeng 发表于 2009-7-29 15:19:20

就是不知道怎么在udf中定义一个点或者单元,然后直接在udf中输出一点的压力?

zhangxj 发表于 2009-7-29 16:17:17

非常需要,下载收藏了

start2008 发表于 2009-8-30 15:51:56

:'(我按照说明试了一下,发现还是没有办法提取,不太会用:$

qytom232 发表于 2009-9-3 20:58:05

我也需要这样的东西,下下来看一下,大家可以一起完善一下

fc_simwe 发表于 2009-9-4 20:05:01

上学期做毕业设计时 你就该传上来啊

zjy_2924837 发表于 2009-9-12 22:23:14

好东西,谢谢分享

水若无痕 发表于 2009-9-13 10:11:51

适用于fluent哪个版本啊?

lps13 发表于 2009-9-14 10:51:22

应该都可以吧,我用的是6.3.26

xxia2897 发表于 2010-3-16 14:56:51

谢谢,总算找到方法了!

xiaodong2009 发表于 2010-3-22 15:07:28

:'(我按照说明试了一下,发现还是没有办法提取,不太会用:$
start2008 发表于 2009-8-30 15:51 http://forum.simwe.com/images/common/back.gif

我也是啊!:dizzy:

comic710 发表于 2010-4-9 15:34:17

多谢楼主分享好东西
页: [1] 2 3
查看完整版本: FLUENT后处理数据批量提取小软件及使用方法