Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Panel

Author: Rajesh Bhaskaran & Yong Sheng Khoo, Cornell University

Problem Specification
1. Create Geometry in GAMBIT
2. Mesh Geometry in GAMBIT
3. Specify Boundary Types in GAMBIT
4. Set Up Problem in FLUENT
5. Solve!
6. Analyze Results
7. Refine Mesh
Problem 1
Problem 2

Info
titleVideo Tutorials Available

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

Step 1: Create Geometry in GAMBIT

Info
title

If you would prefer to skip the mesh generation steps, you can  download the mesh from here and go straight to step 4. 


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 such that the boundary conditions will not affect the flow near cylinder.


Figure above shows the geometry of such a case.

Strategy for Creating Geometry

To model this flow, we need a cylinder and farfield boundaries. We need finer meshes around the cylinder to capture the active region (call this radius of influence). Downstream of the flow, there will be wake generated by the cylinder, which requires finer mesh to better capture this phenomena. To be able to specify such regions, we split the model domain into different faces as shown below.

...

We set the geometry upstream to be shorter because we have less activity before flow through cylinder. We set the geometry downstream of the cylinder to be relatively longer because we want to make sure such that the downstream farfield boundary is conditions will not affected by the wake generatedaffect the flow near cylinder.

Create a Working Directory

...

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 the cylinder using two arcs. The cylinder is created with two arc because they are going to be meshed differently. First Back arc span spans from -90 to 90 deg. Second Front arc span spans from 90 to -90 deg. Both arc with radius 1.

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

Image Added
 
Next to Radius, enter 1. Next to Start Angle, enter -90. Next to End Angle, enter 90. Click Apply.  Do the same for front arc but enter different value for angles.

Warning
titleAlways make arc in counterclock wise direction




(Click here for animated steps)

Info
titleRight mouse click on Create Edge icon to see more options.

Create Front Outer Boundary

...

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

Image Added
 
 Select Select the front cylinder edge. Make sure that the Copy is checked. Under Operation, select Scale. Next to Factor, enter a value of 10. This means that the radius of influence we create will be 10 times the size of the cylinder. Click Apply.

(Click here for animated steps)

Info
titleDo you know you can also press "Ctrl" + double left click to fit graphic in windows?

...

Create the vertices by entering the coordinates under Global.

Click the FIT TO WINDOW button to scale the display so that you can see all the vertices.

...

Info
title"shift" + left click and drag to select

 You should see the following figure after you finish this step.
 
 Following Following animated steps show another method in creating vertices.






...

Tip
titleDo You Know?

Do you know that by clicking and holding right mouse click and move up and down, you can zoom in and out in the graphic window?
Do you know that by clicking middle mouse button, you can move object in graphic window?

...

Create Radius of Influence

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

Operation Toolpad > Geometry Command Button Image Removed > Edge Command Button Image Removed > Move/Copy Edges Image Removed
Select the cylinder edges. Make sure that the Copy is checked. Under Operation, select Scale. Next to Factor, enter a value of 4. This means that the radius of influence we create will be 4 times the size of the cylinder.

The current geometry should look like this:

Image Removed
 

editor NOTE (duplicate vertices created...)

Create Farfield Boundaries

Create Upstream Boundary

Create arc  of radius 4 from -45 to 45 deg. Then create another arc from 45 to 45 degWe will first create the semi-circle upstream boundary

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

Input the following data and click Apply.

Radius

10

Start Angle

90

End Angle

-90

Create Downstream Boundaries

In creating downstream boundaries, we will use bottom up approach where we first create vertices and join the vertices to form edges.

Create vertices with following coordinates:

Label

x

y

z

1

40

10

0

2

40

-10

0

Finally split the edge at 90 and -90 deg. 

Operation Toolpad > Geometry Command Button Image Modified > Vertex Command Button Image Removed > Create Vertex Image Removed

Create the vertices by entering the coordinates under Global.

Click the FIT TO WINDOW button to scale the display so that you can see all the vertices.

Connect AB, BC and CD to form three edges.

Operation Toolpad > Geometry Command Button Image Removed > Edge Command Button > Create Split Edge Image Removed 

...

title"shift" + left click and drag to select

Image Added

Remember to change the coordinate Type to Cylindrical.

Split Edge at Outer Boundary

For regular mesh, each edge has its opposite edge. Because of this, we can use projection method on the outer boundary to create the edge associated with the Radius of Influence edges. 

You should see have this geometry up till this step.

Image Removed
 

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:

Image Removed
First split the straight edges

Label

x

y

z

E

2.83

10

0

H

2.83

-10

0

I

40

2.83

0

J

40

-2.83

0

Select appropriate edge one by one. For example, to create vertex H, we have to split the bottom edge.

Operation Toolpad > Geometry Command Button Image Modified > Edge Vertex Command Button Image Removed > Split Edge Image Removed

And then select the bottom edge. Enter the coordinate value for vertex H. Do this for the rest of vertices.

Now, we will split the curved edges

Label

r

t

z

F

4

45

0

G

4

-45

0

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

Change the coordinate Type to Cylindrical and create vertex point F and G.

Image Added > Project Button Image Added 

Select the vertex and associated edge. Make sure to select Split edge. At the end of this, you should have 4 new vertices.

Image Added

(Animated steps)
 

Connect all Vertices

Finally, connect all the remaining vertices KL, LM, NO, OP, FI and GJ.

The newly created vertices to form two new edges. The current geometry in Gambit should look like this:

...

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.

...


Create all the six faces by connecting appropriate edges.

Image Added

Animated steps

We are now ready to mesh the geometry.

Go to Step 2: Mesh Geometry in GAMBIT

See and rate the complete Learning Module

...