Beruflich Dokumente
Kultur Dokumente
If you would prefer to skip the mesh generation steps, you can create a working
directory (see below), download the mesh from here (right click and save as pipe.msh)
into the working directory and go straight to step 4.
Strategy for Creating Geometry
In order to create the rectangle, we will first create the vertices at the four corners. We'll
then join adjacent vertices by straight lines to form the "edges" of the rectangle. Lastly,
we'll create a "face" corresponding to the area enclosed by the edges. In Step 2, we'll
mesh the face i.e. the rectangle. 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 pipe in a convenient location. We'll use this as the working folder
in which files created during the session will be stored.
Note for ACCEL computer lab users: Each user gets his/her own 100 MB of disk
space under S: at ACCEL. You can put your files in S: and it'll be accessible from any
computer. This is where you should put files that you want to keep and access later on.
Start GAMBIT
Start your command prompt.
Start > Programs > Lab Apps > Fluent Inc Products > Gambit 2.3.16 > Gambit 2.3.16
This brings up the GAMBIT startup window. Click Browse and select the folder that
you just created. Enter -id pipe in the options box to tell GAMBIT to use pipe as the
default file prefix, then click Run.
In Windows, the Exceed X-server starts up before the GAMBIT interface comes up.
Exceed is a third-party application needed to render the interface in Windows
(GAMBIT was originally developed under Unix). To make best use of screen real
estate, move the windows and resize them so that you approximate this screen
arrangement. This way you can read instructions in the browser window and implement
them in GAMBIT.
You can resize the text in the browser window to your taste and comfort:
In Internet Explorer: Menubar > View > Text Size, then choose the appropriate font
size.
In Netscape: Menubar > View > Increase Font or Menubar > View > Decrease Font.
The GAMBIT Interface consists of the following:
Note that the job name pipe appears after ID: in the title bar of the Utility Menu.
Operation Toolpad:
We'll more or less work our way across the Operation Toolpad as we go through
the solution steps. Notice that as each of the top buttons is selected, a different
"sub-pad" appears. The Geometry sub-pad is shown in the above snaphot.
and Undo
that are very handy during the course of geometry and mesh creation.
GAMBIT Graphics:
This is the window where the graphical results of operations are displayed.
GAMBIT Description Panel:
The Description Panel contains descriptions of buttons or objects that the mouse
is pointing to. Move your mouse over some buttons and notice the
corresponding text in the Description Panel.
This is the window to which output from GAMBIT commands is written and
which provides feedback on the actions taken by GAMBIT as you perform
operations. If, at some point, you are not sure you clicked the right button or
entered a value correctly, this is where to look to figure out what you just did.
You can click on the arrow button in the upper right hand corner to make the
Transcript window full-sized. You can click on the arrow again to return the
window to its original size. Go ahead, give this a try.
Select Solver
If the window titlebar does not say the solver is FLUENT 5/6, then you need to specify:
Main Menu > Solver > FLUENT 5/6
Verify this has been done by looking in the Transcript Window where you should see:
The boundary types that you'll be able to select in the third step depends on the solver
selected.
We can assume that the flow is axisymmetric. The problem domain is:
We will first create four vertices at the four corners and join adjacent vertices to get the
edges of the rectangle. We will then form a face that covers the area of the rectangle.
Create Vertices
Find the buttons described below by pointing the mouse at each of the buttons and
reading the Description Window.
Operation Toolpad > Geometry Command Button
>
Create Vertex
Notice that the Create Vertex button has already been selected by default. After you
select a button under a sub-pad, it becomes the default when you go to a different subpad and then come back to the sub-pad.
Create the vertex at the lower-left corner of the rectangle:
Next to x:, enter value 0. Next to y:, enter value 0. Next to z:, enter value 0 (these values
should be defaults). Click Apply. This creates the vertex (0,0,0) which is displayed in
the graphics window.
In the Transcript window, GAMBIT reports that it "Created vertex: vertex.1". The
vertices are numbered vertex.1, vertex.2 etc. in the order in which they are created.
Repeat this process to create three more vertices:
Vertex 2: (0,0.1,0)
Vertex 3: (8,0.1,0)
Vertex 4: (8,0,0)
Note that for a 2D problem, the z-coordinate can always be left to the default value of 0.
This fits the four vertices of the rectangle we have created to the size of the Graphics
Window.
>
Create Edge
Select two vertices that make up an edge of this rectangle by holding down the Shift
button and clicking on the corresponding vertices. As each vertex is picked, it will
appear red in the Graphics Window. Then let go of the Shift button. We can check the
selected vertices by clicking on the up-arrow next to Vertices:.
This will bring up a window containing the vertices that have been selected. Vertices
can be moved from the Available and Picked lists by selecting them and then pressing
the left or right arrow buttons.
After the correct vertices have been selected, click Close, then click Apply in the Create
Straight Edge window.
Repeat this process to create a rectangle.
>
Form Face
To form a face out of the area enclosed by the four lines, we need to select the four
ledges that enclose this area. This can be done by holding down the Shift key, clicking
on each line (notice that the currently selected line appears red), and then releasing the
Shift key after all four lines have been selected.
Alternatively, an easier way to do this would be to click on the up arrow next to edges:
This will bring up the Edge List window. Click on All-> to select all of the edges at
once. Click Close.
> Mesh
Shift-click or bring up the Edge List window and select both the vertical lines. If this is
difficult, one can zoom in on an edge by holding down the Ctrl button, clicking and
dragging the mouse to specify an area to zoom in on, and releasing the Ctrl button. To
return to the main view, click on the Global Control Toolpad > Fit to Window Button
again. You can also hold down Ctrl and double-click in the window to zoom out to a
fitting window. To pan the view, hold down the middle mouse button and drag the
mouse.
Once a vertical edge has been selected, select Interval Count from the drop down box
that says Interval Size in the Mesh Edges Window. Then, in the box to the left of this
combo box, enter 5 for the interval count.
Click Apply. Nodes appear on the edges showing that they are divided into 5.
> Mesh
Shift left-click on the face or use the up arrow next to Faces to select the face. Click
Apply.
Command Button
This will bring up the Specify Boundary Types window on the Operation Panel. We
will first specify that the left edge is the inlet. Under Entity:, pick Edges so that
GAMBIT knows we want to pick an edge (face is default).
Now select the left edge by Shift-clicking on it. The selected edge should appear in the
yellow box next to the Edges box you just worked with as well as the Label/Type list
right under the Edges box.
Next to Name:, enter inlet.
For Type:, select VELOCITY_INLET. (Note: Sometimes all the items in a dropdown
menu will not be visible. If you cannot find the VELOCITY_INLET option in the Type
menu, try maximizing the window. If it is still not visible, try auto-hiding your taskbar.
Right-click on the taskbar and go to properties.)
Click Apply. You should see the new entry appear under Name/Type box near the top
of the window.
Repeat this process for the other three edges according to the following table:
Edge
Position
Name
Type
Left
inlet
VELOCITY_INLET
Right
outlet
PRESSURE_OUTLET
Top
wall
WALL
Bottom centerline
AXIS
You should have the following edges in the Name/Type list when finished:
only the precision but also the range of magnitudes that can be represented. The
downside of using double precision is that it requires more memory.
Import Grid
Main Menu > File > Read > Case...
Navigate to the working directory and select the pipe.msh file. This is the mesh file that
was created using the preprocessor GAMBIT in the previous step. FLUENT reports the
mesh statistics as it reads in the mesh:
Check the number of nodes, faces (of different types) and cells. There are 500
quadrilateral cells in this case. This is what we expect since we used 5 divisions in the
radial direction and 100 divisions in the axial direction while generating the grid. So the
total number of cells is 5*100 = 500.
Also, take a look under zones. We can see the four zones inlet, outlet, wall, and
centerline that we defined in GAMBIT.
Check and Display Grid
First, we check the grid to make sure that there are no errors.
Main Menu > Grid > Check
Any errors in the grid would be reported at this time. Check the output and make sure
that there are no errors reported. Check the grid size:
Main Menu > Grid > Info > Size
Click on Set.... Enter 1 for Velocity Magnitude. Click OK. This sets the velocity of the
fluid entering at the left boundary.
The (absolute) pressure at the outlet is 1 atm. Since the operating pressure is set to 1
atm, the outlet gauge pressure = outlet absolute pressure - operating pressure = 0.
Choose outlet under Zone. The Type of this boundary is pressure-outlet. Click on Set....
The default value of the Gauge Pressure is 0. Click Cancel to leave the default in place.
Lastly, click on wall under Zones and make sure Type is set as wall. Click on each of
the tabs and note that only momentum can be changed under the current conditions.
This will not be so under later exercises so make a note of the location of these options.
Click OK.
Click Close to close the Boundary Conditions menu.
Step 5: Solve!
We'll use a second-order discretization scheme.
Main Menu > Solve > Controls > Solution...
Change Momentum to Second Order Upwind.
Click OK.
Set Initial Guess
Initialize the flow field to the values at the inlet:
Main Menu > Solve > Initialize > Initialize...
In the Solution Initialization menu that comes up, choose inlet under Compute From.
The Axial Velocity for all cells will be set to 1 m/s, the Radial Velocity to 0 m/s and the
Gauge Pressure to 0 Pa. These values have been taken from the inlet boundary
condition.
Click OK.
This completes the problem specification. Save your work:
Main Menu > File > Write > Case...
Type in pipe.cas for Case File. Click OK. Check that the file has been created in your
working directory. If you exit FLUENT now, you can retrieve all your work at any time
by reading in this case file.
Iterate Until Convergence
Start the calculation by running 100 iterations:
Main Menu > Solve > Iterate...
In the Iterate Window that comes up, change the Number of Iterations to 100. Click
Iterate.
The residuals for each iteration is printed out as well as plotted in the graphics window
as they are calculated.
Please note that X Axis Function and Y Axis Function describe the x and y axes of the
graph, which should not be confused with the x and y directions of the pipe.
Finally, select centerline under Surfaces since we are plotting the axial velocity along
the centerline. This finishes setting up the plotting parameters.
Click Plot.
This brings up a plot of the axial velocity as a function of the distance along the
centerline of the pipe.
Change the axes extents: In the Solution XY Plot window, click on Axes.... Under
Options, deselect Auto Range. The boxes under Range should now be activated. Select
X under Axis. Enter 1 for Minimum and 3 for Maximum under Range.
We'll turn on the grid lines to help estimate where the flow becomes fully developed.
Check the boxes next to Major Rules and Minor Rules under Options. Click Apply.
Now, pick Y under Axis and once again deselect Auto Range under Options, then enter
1.8 for Minimum and 2.0 for Maximum under Range. Also select Major Rules and
Minor Rules to turn on the grid lines in the Y direction. We have now finished
specifying the range for each axes, so click Apply and then Close.
Go back to the Solution XY Plot menu and click Plot to replot the graph with the new
axes extents. We can see that the fully-developed region starts at around x=3m and the
centerline velocity in this region is 1.93 m/s.
find what you are looking for). We can see an excerpt on the skin coefficient as well as
the equation for calculating it.
Click on the link for Reference Values panel, which tells us how to set the reference
values used in calculating the skin coefficient.
Go back to the Solution XY Plot menu. Uncheck Write to File under Options since we
want to plot to the window right now. We can leave the other Options and Plot
Direction as is since we are still plotting against the x distance along the pipe.
Under the Y Axis Function, pick Wall Fluxes..., and then Skin Friction Coefficient in
the box under that.
Under Surfaces, select wall and unselect centerline by clicking on them.
Reset axes ranges: Go to Axes... and re-select Auto-Range for the Y axis. Click Apply.
Set the range of the X axis from 1 to 8 by selecting X under Axis, entering 1 under
Minimum, and 8 under Maximum in the Range box (remember to de-select Auto-Range
first if it is checked).
Click Apply, Close, and then Plot in the Solution XY Plot Window.
The profile three diameters downstream is fairly close to the fully-developed profile at
the outlet. If you redo this plot using the fine grid results in the next step, you'll see that
this is not actually the case. The coarse grid used here doesn't capture the boundary
layer development properly and underpredicts the development length.
In FLUENT, you can choose to display the computed cell-center values or values that
have been interpolated to the nodes. By default, the Node Values option is turned on,
and the interpolated values are displayed. Node-averaged data curves may be somewhat
smoother than curves for cell values.
Velocity Vectors
One can plot vectors in the entire domain, or on selected surfaces. Let us plot the
velocity vectors for the entire domain to see how the flow develops downstream of the
inlet.
Main Menu > Display > Vectors... > Display
Zoom into the region near the inlet. (Click here to review the zoom functionality
discussion in step 4.) The length and color of the arrows represent the velocity
magnitude. The vector display is more intelligible if one makes the arrows shorter as
follows: Change Scale to 0.4 in the Vectors menu and click Display.
You can reflect the plot about the axis to get an expanded sectional view:
Main Menu > Display > Views...
Under Mirror Planes, only the axis surface is listed since that is the only symmetry
boundary in the present case. Select axis and click Apply. Close the Views window.
The velocity vectors provide a picture of how the flow develops downstream of the
inlet. As the boundary layer grows, the flow near the wall is retarded by viscous
friction. Note the sloping arrows in the near wall region close to the inlet. This indicates
that the slowing of the flow in the near-wall region results in an injection of fluid into
the region away from the wall to satisfy mass conservation. Thus, the velocity outside
the boundary layer increases.
By default, one vector is drawn at the center of each cell. This can be seen by turning on
the grid in the vector plot: Select Draw Grid in the Vectors menu and then click Display
in the Grid Display as well as the Vectors menus. Velocity vectors are the default, but
you can also plot other vector quantities. See section 27.1.3 of the user manual for more
details about the vector plot functionality.
We will delete the face mesh, modify the edge meshes for the vertical edges and remesh
the face. To delete the original face mesh, choose
Operation Toolpad > Mesh Command Button > Face Command Button > Delete Face
Meshes
In the Delete Face Meshes Window that comes up, uncheck the Remove unused lower
mesh box. This tells GAMBIT to remove the face mesh only and keep the edge meshes
associated with the face mesh. Since we will be changing the mesh on only two edges
of the rectangle, there is no need to redo the meshes for all four edges.
Select the only face of the rectangle by shift-clicking on it and then click Apply.
Remember that you can zoom in by holding down Ctrl, dragging a box across the area
you want to zoom in on, and then releasing Ctrl. Do this now and make sure that the
vertical edges have 10 divisions.
Outlet Velocity: