Professional Documents
Culture Documents
Chapter 6 - Flow in A Process Injection Mixing Pipe
Chapter 6 - Flow in A Process Injection Mixing Pipe
• Using the CFX Expression Language (CEL) to describe temperature-dependent fluid properties in CFX-Pre.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Flow in a Process Injection Mixing Pipe
The injection mixing pipe, common in the process industry, is composed of two pipes: one with a larger
diameter than the other. Analyzing and optimizing the mixing process is often critical for many chem-
ical processes. CFD is useful not only in identifying problem areas (where mixing is poor), but also in
testing new designs before they are implemented.
The geometry for this example consists of a circular pipe of diameter 1.0 m with a 90° bend, and a
smaller pipe of diameter 0.3 m which joins with the main pipe at an oblique angle. Water at 315.0 K
enters in the 0.3 m diameter pipe at a rate of 5.0 m/s while water at 285.0 K enters in the 1.0 m diameter
pipe at a rate of 0.5 m/s.
In this tutorial, you will establish a general workflow for analyzing the flow of the water fluid into and
out of an injection pipe. First, a simulation will be created and an existing mesh will be imported in
CFX-Pre. A viscosity expression will also be created, and will be used to modify the water properties
later on in this tutorial to increase the solution accuracy. Finally, initial values will be set and a solution
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Defining the Case Using CFX-Pre
will be found using CFX-Solver Manager. The results will then be viewed in CFD-Post. Streamlines ori-
ginating from the main inlet will be generated to show the flow of the water into and out of the injection
pipe.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
ANSYS CFX uses a working directory as the default location for loading and saving files for a par-
ticular session or project.
Ensure that the following tutorial input files are in your working directory:
• InjectMixerMesh.gtm
• InjectMixer_velocity_profile.csv
For details, see Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode (p. 3).
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Flow in a Process Injection Mixing Pipe
5. Click Save.
Setting Value
File name InjectMixerMesh.gtm
3. Click Open.
4. Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Y up) from the
shortcut menu.
The variable T (Temperature) is a CFX System Variable recognized by CFX-Pre, denoting static temper-
ature. All variables, expressions, locators, functions, and constants can be viewed by double-clicking
the appropriate entry (such as Additional Variables or Expressions) in the tree view.
All expressions must have consistent units. You should be careful if using temperature in an expression
with units other than [K].
The Expressions tab lets you define, modify, evaluate, plot, copy, delete and browse through expressions
used within CFX-Pre.
1. From the main menu, select Insert > Expressions, Functions and Variables > Expression.
3. Click OK.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Defining the Case Using CFX-Pre
6. Ensure that no expression is highlighted, then right-click in the Expressions workspace and select Insert
> Expression.
8. Click OK.
11. Create expressions for Visupper, Vislower and VisT using the following values.
Name Definition
Visupper 5.45E-04 [N s m^-2]
Vislower 1.8E-03 [N s m^-2]
VisT Vislower+(Visupper-Vislower)*(T-Tlower)/(Tupper-Tlower)
Tip
Alternatively, double-clicking the expression also opens the Expressions details view.
A plot showing the variation of the expression VisT with the variable T is displayed.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Flow in a Process Injection Mixing Pipe
This is between the start and end range defined in the last module.
A value of around 0.0011[kg m^-1 s^-1] for VisT at the given value of T appears in the Value
field.
9. Click OK.
Both Basic Settings and Fluid Models are changed in this module. The Initialization tab is for setting
domain-specific initial conditions, which are not used in this tutorial. Instead, global initialization is used
to set the starting conditions.
1. Select Insert > Domain from the main menu or click Domain .
3. Click OK.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Defining the Case Using CFX-Pre
> Fluid 1
> Pressure
Setting Value
Heat Transfer
7. Click OK.
1. Select Insert > Boundary from the main menu or click Boundary .
Note
A boundary named after a region will use that region as its location by default.
3. Click OK.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Flow in a Process Injection Mixing Pipe
5. Click OK.
You will create a plot showing the velocity profile data, marked by higher velocities near the center of
the inlet, and lower velocities near the inlet walls.
4. Click Open.
5. Click OK.
Note
After profile data has been initialized from a file, the profile data file should not be de-
leted or otherwise removed from its directory. By default, the full file path to the profile
data file is stored in CFX-Pre, and the profile data file is read directly by CFX-Solver each
time the solver is started or restarted.
6. Select Insert > Boundary from the main menu or click Boundary .
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Defining the Case Using CFX-Pre
8. Click OK.
This causes the profile values of U, V, W to be applied at the nodes on the main inlet boundary,
and U, V, W entries to be made in Boundary Details. In order to later reset the velocity values at
the main inlet to match those that were originally read from the boundary condition profile file,
revisit Basic Settings for this boundary and click Generate Values.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Flow in a Process Injection Mixing Pipe
13. Zoom into the main inlet to view the inlet velocity contour.
1. Select Insert > Boundary from the main menu or click Boundary .
3. Click OK.
5. Click OK.
1. Click Global Initialization and review, but do not change, the current settings.
2. Click Close.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Defining the Case Using CFX-Pre
b. An RMS value of at least 1.E-5 is usually required for adequate convergence, but
the default value is sufficient for demonstration purposes.
3. Click OK.
Setting Value
File name InjectMixer.def
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Flow in a Process Injection Mixing Pipe
3. Click Save.
The CFX-Solver input file (InjectMixer.def) is created. CFX-Solver Manager automatically starts
and, on the Define Run dialog box, Solver Input File is set.
2. When the run ends, ensure that the check box next to Post-Process Results is cleared and click OK to
close the dialog box.
2. If using CFX-Solver Manager in stand-alone mode, optionally select Shut down CFX-Solver Manager.
3. Click OK.
The tutorial follows this general workflow for viewing results in CFD-Post:
6.6.1. Modifying the Outline of the Geometry
6.6.2. Creating and Modifying Streamlines Originating from the Main Inlet
6.6.3. Modifying Streamline Color Ranges
6.6.4. Coloring Streamlines with a Constant Color
6.6.5. Creating Streamlines Originating from the Side Inlet
6.6.6. Examining Turbulence Kinetic Energy
6.6.7. Quitting CFD-Post
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Viewing the Results Using CFD-Post
3. Click Apply.
6.6.2. Creating and Modifying Streamlines Originating from the Main Inlet
When you complete this module you will see streamlines (mainly blue and green) starting at the main
inlet of the geometry and proceeding to the outlet. Above where the side pipe meets the main pipe,
there is an area where the flow re-circulates rather than flowing roughly tangent to the direction of the
pipe walls.
1. Select Insert > Streamline from the main menu or click Streamline .
3. Click OK.
5. Click Apply.
6. Right-click a blank area in the viewer, select Predefined Camera from the shortcut menu, then select
Isometric View (Y up).
The pipe is displayed with the main inlet in the bottom right of the viewer.
1. Under User Locations and Plots, modify the streamline object MainStream by applying the following
settings
2. Click Apply.
The color map is fitted to the range of velocities found along the streamlines. The streamlines
therefore collectively contain every color in the color map.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Flow in a Process Injection Mixing Pipe
Note
Portions of streamlines that have values outside the range shown in the legend are
colored according to the color at the nearest end of the legend. When using tubes or
symbols (which contain faces), more accurate colors are obtained with lighting turned
off.
4. Click Apply.
The streamlines are colored using the specified range of velocity values.
Color can be set to green by selecting it from the color pallet, or by repeatedly clicking on the
color box until it cycles through to the default green color.
2. Click Apply.
3. Click OK.
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Viewing the Results Using CFD-Post
6. Click Apply.
Note
This module has multiple changes compiled into single steps in preparation for other tutorials
that provide fewer specific instructions.
1. Turn off the visibility of both the MainStream and the SideStream objects.
2. Create a plane named Plane 1 that is normal to X and passing through the X = 0 Point. To do so, spe-
cific instructions follow.
a. From the main menu, select Insert > Location > Plane and click OK.
b. In the details view, set Definition > Method to YZ Plane and X to 0 [m].
c. Click Apply.
3. Color the plane using the variable Turbulence Kinetic Energy, to show regions of high turbulence.
To do so, apply the settings below.
4. Click Apply.
5. Experiment with other variables to color this plane (for example, Temperature to show the temperature
mixing of the two streams).
Commonly used variables are in the drop-down menu. A full list of available variables can be viewed
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Flow in a Process Injection Mixing Pipe
Release 2019 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.