skgk-qqq 发表于 2012-2-27 10:54

怎么在fluent中同时读入两个case文件啊,急啊

请教各位大哥!!!

seaharrier 发表于 2012-2-27 17:29

你是想把两个网格合并吧,
Tmerge可以。

skgk-qqq 发表于 2012-2-27 21:59

怎么进行tmerge呢?能不能说详细点。我做的是燃气轮机的流场,靜叶栅和动叶栅要合到一起

Seventy721 发表于 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 Section6.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.
FileReadCase...
In the Select File panel (see Section2.1.2) (Figure6.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.
GridZoneAppend Case File...
In the Select File panel (see Section2.1.2), select the second mesh file and click OK.
3.   (optional). Display your meshes.
DisplayGrid...
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:
GridZoneAppend Case & Data Files...
Select the case file in the Select File panel (see Section2.1.2) (Figure6.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 Section6.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 Section6.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 Section6.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
© Fluent Inc. 2006-09-20

seaharrier 发表于 2012-2-28 23:48

Seventy721 发表于 2012-2-28 11:02 static/image/common/back.gif
6.3.15 Reading Multiple Mesh/Case/Data Files

There may be some cases in which you will need to re ...

还是老大给的详细,呵呵

我现在用CFX比较多,做叶轮比较方便
页: [1]
查看完整版本: 怎么在fluent中同时读入两个case文件啊,急啊