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.
(Add Figure)
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 EdgeCreate 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:
(Click picture for larger image)
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
> Vertex Command Button > Create VertexCreate the edge 4-12 by selecting the vertex 1 followed by vertex 2. 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 EdgeRight 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:
FIGURE
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:
(FIGURE)
Operation Toolpad > Geometry Command Button
Connect the newly created vertices to form two new edges