Professional Documents
Culture Documents
10
Jeffrey R. Berg
Scott J. Ormiston
V2.10
2 November 2006
Introduction
This tutorial has been adapted from a tutorial created by Jeff Berg (M.Sc. student) in 2004. That tutorial was
based on running the CFX-TASCflow (V2.11) rct.lam tutorial in CFX-5 (v5.7). The original comparisons
between TASCflow and CFX-5 have been removed in this version.
Geometry Nomenclature
The duct has a length, Lx , a depth L y , and a height, Lz .The duct length is aligned with the x axis, the depth
with the y axis, and the height with the z axis. The flow is assumed to be symmetric about a plane that bisects the
duct in the y-direction and therefore only half the duct is modelled. One corner of the duct is assumed to lie at
the origin. Figure 1 below shows the duct geometry. When the geometry was defined in the creation of the
computational mesh, all faces of the domain were assigned names. The names of the inlet and outlet planes (at
x = 0 and x = Lx ) are RCT W and RCT E, respectively. The names of the planes at y = 0 and y = L y are RCT S
and RCT N, respectively. The names of the planes at z = 0 and z = Lz are RCT B and RCT T, respectively.
Problem Definition
The problem is a laminar, incompressible, constant property flow of water in a rectangular duct. The code will
be run with the heat transfer model turned off (even though an alternative approach would be to run the code
with the heat transfer model as “isothermal” and specify the desired temperature for an isothermal flow). The
flow is modelled with a rectilinear uniform grid for half the domain using symmetry in the y direction.
Features
This tutorial demonstrates how to:
• Import a grid (from CFX-TASCgrid)
• Specify Boundary Conditions
• Solve the Problem
• Do some post-processing of the results
Setup
First, create a new directory in your file space called cfxtutorial. Make sure that the path to this directory
does not contain any space characters. Spaces in a directory name or path will cause an error message in CFX.
Make this new directory your current directory (i.e., “cd” to that directory).
The grid for this tutorial has been pre-generated. It was created in software called CFX-TASCgrid, which was
part of the CFX-TASCflow set of programs. For the purposes of this tutorial, the completed grid will be
imported to CFX. The completed grid is in a file called rct.grd that can be copied to your current directory
using:
cp –p ~engsjo/pub/mech-4820/cfxtutorial/rct.grd ./
Under these assumptions, the account customisation has created two synonyms for running the pre-processor
(cfx5pre) and the post-processor (cfx5post) in a vncviewer environment. These two commands are:
• vnc-cfxpre (which is equivalent to cfx5pre –gr mesa& )
• vnc-cfxpost (which is equivalent to cfx5post –gr mesa& )
These two commands automatically add the “-gr mesa” options required to obtain correct graphical images
when using vncviewer. When using vncviewer, starting CFX-Pre from the launcher and starting CFX-Post from
the launcher or when leaving the solver will not produce the correct graphical environment (the images will not
appear correctly in the window on the right hand side of the screen). For any other methods of connection and
running CFX, please contact the course instructor for further instructions.
vnc-cfxpre
3. Domain Specification
Select Create > Flow Objects > Domain
Name: enter duct
Click OK
The overall image of the domain should now appear as (with a bit of zoom using the middle mouse button):
cfx5solve &
Dept. of Mechanical and Manufacturing Engineering Page 11 of 17
University of Manitoba
ANSYS CFX Tutorial Laminar Flow in a Rectangular Duct V2.10
The calculation should proceed with text information in one window and the residuals of the equations in a
second window. In this case there should be a print-out of 12 outer loop iterations and then some summary
information, followed by a CFX-5 Solver Finished Normally window. Click OK in this window.
This solver run created the textual record of the run: rct_lam_001.out and the results file that can be post-
processed: rct_lam_001.res.
As simple examples of post-processing, this tutorial illustrates how to create a graph of a velocity profile at the
duct exit and a velocity vector plot on the plane of symmetry. There are many other features available in CFX-
Post. For more details on these features, consult the course instructor and teaching assistants, as well as the on-
line CFX-Post help.
% vnc-cfxpost
A yellow line will appear at the end of the duct image in the 3D viewer. After zooming, it should appear like:
You should see the chart shown below in the right window (Chart Viewer).
The data used in this chart can also be exported to a spreadsheet program by using the export feature.
To do this:
Click Export
File name: enter u_exit_profile.csv
File Type: Comma Separated Values (*.csv)
Click on Save
These data can also be exported in a text file format for plotting with gnuplot or other plotting software.
The vector plot below should appear in the 3D Viewer window. The domain was zoomed in for the image.