加载中…
个人资料
天乐树
天乐树
  • 博客等级:
  • 博客积分:0
  • 博客访问:1,103,470
  • 关注人气:1,062
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
相关博文
推荐博文
谁看过这篇博文
加载中…
正文 字体大小:

OpenFOAM编译foamToTecplot360

(2012-05-23 21:01:13)
标签:

openfoam

tecplot

编译

杂谈

分类: OpenFoam

今天群里有人讨论界个,Linux下OpenFOAM 2.x 默认不带foamToTecplot360,但是OpenFOAM还是保留了编译这个utility的makefile,ThirdBody里面的Readme.html文件也给出了编译所需要的文件。

OpenFOAM编译foamToTecplot360

下面记录下编译过程

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  : 2.1.0-bd7367f93311
Exec   : foamToTecplot360
Date   : May 23 2012
Time   : 21:13:33
Host   : "Node1"
PID    : 2957
Case   : /home/mxio/OpenFOAM/mxio-2.1.0/run/tutorials/incompressible/icoFoam/cavity
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
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
    volScalarFields            : p
    volVectorFields            : U

 

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:
    patch 0 movingWall
    patch 1 fixedWalls
    discarding empty/processor patch 2 frontAndBack
    Combined patches     : "/home/mxio/OpenFOAM/mxio-2.1.0/run/tutorials/incompressible/icoFoam/cavity/Tecplot360/boundaryMesh/boundaryMesh_0.plt"


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
    Writing patch 0     movingWall      strand:2

zoneName:movingWall strandID:2 solTime:0
    Writing patch 1     fixedWalls      strand:3

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下的编译好的文件,貌似可以直接用。

http://sdrv.ms/KwqT6k

 

mxio

2012.5.28

0

阅读 评论 收藏 转载 喜欢 打印举报/Report
  • 评论加载中,请稍候...
发评论

    发评论

    以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

      

    新浪BLOG意见反馈留言板 电话:4000520066 提示音后按1键(按当地市话标准计费) 欢迎批评指正

    新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

    新浪公司 版权所有