Step 1: Create Geometry in GAMBIT
In an external flow such as the flow past a cylinder, we have to define farfield boundaries and mesh the region between the cylinder geometry and the boundaries. Farfield boundaries should be placed well away from the cylinder so that they are not under the influence of the flow around cylinder.
Figure above shows the geometry of such mesh.
Strategy for Creating Geometry
There are different methods in creating geometry. The most fundamental approach in creating geometry is the bottom-up vertical hierarchy approach. We will start with first creating vertices, then connecting the vertices to form edges, and finally connect the edges to form faces. Note that in 3D problems, you'll have to form a "volume" from faces. So the hierarchy of geometric objects in GAMBIT is vertices -> edges -> faces -> volumes.
Create a Working Directory
Create a folder called cylinder in a convenient location. We'll use this as the working folder in which files created during the session will be stored.
Start GAMBIT
Create a new directory called cylinder and start GAMBIT from that directory by typing gambit -id cylinder at the command prompt.
Under Main Menu, select Solver > FLUENT 5/6 since the mesh to be created is to be used in FLUENT 6.0.
Create Vertices
First, create vertices with following coordinates:
Label |
x |
y |
z |
1 |
-10 |
0 |
0 |
2 |
-4 |
0 |
0 |
3 |
-1 |
0 |
0 |
4 |
0 |
10 |
0 |
5 |
0 |
4 |
0 |
6 |
0 |
1 |
0 |
7 |
0 |
-1 |
0 |
8 |
0 |
-4 |
0 |
9 |
0 |
-10 |
0 |
10 |
1 |
0 |
0 |
11 |
4 |
0 |
0 |
12 |
40 |
10 |
0 |
13 |
40 |
-10 |
0 |
To create a vertex, do the following:
Operation Toolpad > Geometry Command Button > Edge Command Button > Create Edge
Create the vertices by entering the coordinates under Global and the label under Label:
Click the FIT TO WINDOW button to scale the display so that you can see all the vertices. The resulting image should look like this:
Create Edges
Now we can create the edges using the vertices created. We have two type of edges: straight edge and curved edge.
Let's first start by creating straight edges by connecting following vertices:
4-12
12-13
13-9
9-8
8-7
6-5
5-4
Operation Toolpad > Geometry Command Button > Edge Command Button > Create Edge
Create the edge 4-12 by selecting the vertex 4 followed by vertex 12. Click Apply. GAMBIT will create the edge. You will see a message saying something like "Created edge: edge.1'' in the Transcript window.
After we create all the straight edges, start creating arc by connecting the following vertices:
4-1-9
5-2-8
5-11-8
6-3-7
6-10-7
Operation Toolpad > Geometry Command Button > Edge Command Button > Create Edge > Arc
Right click on the Create Edge to see more options. Select the Arc icon. (The default option is Straight)
The current geometry should look like this:
Split Edges
We would like to have more mesh elements at the downstream of the flow, to the right of the cylinder. To accomplish this, we would have to split some edges.
Split the edge according to the figure shown below:
First split the straight edges
Label |
x |
y |
z |
A |
2.8284 |
10 |
0 |
D |
2.8284 |
-10 |
0 |
E |
40 |
2.8284 |
0 |
F |
40 |
-2.8284 |
0 |
Operation Toolpad > Geometry Command Button > Edge Command Button > Split Edge
Then select the respective edges to split to for point A,D,E and F.
Then split the curved edges
Label |
r |
t |
z |
B |
4 |
45 |
0 |
C |
4 |
-45 |
0 |
Operation Toolpad > Geometry Command Button > Edge Command Button > Split Edge
Change the coordinate Type to Cylindrical and create vertex point B and C according to the table.
Connect the newly created vertices to form two new edges. The current geometry in Gambit should look like this:
Create Faces
We can now join all the edges to form faces.
Operation Toolpad > Geometry Command Button > Face Command Button > Form Face
This brings up the Create Face From Wireframe menu. Recall that we had selected vertices in order to create edges. Similarly, we will select edges in order to form a face.
There will be total of six faces.
(Click picture for larger image)
Create all the six faces by connecting appropriate edges.
We are now ready to mesh the geometry.
Go to Step 2: Mesh Geometry in GAMBIT