Escolar Documentos
Profissional Documentos
Cultura Documentos
Solve this problem using FLUENT. Plot the centerline velocity, wall skin-
friction coefficient, and velocity profile at the outlet. Validate your results.
Note: The values used for the inlet velocity and flow properties are
chosen for convenience rather than to reflect reality. The key parameter
value to focus on is the Reynolds no.
Preliminary Analysis
We expect the viscous boundary layer to grow along the pipe starting at
the inlet. It will eventually grow to fill the pipe completely (provided that
the pipe is long enough). When this happens, the flow becomes fully-
developed and there is no variation of the velocity profile in the axial
direction, x (see figure below). One can obtain a closed-form solution to
the governing equations in the fully-developed region. You should have
seen this in the Introduction to Fluid Mechanics course. We will
compare the numerical results in the fully-developed region with the
corresponding analytical results. So it's a good idea for you to go back
to your textbook in the Intro course and review the fully-developed flow
analysis. What are the values of centerline velocity and friction factor
you expect in the fully-developed region based on the analytical
solution? What is the solution for the velocity profile?
We'll create the geometry and mesh in ANSYS 12.1 which is the
preprocessor for FLUENT, and then read the mesh into FLUENT and
solve for the flow solution.
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
On the left hand side of the workbench window, you will see a toolbox
full of various analysis systems. To the right, you see an empty work
space. This is the place where you will organize your project. At the
bottom of the window, you see messages from ANSYS.
Step 2: Geometry
Since our problem involves fluid flow, we will select the FLUENT
component on the left panel.
Left click (and hold) on Fluid Flow (FLUENT), and drag the icon into
the empty space in the Project Schematic. Here's what you get:
Under Details View on the lower left corner, input the value for
dimension appropriately.
V1: 0.1 m
H2: 8 m
Now that we have the sketch done, we can create a surface for this
sketch.
Go to Step 3: Mesh
Step 3: Mesh
Meshing Method
Edge Sizing
Now let us move on to specify the element sizing along the pipe radial
direction.
Outline > Mesh > Insert > Sizing
In the Graphics window, select both the left and right edge of the
geometry (press Ctrl + mouse click to multiple select). Under Details
of "Edge Sizing", click Apply next to Geometry. Change the edge
sizing definition Type to Number of Divisions. Enter 5 for Number
of Divisions.
Radial Sizing
Next, we will name the edges accordingly so that we can specify the
appropriate boundary conditions in the later step. We know the bottom
edges of the geometry are the centerline of the pipe, the left edge is the
inlet of the pipe, the right edge is the outlet of the pipe, top side edges
are wall and the top middle edge is the heated wall section. Let's name
the edges according to the diagram below.
Select the left edge and right click and select Create Named
Selection. Enter Inlet and click OK. Under Outline, you will see the
nameInlet under Named Selections.
Finish naming rest of the edges. Finally, click Update
Step 4: Setup (Physics)
If you have skipped the previous mesh generation steps 1-3, you can
download the mesh by right-clicking here. Save the file as pipe.msh.
You can then proceed with the flow solution steps below.
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 mesh. 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.
First, we check the mesh to make sure that there are no errors.
Zoom In: Hold down the Middle Mouse Button and drag a box from
the Upper Left Hand Corner to the Lower Right Hand
Cornerover the area you want to zoom in on.
Zoom Out: Hold down the Middle Mouse Button and drag a box
anywhere from the Lower Right Hand Corner to the Upper Left
Hand Corner.
Use these operations to zoom in and interrogate our mesh.
You should have all the surfaces shown in the above snapshot.
Clicking on a surface name in the Mesh Display menu will toggle
between select and unselect. Clicking Display will show all the
currently selected surface entities in the graphics pane. Unselect all
surfaces and then select each one in turn to see which part of the
domain or boundary the particular surface entity corresponds to (you will
need to zoom in/out and translate the model as you do this). For
instance, the surface labeled inlet should correspond to the part of the
wall where the fluid enters.
Any errors in the mesh would be reported at this time. Check the output
and make sure that there are no errors reported. Check the mesh size:
Problem Setup > General > Display...
Zoom In: Hold down the Middle Mouse Button and drag a box from
the Upper Left Hand Corner to the Lower Right Hand
Cornerover the area you want to zoom in on.
Zoom Out: Hold down the Middle Mouse Button and drag a box
anywhere from the Lower Right Hand Corner to the Upper Left
Hand Corner.
Use these operations to zoom into the mesh to obtain the view shown
below.
Note: The zooming operations cannot be performed without a middle
mouse button.
If you open the Display menu again,you can also look at specific parts
of the mesh by choosing the boundaries you wish to view
underSurfaces(click to select and click again to deselect a specific
boundary). Click Display again when you have selected your
boundaries. For example, the wall, outlet,
and centerline boundaries have been selected in the following view:
By default, FLUENT will assume the flow is laminar. Let's tell it that our
flow is turbulent rather than laminar and that we want to use the k-
epsilon turbulence model to simulate our turbulent flow. This means
FLUENT will solve for mean (i.e. Reynolds-averaged) quantities at
every point in the domain. It will add the k and epsilon equations to the
governing equations to calculate the effect of the turbulent fluctuations
on the mean.
Models > Viscous - Laminar > Edit...
Under Model, select k-epsilon (2 eqn). Since we'll use the default
settings for the k-epsilon turbulence model, click OK.
This is what you should currently see under Models.
Now let's set the "material properties" i.e. properties of air that appear in
our boundary value problem.
Materials > Fluid air > Create/Edit...
Since variations in absolute pressure are small in our pipe, we'll use a
constant absolute pressure in the ideal gas law as discussed in the
powerpoint presentation. This is called the "Incompressible ideal gas"
model in FLUENT (it's non-standard nomenclature). Change
theDensity (kg/m3) from constant to incompressible-ideal-
gas. The constant absolute pressure to be used in the ideal gas
equation is specified later as Operating Pressure.
We'll use the default value of 1 atm (101,325 Pa) as the Operating
Pressure and click OK.
We note here that the four types of boundaries we defined are specified
as zones on the left side of the Boundary Conditions Window.
Setcenterline boundary Type to axis from the drop-down menu.
Notice that there is nothing to set for the axis. Click OK. FLUENT will
set the radial gradients of velocity to be zero at this boundary.
Move down the list and select inlet under Zone. Note that FLUENT
indicates that the Type of this boundary is velocity-inlet. This turns
out to be the right boundary type to use.
Lastly, click on wall under Zones and make sure Type is set as wall.
Click Edit...and observe that 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. FLUENT will impose no-slip at the wall
Step 5: Solution
Now we will be dealing with the Solution section of FLUENT. Let's first
look at the discretization method.
Let's use the default first order discretization method. Now let's us look
at the convergence criteria.
The default convergence criteria is set to 0.001. Let's click OK and use
this default value.
Step 6: Results
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.
You can reflect the plot about the axis to get an expanded sectional
view:
Under Mirror Planes, only the axis (or centerline) surface is listed
since that is the only symmetry boundary in the present case.
Selectaxis (or centerline)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
theVectors menu and then click Display in the Grid Display as well
as the Vectorsmenus. 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.
Centerline Velocity
We'll plot the variation of the axial velocity along the centerline.
Under Y Axis Function, pick Velocity... and then in the box under
that, pick Axial Velocity.
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
Rulesunder Options. Click Apply.
Go back to the Solution XY Plot menu and click Plot to plot the graph
again 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.
Saving the Plot
TIFF- this will offer a high resolution image of your graph. However, the
image file generated will be rather large, so this is not recommended if
you do not have a lot of room on your storage device.
JPG- this is small in size and viewable from all browsers. However, the
quality of the image is not particularly good.
After selecting your desired image format and associated options, click
on Save...
Verify that the image file has been created in your working directory.
You can now copy this file onto a disk or print it out for your records.
Coefficient of Skin Friction
Click on the link for Reference Values panel, which tells us how to
set the reference values used in calculating the skin coefficient.
Problem Setup > Reference Values or Main Menu > Report >
Reference Values...
Under the Y Axis Function, pick Wall Fluxes..., and then Skin
Friction Coefficient in the box under that.
We can see that the fully developed region is reached at around x=3.0m
and the skin friction coefficient in this region is around 1.54. Compare
the numerical value of 1.54 with the theoretical, fully-developed value of
0.16.
Save the data from this plot: Pick Write to File under Options and
click Write.... Enter cf.xy for XY File and click OK.
Velocity Profile
We'll next plot the velocity at the outlet as a function of the distance from
the center of the pipe. To do this, we have to set the y axis of the graph
to be the y axis of the pipe (the radial direction).
Uncheck the Write to File check box under Options so that we can
see the graph. Click Plot.
Does this compare well with the theoretical parabolic profile?
Save the data from this plot: Pick Write to File under Options and
click Write.... Enter profile.xy for XY File and click OK.
To see how the velocity profile changes in the developing region, let us
add the profiles at x=0.6m (x/D=3) and x=0.12m (x/D=6) to the above
plot. First, create a line at x=0.6m using the Line/Raketool:
Now we can plot the velocity profiles at x=0.6m (x/D=3) and x=0.12m
(x/D=6) along with the outlet profile. In the Solution XY plot menu, use
the same settings as above. Under Surfaces, in addition to outlet,
select line1 and line2. Make sure Node Values is selected under
Options. Click Plot. Your symbols might be different from the ones
below. You can change the symbols and line styles under
the Curves...button. Click on Help in the Curves menu if you have
problems figuring out how to change these settings.
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 under predicts the development length.
It is very important that you take the time to check the validity of your
solution. This section leads you through some of the steps you can take
to validate your solution.
Refine Mesh
Let's repeat the solution on a finer mesh with more smaller element
size.Repeat the mesh steps, but this time use edge sizing of 50 and
0.02. In the workbench, under Force Convection project, right click
on Fluid Flow (FLUENT) and click duplicate. Rename the duplicate
project toForce Convection Refined Mesh. You should have two
projects cell in workbench.
Centerline Temperature
Wall Temperature
Higher Resolution Image
What can you say about mesh refinement after comparing the results?