OpenFOAM编译foamToTecplot360

标签:
openfoamtecplot编译杂谈 |
分类: OpenFoam |
今天群里有人讨论界个,Linux下OpenFOAM 2.x 默认不带foamToTecplot360,但是OpenFOAM还是保留了编译这个utility的makefile,ThirdBody里面的Readme.html文件也给出了编译所需要的文件。
下面记录下编译过程
1. 下载tecio
tecio http://download.tecplot.com/tecio/2009/tecio2009.zip
2. 复制tecio2009.zip到 $WM_THIRD_PARTY_DIR 并解压给权限
cp tecio2009.zip $WM_THIRD_PARTY_DIR
cd $WM_THIRD_PARTY_DIR
unzip tecio2009.zip
chmod 777 tecio -R
3. 编译foamToTecplot
cd $WM_PROJECT_DIR
./Allwmake
4. 测试
cd
$FOAM_RUN/tutorials/incompressible/icoFoam/cavity
blockMesh
icoFoam
foamToTecplot360
屏幕输出:
[mxio@Node1 cavity]$ foamToTecplot360
Build
Exec
Date
Time
Host
PID
Case
nProcs : 1
sigFpe : Enabling floating point exception trapping
(FOAM_SIGFPE).
fileModificationChecking
allowSystemOperations : Disallowing user-supplied system call
operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * //
Create time
Create mesh for time = 0
Deleting old VTK files in "/home/mxio/OpenFOAM/mxio-2.1.0/run/tutorials/incompressible/icoFoam/cavity/Tecplot360"
Time: 0
Name:cavity varNames:"X Y Z" to
file:"/home/mxio/OpenFOAM/mxio-2.1.0/run/tutorials/incompressible/icoFoam/cavity/Tecplot360/cavity_grid_0.plt"
of type:1
zoneName:region0 solTime:0
writeEnd
Name:cavity varNames:"p U_x U_y U_z" to
file:"/home/mxio/OpenFOAM/mxio-2.1.0/run/tutorials/incompressible/icoFoam/cavity/Tecplot360/cavity_0.plt"
of type:2
zoneName:region0 solTime:0
writeEnd
Combining patches:
Name:cavity varNames:"X Y Z p U_x U_y U_z" to
file:"/home/mxio/OpenFOAM/mxio-2.1.0/run/tutorials/incompressible/icoFoam/cavity/Tecplot360/boundaryMesh/boundaryMesh_0.plt"
of type:0
zoneName:movingWall strandID:2 solTime:0
zoneName:fixedWalls strandID:3 solTime:0
writeEnd
5. Tecplot使用
参考之前的博文http://blog.sina.com.cn/s/blog_4a0a8b5d01012bv3.html
BUG SHUTTING
个人编译经验:
1. tecio文件夹至少需要赋予执行权限
2. 不能到$WM_PROJECT_DIR/applications/utilities/postProcessing/dataConversion/foamToTecplot360/目录下执行./Allwmake,这样编译会报缺少或者找不到文件的一系列错误
3. $WM_PROJECT_DIR下执行./Allwmake 会更新编译,因此不光光编译了foamToTecplot360一项哦
mxio
2012.5.23
补记:
ubuntu下的编译好的文件,貌似可以直接用。
mxio
2012.5.28