Professional Documents
Culture Documents
ghazlani m. ali
INTRODUCTION
Before going any further, i would like to inform the reader that I’m
far from being an experienced ICEM CFD user with some ten years of
experience. I have started not even three years ago, every time i had
problems with the software, i went online and asked for help on cfd-
online.com. A great community is there, which without them, probably
this book would have been absent.
The tutorials available in Ansys customer portal are the real deal.
Sometimes, you tend to follow the instruction without knowing what’s
happening. The purpose of this book is... let’s say to bring a sense to all
of what you are doing. To explain why we do this or that. I will also
include some interesting features not covered in the tutorials.
Many thanks go to the people in cfd-online, i have learned a lot with
you guys, gratitude.
Mistakes will be made throughout the book. English is my third lan-
guage, please bear with me...
iii
CONTENTS
ii geometry 4
2 geometry 5
2.1 Parts 5
2.2 Bodies 5
2.3 Curve and surfaces 6
iv
LIST OF FIGURES
v
Part I
A G U I D E T O T H E G R A P H I C A L I N T E R FA C E
The graphic interface in ICEM CFD is made so people do not get lost
when working in it, but yet if you are just starting in cfd, you WILL GET
LOST. here is what you need to understand: The steps by which we go
through are pretty simple:
1. One starts by creating, or importing and modifying its geometry.
This is why the geometry tab is first in the row. Everything there is
related to creating, deleting, and changing the points, the surfaces,
and the curves.
2. Next is the Mesh tab. This is where the parameters of the mesh
will be specified: size of element, what kind of meshing technique
one wants to use, each of the parameters can be applied in a global
scale, or for a particular part of your geometry, this why we find
"surface mesh" or "curve mesh" tab.
4. When your mesh is generated, you will have to improve its quality,
may be duplicate it, delete it, and many more editing. The edit
mesh is there for that. So you will play with that tab when you
have a generated mesh, and not before.
There are some very useful buttons there, you will get the chance to
use them all while discovering the software, or after reading this book...
2
1.2 useful buttons 3
Most of them deal with "how to efficiently select and entity". There are
many, i will only cite the most useful ones. The more we advance in
this book, i shall explain more. Let us take our cube, as we all know, the
cube has 6 faces (surfaces), 8 corners (points), and 12 edges (curves). The
toggle selection buttons make the job easier by letting you pick only the
entity you desire. Two more buttons you may want to use:
• All entities
• Only visible
all entities will even select the objects that are not displayed in your
screen, very useful if you wish to delete "everything".
only visible lets you buy some time if you wish to select all surfaces
that are displayed on your screen when you have ONLY those surfaces
shown. Again, if your points are displayed (checked in the tree menu)
and if you hit that button, surfaces AND point will be selected... just to
make sure you got it ;)
Part II
G E O M E T RY
2.1 parts
One of the coolest feature in ICEM CFD is to create a part. Parts can be
anything: curves, surfaces, bodies, points and even a mix of all of them
them.
The main reason why we create
part is to define boundary condi-
tion for the curves (in 2D) and
for the surfaces (in 3D). I’m not
sure if it is available in the tuto-
rials or the training materials but
here is one more useful feature to
use the create part which will give
you some more insights and un-
derstanding. Let’s say we have a
group of holes as shown in the pic-
ture below: While meshing this,
you boss expect from you to put Figure 2: Holes to be grouped
a minimum a 20 nodes in each
og the curves representing the holes. As you begin with ICEM, you
will probably select individual curves and assign them the 20 nodes.
Here is where the create part will be useful: select create part, toggle
on (only curves) and select all the curves that matter. Name that par
"group_curves". Now you have one part that includes all those curves
and if you go to Mesh Tab -> Mesh Curve -> Select Part -> "group_curves"
and Number of nodes-> "20" : it will assign 20 nodes for each curve there.
Now you are using ICEM CFD efficiently.
2.2 bodies
5
2.3 curve and surfaces 6
are met. They will not cross the surfaces. I now have a convenient way
to tell my solver FLUENT -for example- that everything outside of the
inner cube means air. Now, What if i want to study the temperature
profile inside of the box. I need to tell my solver that i have aluminum
inside of it. More over, i need to go back to Icem and create a body
inside the inner cube, and call it "Aluminum". the figure below shows
the resulting mesh composed of two bodies.
I hope you could get this interesting concept. Bodies can be used for
too many reasons, and it will be up to you to exploit this feature in
the future. Let’s move on to put into practice the use of the curve and
surface features.
the other boundaries as wall. This can be easily done by going through
the following steps below: By doing so, and after generating the mesh. I
will have two distinctive faces and i can move on to the solver to assign
whatever boundaries i want.
THE MESH
Before going any further, we have to make sure that we have a good ge-
ometry. Mesh generation will fail if holes, and open surfaces are presents.
The figure below shows what’s under the Mesh tab. One of the first thing
to do is starting by giving a global element seed size. By global it means
that everywhere in your geometry you will not get an element bigger
than what you have specified, for precaution. Always under the Mesh
tab, the flow of work goes from left to right. After you select you global
parameters, you move on to "customize" your mesh on individual enti-
ties.
• If you want to set a max size of 1 for a certain wall, and a max size
of 12 for another entity, you can do that under the part mesh setup.
• The Curve mesh setup let you add a specific node law distribution
to a curve. This is where you specify the number of nodes as seen
in chapter 2 section 1.
9
3.3 adding an interior wall 10
Our mesh was generated using the Octree mesh method. Personally, i of-
ten convert it to a delaunay mesh, the latter tends to generate less node,
and is more suitable for CFD simulations. In opposition to the Octree
Method, the Delaunay Method takes root from the surface, making it way
up to fill the hole geometry. That being said, if you want to generate a
delaunay mesh without passing through the Octree method, you need
to have your surfaces meshed.
To get the delaunay mesh, head to Compute Mesh under the Mesh Tab,
and select Quick (delaunay) instead of Robust Octree, click Compute.
3.5 never too late to change the boundaries 11
Now we have a beautiful mesh. But still we are not ready to export it.
In fact, we forgot to define the boundary condition. We usually name a
surface -part- as inlet, then we generate the mesh. The interesting fact to
understand here is that all the shells and the superimposed surface will
form one part, and that will be inlet. If i delete that part, the shell and
the surface will be deleted.
That being said, we show again that a part can be shell elements too,
deleting that part will result in deleting the surface and the shells. below
is a quick demo on how to define a group of shell as a boundary:
3. click on Select entity, things get interesting here, you need to know
that there is two kind of windows for selecting elements, shown
below, one is to let you select entities for geometry, and another
one for mesh elements, you can toggle between them using the
button framed in blue:
4. I’m introducing here a few more useful button to help you select
what you want. If you click on surface elements (framed in red), this
will select all the shell elements, they can be either quads or tri.
In our example, they are TRI since we used an unstructured mesh.
Similarly, the button next to it is for Volume elements. i will use
that button if i would like to delete my volume mesh and leave the
surface mesh so i can generate a Delaunay mesh for example. If
you know the part’s name, click on the button framed in pink, all
entities belonging the that part will be selected.
5. With the select mesh elements turned on, notice what happens if
you click on any tri elements, followed by all item attached to selected
element, up to angle, the entire boundary will be selected as shown
in figure 7. That’s it, we have now an INLET ready to be set in the
solver after the output is done.
3.6 the edit mesh tab 12
The quality is not great, the purpose of it is just to show you the ca-
pabilities of the Edit mesh tab. I will then mirror it twice to get the final
geometry. The steps are very easy, under the Edit mesh tab, click on Trans-
form mesh-> Mirror -> Select all. In our case, we want to get the a hole 360
geometry so we need to check copy1 .
Below again, a pattern was created using the copy and translate feature.
Very easy and time saving !
This is tough to explain. One way to get a structured mesh in icem CFD
is to block your geometry. It all start by one block initialized, then it is
split into multiple blocks, to finally adapt it to the geometry. For one
geometry, there can be multiple blocking strategy, it is the reason why it
is hard to cover it, and no matter how many geometries I show, you will
always end up with one different that the other, and it will require some
time to come up with a blocking strategy. Some thinks that it like a gene,
you either know how to block or you don’t. I personally don’t think so.
You need to know that there is no special recipe to master it, or there
is only one way: practise on geometries as much as you can. Cfd-online
is full of people seeking help, even if you can’t help, try. And see the
solution from those who helped. Another important point: when you
block your geometry you don’t actually create a mesh, it is more like a
scheme. To have a mesh, you need to right button click on blocking and
select convert to unstructured. Someone once asked this question in cfd-
online: why do I always have to convert my mesh to unstructured even if
it’s structured ? It seems confusing what icem calls a unstructured mesh
is every mesh you can edit using the edit tab and you can output. As I
said before, when you don’t convert your block , you don’t actually have
a mesh, you can’t extrude it or scale or do anything under the edit tab. I
hope I made myself clear, if not... Just keep doing it, one day you’all get
it ;) It is true that a structured mesh is more acurrate, I found the size
of its .msh file much smaller also. Because generating one requires time
and expertise I often start by an unstructured mesh, see how it behaves
during the simulations , if I get a lots of warnings when performing
iterations , I will try to make a structured mesh meanwhile waiting for
the results. Here are some rules that will help you get a good blocking:
• when you split a lot, avoid confusing by using the index control.
It may seems difficult to use the numbers to filter the blocks you
want at first sight, so instead, use the select corners option,
• you get a good quality when the vertices are aligned, there are
many ways to align the vertices, take some time to discover how.
It is not difficult at all.
14
4.2 blocks can be parts 15
• a blocking can look beautiful, but its quality can be very bad. That
is a problem from the inside.use scan plane after lest mouse click
on premesh to identify where does the problem come from.
I tried to gather all the icem cfd related videos on youtube. some of them
are mine, some from ansys, but the majority are from a channel called
turboengineer. The creator of the channel is a dedicated cfd engineer,
very well known among the cfd-online community. He goes by the name
of FAR in the forum. A special thank for all these link...
• Cylinder 2D to 3D
• Injector
• Cylinder
• 2D to 3D via rotation
3. under the Edit Tab, click on Merge nodes, then Merge meshes. The
final step will be to select a surface. That surface should contain
both the unstructured and the structured elements.
17
merging an unstructured mesh with a structured mesh 18
I usually call that surface "interface". And be careful with this tech-
nique, size matters here, your TRI and Quad should be of the same size
(Tri 1.3 bigger than Quad) otherwise the mesh quality will be bad. Since
i love to see things in action, let us apply this to our cube inside cube,
here are some screen shots:
http://goo.gl/9BkiO
Thank You
19