You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 44 Next »

Video Tutorials Available

If you are having trouble following written tutorial, detailed video tutorials are available here

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 case.

Strategy for Creating Geometry

We know that we need a cylinder and farfield boundaries. We also know that there will be active regions around cylinder (call this radius of influence). Therefore we would want the area around cylinder to be of finer mesh. We also know there will be wake downstream of the flow after cylinder. Therefore we also want finer mesh around that region. Figure below shows the number of faces required to make such mesh.

 

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 Cylinder and Radius of Influence

Let's first create the cylinder and the radius of influence.  Create the cylinder using arc

Operation Toolpad > Geometry Command Button > Edge Command Button > Create Edge > Arc >

Input the following data and click apply.

Radius

1

Start Angle

90

End Angle

450

After that, create a vertex at the bottom part of the cylinder by using split function.

Operation Toolpad > Geometry Command Button > Edge Command Button > Split Edge

Select the cylinder edge. Then change the coordinate Type to Cylindrical and create a vertex by entering the angle, t as -90.

Now we can proceed to create the geometry for radius of influence. Since both the cylinder and radius of influence is a cylinder. We can create the radius of influence by copying the cylinder.

Operation Toolpad > Geometry Command Button > Edge Command Button > Move/Copy Edges



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

Create the edges using the vertices created. For our model, 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.

Press "shift" + left mouse click and drag to select

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.

After that, 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.

Finally, 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

See and rate the complete Learning Module

Go to all FLUENT Learning Modules

  • No labels