Pipe Flow Tutorial 2018
Pipe Flow Tutorial 2018
Pipe Flow Tutorial 2018
1 Overview
This tutorial provides a recipe for simu-
lating laminar flow in a pipe with STAR- L
involved than the two simple boundary condition treatments discusses in this tutorial.
2 START A NEW SIMULATION 2
Let the tube have a diameter of 3 cm. The density and viscosity of air at
15 ◦C are
kg N·s kg
ρ = 1.23 , µ = 1.79 × 10−5 = 1.79 × 10−5
m3 m2 m·s
For laminar flow, choose ReD = 500
kg
ρV D µ 1.79 × 10−5 m·s m
ReD = =⇒ V = ReD = 500 = 0.24
µ ρD kg
1.23 m3 (0.03 m) s
. Properties Output
3.1 Open the CAD tool and set the grid scale
1. Right click on the plus sign (+) next to the Geometry node in the Simulation
Tree.
2. Right click on the 3D-CAD Models node and select New from the pop-up
menu. The Simulation Tree pane is replaced by a CAD Tree pane.
4. Before drawing any features, set the grid scale for the CAD tool. Click on
the icon in the lower right corner of the Display Options panel.
Note that all physical quantities are specified with dimensions. Thus, the input
to the grid spacing dialog box could be 0.005 m, 0.5 cm, or 5 mm. Only SI and
metric units are accepted. If the units are not specified, the value is assumed
to be in the m-kg-s system.
2. Left-click at the origin of the XY plane and then right-click and drag to
enlarge the circle until its radius is 0.015 m. Hint: dragging mouse pointer
along a grid line takes advantage of the snap-to-grid feature, making it easy
to specify the radius.
3. Click OK in the lower left corner of the CAD panel. Don’t skip this step!
The result is a new entity, Sketch 1, in the CAD tree.
4. Right-click on Sketch 1 node in the CAD tree, and select Create Extrude
from the pop-up menu. A dialog box appears as shown in the left half of
Figure 2.
3 BUILD THE GEOMETRY OF THE MODEL 6
5. Enter 0.45m for the Distance parameter, and click the OK button in the
bottom left corner of the CAD pane.
Figure 2: Dialog box for setting the extrusion distance (left). Extruded cylinder
(right).
Note: The steps to label the surface geometry require that you are
in working in the 3D-CAD mode of STAR-CCM+. If you are in the
Simulation mode, you will see the Simulation Tree for the model as
in the screen shot below right. Select the 3D-CAD mode by clicking
the 3D-CAD button as shown in the screen shot below left.
Figure 3: Toggling between the 3D CAD mode and the Simulation mode.
2. Expand the Geometry Scene node and select the Parts corresponding to
the CAD model you just created.
4 CREATE A REGION THAT CONTAINS THE PIPE OBJECT 8
• Physics Continuum
4 CREATE A REGION THAT CONTAINS THE PIPE OBJECT 9
Figure 4: Assigning the inlet surface patch to the inlet boundary of the fluid region
4. Click on the [...] button in the Part Surfaces item in the Properties Pane.
5. Expand the nodes and click on the inlet – See Figure 4
6. Click OK
7. Set the boundary type to inlet with a prescribed velocity – See Figure 6
a. Select the Type characteristic in the inlet property pane
b. Select Velocity Inlet from the pop-up menu
The value of the inlet velocity cannot be assigned until the fluid continua is
defined in a later step in this tutorial.
5 CREATE A PHYSICS CONTINUA 11
less) complicated physics are included in the model. Refer to Modeling Physics
section of the User Guide.
a. Right click on the Scenes node at the top level of the Simulation tree
and select New Scene→Mesh
b. Expand the newly created Mesh Scene 1 node to inspect properties
c. Rotate and zoom in the new graphics pane for Mesh Scene 1
4. Click on the Scalar Property and select Pressure from the pop-up menu for
scalar Properties
5. Click on the [ ] value for the Parts Property (or click the [...] icon.)
6. A dialog box opens
Figure 8: Maximum pressure value in the domain during iterations toward conver-
gence
c. Select wall and click the > icon to move the wall from the Select From
list to the Selected list
d. Click close
4. Select Scalar Field node in the Scalar 1 scene. The result should be a
shaded surface plot of the pressure on the pipe wall.
12 Engineering Analysis
The images created in post-processing with STAR-CCM+ usually need to be
incorporated into a report or used in a presentation. It is important to know how
to display the CFD simulation results in a way that contributes to engineering
analysis. The three-dimensional velocity vector plots and surface contour plots
are impressive and useful for obtaining a qualitative picture of the flow field.
However, engineering analysis requires quantitative information such as pressure
drop or total heat transfer rate, or the net aerodynamic force on an object.
12.1 To do
1. Add steps to the tutorial on how to extract engineering data
2. Write up a separate, short paper that shows these engineering results
properly formatted and discussed
3. Interpret the engineering analysis write-up in terms of good practice for
documentation and in terms of expectations for homework.
2. How does the velocity profile at the exit compare to the model of fully
developed laminar flow (parabolic profile)?
3. Pressure drop becomes linear almost immediately after the entrance (?)
13 Homework
1. Refine the mesh
2. Add prism layers
3. Use cylindrical mesh elements
Does the inlet boundary condition affect the result? Compare the solution
results for uniform inlet velocity versus total mass flow rate at the inlet.
Compare quantitative measures:
1. Pressure gradient at the inlet. Extract pressure gradient as a numerical
value (line fit?)
2. pressure distribution over the inlet (p = f (r))