F.E.M Lab Manual: Submitted By:-Qazi Samie Saeed 10-ME-120 Section - C Group - C2
F.E.M Lab Manual: Submitted By:-Qazi Samie Saeed 10-ME-120 Section - C Group - C2
M LAB MANUAL
Submitted By:-
Qazi Samie Saeed
10-ME-120
Section - C
Group - C2
10-ME-120 F.E.M Qazi Samie Saeed
2
Introduction to Gambit
A single, integrated preprocessor for CFD analysis includes:
Initial setup (Solver selection, Mesh size, Defaults, etc).
Geometry Creation (ACIS, STEP, Para solid, IGES or Mesh import.
Meshing
Mesh examination
Zone assignment
Mesh export
Description of Software
GAMBIT, like similar programs such as ANSYS, constructs its geometry by references to a
hierarchy of geometric "Entities". Entities have to be set up in the order:
Vertices - Edges - Faces - Volumes
Vertices are points defined by three coordinates.
Edges (straight lines, circles, curves, etc.) are constructed by reference to Vertices.
Faces (flat and curved) are constructed from Edges.
Volumes are formed by stitching Faces together (but only Faces that share common
Edges).
Two-dimensional modeling only goes as far as a set of planar Faces.
You must start with good design sketch, showing in particular the Vertices (with their
coordinates) and the Edges. You also need to decide how you will split your model into
Volumes, because the best meshing schemes will need special attention to the Volume
structure.
There is some scope for 3D modeling by Boolean operations on "primitives" built in to
GAMBIT. But it may be better to design 3D problems in CAD (e.g. Solid Edge, Rhino) and
save as an IGES (name.igs) file. When imported into GAMBIT, it gives the Vertices, Edges and
Faces. However, some cleaning up of the IGES products may be needed before the Faces
can be stitched together to make Volumes. Sometimes IGES produces spurious Faces that
can be easily deleted. Sometimes you may have to grapple with "Virtual Entities". You will
probably have to add faces, in order to get your optimum Volume structure.
10-ME-120 F.E.M Qazi Samie Saeed
3
Gambit Operations
Start GAMBIT and In working directory, select the folder which you want to be your working
directory.
In session id, Name the file by your will e.g. Lab 1.
Then click on Run and specify the license file. After some time, Gambit screen will open.
Vertices:
First of all in the gambit software, the profile of the geometry is created by using the
vertices command.
Edges:
The different vertices are joined together by the use of edges command. Different types of
edges like circles and rectangles can be created. For that purpose just click on the yellow tab
and the select the vertices .Edges will be created.
Faces
By selecting different edges in the yellow box, Face is created. Edges must form the closed
surface and the creation of face is indicated by the blue colors of boundary.
Meshing
While a face can be directly meshed in gambit, specifying the node distribution on the edges
gives a better control on the grid distribution. This would be especially important when your
problem requires a finer mesh in some regions of the domain and not so fine in other
regions where there is not much action taking place. Now open up the edge meshing
panel. Right click on the interval size button and choose interval count option. This will
allow you to specify the number of nodes you want on the cylinder surface. Whereas the
interval size gives us the value of distances between two nodes. Now open the mesh faces
panel. Select the face of the domain. In the Elements option, right click on the Quad option
and choose Tri. The type will be set to pave by default.
10-ME-120 F.E.M Qazi Samie Saeed
4
PROBLEM 1
PROBLEM DESCRIPTION
The problem to be considered is schematically in fig. We consider flow across a cylinder and
look at the wake behind the cylinder.
Lab # 01
Creating the domain vertices
The following points are given to create the outside boundary (domain):
(0,0), (50,0), (50,20), (0,20)
10-ME-120 F.E.M Qazi Samie Saeed
5
Creating the edges:
Now by using the edge command, click on all the vertices of a rectangle to create the edges
of outer rectangular boundary.
10-ME-120 F.E.M Qazi Samie Saeed
6
Creating the hole:
The dimensions of vertices for the hole are:
(10,10), (10,10.5), (9.5,10)
Creating the edges of circle:
By using the circle command of edge, the resulting profile is created.
10-ME-120 F.E.M Qazi Samie Saeed
7
Creating the faces:
We have made two types of faces in our first lab. Firstly, we have made only one face that is
rectangular area. Then we made circle as our second face.
Subtracting the faces:
We subtracted the hole face from the rectangle face.
10-ME-120 F.E.M Qazi Samie Saeed
8
Meshing the parts
For that we must first select the edges. We also have to select the spacing. I have selected
the default value in our first try. After that we have meshed the faces by using mesh faces
command and selecting pave as type of mesh.
10-ME-120 F.E.M Qazi Samie Saeed
9
LAB # 02
Creating the domain vertices
The following points are given to create the outside boundary (domain):
(0,0), (50,0), (50,20), (0,20), (20,0), (20,10), (20,20), (0,10),(10,0), (10,20)
Creating the hole:
The dimensions of vertices for the hole are:
(10,10), (10,10.5), (10.5,10), (10,9.5), (9.5,10)
10-ME-120 F.E.M Qazi Samie Saeed
10
Creating the edges of rectangle and circle:
By using the line command, make rectangles and then by using arc command complete the
circle. It will complete the circle with four Arcs, which will help us In Meshing.
10-ME-120 F.E.M Qazi Samie Saeed
11
Creating the faces:
We have made five faces (wireframe) in our second lab as shown in the figure.
Meshing the parts
For that we must first select the edges. We also have to select the mesh size as well. I
have selected the default value. After that we have meshed the five faces by using
mesh faces command and selecting Map as type of mesh.
10-ME-120 F.E.M Qazi Samie Saeed
12