声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3210|回复: 4

[Fluent应用] 怎么在fluent中同时读入两个case文件啊,急啊

[复制链接]
发表于 2012-2-27 10:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
请教各位大哥!!!
回复
分享到:

使用道具 举报

发表于 2012-2-27 17:29 | 显示全部楼层
你是想把两个网格合并吧,
Tmerge可以。

评分

1

查看全部评分

 楼主| 发表于 2012-2-27 21:59 | 显示全部楼层
怎么进行tmerge呢?能不能说详细点。我做的是燃气轮机的流场,靜叶栅和动叶栅要合到一起
发表于 2012-2-28 11:02 | 显示全部楼层
6.3.15 Reading Multiple Mesh/Case/Data Files

There may be some cases in which you will need to read multiple mesh files (subdomains) to form your computational domain.To solve on a multiblock mesh, generate each block of the mesh in the grid generator and save it to a separate grid file. For very complicated geometries, it may be more efficient to save the mesh for each part as a separate grid file. The grid node locations need not be identical at the boundaries where two separate meshes meet. FLUENT can handle non-conformal grid interfaces. See Section  6.4 for details about non-conformal grid boundaries.

There are two ways for reading multiple grid files in FLUENT:
Using FLUENT's ability to read multiple mesh files.
Using TGrid or tmerge.

Using FLUENT's Ability to Read Multiple Mesh Files

FLUENT allows you to handle more than one mesh at a time within the same solver settings. This multigrid handling capability is time saving, since you can directly read in the different mesh files in FLUENT itself without using other tools like TGrid or tmerge.

The steps to take when reading more than one mesh file are:
1.   Read in your first mesh file.
File  Read  Case...
In the Select File panel (see Section  2.1.2) (Figure  6.3.1), select the mesh file and click OK.
2.   Read in your second mesh file and append it to the fist mesh selected in the first step.
Grid  Zone  Append Case File...
In the Select File panel (see Section  2.1.2), select the second mesh file and click OK.
3.   (optional). Display your meshes.
Display  Grid...
You will find that the second mesh is appended to the first.

FLUENT also allows you to append the data on the mesh. To do that, follow the procedure above. For the second step, use the following menu:
Grid  Zone  Append Case & Data Files...
Select the case file in the Select File panel (see Section  2.1.2) (Figure  6.3.1), and click OK. Both the case and data files will be appended.
   
Reading multiple grid and data options are available only for serial cases, not for parallel cases.

Using TGrid or tmerge

1.   Generate the grid for the whole domain in the grid generator, and save each cell zone (or block or part) to a separate grid file for FLUENT.If one (or more) of the grids you wish to import is structured (e.g., a FLUENT 4 grid file), first convert it to FLUENT format using the fl42seg filter described in Section  6.3.13.

2.   Before starting the solver, use either TGrid or the tmerge filter to combine the grids into one grid file. The TGrid method is convenient, but the tmerge method allows you to rotate, scale, and/or translate the grids before they are merged.

To use TGrid, do the following:
(a)   Read all of the grid files into TGrid. When TGrid reads the grid files, it will automatically merge them into a single grid.
(b)   Save the merged grid file.
See the TGrid User's Guide for information about reading and writing files in TGrid.

To use the tmerge filter, do the following before starting FLUENT:
(a)   For 3D problems, type utility tmerge -3d. For 2D problems, type utility tmerge -2d.
(b)   When prompted, specify the names of the input files (the separate grid files) and the name of the output file in which to save the complete grid.
(c)   For each input file, specify scaling factors, translation distances, or a rotation angle. In the example below, no scaling, translation, or rotation is performed.
utility tmerge -2d -cl -p my1.msh my2.msh final.msh
3.   Read the combined grid file into the solver in the usual manner (using the File/Read/Case... menu item).
For a conformal mesh, if you do not want a boundary between the adjacent cell zones, use the Fuse Face Zones panel to fuse the overlapping boundaries (see Section  6.8.3). The matching faces will be moved to a new zone with a boundary type of interior. If all faces on either or both of the original zones have been moved to the new zone, the original zone(s) will be discarded.

If you are planning to use sliding meshes, or if you have non-conformal boundaries between adjacent cell zones, do not combine the overlapping zones. Instead, change the type of the two overlapping zones to interface (as described in Section  6.4).
In this example, scaling, translation, or rotation is not requested. Hence you can simplify the inputs to the following:

user@mymachine:>
utility tmerge -2d

Starting /Fluent.Inc/utility/tmerge2.1/ultra/tmerge_2d.2.1.13

Append 2D grid files.
tmerge2D Fluent Inc, Version 2.1.11

Enter name of grid file (ENTER to continue) : my1.msh
x,y scaling factor, eg. 1 1           : 1 1
x,y translation, eg. 0 1                : 0 0
rotation angle (deg), eg. 45            :0
Enter name of grid file (ENTER to continue) : my2.msh
x,y scaling factor, eg. 1 1             : 1 1
x,y translation, eg. 0 1                : 0 0
rotation angle (deg), eg. 45            : 0
Enter name of grid file (ENTER to continue) : <Enter>
Enter name of output file               : final.msh


Reading...
  node zone: id 1, ib 1, ie 1677, typ 1
  node zone: id 2, ib 1678, ie 2169, typ 2
      .
      .
      .
done.
Writing...
  492 nodes, id 1, ib 1678, ie 2169, type 2.
  1677 nodes, id 2, ib 1, ie 1677, type 1.
      .
      .
      .
done.
Appending done.

     Previous: 6.3.14 FIDAP Neutral Files
Up: 6.3 Grid Import
Next: 6.3.16 Reading Surface Mesh
&#169; Fluent Inc. 2006-09-20

评分

1

查看全部评分

发表于 2012-2-28 23:48 | 显示全部楼层

还是老大给的详细,呵呵

我现在用CFX比较多,做叶轮比较方便

点评

谢谢称赞,但请别叫我老大,显得我很老。:-)  发表于 2012-2-29 11:18
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-15 18:38 , Processed in 0.061109 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表