Fluent mesh文件格式簡單說明


Fluent mesh文件是Fluent軟件的默認網格文件,主要包括網格的幾何信息,分為dimensions, nodes, faces, cells, zones等部分。Fluent mesh文件的數據按照lisp語句的結構進行組織,語句用括號包圍,語句開頭一般為表示類型的整數。如文件開頭:

(0 "GAMBIT to Fluent File")

這是一個注釋語句,在mesh文件中注釋類型標號為0。

0. 關於nodes,faces,cells的說明

從底層到頂層的組成順序看,nodes組成faces,faces圍成cells,且為便於遍歷faces和cells,Fluent引入了face thread和cell thread,可將thread看成鏈接face或cell指針的鏈表結構

 

1

節點,面及單元格

 

 

2

單元格線程

1. dimensions(網格維度)

標號:2

格式:

(2 ND)

其中N為網格的維度,可為2或3

實例:

(0 "Dimension:")
(2 2)

2. nodes(節點數據)

標號:10

格式:

(10 (zone-id first-index last-index type ND)(x1 y1 z1  x2 y2 z2... ))

*如果zone-id=0, first-index將是1,last-index等於節點數,type設置為1, ND是網格維度,后面不跟坐標數據。此時相當於對nodes的整體說明

*如果zone-id大於0,表示結構體中的nodes屬於編號zone-id的zone區域。此時first-index和last-index為該zone區域的節點編號,type設置為1,ND為可選參數,表示網格維度。當ND=2時,節點數據不顯示z坐標

實例:

(10 (0 1 C 1 2))
(10 (1 1 C 1 2)(
   0.0000000000e+000    0.0000000000e+000
   2.0000000000e+000    0.0000000000e+000
   6.6666666667e-001    0.0000000000e+000
   1.3333333333e+000    0.0000000000e+000
   2.0000000000e+000    1.0000000000e+000
   0.0000000000e+000    1.0000000000e+000
   1.3333333333e+000    1.0000000000e+000
   6.6666666667e-001    1.0000000000e+000
   2.0000000000e+000    5.0000000000e-001
   0.0000000000e+000    5.0000000000e-001
   6.6666666667e-001    5.0000000000e-001
   1.3333333333e+000    5.0000000000e-001
))

3. faces(面及其線程)

標號:13

格式:

(13 (zone-id first-index last-index bc-type face-type))

*zone-id=0時,語句說明面的數量(last-index – first-index + 1),且不寫出bc-type

*zone-id大於0時,為面線程編號,firt-index和last-index分別為線程中面標號的邊界值

*bc-type:

bc-type decirption
2 interior
3 wall
4 pressure-inlet,inlet-vent,intake-fan
5 pressure-outlet,exhaust-fan,outlet-vent
7 symmetry
8 periodic-shadow
9 pressure-far-field
10 velocity-inlet
12 periodic
14 fan,porous-jump,radiator
20 mass-flow-inlet
24 interface
31 parent(hanging node)
36 outflow
37 axis

*face-type

face-type description nodes/face
0 mixed  
2 linear 2
3 triangular 3
4 quadrilateral 4
5 polygonal NN

其他數據,每一行表示一個face:

n0 n1 n2 c0 c1

n*表示節點編號,對於2維網格,n2不顯示;c*表示face的鄰近cell編號,c0按右手法則確定,c1在face的另一邊,在邊界處c0或c1為0。

*當網格為混合類型時,即face-type=0,每一行說明面的語句應以節點數目開頭:

x n0 n1 ... nf c0 c1

x表示面上的節點數,nf表示最后一個節點。

4. cells

標號:12

格式:

(12 (zone-id first-index last-index type element-type))

*zone-id=0時,語句用於說明cell的數目,若last-index=0則表示文件中無cell。type=0,element-type不顯示

*zone-id大於0時,表示單元格線程,

type = 4 for hex
type = 2 for tet
type = 5 for pyramid

實例:

(0 "Faces:")
(13(0 1 11 0))
(13(3 1 3  3 0)(
2 5 7 5 0
2 7 8 3 0
2 8 6 1 0
))
(13(4 4 6  3 0)(
2 1 3 2 0
2 3 4 4 0
2 4 2 6 0
))

5. zones

標號:45

格式:

(45 (id type name)())

id為區域編號

type為類型

name為區域名稱

實例:

(0 "Zones:")
(45 (2 fluid fluid)())
(45 (3 wall up)())
(45 (4 wall down)())
(45 (5 pressure-outlet outlet)())
(45 (6 velocity-inlet inlet)())
(45 (8 interior default-interior)())

6. 附錄-完成的msh文件

(0 "GAMBIT to Fluent File")

(0 "Dimension:")
(2 2)

(10 (0 1 C 1 2))
(10 (1 1 C 1 2)(
   0.0000000000e+000    0.0000000000e+000
   2.0000000000e+000    0.0000000000e+000
   6.6666666667e-001    0.0000000000e+000
   1.3333333333e+000    0.0000000000e+000
   2.0000000000e+000    1.0000000000e+000
   0.0000000000e+000    1.0000000000e+000
   1.3333333333e+000    1.0000000000e+000
   6.6666666667e-001    1.0000000000e+000
   2.0000000000e+000    5.0000000000e-001
   0.0000000000e+000    5.0000000000e-001
   6.6666666667e-001    5.0000000000e-001
   1.3333333333e+000    5.0000000000e-001
))

(0 "Faces:")
(13(0 1 11 0))
(13(3 1 3  3 0)(
2 5 7 5 0
2 7 8 3 0
2 8 6 1 0
))
(13(4 4 6  3 0)(
2 1 3 2 0
2 3 4 4 0
2 4 2 6 0
))
(13(5 7 8  5 0)(
2 2 9 6 0
2 9 5 5 0
))
(13(6 9 a  a 0)(
2 6 a 1 0
2 a 1 2 0
))
(13(8 b 11 2 0)(
2 a b 1 2
2 b 8 1 3
2 3 b 2 4
2 b c 3 4
2 c 7 3 5
2 4 c 4 6
2 c 9 5 6
))
 
(0 "Cells:")
(12 (0 1 6 0))
(12 (2 1 6 1 3))

(0 "Zones:")
(45 (2 fluid fluid)())
(45 (3 wall up)())
(45 (4 wall down)())
(45 (5 pressure-outlet outlet)())
(45 (6 velocity-inlet inlet)())
(45 (8 interior default-interior)())


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM