Académique Documents
Professionnel Documents
Culture Documents
1
Laminar Pipe Flow
Problem Specification
Consider fluid flowing through a circular pipe of contant cross-section. The pipe diameter D=0.2 m
and length L=8 m. The inlet velocity Vin=1 m/s. Consider the velocity to be constant over the inlet
cross-section. The fluid exhausts into the ambient atmosphere which is at a pressure of 1 atm. Take
density =1 kg/ m3 and coefficient of viscosity = 2 x 10-3 kg/(ms). The Reynolds number Re based
on the pipe diameter is
where Vavg is the average velocity at the inlet, which is 1m/s in this case.
Solve this problem using FLUENT. Plot the centerline velocity, wall skin-friction coefficient, and
velocity profile at the outlet. Validate your results.
2
Step 1: Create Geometry in GAMBIT
Select Solver
We can assume that the flow is axisymmetric. The problem domain is:
3
Strategy for creating geometry
Create Vertices
4
This fits the four vertices of the rectangle we
have created to the size of the Graphics
Window.
Create Edges
5
Display line 1
6
Create Face
7
Step 2: Mesh Geometry in GAMBIT
We'll now create a mesh on the rectangular face with 100 divisions in the
axial direction and 5 divisions in the radial direction. We'll first mesh the
four edges and then the face. The desired grid spacing is specified through
the edge mesh.
Mesh Edges
8
Mesh Face
Zoom
9
Step 3: Specify Boundary Types in GAMBIT
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.
10
Next to Name:, enter inlet.
For Type:, select VELOCITY_INLET.
Click Apply. You should see the new entry
appear under Name/Type box near the top
of the window.
11
Save and Export
12
Step 4: Set Up Problem in FLUENT
Import Grid
Main Menu > File > Read > Case... laminar pipe 5 x 100.msh
13
Check and Display Grid
First, we check the grid to make sure that there are no errors.
14
Display the grid:
15
Define Solver Properties
Main Menu > Define > Models > Solver
16
Main Menu > Define > Models > Energy
Click Change/Create.
17
Define Operating Conditions
For all flows, FLUENT uses gauge pressure internally. Any time an
absolute pressure is needed, it is generated by adding the operating
pressure to the gauge pressure. We'll use the default value of 1 atm
(101,325 Pa) as the Operating Pressure.
18
Define Boundary Conditions
We'll now set the value of the velocity at the inlet and pressure at the outlet.
Main Menu > Define > Boundary Conditions...
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.
19
Step 5: Solve!
20
Set Initial Guess
Initialize the flow field to the values at the inlet:
21
Set Convergence Criteria
FLUENT reports a residual for each governing equation being solved.
The residual is a measure of how well the current solution satisfies the
discrete form of each governing equation. We'll iterate the solution until
the residual for each equation falls below 1e-3.
Main Menu > Solve > Monitors > Residual...
22
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.
The residuals fall below the specified
convergence criterion of 1e-3 in 24
iterations.
23
Step 6: Analyze Results
Centerline Velocity
Main Menu > Plot > XY Plot...
Make sure that Position on X Axis is set under Options, and X is set to 1
and Y to 0 under Plot Direction. This tells FLUENT to plot the x-
coordinate value on the abscissa of the graph.
Under Y Axis Function, pick Velocity... and then in the box under that,
pick Axial Velocity.
Click Plot.
24
This brings up a plot of the axial velocity as a function of the distance
along the centerline of the pipe.
In the graph that comes up, we
can see that the velocity reaches
a constant value beyond a certain
distance from the inlet. This is the
fully-developed flow region.
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.
Change the axes extents: In the
Solution XY Plot menu, 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.
25
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.
26
Saving the Plot
Save the data from this plot:
In the Solution XY Plot Window, check the Write to File box under Options.
The Plot button should have changed to Write.... Click on Write.... Enter
Axial Velocity 5 x 100.xy as the XY File Name and click OK.
27
Name for previous data Axial Velocity 5 x 100
28
Coefficient of Skin Friction
Main Menu > Report > Reference Values...
29
Under the Y Axis Function, pick Wall Click Apply, Close, and then Plot
Fluxes..., and then Skin Friction in the Solution XY Plot Window.
Coefficient in the box under that.
Under Surfaces, select wall and
unselect centerline by clicking on them.
30
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 skin friction coefficient 5 x 100.xy for XY File and click OK.
31
Velocity Profile
To plot the position variable on the y axis of the graph, uncheck Position on X
Axis under Options and choose Position on Y Axis instead. To make the
position variable the radial distance from the centerline, under Plot Direction,
change X to 0 and Y to 1. To plot the axial velocity on the x axis of the graph,
for X Axis Function, pick Velocity... and Axial Velocity under that.
Since we want to plot this at the outlet boundary, pick outlet under Surfaces.
Change both the x and y axes to Auto-Range.
Uncheck Write to File under Options so that we can see the graph. Click Plot.
32
Does this look like a parabolic profile?
Save the data from this plot: Pick Write to File under Options and
click Write.... Enter profile velocity 5 x 100.xy for XY File and click
OK.
33
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/Rake tool:
Main Menu > Surface > Line/Rake
We'll create a straight line from (x0,y0)=(0.6,0) to (x1,y1)=(0.6,0.1).
Select Line Tool under Options. Enter x0=0.6, y0=0, x1=0.6, y1=0.1.
Enter line1 under New Surface Name. Click Create.
To see the line just created, select
Main Menu > Display > Grid...
Velocity Vectors
Main Menu > Display > Vectors... > Display
Change Scale to 0.4 in the Vectors menu and click Display.
35
Main Menu > Display > Views...
36
Result display vector velocity
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59