Professional Documents
Culture Documents
V3.10
Page 1 of 21
V3.10
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. The problem parameters are: Mass flow = 3.962 x 10-2 [kg / s] for the full duct. The mass flow rate at the inlet of the half duct is therefore 1.981 x 10-2 [kg / s]. Density = 997.0 [kg / m3]. Viscosity = 8.899 x 10-4 [kg / m s]. Duct length = 2.00 m ( Lx ). Duct depth = 0.40 m ( L y ). Actual grid height is 0.20 m due to symmetry. Duct height = 0.30 m ( Lz ). Hydraulic diameter of the duct Dh , is 0.34286 m. Reynolds number based on the hydraulic diameter is 127.2.
Department of Mechanical and Manufacturing Engineering University of Manitoba Page 2 of 21
V3.10
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 (in addition, a hyphen cannot be used in the simulation name). 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 ./
V3.10
Simulation Type default is General (click on General in the window and then click OK)
Page 4 of 21
V3.10
3. Domain Specification
Select Insert > Domain Name: enter duct Click OK
Under General Options tab: Basic Settings: Fluid list: select Water
Department of Mechanical and Manufacturing Engineering University of Manitoba Page 5 of 21
V3.10
Under Fluid Models tab: Heat Transfer: Option: select None Turbulence Model: Option: select None (Laminar) Leave all other values as the defaults.
Under Initialisation tab: Click Domain Initialisation box Click Initial Conditions box Now, Click Ok
Department of Mechanical and Manufacturing Engineering University of Manitoba Page 6 of 21
V3.10
Under Basic Settings tab: Boundary Type: select Inlet Location: select RCT_W
Page 7 of 21
V3.10
Under Boundary Details tab: Flow Regime: Option: Subsonic Mass and Momentum: Option: select Mass Flow Rate Click on space beside Mass Flow Rate and enter: 0.01981 Flow Direction: Option: Normal to Boundary Condition Click Ok
Page 8 of 21
V3.10
Under Boundary Details tab: Flow Regime: Option: Subsonic Mass and Momentum: Option: Average Static Pressure Click on space beside Relative Pressure and enter: 0.0 Pressure Averaging: Option: Average Over Whole Outlet Click Ok
Page 9 of 21
V3.10
Page 10 of 21
V3.10
Page 11 of 21
V3.10
The overall image of the domain should now appear as (with a bit of zoom using the middle mouse button):
V3.10
V3.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 ANSYS CFX-5 Solver Finished Normally window. In this window there is some run information and the question: Post-process results now?. Click No.
Page 14 of 21
V3.10
This solver run created the textual record of the run: rct_lam_001.out and the results file that can be postprocessed: rct_lam_001.res.
Page 15 of 21
V3.10
Under Geometry tab: Domains: All Domains Definition: Method: Two Points Point 1: enter 2, 0, 0
Department of Mechanical and Manufacturing Engineering University of Manitoba Page 16 of 21
V3.10
Point 2: enter 2, 0, 0.3 Line Type: click on circle for Cut Click on Apply
A yellow line will appear at the end of the duct image in the 3D viewer. After zooming, it should appear like:
V3.10
Y Axis: Variable: select Velocity u Click on circle for Hybrid Click on Apply
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
Department of Mechanical and Manufacturing Engineering University of Manitoba Page 18 of 21
V3.10
File name: enter u_exit_profile.csv File Type: Comma Separated Values (*.csv) Click on Save
The file created, when loaded into Excel (and formatted with more decimals for column A and scientific notation for column B), looks like:
These data can also be exported in a text file format for plotting with gnuplot or other plotting software.
4. Creating a Velocity Vector Plot Click on the 3D Viewer tab below the window on the right.
Department of Mechanical and Manufacturing Engineering University of Manitoba Page 19 of 21
V3.10
Select Insert > Vector Name: enter Symm Plane Vectors Click OK Under Geometry tab: Domains: All Domains Definition: Locations: select symmetry Variable: select Velocity Click on circle for Hybrid Leave all other values as the defaults. Click on Apply
The vector plot below should appear in the 3D Viewer window. The domain was zoomed in for the image.
Page 20 of 21
V3.10
File name: enter rct_lam.cst File type: CFX-Post State (*.cst) Click on Save
The state file that was saved (rct_lam.cst) has saved the new objects created in the previous Post session. When examining the same results file another time in Post, those setting can be re-loaded using File > Load State. Another powerful feature is that the same state file can be loaded when viewing a different set of results on the same geometry and all plots (charts, vectors, etc.) are re-computed automatically for the new results.
Page 21 of 21