中国科学院大学 计算传热学 第一次实践作业
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
编写程序,修改原cavity中的blockMeshDict文件。convertToMeters 0.1;
vertices
(
//指定点32个
(0 0 0)//0
(0.35 0 0)//1
(0.65 0 0)//2
(1 0 0)//3
(0 0.35 0)//4
(0.65 0.35 0)//6
(1 0.35 0)//7
(0 0.65 0)//8 (0.35 0.65 0)//9
(0.65 0.65 0)//10
(1 0.65 0)//11
(0 1 0)//12
(0.35 1 0)//13
(0.65 1 0)//14
(1 1 0)//15
(0 0 0.1)//16 (0.35 0 0.1)//17
(0.65 0 0.1)//18
(1 0 0.1)//19
(0 0.35 0.1)//20 (0.35 0.35 0.1)//21
(0.65 0.35 0.1)//22
(1 0.35 0.1)//23 (0 0.65 0.1)//24 (0.35 0.65 0.1)//25 (0.65 0.65 0.1)//26
(0 1 0.1)//28
(0.35 1 0.1)//29
(0.65 1 0.1)//30
(1 1 0.1)//31
);
blocks
(
//划分8个区块
hex (0 1 5 4 16 17 21 20) (10 10 1) simpleGrading (1 1 1)//0
hex (1 2 6 5 17 18 22 21) (10 10 1) simpleGrading (1 1 1)//1
hex (2 3 7 6 18 19 23 22) (10 10 1) simpleGrading (1 1 1)//2
hex (4 5 9 8 20 21 25 24) (10 10 1) simpleGrading (1 1 1)//3
hex (6 7 11 10 22 23 27 26) (10 10 1) simpleGrading (1 1 1)//4
hex (8 9 13 12 24 25 29 28) (10 10 1) simpleGrading (1 1 1)//6
hex (9 10 14 13 25 26 30 29) (10 10 1) simpleGrading (1 1 1)//7 hex (10 11 15 14 26 27 31 30) (10 10 1) simpleGrading (1 1 1)//8
);
edges
(
);
Boundary//边界条件
(
movingWall
{
type wall;
faces
(
//移动面
(12 28 29 13)
(13 29 30 14)
(14 30 31 15)
);
}
fixedWalls
{
type wall;
faces
(
//固定面
(9 10 26 25)
(5 21 22 6)
(5 9 25 21)
(6 22 26 10)
(0 16 20 4)
(4 20 24 8)
(8 24 28 12)
(3 7 23 19)
(7 11 27 23)
(11 15 31 27)
(0 1 17 16)
(1 2 18 17)
(2 3 19 18)
);
}
frontAndBack
{
type empty;
faces
(
(0 4 5 1)
(1 5 6 2)
(2 6 7 3)
(4 8 9 5)
(6 10 11 7)
(8 12 13 9)
(9 13 14 10)
(10 14 15 11)
(16 17 21 20)
(17 18 22 21)
(18 19 23 22)
(20 21 25 24)
(22 23 27 26)
(24 25 29 28)
(25 26 30 29)
(26 27 31 30)
);
}
);
mergePatchPairs
(
);
首先使用blockMesh划分网格;
然后用icoFoam求解器求解;
用paraview画出稳定后的速度和压力云图。
速度云图:
压力云图: