OpenFOAM后处理转为Tecplot的方法

标签:
openfoamtecplot后处理杂谈 |
分类: OpenFoam |
实际上蛮简单的,群里有人问,就做出来给大家分享下。
计算结束后,进入上层目录,以多相流damBreak为例:
cd $FOAM RUN\multiphase\interFoam\laminar\damBreak
blockMesh
interFoam
cd ..
foamToTecplot360 -case damBreak
以Windows下的输出为例(去掉了一些时间,这样能看下输出):
C:\Program Files
(x86)\blueCFD-SingleCore-2.1\OpenFOAM-2.1\tutorials\multiphase\
interFoam\laminar>foamToTecplot360 -case
damBreak
Build
Exec
Date
Time
Host
PID
Case
nProcs : 1
SigFpe : Enabling floating point exception trapping
(FOAM_SIGFPE).
fileModificationChecking
ter
allowSystemOperations : Disallowing user-supplied system call
operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * //
Create time
Create mesh for time = 0
Time: 0
Name:damBreak varNames:"X Y Z" to
file:"./damBreak/Tecplot360/damBreak_grid_0.pl
t" of type:1
zoneName:region0 solTime:0
writeEnd
Name:damBreak varNames:"alpha1 p_rgh alpha1.org U_x U_y U_z" to
file:"./damBreak
/Tecplot360/damBreak_0.plt" of type:2
zoneName:region0 solTime:0
writeEnd
Combining patches:
t"
Name:damBreak varNames:"X Y Z alpha1 p_rgh alpha1.org U_x U_y U_z"
to file:"./da
mBreak/Tecplot360/boundaryMesh/boundaryMesh_0.plt" of type:0
zoneName:leftWall strandID:2 solTime:0
zoneName:rightWall strandID:3 solTime:0
zoneName:lowerWall strandID:4 solTime:0
zoneName:atmosphere strandID:5 solTime:0
writeEnd
Time: 1
Name:damBreak varNames:"p alpha1 p_rgh U_x U_y U_z" to
file:"./damBreak/Tecplot3
60/damBreak_1.plt" of type:2
zoneName:region0 solTime:1
writeEnd
Combining patches:
t"
Name:damBreak varNames:"X Y Z p alpha1 p_rgh U_x U_y U_z" to
file:"./damBreak/Te
cplot360/boundaryMesh/boundaryMesh_1.plt" of type:0
zoneName:leftWall strandID:2 solTime:1
zoneName:rightWall strandID:3 solTime:1
zoneName:lowerWall strandID:4 solTime:1
zoneName:atmosphere strandID:5 solTime:1
writeEnd
End
转换完成后出现Tecplot360文件夹:
1. File > Load Data File(s)
3. 使用Multiple Files方法打开结果文件,首先选择网格文件,再选择数据文件(务必!)
其他的参数补充:
foamToTecplot360 -help
Usage: foamToTecplot360 [OPTIONS]
options:
Tecplot binary file format writer
Using: OpenFOAM-2.1 (see www.OpenFOAM.org)
Build: 2.1-c62f134541ee
mxio
2012.4.11