PipeFlow Tutorial 2012
PipeFlow Tutorial 2012
page: 1
L
1. Laminar ow of air 2. Dimensions: D = 3 cm, L = ? 3. Boundary conditions (a) Choose inlet velocity to guarantee laminar ow
Inlet boundary condition can be specied as uniform velocity or inlet mass ow rate. What are the values of the mean velocity or the mass ow rate?
Where to locate the outlet? How long should the pipe be? B. Mesh resolution 1. What is the desired dimension of the cells in the center of the domain? 2. What surfaces are important for engineering analysis? What mesh resolution should be imposed on those surfaces C. What computational results are desirable? 1. Flow eld rendered as vectors and velocity prole 2. Pressure distribution rendered as surface plot, contour plot on center plane, and line plot D. How can the model be simplied
The ow is two-dimensional and axisymmetric. We will solve this problem with a 3D model even though it is computational wasteful
II. Start a New Simulation A. Launch CCM+ B. From the File Menu, select "New Simulation" C. In the dialog box, make sure the "Serial" button (in upper left corner) is selected, and click OK
This will create a new Simulation Tree named "Star 1" in the explorer pane. The Star 1 tree has "Continua" and "Tools" nodes
1. Pan with right mouse button 2. Zoom with middle mouse button or scroll wheel 3. Rotate with left mouse button 4. Align with Axis by... (a) Right click on the object (b) Select "Align View to Surface Normal" from the pop-up (c) Alternative: Use the properties of the Scene node
Geometry Scene --> Parts --> ... select the part, right click, and select "Align to Part Normal"
page 2
E. Sketch a circle and extrude it to create a cylinder 1. Select circle tool (circle from center) 2. Draw circle with radius 0.015 m 3. Click OK 4. Right-click on sketch1 (the circle) and select Create Extrude from pop-up
pipeFlow_tutorial_2012.oo3
page 3
1. Rotate the model so that the inlet (or outlet) end is visible 2. Right-click on the face, and select "Rename" from the pop-up menu 3. Change the name of the surface to "inlet" (or "outlet") 4. Repeat the preceding steps to label the outlet (or inlet) and the pipe walls G. Save the current le as laminar_pipe.sim H. Close the 3D-CAD model, and return to the Simulation Pane
Notice that the view of the part shows up as a Geometry Scene
IV. Create a Geometry Part from the 3D CAD Model To use a 3D-CAD model in a simulation it must first be used to create geometry parts. A. You can rename the 3D CAD model (or not). I suggest "Pipe uid" or similar name for the part B. Expand the Bodies node C. Select Body 1 (or whatever you named the pipe object) D. Right click and select New Geometry Part
Notice that a new Part is created under the Parts node Also note that the names assigned in the CAD tool (Inlet, Outlet and Walls) have been propagated to the nodes of the Parts tree
pipeFlow_tutorial_2012.oo3
A. Select ... 1. Three Dimensional 2. Steady 3. Gas 4. Constant Density 5. Segregated ow 6. Laminar VII. Create a Region that contains the pipe object
From the Star-CCM+ User's Guide: "Regions are volume domains (or areas in a two-dimensional case) in space that are completely surrounded by boundaries. They are not necessarily contiguous, and are discretized by a conformal mesh consisting of connected faces, cells and vertices." Translation: A region is a volume of material with the same physical properties and the same meshing model. For the pipe ow tutorial, there is only one Region. The boundaries of the region are used to impose boundary conditions on the model
A. Right click on the Region node and select New B. Select the Geometric Parts for the region 1. In the Properties pane, click in the area to the right of "Parts" 2. Expand the Parts node in the pop-up window 3. Select the Pipe Fluid region (or Body 1 if you didn't name the Part) 4. Click OK C. Create Boundaries of the region 1. Right click on Boundaries and select New 2. Select the new boundary, right-click and select Rename. Change the name to Inlet (a) With the Inlet boundary (under the Region node) selected, Click on Part Surfaces Expand the nodes and click on the inlet Click OK
pipeFlow_tutorial_2012.oo3
C. Create Boundaries of the region 2. Select the new boundary, right-click and select Rename. Change the name to Inlet (a) With the Inlet boundary (under the Region node) selected, page 5
StarCCM+ Pipe Flow Tutorial Expand the nodes and click on the inlet
Click OK
pipeFlow_tutorial_2012.oo3
page 6
Select Velocity Inlet from the pop-up menu Expand the Physics Values node and select Constant Set the Value to 0.24 m/s
3. Repeat creation of boundary for the Outlet (a) Click on Part Surfaces (b) Expand the nodes and click on outlet (c) Click OK (d) Set the Type to Pressure outlet 4. Select the remaining boundary, and make sure that only the walls are selected. Change the name from Default to Wall VIII. Generate the mesh
pipeFlow_tutorial_2012.oo3
page 7
StarCCM+ Flow Tutorial 4. Pipe Select the remaining boundary, and make sure that only the walls are selected. Change the name from Default to Wall
VIII. Generate the mesh A. Click Generate Surface Mesh on the main menu bar B. Create a scene to view the mesh 1. Scroll down to the Scene node, Right click, select New Scene -> Mesh 2. Expand the mesh node (a) In the C. IX. Solve the ow eld A. Open the "Stopping Criteria" Node B. Change the Maximum Steps property to 200 C. Open a Scalar Scene to visualize the solution as it is happening 1. Right-click the Scene node and select New Scenes -> Scalar 2. Open the Displayers Node 3. Select Scalar 1 (a) Click on the Scalar Field node (b) In the Properties panel, click on the "Function" pop-up and (scroll down to) select "pressure" D. Create reports to monitor the maximum and minimum pressure 1. Right-click "Reports" and select New Report -> Maximum 2. Click on the "Maximum 1" node that was just created (a) Rename the report to "Maximum Pressure" (b) Click on the "Scalar" Property and select "Pressure" from the pop-up menu for scalar Properties (c) Click on the "[ ]" value for the Parts Property A dialog box opens OPTIONAL OPTIONAL
Select the "pipe" in the "Select From" (left-hand) list of objects and click the > icon to move the pipe ot the "Selected" (right-hand) list of objects Click CLOSE 3. Right-click on "Reports" and select "New Report" -> Minimu 4. Repeat the steps for the maximum pressure report, but this time the minimum value will be reported. E. Make the Monitor Plot visible 1. Select the Plots -> Maximum Pressure Plots node in the Simulation Tree F. Run the simulation X. Inspect the solution
pipeFlow_tutorial_2012.oo3
page 8
pipeFlow_tutorial_2012.oo3
page 9
pipeFlow_tutorial_2012.oo3
page 10
3. Modify vector length (a) Under the Geometry Scene 2 node (b) Open the Displayers (c) Select Section Vectors (d) Select Relative Length In the properties pane, set the Glyph Length (%) to a new value, say 2 E. Velocity Prole plot F. Pressure along pipe axis XI. Modify the model and rerun it A. Change the inlet BC from uniform velocity to a mass ow rate
pipeFlow_tutorial_2012.oo3