Pipe Mixing Tutorial 1
Pipe Mixing Tutorial 1
The assembly has two inlet pipes, located on the left and center of the above
figure, through which air at different temperatures flows into the interior.
There is also an outlet pipe on the right-hand side through which the fluid
exits. The air stream entering the solution domain at each inlet has a
specified velocity, temperature, turbulence intensity and turbulence length
scale. These properties vary throughout the pipe as the two streams mix.
Adiabatic and no-slip conditions are assumed at the pipe walls.
Objectives
The tutorial gives a detailed account of how to:
• Initiate a STAR-CCM+ session that builds a CFD model for a simple
problem
• Specify turbulence and physical property models
• Specify fluid properties
• Apply boundary conditions
• Perform a CFD analysis using one of the STAR-CCM+ solvers
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2886
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2887
• Click the Open button to start the import. The Import Mesh Options
dialog will appear. Select the following options:
• Run mesh diagnostics after import
• Ensure that the Open geometry scene after import and the Don’t show this
dialog during import options are not selected and then click OK.
STAR-CCM+ will give a summary of all data imported from this file in the
Output window (for example, that the mesh contains 82,339 cells). At the
end of the import process, it will also create an initial (default) simulation
tree in the Star 1 window.
Note that the title of the simulation window also changes to mixing_pipe.
The Graphics window will initially show all parts of the mesh as solid,
colored surfaces. To turn on the mesh display:
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2888
Verify that no malformed or irregular cells are present on the mesh surface.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2889
• Once you click at the second point, the Please Select Displayer dialog will
appear. Click OK.
Note that a new node, Section Geometry 1, appears in the simulation tree as
soon as this operation is complete.
• Click the right half of the Parts property. In the Select Objects dialog,
select the plane section part from the Selected From list on the left-hand
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2890
side of the dialog and move it to the right-hand side, as shown below:
• Click Close and then click the (Make Scene Transparent) button in
the toolbar to see the cross-section trace within the mesh context:
• Use the mouse controls to reposition the mesh so that the viewpoint is
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2891
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2892
The Graphics window will display the mesh structure on the cross section,
as shown below. The varying cell size within the trimmed-cell mesh is now
clearly visible.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2893
Physics 1 node and choose item Select models from the pop-up menu.
In the Model Selection dialog, note that the Auto-select recommended models
checkbox is ticked by default. In general, you should accept this setting
unless you have good reasons for needing to make your own special
selections.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2894
• The remaining modeling options in the dialog are optional and not
required for this problem so click Close to complete the model selection.
• Open the Models node under Physics 1 to verify that it contains nodes
corresponding to each selection made above. These can now be
inspected and edited as necessary to complete the model definitions.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2895
in the tree.
The other model of special interest in this tutorial is the turbulence model.
• Select the Realizable Two-Layer K-Epsilon node and inspect the default
values and settings in the Properties window
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2896
Finally, we will inspect the default values and settings shown below for the
Reference Values and Initial Conditions in the fluid continuum and adjust as
necessary.
The only changes to be made in this case are in the initial condition settings.
• Select the Initial Conditions > Turbulence Specification node
• In the Properties window, select option K+Epsilon from the Method
pop-up menu.
• Open the Static Temperature node and then select the Constant node
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2897
• Open node Turbulent Dissipation Rate and then select node Constant
• Check the default value displayed in the Properties window, which is
suitable for this case
• Repeat this check for node Turbulent Kinetic Energy whose default value
is also suitable for this case.
This completes the specification of physical properties and models for the
fluid. The next step is to locate the boundary regions and specify boundary
conditions.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2898
• Open the Geometry 1 node in the simulation tree and select the Parts
node.
• Click the right half of the Parts property. In the Customizer dialog, select
all parts that correspond to boundaries (inlet, inlet2, outlet, wall) and
deselect the plane section part, as shown below.
• Click Close
• Use the mouse controls to select a view similar to that shown earlier in
this tutorial.
• Open the Regions node, then right-click on the Default_Fluid node
• Select Rename... and change the name of the region to Fluid
• Open the Fluid node, followed by the Boundaries node
• Click each of the boundary nodes displayed on the tree in turn.
STAR-CCM+ will highlight and label the currently selected boundary,
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2899
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2900
• Open the inlet > Physics Conditions node and inspect the three objects
displayed under it on the simulation tree. Ensure that the Method setting
in the Properties window for each of them is as follows:
• Flow Direction Specification — Boundary-Normal
• Velocity Specification — Magnitude + Direction
• Turbulence Specification — Intensity + Length Scale
• Open the Physics Values node and check each of its property sub-nodes
to confirm that the Method setting in the Properties window is Constant
throughout.
• Select each of the Constant nodes in turn and enter the following values
for the inlet conditions in the Properties window:
• Static Temperature — 298 K
• Turbulence Intensity — 0.1
• Turbulent Length Scale — 0.001 m
• Velocity Magnitude — 2.5 m/s
• Repeat the above exercise for inlet 2, which should also be defined as a
Velocity Inlet. The only necessary changes to the current defaults are:
• Turbulence Specification method — Intensity + Length Scale
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2901
The Blended Wall Function values under the Physics Values node (E, Kappa)
are also acceptable.
The last step before running the analysis is Setting Solver Parameters and
Stopping Criteria.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2902
100
• In the Properties window, change the Maximum Steps value to 500.
The pre-processing task is now complete. The next step is to run the analysis
using the selected STAR-CCM+ solver, as described in Running the
Simulation.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2903
The analysis will now start and the results, in the form of a graph of
residuals vs. iteration number, will be displayed automatically in the
Graphics window, as shown below:
Plotting Contours
SEE HANDOUT The remaining sections of this tutorial cover the definition and display of
various plots that help to visualize the solution just obtained.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2904
• Right-click on the Scenes node and select New Scene > Scalar.
A new node called Scalar Scene 1 will be created in the simulation tree.
• Select the Scalar Scene 1 > Displayers > Scalar 1 > Parts node
• In the Properties window, click on the right half of the Parts property to
display the Select Objects dialog
• Select those parts corresponding to boundaries (Fluid:inlet, Fluid:inlet2,
Fluid:outlet, Fluid:wall) and then click Close.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2905
After some rotation and repositioning of the geometry, the results should
appear as shown below.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2906
A new interactive in-place dialog (Create Section) appears on the left of the
Graphics window to help you define the desired plane. In this dialog:
• Click Input Parts and then select Fluid from the corresponding Select
Object dialog
• Enter appropriate parameters specifying the desired plane, as shown in
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2907
• Click Create
Note that a new node, plane section 2, will now appear as an additional
Derived Parts constituent.
• Right-click on the Scenes node and select New Scene > Scalar
A new node called Scalar Scene 2 will be created in the simulation tree.
• Select the Scalar Scene 2 > Displayers > Scalar 1 > Parts node and, in the
Properties window, click on the right half of the Parts property to display
the Select Objects dialog
• Select only the plane section 2 part created above and then click Close
• Click on the right half of the Contour Style property and select Smooth
Filled from the pop-up menu
• Right-click on the scalar bar that appears in the Graphics window and
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2908
After some rotation and repositioning of the mesh, the results should
appear as shown below.
A new node called Vector Scene 1 will be created in the simulation tree.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2909
• Select the Vector Scene 1 > Displayers > Vector 1 > Parts node.
• In the Properties window, click on the right half of the Parts property to
display the Select Objects dialog
• Select the Fluid: inlet, Fluid: inlet2, Fluid: outlet and Fluid: wall parts and then
click Close
• Select the Vector Field node and, in the Properties window, select Cell
Relative Velocity from the Function pop-up menu to display velocities in
the pipe’s interior
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2910
After some rotation and repositioning of the mesh, the results should
appear as shown below.
Note that the flow field pattern cannot be seen very clearly because the
above plot includes far too many vectors. To thin out the vectors and
generally improve the clarity of the plot
• Select node Vector 1 then, in the Properties window, change the value of
the On Ratio property to 7
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2911
The revised plot will now clearly show the flow swirling through the
mixing pipe.
Next, plot velocity vectors in the plane that was previously used for the
velocity magnitude contour plot.
• Right-click on the Scenes node and select New Scene > Vector
A new node called Vector Scene 2 will be created in the simulation tree.
• Select the Vector Scene 2 > Displayers > Vector 1 > Parts node and, in the
Properties window, click on the right half of the Parts property to display
the Select Objects dialog
• Select the plane section 2 part and then click Close
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2912
The vectors shown above are too widely spaced at the center of the pipe.
However, this is not the case near the walls where the presence of a finer
mesh results in more vectors being displayed.
A plot with evenly distributed vectors across the plane can be achieved
using the Presentation Grid facility.
• Right-click the Derived Parts node and select New Part > Probe >
Presentation Grid
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2913
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2914
Note that a new node, presentation grid, will now appear as an additional
Derived Parts constituent. A second node, Presentation Grid Geometry 1, will
also appear under the Displayers node belonging to Vector Scene 2.
• Click Close
• Select the Parts node in the Vector 1 displayer node of Vector Scene 2
• In the Properties window, click on the right half of the Parts property and
then select the presentation grid part
• Deselect the plane section 2 part, then click Close.
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2915
Plotting Streamlines
An effective way of visualizing a flow pattern is to draw streamlines, i.e.
tracks of imaginary massless particles introduced into the flow at specified
points. Here we will draw streamlines originating at the smaller inlet.
• Double-click the Geometry Scene 1 node to display the problem
geometry
• Select the Geometry Scene 1 > Displayers > Geometry 1 node
• In the Properties window, clear the Mesh checkbox
• Select the Geometry 1 > Parts node and make sure that the only Parts
selected for display are Fluid: inlet, Fluid: inlet2, Fluid: outlet and Fluid: wall.
• Right-click on the Derived Parts node and select option New Part >
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2916
Streamline
A new interactive in-place dialog appears on the left of the Graphics window
enabling you to define the desired streamlines.
• Accept the default settings for Input Parts (Fluid), Vector Field (Velocity)
and Seed Mode (Part Seed)
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2917
• Click the Seed Parts button to access the list of input parts.
• Select Fluid: inlet 2 in the Select Objects dialog, as shown below, then close
this dialog.
• In the main dialog, click Create, which will immediately display the
desired streamlines, and then Close.
A new node called streamline will also appear in the simulation tree. To
enhance the clarity of the display:
• Open the streamline node and then select node Source Seed
• In the Properties window, change both the U Points and V Points
properties to 2
• Select the Geometry 1 displayer node within the Geometry Scene 1 node
and then change the Opacity property to 0.3. This will display the
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2918
The above plot illustrates very clearly the swirling nature of the flow.
Streamlines can also be plotted together with vectors or contours, as in the
following example.
• Open the Scenes node and then double-click the Scalar Scene 2 node to
display the previously produced cross-sectional plot
• Select the Scalar Scene 2 > Displayers > Scalar 1 > Scalar Field node
• In the Properties window, do the following:
• Select Temperature from the Function property’s drop-down list to
produce a temperature plot on the pre-selected cross section
• Clear the checkbox of the Auto Range property to display the values
• Select the Parts node and add the streamline part to the scene. The
streamlines will be displayed in the Graphics window
• Select the Scalar Scene 2 > Displayers > Scalar 1 node and, in the
Properties window, change the Line Width value to 2 to see the
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2919
Note that the streamlines are colored according to the local temperature
along their path.
Summary
This STAR-CCM+ tutorial introduced the following steps:
• Starting the code and creating a new simulation
• Importing a mesh
• Visualizing and checking the mesh
• Defining the simulation models
• Defining material properties for the selected models
• Visualizing and checking the boundary locations
Version 3.02.006
STAR-CCM+ User Guide Mixing Pipe Flow Tutorial 2920
Version 3.02.006