新浪博客

FlameMaster的使用

2009-10-09 06:46阅读:
FlameMasterV3.3.9 software developed by Heniz Pitsch
基本使用过程
chemkin 类似
如图所示
FlameMaster的使用 因此分别介绍CreatBinFile ,ScanMan,FlameMaster的基本操作命令
CreatBinFile 常用命令
CreatBinFile -i thermodatainputfile[.txt] -m transportdatainputfile -o thermodataoutputfile[.bin]
注意热力学数据和输运数据都是NASA格式或者FlameMaster本身的格式,不是常用的chemkin的格式,但可以通过工具转换,需要另外编译转换工具。具体为:
保证所有的chenkin格式的文件都是unix文本格式的,如果不是,用
BBedit, ultraedit转换一下
~/FlameMaster/FlameManTools/CK2FMReinh文件夹下有转换成chemkinfortran文件,和编译要用的maki文件,按照README文件
chmod 755 maki
./maki gfortran (根据个人的fortran编译器的情况更改命令)
可执行文件'ckintrp3seiser'就生成了
执行ckintrp3seiser
./ckintrp3seiser
依次输入
thermo data file name = (热力学文件)
input model file name = (机理文件)
interpreter ascii output file name = (任何名字,输出Flamemaster需要的文件时需要指定该文件,推荐加个后缀,这样后面生成的文件名自动为 .mech 这里假定为a.i
CHEMKIN link file name = (任意名字)
打开输出的interpreter ascii output file namechemkin软件的输出文件格式一样,非常易读,在末尾查看是否有提示的错误。没有错误进行下一步的操作。
chmod 755 *.perl
./mechi2tex.perl a.i 1 2
自动生成a.mecha.tex文件
./modmech.perl -t thermo211.dat -r transport211.dat -o gri.211.mech a.mech
最后生成多个文件,FlameMaster需要的就是
gri.211.mechnewthermofile(包括了thermodatatransportdata)
因此CreateBinFile -i newthermofile -o gri.211.thermo.bin即可生成所需要的.bin文件了
ScanMan常用命令
ScanMani mechanism[.mech] -t theromodata[.bin] [-o output[.pre]] [-abcdhprsuLS3]
-o 如果不使用,生成的output的文件以原有的机理文件的名称为基础,后缀变为.pre
-a a list of declared and actually used atoms will be generated.
-b a list of the empirical function Fc will be generated. Fc is used to calculate the additional factor
in the Lindeemann-Hinshelwood equation.
-c the check of forward versus backward reactions will not be performed.
-d all scanner and/or parser actions will be shown.
-h help
-p the progress option will be displayed
-r a list of the reactions will be displayed.
-s a list of species will be displayed.
-u shows the allowed units and the units that are used.
-3 a list of Third-body coefficients will be displayed.
-L a latex table[.tex] will be generated.
-S a lexicalical match is used to find species in the thermodata file.
FlameMaster常用命令
-i 输入工况条件和相应的边界条件
-o 计算结果的输出位置
-p 改变计算的压力值
-P 改变计算的应变率 strain rate
-s 从某一个已有的文件中读入初始数据,开始计算
-r 机理文件
-d debug the scanner 检查输入的机理文件

未完待续

我的更多文章

下载客户端阅读体验更佳

APP专享