码迷,mamicode.com
首页 > 其他好文 > 详细

Fluent mesh文件格式简单说明

时间:2015-01-07 22:04:14      阅读:790      评论:0      收藏:0      [点我收藏+]

标签:

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. 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)())

Fluent mesh文件格式简单说明

标签:

原文地址:http://www.cnblogs.com/Adellbengbeng/p/4209369.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!