Computational Fluid Dynamics
2019 autumn, 1st week
1
• Tamás Benedek
• benedek [at] [Link]
• [Link]/~benedek/CFD/icem
The most important rule:
Dont use space or specific characters in:
File names, path, part names, etc. (nowhere)
• Working directory: C:\Work create your
own, for example: Work\quentin_tarantino (if
you are Quentin Tarantino )
Another important rule:
Your work will be deleted, if you turn off the
computer. When you finished, save your
work on a flash drive or send it to yourself
attached to an e-mail
Instructors of ICEM courses:
• Dr. Tamás Benedek (benedek [at]
[Link])
• Kristóf Tokaji (tokaji [at] [Link])
• András Tomor (tomor [at] [Link])
Agenda
• Week1-5: ICEM and FLUENT practice
• Week6-8: Individual project
• Week9-11: Group project
• Week12-13: Tutorials of specific problems
• Week14: Presentation of the group project,
Solving a problem with CFD
CAD model Mesh generation Solver Postprocessing
(ICEM/Design (ICEM) (FLUENT) (FLUENT/CFD post/…)
Modeler/Import)
WORKBENCH
Goal of the present practice
• Make your first mesh in ICEM through the
sample of a 2D pipe
7
Start the Ansys Workbench
8
Grab and drag the ICEM
CFD from the Component
Systems to the Project
Schematic
9
Grab and drag the FLUENT
from the Component
Systems to the Project
Schematic
10
1) Connect them
2) Double click on ICEM
CFD/Model
11
Geometry
12
The original geometry (in cm-s)
13
Settings
• Settings/Selction/Auto pick mode: turn ON
Point creation
1.) Select: Geometry, Create Point
2.) Select: Explicit Location
3.) Type the coordinates here
The coordinates of the first point should
be: 0,0,0 Apply
You can work in any dimension, because
you can scale your mesh in the solver 15
Point creation
We have one point! Yeah!
16
Point creation
Click on Fit window to see
all of your points
17
Point creation
Right click on Geometry/Points in the
display tree Show point names
18
Point creation – the coordinates of the
points
Nr. Coordinates (x,y,z)
0 0,0,0
1 32,0,0
2 32,16,0
3 48,32,0
4 48,64,0
5 64,32,0
6 64,64,0
7 50,-5,0
8 54,-5,0
9 16,32,0
10 0,32,0
11 50,16,0
12 54,16,0
19
13 0,16,0
Point creation
20
Curve creation (straight line)
1.) Select: Geometry, Create/Modify Curve
21
Curve creation (straight line)
To select the endpoint of your
line:
- click on the „select location(s)”
button the select point00 and
point01 with the L(eft)
M(ouse) B(utton)
- accept your selction with the
MMB
- The wrong selctions can be
canceled with the RMB
22
Curve creation (straight lines)
Create the other straight lines the
same way!
23
Curve creation (Arcs)
Create arcs, which fit on
three points
Arc 1
1 3
1.) Select: Arc
2
1 3
2
2.)Method: From 3 Points Arc 2
24
Create intersection points
1.) Select: Geometry/Create Point
4.) Repeat it with the arc and
the other straight line
3.) Select the large arc and the
straight line with the LMB (you
2.) Select: Curve can cancel with the RMB)
intersections
25
Segment curves
1.) Select: Geometry/Create – Modify curves
Segment your arcs at Segment your large arc at the
the middle points intersection points which was
created in the previous step (you
can select the points together)
2.) Select:
Segment curves
Select – LMB
Accept – MMB
Cancel – RMB
Segment your straigth lines at
the intersection ponits as well
26
Delete curves
Select: Delete curves
- Select the unnecessary
curves with the LMB
- Accept your selection
with the MMB
Select – LMB
Accept – MMB
Cancel – RMB
27
Delete curves – The result
28
Create Parts
1) Right click on the parts in The parts will be your boundaries and
the display tree, Create part fluid zones in the FLUENT (like the
named selctions in the WB Mesher)
2) The part name should be:
Velocity_inlet1 (dont use space)
3) The selected entity: the Select – LMB
vertical straight line on the Accept – MMB
left hand side Cancel – RMB
29
Create Parts
Change the name to:
Velocity_inlet2
3) The selected entity: the Select – LMB
tiny horizontal straight line Accept – MMB
on the bottom Cancel – RMB
30
Create Parts
Outflow
Create the other parts!
Wall1
Interior
(the tiny curve)
Wall3
Wall2 Select – LMB
Accept – MMB
When you finished Cancel – RMB
save your work! 31
Blocking, Meshing
32
Block structured mesh
• The mesh is build up from rectangular (2D) or
cuboid (3D) segments
• The blocks are divided to quad (2D) or hexa
(3D) cells
• The vertices, the edges and the faces of the
blocks are associated and shaped to the
points, curves and surface of the geometry
33
Definitions in ICEM
Geometry Blocking
Point Vertex
Curve Edge
Surface Face
34
Sample (the present problem)
Geometry Initial blocking
35
Sample (the present problem)
The associated blocking
36
Sample (the present problem)
The final mesh
37
Let’s start blocking
• Save your work before start the blocking!
38
Initialize Blocking
1.) Select: Blocking, Create Block
3.) Selected Part: FLUID (type it)
This will be your fluid zone in the FLUENT
2.) Select: Initialize block
4.) Select: 2D planar
39
Initialize Blocking
The Result
If you get an infinite block in some direction
close the ICEM and the Workbench without
saving (if you saved your work before). Then
restart it, load your project and repeat the
40
whole blocking procedure
Split block
1.) Select: Blocking, Split Block
2.) Select: Split block
3.) Method: Screen select
41
Split block
Select one of the vertical
edges in order to split your
block in horizontal direction
Select – LMB
Accept – MMB
Cancel – RMB
42
Split block
Split your blocks in vertical
direction two times
Select – LMB
Accept – MMB
Cancel – RMB
43
Split block
Select: Delete blocks
Delete the two bottom
blocks on the left and right
hand side
Select – LMB
Accept – MMB
Cancel – RMB
44
Split block
45
Associate the edges to the curves
Select: Associate
Select the Associate edge to
curve than associate the
marked edge to the marked
curve
Select – LMB
Accept – MMB
Cancel – RMB
46
Associate the edges to the curves
If the association is
succesful , the edge will be
green
Select – LMB
Accept – MMB
Cancel – RMB
47
Associate the edges to the curves
Right click on Blocking/Edges
in the display tree, and the
arrows will show your
association (the picture shows
the final state)
You can select multiple edges
and curves at the same time
Select – LMB
Accept – MMB
Cancel – RMB
48
Associate the edges to the curves
Select the two curves
together
Select – LMB
Accept – MMB
Cancel – RMB
49
Associate the edges to the curves
Select the three edges
together
Select – LMB
Accept – MMB
Cancel – RMB
50
Associate the vertices to points
1) Select associate vertex
Select – LMB
2) Entity: point Accept – MMB
Cancel – RMB
51
Associate the vertices to points
Associate the vertices to the
points as the arrows show
Select – LMB
You can see the result on the next
Cancel – RMB
slide
52
Move unassociated vertices
1) Select: Move vertex
2) Select: Move vertex
3) Grab (hold the LMB) the Select – LMB
marked vertex and drag it to Accept – MMB
the right position (see it on Cancel – RMB
53
the next slide)
Move unassociated vertices
54
Move unassociated vertices
Repeate it with the other
vertex
55
Setting mesh parameters
Select: Mesh/ Part mesh
setup
56
Setting mesh parameters
- LMB on the maximum size, set it to 1 (the
maximum length of cell edges will be 1)
- Accept, Apply
57
Setting mesh parameters
Blocking/Premesh params
Recalculate sizes
Yes
Update all
Apply
58
The premesh
Enable premesh in the
display tree
59
Refine the mesh
Blocking/Premesh params
Edge parameters, Scroll
down
60
Refine the mesh
Enable copy parameters
To all parallel edges
Roll up
61
Refine the mesh
1) Select one of the marked Spacing: the length of the cell
edges faces at end of the edges
2) Spacing1, Spacing2=0.3 Ratio: the groving ratio of the face
3) Ratio1, Ratio2=1.5 length moving away from the end
4) Apply points
5) Right click on premesh in the 62
Refine the mesh
1) Select one of the marked
edges
2) Set the node number to 15
3) Apply
4) Right click on premesh in the
display tree: recompute
63
Reducing the cell size change
1) Select match edges
2) Reference:
3) Targets:
Select – LMB
Cancel – RMB
64
Reducing the cell size change
1) Select match edges
2) Reference:
3) Targets:
Select – LMB
Cancel – RMB
65
Reducing the cell size change
1) Recompute the premesh (RMB)
2) Now the cell size is the same at
meeting of the edges
66
Create FLUENT input file
1) Right click on the premesh in
the display tree
2) Convert to unstruct mesh
3) (Replace the old mesh if the
Icem asks)
4) Output mesh to Ansys FLUENT
5) Close the ICEM CFD
67
Physical model, Solution of the
problem
68
• For more detailed descriptions of FLUENT
settings check (from page 36):
[Link]
nch/workbench_1st_practice/orifice_1415_eng.
pdf ([Link] in hungarian)
• Or ask your instructor
• Or ask the lecturer
69
Starting FLUENT
1) Double click on Setup
70
Starting FLUENT
OK
71
Scaling the mesh
1) Mesh/Scale
72
Scaling the mesh
1) Mesh was created in: cm
2) Scale
3) Close
73
Turbulence Model
1) Double click on
Model/Viscous
74
Turbulence model
1) K-epsilon
2) standard
75
Boundary conditions
1) Boundary condtions
2) Select: velocity_inlet1
3) Type: velocity-inlet
4) Edit
76
Boundary conditions
1) Set the same
2) OK
77
Boundary conditions
Velocity_inlet2
78
Discretization Schemes
1) Solution methodes
2) Coupling: coupled
3) Gradient: G-G-Cell-Bsd
4) Everything is second
order
79
Turn off convergence criterion
1) Monitors
2) Double click: Residuals
80
Turn off convergence criterions
1) Covergence criterion: none
2) OK
81
Intialization
1) Solution intialization
2) Hybrid
3) Intialize
82
Calculation
1) Run Calculation
2) # of iterations: 200
3) Calculate
OK, when
finished
83
Drawing pathlines
1) Graphics and animation
2) Pathlines
84
Drawing pathlines
1) Color by: velocity
magnitude
2) From: velocity_inlet1,2
3) Display
85
Drawing pathlines
86
Contour plots: pressure
1) Graphics and animation
2) Contours
87
Contour plots: k
1) Graphics and animation
2) Contours
88
Contour plots: velocity
1) Graphics and animation
2) Contours
89
Velocity vectors
90
91