ANSYS CFX Tutorials r170
ANSYS CFX Tutorials r170
ANSYS, Inc.
Southpointe
2600 ANSYS Drive
Canonsburg, PA 15317
[email protected]
http://www.ansys.com
(T) 724-746-3304
(F) 724-514-9494
Release 17.0
January 2016
ANSYS, Inc. is
certified to ISO
9001:2008.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFIDENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
ANSYS, Inc. is certified to ISO 9001:2008.
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, Contact ANSYS, Inc.
Published in the U.S.A.
Table of Contents
1. Introduction to the ANSYS CFX Tutorials ................................................................................................ 1
1.1. Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode ..................................... 3
1.2. Running ANSYS CFX Tutorials Using ANSYS Workbench ..................................................................... 4
1.2.1. Setting Up the Project .............................................................................................................. 4
1.2.2. Writing the CFX-Solver Input (.def ) File ..................................................................................... 5
1.2.3. Obtaining the Solution Using CFX-Solver Manager ................................................................... 5
1.2.4. Viewing the Results Using CFD-Post .......................................................................................... 5
1.2.5. Creating CFX Component Systems for Multiple Simulations ...................................................... 5
1.2.6. Closing the Applications ........................................................................................................... 6
1.3. Playing a Session File ........................................................................................................................ 6
1.4. Changing the Display Colors ............................................................................................................. 7
1.5. Editor Buttons .................................................................................................................................. 7
1.6. Using Help ........................................................................................................................................ 7
2. Simulating Flow in a Static Mixer Using CFX in Stand-alone Mode ........................................................ 9
2.1. Tutorial Features ............................................................................................................................... 9
2.2. Overview of the Problem to Solve ................................................................................................... 10
2.3. Preparing the Working Directory ..................................................................................................... 11
2.4. Defining the Case Using CFX-Pre ..................................................................................................... 11
2.4.1. Starting Quick Setup Mode ..................................................................................................... 12
2.4.2. Setting the Physics Definition ................................................................................................. 12
2.4.3. Importing a Mesh ................................................................................................................... 13
2.4.4. Using the Viewer .................................................................................................................... 13
2.4.4.1. Using the Zoom Tools .................................................................................................... 13
2.4.4.2. Rotating the Geometry .................................................................................................. 13
2.4.5. Defining Model Data .............................................................................................................. 14
2.4.6. Defining Boundaries ............................................................................................................... 15
2.4.7. Setting Boundary Data ........................................................................................................... 15
2.4.8. Setting Flow Specification ...................................................................................................... 15
2.4.9. Setting Temperature Specification .......................................................................................... 15
2.4.10. Reviewing the Boundary Condition Definitions ..................................................................... 15
2.4.11. Creating the Second Inlet Boundary Definition ..................................................................... 16
2.4.12. Creating the Outlet Boundary Definition ............................................................................... 17
2.4.13. Moving to General Mode ...................................................................................................... 17
2.4.14. Setting Solver Control .......................................................................................................... 17
2.4.15. Writing the CFX-Solver Input (.def ) File ................................................................................. 18
2.4.16. Playing the Session File and Starting CFX-Solver Manager ..................................................... 18
2.5. Obtaining the Solution Using CFX-Solver Manager .......................................................................... 19
2.5.1. Starting the Run ..................................................................................................................... 19
2.5.2. Moving from CFX-Solver Manager to CFD-Post ....................................................................... 20
2.6. Viewing the Results Using CFD-Post ................................................................................................ 20
2.6.1. Setting the Edge Angle for a Wireframe Object ....................................................................... 21
2.6.2. Creating a Point for the Origin of the Streamline ..................................................................... 23
2.6.3. Creating a Streamline Originating from a Point ....................................................................... 24
2.6.4. Rearranging the Point ............................................................................................................ 25
2.6.5. Configuring a Default Legend ................................................................................................. 26
2.6.6. Creating a Slice Plane ............................................................................................................. 27
2.6.7. Defining Slice Plane Geometry ............................................................................................... 28
2.6.8. Configuring Slice Plane Views ................................................................................................. 28
2.6.9. Rendering Slice Planes ........................................................................................................... 29
2.6.10. Coloring the Slice Plane ........................................................................................................ 30
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
iii
Tutorials
2.6.11. Moving the Slice Plane ......................................................................................................... 31
2.6.12. Adding Contours .................................................................................................................. 31
2.6.13. Working with Animations ..................................................................................................... 32
2.6.13.1. Showing the Animation Dialog Box .............................................................................. 33
2.6.13.2. Creating the First Keyframe .......................................................................................... 33
2.6.13.3. Creating the Second Keyframe ..................................................................................... 34
2.6.13.4. Viewing the Animation ................................................................................................ 36
2.6.13.5. Modifying the Animation ............................................................................................. 37
2.6.13.6. Saving a Movie ............................................................................................................ 38
2.6.14. Quitting CFD-Post ................................................................................................................ 39
3. Simulating Flow in a Static Mixer Using Workbench ............................................................................ 41
3.1. Tutorial Features ............................................................................................................................. 41
3.2. Overview of the Problem to Solve ................................................................................................... 42
3.3. Preparing the Working Directory ..................................................................................................... 43
3.4. Setting Up the Project ..................................................................................................................... 43
3.5. Defining the Case Using CFX-Pre ..................................................................................................... 43
3.5.1. Creating the Simulation Definition .......................................................................................... 45
3.5.2. Setting the Physics Definition ................................................................................................. 45
3.5.3. Defining Boundaries ............................................................................................................... 46
3.5.4. Setting Boundary Data ........................................................................................................... 46
3.5.5. Creating the Second Inlet Boundary Definition ....................................................................... 46
3.5.6. Creating the Outlet Boundary Definition ................................................................................. 47
3.5.7. Moving to General Mode ........................................................................................................ 47
3.5.8. Using the Viewer .................................................................................................................... 47
3.5.8.1. Using the Zoom Tools .................................................................................................... 47
3.5.8.2. Rotating the Geometry .................................................................................................. 48
3.5.9. Setting Solver Control ............................................................................................................ 49
3.6. Obtaining the Solution Using CFX-Solver Manager .......................................................................... 49
3.7. Viewing the Results Using CFD-Post ................................................................................................ 51
3.7.1. Setting the Edge Angle for a Wireframe Object ....................................................................... 52
3.7.2. Creating a Point for the Origin of the Streamline ..................................................................... 53
3.7.3. Creating a Streamline Originating from a Point ....................................................................... 54
3.7.4. Rearranging the Point ............................................................................................................ 55
3.7.5. Configuring a Default Legend ................................................................................................. 56
3.7.6. Creating a Slice Plane ............................................................................................................. 57
3.7.7. Defining Slice Plane Geometry ............................................................................................... 58
3.7.8. Configuring Slice Plane Views ................................................................................................. 58
3.7.9. Rendering Slice Planes ........................................................................................................... 59
3.7.10. Coloring the Slice Plane ........................................................................................................ 60
3.7.11. Moving the Slice Plane ......................................................................................................... 61
3.7.12. Adding Contours .................................................................................................................. 61
3.7.13. Working with Animations ..................................................................................................... 63
3.7.13.1. Showing the Animation Dialog Box .............................................................................. 63
3.7.13.2. Creating the First Keyframe .......................................................................................... 63
3.7.13.3. Creating the Second Keyframe ..................................................................................... 64
3.7.13.4. Viewing the Animation ................................................................................................ 66
3.7.13.5. Modifying the Animation ............................................................................................. 67
3.7.13.6. Saving a Movie ............................................................................................................ 68
3.7.14. Closing the Applications ....................................................................................................... 69
4. Flow in a Static Mixer (Refined Mesh) ................................................................................................... 71
4.1. Tutorial Features ............................................................................................................................. 71
4.2. Overview of the Problem to Solve ................................................................................................... 72
iv
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
4.3. Preparing the Working Directory ..................................................................................................... 72
4.4. Defining the Case Using CFX-Pre ..................................................................................................... 73
4.4.1. Importing a Mesh ................................................................................................................... 73
4.4.2. Importing Settings from Tutorial 1 .......................................................................................... 74
4.4.3. Viewing Domain Settings ....................................................................................................... 75
4.4.4. Viewing the Boundary Condition Setting ................................................................................ 76
4.4.5. Defining Solver Parameters .................................................................................................... 76
4.4.6. Writing the CFX-Solver Input (.def ) File ................................................................................... 77
4.5. Obtaining the Solution Using CFX-Solver Manager .......................................................................... 77
4.5.1. Starting the Run with an Initial Values File ............................................................................... 78
4.5.2. Confirming Results ................................................................................................................. 78
4.5.3. Moving from CFX-Solver Manager to CFD-Post ....................................................................... 79
4.6. Viewing the Results Using CFD-Post ................................................................................................ 79
4.6.1. Creating a Slice Plane ............................................................................................................. 79
4.6.2. Coloring the Slice Plane .......................................................................................................... 80
4.6.3. Loading Results from Tutorial 1 for Comparison ...................................................................... 81
4.6.4. Comparing Slice Planes Using Multiple Views .......................................................................... 82
4.6.5. Viewing the Surface Mesh on the Outlet ................................................................................. 83
4.6.6. Looking at the Inflated Elements in Three Dimensions ............................................................. 83
4.6.7. Viewing the Surface Mesh on the Mixer Body .......................................................................... 85
4.6.8. Viewing the Layers of Inflated Elements on a Plane ................................................................. 85
4.6.9. Viewing the Mesh Statistics .................................................................................................... 86
4.6.10. Viewing the Mesh Elements with Largest Face Angle ............................................................. 86
4.6.11. Viewing the Mesh Elements with Largest Face Angle Using a Point ........................................ 87
4.6.12. Quitting CFD-Post ................................................................................................................ 87
5. Flow in a Process Injection Mixing Pipe ................................................................................................ 89
5.1. Tutorial Features ............................................................................................................................. 89
5.2. Overview of the Problem to Solve ................................................................................................... 90
5.3. Preparing the Working Directory ..................................................................................................... 91
5.4. Defining the Case Using CFX-Pre ..................................................................................................... 91
5.4.1. Importing a Mesh ................................................................................................................... 92
5.4.2. Setting Temperature-Dependent Material Properties .............................................................. 92
5.4.3. Plotting an Expression ............................................................................................................ 93
5.4.4. Evaluating an Expression ........................................................................................................ 94
5.4.5. Modify Material Properties ..................................................................................................... 94
5.4.6. Creating the Domain .............................................................................................................. 94
5.4.7. Creating the Side Inlet Boundary ............................................................................................ 95
5.4.8. Creating the Main Inlet Boundary ........................................................................................... 96
5.4.9. Creating the Main Outlet Boundary ........................................................................................ 98
5.4.10. Setting Initial Values ............................................................................................................. 98
5.4.11. Setting Solver Control .......................................................................................................... 99
5.4.12. Writing the CFX-Solver Input (.def ) File ................................................................................. 99
5.5. Obtaining the Solution Using CFX-Solver Manager ........................................................................ 100
5.5.1. Starting the Run ................................................................................................................... 100
5.5.2. Moving from CFX-Solver Manager to CFD-Post ...................................................................... 100
5.6. Viewing the Results Using CFD-Post .............................................................................................. 100
5.6.1. Modifying the Outline of the Geometry ................................................................................ 101
5.6.2. Creating and Modifying Streamlines Originating from the Main Inlet ..................................... 101
5.6.3. Modifying Streamline Color Ranges ...................................................................................... 101
5.6.4. Coloring Streamlines with a Constant Color .......................................................................... 102
5.6.5. Creating Streamlines Originating from the Side Inlet ............................................................. 102
5.6.6. Examining Turbulence Kinetic Energy ................................................................................... 103
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
5.6.7. Quitting CFD-Post ................................................................................................................ 104
6. Flow from a Circular Vent .................................................................................................................... 105
6.1. Tutorial Features ........................................................................................................................... 105
6.2. Overview of the Problem to Solve ................................................................................................. 106
6.3. Preparing the Working Directory ................................................................................................... 107
6.4. Defining the Case Using CFX-Pre ................................................................................................... 107
6.4.1. Importing the Mesh ............................................................................................................. 107
6.4.2. Creating an Additional Variable ............................................................................................. 108
6.4.3. Defining the Steady-State Analysis ........................................................................................ 108
6.4.3.1. Renaming the Analysis ................................................................................................. 108
6.4.3.2. Creating the Domain ................................................................................................... 108
6.4.3.3. Creating the Boundaries .............................................................................................. 109
6.4.3.3.1. Inlet Boundary .................................................................................................... 110
6.4.3.3.2. Opening Boundary ............................................................................................. 111
6.4.3.3.3. Inlet for the Vent ................................................................................................. 112
6.4.3.4. Setting Initial Values .................................................................................................... 113
6.4.3.5. Setting Solver Control .................................................................................................. 113
6.4.4. Defining the Transient Analysis ............................................................................................. 114
6.4.4.1. Creating the Analysis ................................................................................................... 114
6.4.4.2. Modifying the Analysis Type ......................................................................................... 114
6.4.4.3. Modifying the Boundary Conditions ............................................................................. 115
6.4.4.3.1. To Modify the Vent Inlet Boundary Condition ....................................................... 115
6.4.4.3.2. Plotting Smoke Concentration ............................................................................. 116
6.4.4.4. Initialization Values ...................................................................................................... 117
6.4.4.5. Modifying the Solver Control ....................................................................................... 118
6.4.4.6. Setting Output Control ................................................................................................ 118
6.4.5. Configuring Simulation Control ............................................................................................ 119
6.4.5.1. Configuration Control for the Steady State Analysis ...................................................... 119
6.4.5.2. Configuration Control for the Transient Analysis ........................................................... 120
6.4.6. Writing the CFX-Solver Input (.mdef ) File .............................................................................. 121
6.5. Obtaining the Solution Using CFX-Solver Manager ........................................................................ 121
6.6. Viewing the Results Using CFD-Post .............................................................................................. 122
6.6.1. Displaying Smoke Density Using an Isosurface ...................................................................... 122
6.6.2. Viewing the Results at Different Time Steps ........................................................................... 123
6.6.3. Generating Titled Image Files ................................................................................................ 123
6.6.3.1. Adding a Title .............................................................................................................. 123
6.6.3.2. JPEG output ................................................................................................................ 124
6.6.4. Generating a Movie .............................................................................................................. 125
6.6.5. Viewing the Dispersion of Smoke at the Final Time Step ........................................................ 126
7. Flow Around a Blunt Body ................................................................................................................... 127
7.1. Tutorial Features ........................................................................................................................... 127
7.2. Overview of the Problem to Solve ................................................................................................. 128
7.3. Preparing the Working Directory ................................................................................................... 129
7.4. Defining the Case Using CFX-Pre ................................................................................................... 129
7.4.1. Importing the Mesh ............................................................................................................. 129
7.4.2. Creating the Domain ............................................................................................................ 130
7.4.3. Creating Composite Regions ................................................................................................ 131
7.4.4. Creating the Boundaries ....................................................................................................... 131
7.4.4.1. Inlet Boundary ............................................................................................................. 131
7.4.4.2. Outlet Boundary .......................................................................................................... 132
7.4.4.3. Free-Slip Wall Boundary ............................................................................................... 132
7.4.4.4. Symmetry Plane Boundary ........................................................................................... 133
vi
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
7.4.4.5. Wall Boundary on the Blunt Body Surface ..................................................................... 133
7.4.5. Setting Initial Values ............................................................................................................. 134
7.4.6. Setting Solver Control .......................................................................................................... 134
7.4.7. Writing the CFX-Solver Input (.def ) File ................................................................................. 135
7.5. Obtaining the Solution Using CFX-Solver Manager ........................................................................ 135
7.5.1. Obtaining a Solution in Serial ............................................................................................... 136
7.5.2. Obtaining a Solution in Parallel ............................................................................................. 136
7.5.2.1. Background to Parallel Running in CFX ......................................................................... 136
7.5.2.2. Obtaining a Solution with Local Parallel ........................................................................ 136
7.5.2.3. Obtaining a Solution with Distributed Parallel .............................................................. 137
7.5.2.4.Text Output when Running in Parallel ........................................................................... 139
7.6. Viewing the Results Using CFD-Post .............................................................................................. 140
7.6.1. Using Symmetry Plane to Display the Full Geometry ............................................................. 140
7.6.1.1. Manipulating the Geometry ......................................................................................... 141
7.6.1.2. Creating an Instance Transform .................................................................................... 141
7.6.1.3. Using the Reflection Transform .................................................................................... 142
7.6.2. Creating Velocity Vectors ...................................................................................................... 142
7.6.2.1. Creating the Sampling Plane ........................................................................................ 142
7.6.2.2. Creating a Vector Plot Using Different Sampling Methods ............................................. 143
7.6.3. Displaying Pressure Distribution on Body and Symmetry Plane ............................................. 144
7.6.4. Creating Surface Streamlines to Display the Path of Air along the Surface of the Body ............ 145
7.6.5. Moving Objects .................................................................................................................... 146
7.6.6. Creating a Surface Plot of y+ ................................................................................................. 146
7.6.7. Demonstrating Power Syntax ............................................................................................... 147
7.6.8. Viewing the Mesh Partitions (Parallel Only) ............................................................................ 148
8. Buoyant Flow in a Partitioned Cavity .................................................................................................. 149
8.1. Tutorial Features ........................................................................................................................... 149
8.2. Overview of the Problem to Solve ................................................................................................. 150
8.3. Preparing the Working Directory ................................................................................................... 150
8.4. Defining the Case Using CFX-Pre ................................................................................................... 151
8.4.1. Importing the Mesh ............................................................................................................. 151
8.4.2. Analysis Type ........................................................................................................................ 152
8.4.3. Creating the Domain ............................................................................................................ 153
8.4.4. Creating the Boundaries ....................................................................................................... 154
8.4.4.1. Hot and Cold Wall Boundary ........................................................................................ 154
8.4.4.2. Symmetry Plane Boundary ........................................................................................... 155
8.4.5. Setting Initial Values ............................................................................................................. 156
8.4.6. Setting Output Control ......................................................................................................... 156
8.4.7. Setting Solver Control .......................................................................................................... 157
8.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................. 158
8.5. Obtaining the Solution Using CFX-Solver Manager ........................................................................ 158
8.6. Viewing the Results Using CFD-Post .............................................................................................. 159
8.6.1. Simple Report ...................................................................................................................... 159
8.6.2. Plots for Customized Reports ................................................................................................ 159
8.6.2.1. Contour Plot of Temperature ........................................................................................ 159
8.6.2.2. Point Locators .............................................................................................................. 160
8.6.2.3. Comment .................................................................................................................... 160
8.6.2.4. Figure .......................................................................................................................... 160
8.6.2.5.Time Chart of Temperature ........................................................................................... 161
8.6.2.6. Table of Temperature Values ......................................................................................... 162
8.6.3. Customized Report ............................................................................................................... 162
8.6.4. Animations .......................................................................................................................... 162
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vii
Tutorials
8.6.5. Completion .......................................................................................................................... 162
9. Free Surface Flow Over a Bump .......................................................................................................... 163
9.1. Tutorial Features ........................................................................................................................... 163
9.2. Overview of the Problem to Solve ................................................................................................. 164
9.3. Preparing the Working Directory ................................................................................................... 165
9.4. Defining the Case Using CFX-Pre ................................................................................................... 165
9.4.1. Importing the Mesh ............................................................................................................. 165
9.4.2. Viewing the Region Labels .................................................................................................... 166
9.4.3. Creating Expressions for Initial and Boundary Conditions ...................................................... 166
9.4.3.1. Creating Expressions in CEL ......................................................................................... 167
9.4.3.2. Reading Expressions From a File ................................................................................... 167
9.4.4. Creating the Domain ............................................................................................................ 168
9.4.5. Creating the Boundaries ....................................................................................................... 170
9.4.5.1. Inlet Boundary ............................................................................................................. 170
9.4.5.2. Outlet Boundary .......................................................................................................... 170
9.4.5.3. Symmetry Boundaries .................................................................................................. 171
9.4.5.4. Opening and Wall Boundaries ...................................................................................... 171
9.4.6. Setting Initial Values ............................................................................................................. 173
9.4.7. Setting Mesh Adaption Parameters ....................................................................................... 174
9.4.8. Setting the Solver Controls ................................................................................................... 175
9.4.9. Writing the CFX-Solver Input (.def ) File ................................................................................. 176
9.5. Obtaining the Solution Using CFX-Solver Manager ........................................................................ 176
9.6. Viewing the Results Using CFD-Post .............................................................................................. 177
9.6.1. Creating Velocity Vector Plots ............................................................................................... 178
9.6.2. Viewing Mesh Refinement .................................................................................................... 179
9.6.3. Creating an Isosurface to Show the Free Surface ................................................................... 182
9.6.4. Creating a Polyline that Follows the Free Surface ................................................................... 183
9.6.5. Creating a Chart to Show the Height of the Surface ............................................................... 183
9.6.6. Further Postprocessing ......................................................................................................... 184
9.7. Further Discussion ........................................................................................................................ 184
10. Supersonic Flow Over a Wing ............................................................................................................ 185
10.1. Tutorial Features ......................................................................................................................... 185
10.2. Overview of the Problem to Solve ................................................................................................ 186
10.3. Preparing the Working Directory ................................................................................................. 186
10.4. Defining the Case Using CFX-Pre ................................................................................................. 187
10.4.1. Importing the Mesh ............................................................................................................ 187
10.4.2. Creating the Domain .......................................................................................................... 187
10.4.3. Creating the Boundaries ..................................................................................................... 188
10.4.3.1. Creating an Inlet Boundary ........................................................................................ 188
10.4.3.2. Creating an Outlet Boundary ...................................................................................... 189
10.4.3.3. Creating the Symmetry Plane Boundaries ................................................................... 190
10.4.3.4. Creating a Free Slip Boundary .................................................................................... 190
10.4.3.5. Creating a Wall Boundary ........................................................................................... 191
10.4.4. Creating Domain Interfaces ................................................................................................ 191
10.4.5. Setting Initial Values ........................................................................................................... 191
10.4.6. Setting the Solver Controls ................................................................................................. 192
10.4.7. Writing the CFX-Solver Input (.def ) File ................................................................................ 193
10.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 193
10.6. Viewing the Results Using CFD-Post ............................................................................................. 194
10.6.1. Displaying Mach Information .............................................................................................. 194
10.6.2. Displaying Pressure Information ......................................................................................... 194
10.6.3. Displaying Temperature Information ................................................................................... 195
viii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
10.6.4. Displaying Pressure With User Vectors ................................................................................. 195
11. Flow Through a Butterfly Valve ......................................................................................................... 197
11.1. Tutorial Features ......................................................................................................................... 197
11.2. Overview of the Problem to Solve ................................................................................................ 198
11.3. Preparing the Working Directory ................................................................................................. 199
11.4. Defining the Case Using CFX-Pre ................................................................................................. 199
11.4.1. Importing the Mesh ............................................................................................................ 199
11.4.2. Defining the Properties of the Sand .................................................................................... 200
11.4.3. Creating the Domain .......................................................................................................... 201
11.4.4. Creating the Inlet Velocity Profile ........................................................................................ 206
11.4.5. Creating the Boundary Conditions ...................................................................................... 207
11.4.5.1. Inlet Boundary ........................................................................................................... 207
11.4.5.2. Outlet Boundary ........................................................................................................ 210
11.4.5.3. Symmetry Plane Boundary ......................................................................................... 211
11.4.5.4. Pipe Wall Boundary .................................................................................................... 211
11.4.5.5. Editing the Default Boundary ..................................................................................... 212
11.4.6. Setting Initial Values ........................................................................................................... 213
11.4.7. Setting the Solver Controls ................................................................................................. 213
11.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 215
11.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 215
11.6. Viewing the Results Using CFD-Post ............................................................................................. 215
11.6.1. Erosion Due to Sand Particles .............................................................................................. 215
11.6.2. Displaying Erosion on the Pipe Wall .................................................................................... 216
11.6.3. Creating Particle Tracks ....................................................................................................... 216
11.6.4. Creating a Particle Track Animation ..................................................................................... 217
11.6.5. Determining Minimum, Maximum, and Average Pressure Values .......................................... 218
11.6.6. Other Features ................................................................................................................... 219
12. Flow in a Catalytic Converter ............................................................................................................ 221
12.1. Tutorial Features ......................................................................................................................... 221
12.2. Overview of the Problem to Solve ................................................................................................ 222
12.3. Preparing the Working Directory ................................................................................................. 223
12.4. Defining the Case Using CFX-Pre ................................................................................................. 223
12.4.1. Importing the Meshes and CCL File ..................................................................................... 224
12.4.1.1. Importing the Required Expressions From a CCL File ................................................... 224
12.4.1.2. Importing the Housing Mesh ..................................................................................... 225
12.4.1.3. Importing the Pipe and Flange Mesh .......................................................................... 225
12.4.1.4. Creating a Second Pipe and Flange Mesh ................................................................... 226
12.4.1.5. Creating a Single Region for Both Pipe and Flange Meshes ......................................... 226
12.4.2. Creating the Fluid Domain .................................................................................................. 227
12.4.3. Creating the Porous Domain ............................................................................................... 228
12.4.4. Creating and Editing the Boundaries ................................................................................... 231
12.4.4.1. Creating the Inlet Boundary ....................................................................................... 231
12.4.4.2. Creating the Outlet Boundary .................................................................................... 231
12.4.4.3. Editing the Housing Default Boundary ....................................................................... 232
12.4.5. Creating the Domain Interfaces .......................................................................................... 233
12.4.6. Setting Initial Values ........................................................................................................... 234
12.4.7. Setting Solver Control ......................................................................................................... 235
12.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 235
12.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 235
12.6. Viewing the Results Using CFD-Post ............................................................................................. 236
12.6.1. Viewing the Mesh on a GGI Interface ................................................................................... 236
12.6.2. Creating User Locations ...................................................................................................... 237
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ix
Tutorials
12.6.2.1. Creating a Slice Plane ................................................................................................. 237
12.6.2.2. Creating a User Surface .............................................................................................. 238
12.6.2.3. Creating a Polyline ..................................................................................................... 239
12.6.3. Creating Plots ..................................................................................................................... 240
12.6.3.1. Creating a Contour Plot of Pressure ............................................................................ 240
12.6.3.2. Creating a Vector Plot on the Slice Plane ..................................................................... 241
12.6.3.3. Creating a Chart of Pressure versus the Z Coordinate .................................................. 241
12.6.4. Exporting Polyline Data ...................................................................................................... 242
13. Non-Newtonian Fluid Flow in an Annulus ........................................................................................ 245
13.1. Tutorial Features ......................................................................................................................... 245
13.2. Overview of the Problem to Solve ................................................................................................ 245
13.3. Background Theory ..................................................................................................................... 246
13.4. Preparing the Working Directory ................................................................................................. 247
13.5. Defining the Case Using CFX-Pre ................................................................................................. 248
13.5.1. Importing the Mesh ............................................................................................................ 248
13.5.2. Creating the Fluid ............................................................................................................... 248
13.5.3. Creating the Domain .......................................................................................................... 250
13.5.4. Creating the Boundaries ..................................................................................................... 250
13.5.4.1. Wall Boundary for the Inner Pipe ................................................................................ 250
13.5.4.2. Symmetry Plane Boundary ......................................................................................... 251
13.5.5. Setting Initial Values ........................................................................................................... 252
13.5.6. Setting Solver Control ......................................................................................................... 253
13.5.7. Writing the CFX-Solver Input (.def ) File ................................................................................ 253
13.6. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 254
13.7. Viewing the Results Using CFD-Post ............................................................................................. 254
14. Flow in an Axial Turbine Stage .......................................................................................................... 257
14.1. Tutorial Features ......................................................................................................................... 257
14.2. Overview of the Problem to Solve ................................................................................................ 258
14.3. Preparing the Working Directory ................................................................................................. 260
14.4. Simulating the Stage with the Steady-State Frozen Rotor Model ................................................... 261
14.4.1. Defining the Case Using CFX-Pre ......................................................................................... 261
14.4.1.1. Basic Settings ............................................................................................................ 261
14.4.1.2. Component Definition ............................................................................................... 262
14.4.1.3. Physics Definition ...................................................................................................... 263
14.4.1.4. Interface Definition .................................................................................................... 265
14.4.1.5. Boundary Definition .................................................................................................. 265
14.4.1.6. Final Operations ........................................................................................................ 265
14.4.1.7. Writing the CFX-Solver Input (.def ) File ....................................................................... 265
14.4.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 266
14.4.2.1. Obtaining a Solution in Serial ..................................................................................... 266
14.4.2.2. Obtaining a Solution With Local Parallel ..................................................................... 266
14.4.2.3. Obtaining a Solution with Distributed Parallel ............................................................ 267
14.4.2.4. Viewing the Results Using CFD-Post ........................................................................... 267
14.4.2.4.1. Initializing Turbo-Post ........................................................................................ 267
14.4.2.4.2. Viewing Three Domain Passages ........................................................................ 268
14.4.2.4.3. Blade Loading Turbo Chart ................................................................................ 269
14.4.3. Simulating the Stage with the Exit Corrected Mass Flow Rate Boundary Condition ............... 269
14.4.3.1. Writing the CFX-Solver Input (.def ) File ....................................................................... 271
14.4.3.2. Obtaining the Solution Using CFX-Solver Manager ..................................................... 271
14.4.4. Comparing the Two Cases Using CFD-Post .......................................................................... 272
14.5. Simulating the Stage with the Transient Rotor-Stator Model ......................................................... 274
14.5.1. Defining the Case Using CFX-Pre ......................................................................................... 274
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
14.5.1.1. Modifying the Physics Definition ................................................................................ 274
14.5.1.2. Setting Output Control .............................................................................................. 276
14.5.1.3. Modifying Execution Control ...................................................................................... 277
14.5.1.4. Writing the CFX-Solver Input (.def ) File ....................................................................... 277
14.5.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 277
14.5.2.1. Serial Solution ........................................................................................................... 277
14.5.2.2. Parallel Solution ......................................................................................................... 278
14.5.2.3. Monitoring the Run ................................................................................................... 278
14.5.3. Viewing the Results Using CFD-Post .................................................................................... 278
14.5.3.1. Initializing Turbo-Post ................................................................................................ 278
14.5.3.2. Displaying a Surface of Constant Span ........................................................................ 279
14.5.3.3. Using Multiple Turbo Viewports ................................................................................. 279
14.5.3.4. Creating a Turbo Surface at Mid-Span ......................................................................... 279
14.5.3.5. Setting up Instancing Transformations ....................................................................... 280
14.5.3.6. Animating the Movement of the Rotor Relative to the Stator ...................................... 280
14.5.3.7. Further Postprocessing .............................................................................................. 282
15. Reacting Flow in a Mixing Tube ......................................................................................................... 283
15.1. Tutorial Features ......................................................................................................................... 283
15.2. Overview of the Problem to Solve ................................................................................................ 284
15.3. Preparing the Working Directory ................................................................................................. 286
15.4. Defining the Case Using CFX-Pre ................................................................................................. 286
15.4.1. Importing the Mesh ............................................................................................................ 287
15.4.2. Creating a Multicomponent Fluid ........................................................................................ 287
15.4.2.1. Acid Properties .......................................................................................................... 287
15.4.2.2. Alkali Properties ......................................................................................................... 289
15.4.2.3. Reaction Product Properties ....................................................................................... 291
15.4.2.4. Fluid Properties ......................................................................................................... 292
15.4.3. Creating an Additional Variable to Model pH ....................................................................... 293
15.4.4. Formulating the Reaction and pH as Expressions ................................................................. 293
15.4.4.1. Stoichiometric Ratio .................................................................................................. 293
15.4.4.2. Reaction Source Terms ............................................................................................... 295
15.4.4.3. Calculating pH ........................................................................................................... 297
15.4.4.4. Loading the Expressions to Model the Reaction and pH .............................................. 298
15.4.5. Creating the Domain .......................................................................................................... 299
15.4.6. Creating a Subdomain to Model the Chemical Reactions ..................................................... 301
15.4.7. Creating the Boundary Conditions ...................................................................................... 304
15.4.7.1. Water Inlet Boundary ................................................................................................. 304
15.4.7.2. Acid Inlet Boundary ................................................................................................... 305
15.4.7.3. Alkali Inlet Boundary .................................................................................................. 306
15.4.7.4. Outlet Boundary ........................................................................................................ 307
15.4.7.5. Symmetry Boundary .................................................................................................. 307
15.4.7.6. Default Wall Boundary ............................................................................................... 308
15.4.8. Setting Initial Values ........................................................................................................... 308
15.4.9. Setting Solver Control ......................................................................................................... 310
15.4.10. Writing the CFX-Solver Input (.def ) File .............................................................................. 310
15.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 311
15.6. Viewing the Results Using CFD-Post ............................................................................................. 311
16. Heat Transfer from a Heating Coil ..................................................................................................... 313
16.1. Tutorial Features ......................................................................................................................... 313
16.2. Overview of the Problem to Solve ................................................................................................ 314
16.3. Preparing the Working Directory ................................................................................................. 315
16.4. Defining the Case Using CFX-Pre ................................................................................................. 315
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xi
Tutorials
16.4.1. Importing the Mesh ............................................................................................................ 316
16.4.2. Editing the Material Properties ............................................................................................ 316
16.4.3. Defining the Calcium Carbonate Deposit Material ............................................................... 317
16.4.4. Creating the Domains ......................................................................................................... 318
16.4.4.1. Creating a Fluid Domain ............................................................................................ 318
16.4.4.2. Creating a Solid Domain ............................................................................................ 319
16.4.5. Creating the Boundaries ..................................................................................................... 320
16.4.5.1. Heating Coil Boundaries ............................................................................................. 320
16.4.5.2. Inlet Boundary ........................................................................................................... 321
16.4.5.3. Opening Boundary .................................................................................................... 321
16.4.6. Creating the Domain Interface ............................................................................................ 322
16.4.7. Setting Solver Control ......................................................................................................... 323
16.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 324
16.5. Obtaining the Solution using CFX-Solver Manager ....................................................................... 324
16.6. Viewing the Results Using CFD-Post ............................................................................................. 324
16.6.1. Heating Coil Temperature Range ......................................................................................... 324
16.6.2. Creating a Cylindrical Locator ............................................................................................. 325
16.6.2.1. Expression ................................................................................................................. 325
16.6.2.2. Variable ..................................................................................................................... 325
16.6.2.3. Isosurface of the variable ........................................................................................... 326
16.6.2.4. Creating a Temperature Profile Chart .......................................................................... 327
16.6.3. Specular Lighting ............................................................................................................... 328
16.6.4. Moving the Light Source ..................................................................................................... 328
16.7. Exporting the Results to ANSYS ................................................................................................... 328
16.7.1. Thermal Data ...................................................................................................................... 329
16.7.2. Mechanical Stresses ............................................................................................................ 329
17. Multiphase Flow in a Mixing Vessel .................................................................................................. 331
17.1. Tutorial Features ......................................................................................................................... 331
17.2. Overview of the Problem to Solve ................................................................................................ 332
17.3. Preparing the Working Directory ................................................................................................. 333
17.4. Defining the Case Using CFX-Pre ................................................................................................. 334
17.4.1. Importing the Meshes ........................................................................................................ 334
17.4.1.1. Importing the Mixer Tank Mesh .................................................................................. 335
17.4.1.2. Importing the Impeller Mesh ...................................................................................... 335
17.4.1.3. Relocating the Impeller Mesh ..................................................................................... 336
17.4.1.4. Viewing the Mesh at the Tank Periodic Boundary ........................................................ 336
17.4.2. Creating the Domains ......................................................................................................... 336
17.4.2.1. Rotating Domain for the Impeller ............................................................................... 337
17.4.2.2. Stationary Domain for the Main Tank .......................................................................... 341
17.4.3. Creating the Boundaries ..................................................................................................... 341
17.4.3.1. Air Inlet Boundary ...................................................................................................... 342
17.4.3.2. Degassing Outlet Boundary ....................................................................................... 343
17.4.3.3. Thin Surface for the Baffle .......................................................................................... 344
17.4.3.4. Wall Boundary for the Shaft ........................................................................................ 345
17.4.3.5. Required Boundary in the Impeller Domain ................................................................ 346
17.4.3.6. Modifying the Default Wall Boundary ......................................................................... 347
17.4.4. Creating the Domain Interfaces .......................................................................................... 348
17.4.4.1. Modeling the Blade Using a Domain Interface ............................................................ 348
17.4.4.2. Rotational Periodic Interfaces ..................................................................................... 350
17.4.4.3. Frozen Rotor Interfaces .............................................................................................. 351
17.4.5. Setting Initial Values ........................................................................................................... 353
17.4.6. Setting Solver Control ......................................................................................................... 355
xii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
17.4.7. Adding Monitor Points ....................................................................................................... 356
17.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 356
17.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 357
17.6. Viewing the Results Using CFD-Post ............................................................................................. 357
17.6.1. Creating a Plane Locator ..................................................................................................... 357
17.6.2. Plotting Velocity ................................................................................................................. 358
17.6.3. Plotting Pressure Distribution ............................................................................................. 359
17.6.4. Plotting Volume Fractions ................................................................................................... 359
17.6.5. Plotting Shear Strain Rate and Shear Stress ......................................................................... 359
17.6.6. Calculating Torque and Power Requirements ...................................................................... 360
18. Gas-Liquid Flow in an Airlift Reactor ................................................................................................ 363
18.1. Tutorial Features ......................................................................................................................... 363
18.2. Overview of the Problem to Solve ................................................................................................ 364
18.3. Preparing the Working Directory ................................................................................................. 365
18.4. Defining the Case Using CFX-Pre ................................................................................................. 365
18.4.1. Importing the Mesh ............................................................................................................ 366
18.4.2. Creating the Domain .......................................................................................................... 366
18.4.3. Creating the Boundary Conditions ...................................................................................... 370
18.4.3.1. Inlet Boundary ........................................................................................................... 370
18.4.3.2. Outlet Boundary ........................................................................................................ 371
18.4.3.3. Draft Tube Boundaries ............................................................................................... 372
18.4.3.4. Symmetry Plane Boundary ......................................................................................... 373
18.4.3.5. Modifying the Default Boundary ................................................................................ 373
18.4.4. Setting Initial Values ........................................................................................................... 374
18.4.5. Setting Solver Control ......................................................................................................... 377
18.4.6. Writing the CFX-Solver Input (.def ) File ................................................................................ 378
18.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 379
18.6. Viewing the Results Using CFD-Post ............................................................................................. 379
18.6.1. Creating Water Velocity Vector Plots .................................................................................... 379
18.6.2. Creating Volume Fraction Plots ........................................................................................... 380
18.6.3. Displaying the Entire Airlift Reactor Geometry ..................................................................... 382
18.7. Further Discussion ...................................................................................................................... 382
19. Air Conditioning Simulation ............................................................................................................. 385
19.1. Tutorial Features ......................................................................................................................... 385
19.2. Overview of the Problem to Solve ................................................................................................ 386
19.3. Preparing the Working Directory ................................................................................................. 388
19.4. Defining the Case Using CFX-Pre ................................................................................................. 388
19.4.1. Importing the Mesh ............................................................................................................ 389
19.4.2. Importing CEL Expressions ................................................................................................. 389
19.4.3. Compiling the Fortran Subroutine for the Thermostat ......................................................... 390
19.4.4. Creating a User CEL Function for the Thermostat ................................................................. 391
19.4.5. Setting the Analysis Type .................................................................................................... 392
19.4.6. Creating the Domain .......................................................................................................... 393
19.4.7. Creating the Boundaries ..................................................................................................... 395
19.4.7.1. Inlet Boundary ........................................................................................................... 395
19.4.7.2. Outlet Boundary ........................................................................................................ 396
19.4.7.3. Window Boundary ..................................................................................................... 397
19.4.7.4. Default Wall Boundary ............................................................................................... 398
19.4.8. Closet Wall Interface ........................................................................................................... 399
19.4.9. Creating a Logical Expression for the Conditional GGI Interface ........................................... 400
19.4.10. Creating a Conditional GGI Interface for the Closet Door .................................................... 400
19.4.11. Creating Space Under the Closet Door .............................................................................. 402
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xiii
Tutorials
19.4.12. Setting Initial Values ......................................................................................................... 402
19.4.13. Setting Solver Control ....................................................................................................... 404
19.4.14. Setting Output Control ..................................................................................................... 405
19.4.15. Writing the CFX-Solver Input (.def ) File .............................................................................. 406
19.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 407
19.6. Viewing the Results Using CFD-Post ............................................................................................. 407
19.6.1. Creating Graphics Objects .................................................................................................. 408
19.6.1.1. Creating Planes .......................................................................................................... 408
19.6.1.2. Creating an Isosurface ................................................................................................ 408
19.6.1.3. Adjusting the Legend ................................................................................................ 409
19.6.1.4. Creating a Point for the Thermometer ........................................................................ 409
19.6.1.5. Creating a Text Label .................................................................................................. 409
19.6.2. Creating an Animation ........................................................................................................ 410
19.7. Further Discussion ...................................................................................................................... 411
20. Combustion and Radiation in a Can Combustor ............................................................................... 413
20.1. Tutorial Features ......................................................................................................................... 413
20.2. Overview of the Problem to Solve ................................................................................................ 414
20.3. Preparing the Working Directory ................................................................................................. 416
20.4. Simulating the Can Combustor with Eddy Dissipation Combustion and P1 Radiation .................... 417
20.4.1. Defining the Case Using CFX-Pre ......................................................................................... 417
20.4.1.1. Importing the Mesh ................................................................................................... 417
20.4.1.2. Creating a Reacting Mixture ....................................................................................... 417
20.4.1.2.1. To create the variable composition mixture ........................................................ 418
20.4.1.3. Creating the Domain ................................................................................................. 418
20.4.1.4. Creating the Boundaries ............................................................................................ 420
20.4.1.4.1. Fuel Inlet Boundary ........................................................................................... 420
20.4.1.4.2. Bottom Air Inlet Boundary ................................................................................. 420
20.4.1.4.3. Side Air Inlet Boundary ...................................................................................... 421
20.4.1.4.4. Outlet Boundary ............................................................................................... 422
20.4.1.4.5. Vanes Boundary ................................................................................................ 422
20.4.1.4.6. Default Wall Boundary ....................................................................................... 423
20.4.1.5. Setting Initial Values ................................................................................................... 423
20.4.1.6. Setting Solver Control ................................................................................................ 425
20.4.1.7. Writing the CFX-Solver Input (.def ) File ....................................................................... 426
20.4.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 426
20.4.3. Viewing the Results Using CFD-Post .................................................................................... 427
20.4.3.1. Temperature Within the Domain ................................................................................ 427
20.4.3.2. The NO Concentration in the Combustor .................................................................... 427
20.4.3.3. Printing a Greyscale Graphic ....................................................................................... 428
20.4.3.4. Calculating NO Mass Fraction at the Outlet ................................................................. 428
20.4.3.5. Viewing Flow Field ..................................................................................................... 428
20.4.3.6. Viewing Radiation ...................................................................................................... 430
20.5. Simulating the Can Combustor with Laminar Flamelet Combustion and Discrete Transfer Radiation .................................................................................................................................................. 430
20.5.1. Defining the Case Using CFX-Pre ......................................................................................... 431
20.5.1.1. Removing Old Reactions ............................................................................................ 432
20.5.1.2. Importing a New Reaction ......................................................................................... 432
20.5.1.3. Generating the Flamelet Library ................................................................................. 433
20.5.1.4. Modifying the Reacting Mixture ................................................................................. 434
20.5.1.5. Modifying the Default Domain ................................................................................... 435
20.5.1.6. Modifying the Boundaries .......................................................................................... 436
20.5.1.6.1. Fuel Inlet Boundary ........................................................................................... 436
xiv
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
20.5.1.6.2. Bottom Air Inlet Boundary ................................................................................. 437
20.5.1.6.3. Side Air Inlet Boundary ...................................................................................... 437
20.5.1.7. Setting Initial Values ................................................................................................... 438
20.5.1.8. Setting Solver Control ................................................................................................ 438
20.5.1.9. Writing the CFX-Solver Input (.def ) File ....................................................................... 439
20.5.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 439
20.5.3. Viewing the Results Using CFD-Post .................................................................................... 440
20.5.3.1. Viewing Temperature within the Domain .................................................................... 440
20.5.3.2. Viewing the NO Concentration in the Combustor ....................................................... 440
20.5.3.3. Calculating NO Concentration .................................................................................... 440
20.5.3.4. Viewing CO Concentration ......................................................................................... 441
20.5.3.5. Calculating CO Mass Fraction at the Outlet ................................................................. 441
20.5.3.6. Further Postprocessing .............................................................................................. 441
21. Cavitation Around a Hydrofoil .......................................................................................................... 443
21.1. Tutorial Features ......................................................................................................................... 443
21.2. Overview of the Problem to Solve ................................................................................................ 444
21.3. Preparing the Working Directory ................................................................................................. 444
21.4. Simulating the Hydrofoil without Cavitation ................................................................................ 445
21.4.1. Defining the Case Using CFX-Pre ......................................................................................... 445
21.4.1.1. Importing the Mesh ................................................................................................... 445
21.4.1.2. Loading Materials ...................................................................................................... 445
21.4.1.3. Creating the Domain ................................................................................................. 446
21.4.1.4. Creating the Boundaries ............................................................................................ 447
21.4.1.4.1. Inlet Boundary .................................................................................................. 447
21.4.1.4.2. Outlet Boundary ............................................................................................... 448
21.4.1.4.3. Free Slip Wall Boundary ..................................................................................... 448
21.4.1.4.4. Symmetry Plane Boundaries .............................................................................. 448
21.4.1.5. Setting Initial Values ................................................................................................... 449
21.4.1.6. Setting Solver Control ................................................................................................ 450
21.4.1.7. Writing the CFX-Solver Input (.def ) File ....................................................................... 451
21.4.2. Obtaining the Solution using CFX-Solver Manager .............................................................. 451
21.4.3. Viewing the Results Using CFD-Post .................................................................................... 452
21.4.3.1. Plotting Pressure Distribution Data ............................................................................. 452
21.4.3.2. Exporting Pressure Distribution Data .......................................................................... 455
21.4.3.3. Saving the Postprocessing State ................................................................................. 455
21.5. Simulating the Hydrofoil with Cavitation ...................................................................................... 455
21.5.1. Defining the Case Using CFX-Pre ......................................................................................... 455
21.5.1.1. Adding Cavitation ...................................................................................................... 456
21.5.1.2. Modifying Solver Control ........................................................................................... 457
21.5.1.3. Modifying Execution Control ...................................................................................... 457
21.5.1.4. Writing the CFX-Solver Input (.def ) File ....................................................................... 457
21.5.2. Obtaining the Solution using CFX-Solver Manager .............................................................. 458
21.5.3. Viewing the Results Using CFD-Post .................................................................................... 458
22. Modeling a Ball Check Valve using Mesh Deformation and the CFX Rigid Body Solver ................... 463
22.1. Tutorial Features ......................................................................................................................... 463
22.2. Overview of the Problem to Solve ................................................................................................ 464
22.3. Preparing the Working Directory ................................................................................................. 465
22.4. Defining the Case Using CFX-Pre ................................................................................................. 465
22.4.1. Importing the Mesh ............................................................................................................ 465
22.4.2. Defining a Transient Simulation .......................................................................................... 466
22.4.3. Editing the Domain ............................................................................................................ 467
22.4.4. Creating a Coordinate Frame .............................................................................................. 469
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xv
Tutorials
22.4.5. Creating a Rigid Body ......................................................................................................... 470
22.4.6. Creating the Subdomain ..................................................................................................... 472
22.4.7. Creating the Boundaries ..................................................................................................... 472
22.4.7.1. Ball Boundary ............................................................................................................ 473
22.4.7.2. Symmetry Boundary .................................................................................................. 473
22.4.7.3. Vertical Valve Wall Boundary ....................................................................................... 474
22.4.7.4. Tank Opening Boundary ............................................................................................ 474
22.4.7.5. Valve Opening Boundary ........................................................................................... 475
22.4.8. Setting Initial Values ........................................................................................................... 476
22.4.9. Setting Solver Control ......................................................................................................... 476
22.4.10. Setting Output Control ..................................................................................................... 477
22.4.11. Writing the CFX-Solver Input (.def ) File .............................................................................. 478
22.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 478
22.6. Viewing the Results Using CFD-Post ............................................................................................. 479
22.6.1. Creating a Slice Plane ......................................................................................................... 479
22.6.2. Creating Points and a Vector Plot ........................................................................................ 480
22.6.3. Creating an Animation ........................................................................................................ 481
23. Oscillating Plate with Two-Way Fluid-Structure Interaction ............................................................. 485
23.1. Tutorial Features ......................................................................................................................... 485
23.2. Overview of the Problem to Solve ................................................................................................ 486
23.3. Preparing the Working Directory ................................................................................................. 487
23.4. Setting up the Project ................................................................................................................. 487
23.5. Adding Analysis Systems to the Project ........................................................................................ 487
23.6. Adding a New Material for the Project ......................................................................................... 489
23.7. Adding Geometry to the Project .................................................................................................. 490
23.8. Defining the Physics in the Mechanical Application ...................................................................... 492
23.8.1. Generating the Mesh for the Structural System ................................................................... 492
23.8.2. Assigning the Material to Geometry .................................................................................... 492
23.8.3. Basic Analysis Settings ........................................................................................................ 492
23.8.4. Inserting Loads ................................................................................................................... 493
23.8.4.1. Fixed Support ............................................................................................................ 493
23.8.4.2. Fluid-Solid Interface ................................................................................................... 493
23.8.4.3. Pressure Load ............................................................................................................ 494
23.9. Completing the Setup for the Structural System ........................................................................... 494
23.10. Creating Named Selections on the Fluid Body ............................................................................ 495
23.11. Generating the Mesh for the Fluid System .................................................................................. 496
23.12. Defining the Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre ....................................... 496
23.12.1. Setting the Analysis Type .................................................................................................. 497
23.12.2. Creating the Fluid ............................................................................................................. 498
23.12.3. Creating the Domain ........................................................................................................ 499
23.12.4. Creating the Boundaries ................................................................................................... 501
23.12.4.1. Fluid Solid External Boundary ................................................................................... 501
23.12.4.2. Symmetry Boundaries .............................................................................................. 502
23.12.5. Setting Initial Values ......................................................................................................... 502
23.12.6. Setting Solver Control ....................................................................................................... 503
23.12.7. Setting Output Control ..................................................................................................... 505
23.13. Obtaining a Solution Using CFX-Solver Manager ........................................................................ 506
23.14. Viewing Results in CFD-Post ...................................................................................................... 507
23.14.1. Plotting Results on the Solid ............................................................................................. 507
23.14.2. Creating an Animation ...................................................................................................... 509
24. Optimizing Flow in a Static Mixer ..................................................................................................... 511
24.1. Tutorial Features ......................................................................................................................... 511
xvi
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
24.2. Overview of the Problem to Solve ................................................................................................ 512
24.3. Setting Up ANSYS Workbench ..................................................................................................... 513
24.4. Creating the Project .................................................................................................................... 513
24.5. Creating the Geometry in DesignModeler .................................................................................... 514
24.5.1. Creating the Solid ............................................................................................................... 514
24.5.1.1. Setting Up the Grid .................................................................................................... 514
24.5.1.2. Creating the Basic Geometry ...................................................................................... 515
24.5.1.3. Revolving the Sketch ................................................................................................. 516
24.5.1.4. Create the First Inlet Pipe ........................................................................................... 517
24.5.1.4.1. Extrude the First Side-pipe ................................................................................ 518
24.5.1.4.2. Make the Solid Visible ....................................................................................... 518
24.5.1.5. Create the Second Inlet Pipe ...................................................................................... 519
24.5.1.6. Create Named Selections ........................................................................................... 520
24.6. Creating the Mesh ....................................................................................................................... 522
24.7. Setting up the Case with CFX-Pre ................................................................................................. 522
24.8. Setting the Output Parameter in CFD-Post ................................................................................... 526
24.9. Investigating the Impact of Changing Design Parameters Manually .............................................. 527
24.10. Using Design of Experiments ..................................................................................................... 529
24.11. Viewing the Response Surface ................................................................................................... 530
24.12. Viewing the Optimization .......................................................................................................... 531
25. Aerodynamic and Structural Performance of a Centrifugal Compressor ......................................... 533
25.1. Tutorial Features ......................................................................................................................... 533
25.2. Overview of the Problem to Solve ................................................................................................ 534
25.3. Preparing the Working Directory ................................................................................................. 536
25.4. Setting Up the Project ................................................................................................................. 536
25.5. Defining the Geometry Using ANSYS BladeGen ........................................................................... 536
25.5.1. Changing the Blade Design Properties ................................................................................ 537
25.5.2. Reviewing the Geometry .................................................................................................... 538
25.6. Defining the Mesh ...................................................................................................................... 539
25.6.1. Defining the CFD Mesh Using ANSYS TurboGrid .................................................................. 539
25.6.1.1. Defining the Shroud Tip ............................................................................................. 539
25.6.1.2. Defining the Topology ............................................................................................... 540
25.6.1.3. Specifying the Mesh Data Settings ............................................................................. 540
25.6.1.4. Generating the Mesh ................................................................................................. 541
25.6.2. Defining the Structural Mesh Using Mechanical Model ........................................................ 541
25.6.2.1. Specifying the Global Mesh Controls .......................................................................... 542
25.6.2.2. Defining the Virtual Topology ..................................................................................... 542
25.6.2.3. Specifying the Sizing Controls .................................................................................... 545
25.6.2.4. Specifying the Face Meshing Controls ........................................................................ 549
25.6.2.5. Specifying the Method Controls ................................................................................. 550
25.6.2.6. Generating the Mesh ................................................................................................. 551
25.7. Defining the Case Using CFX-Pre ................................................................................................. 551
25.7.1. Defining the Fluid Region Using Turbo Mode ...................................................................... 552
25.7.1.1. Configuring the Basic Settings ................................................................................... 552
25.7.1.2. Defining the Components .......................................................................................... 553
25.7.1.3. Defining the Physics .................................................................................................. 554
25.7.1.4. Specifying the Domain Interfaces ............................................................................... 555
25.7.1.5. Specifying the Boundaries ......................................................................................... 555
25.7.1.6. Setting the Final Operations ....................................................................................... 556
25.7.2. Defining the Solid Region Using General Mode ................................................................... 556
25.7.2.1. Specifying the Domains ............................................................................................. 556
25.7.2.2. Specifying the Boundaries ......................................................................................... 557
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xvii
Tutorials
25.7.2.3. Specifying the Domain Interfaces ............................................................................... 557
25.8. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 558
25.9. Viewing the Results Using CFD-Post ............................................................................................. 559
25.10. Simulating the Structural Performance Using Static Structural .................................................... 560
25.10.1. Simulating the Structural Performance without Rotational Velocity .................................... 561
25.10.1.1. Importing the Loads ................................................................................................ 561
25.10.1.2. Specifying the Supports ........................................................................................... 562
25.10.1.3. Obtaining the Solution ............................................................................................. 563
25.10.2. Simulating the Structural Performance with Rotational Velocity ......................................... 563
25.10.2.1. Specifying the Loads ................................................................................................ 563
25.10.2.2. Obtaining the Solution ............................................................................................. 564
26. Axial Turbine Equilibrium and Non-Equilibrium Steam Predictions ................................................ 565
26.1. Tutorial Features ......................................................................................................................... 565
26.2. Overview of the Problem to Solve ................................................................................................ 567
26.3. Preparing the Working Directory ................................................................................................. 568
26.4. Simulating the Equilibrium Phase Change Case ........................................................................... 569
26.4.1. Defining the Case Using CFX-Pre ......................................................................................... 569
26.4.1.1. Basic Settings ............................................................................................................ 569
26.4.1.2. Component Definition ............................................................................................... 570
26.4.1.3. Physics Definition ...................................................................................................... 571
26.4.1.4. Interface Definition .................................................................................................... 572
26.4.1.5. Boundary Definition .................................................................................................. 573
26.4.1.6. Final Operations ........................................................................................................ 573
26.4.1.7. Defining the Properties of Water ................................................................................ 573
26.4.1.8. Modifications to Domain and Boundary Conditions .................................................... 576
26.4.1.9. Setting Initial Values ................................................................................................... 577
26.4.1.10. Writing the CFX-Solver Input (.def ) File ..................................................................... 578
26.4.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 579
26.4.3. Viewing the Results Using CFD-Post .................................................................................... 579
26.4.3.1. Specifying Locators for Plots ...................................................................................... 579
26.4.3.2. Static Pressure and Mass Fraction Contour Plots ......................................................... 580
26.4.3.3. Static Temperature Contour Plots ............................................................................... 580
26.5. Simulating the Non-equilibrium Phase Change Case .................................................................... 581
26.5.1. Defining the Case Using CFX-Pre ......................................................................................... 581
26.5.1.1. Modifying the Domains ............................................................................................. 582
26.5.1.2. Writing the CFX-Solver Input (.def ) File ....................................................................... 586
26.5.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 587
26.5.3. Viewing the Results Using CFD-Post .................................................................................... 587
26.5.3.1. Specifying Locators for Plots ...................................................................................... 588
26.5.3.2. Supercooling Contour Plot ......................................................................................... 588
26.5.3.3. Nucleation Rate and Droplet Number Contour Plots ................................................... 588
26.5.3.4. Mass Fraction and Particle Diameter Contour Plots ..................................................... 589
26.5.3.5. Gas and Condensed Phase Static Temperature Contour Plots ...................................... 590
27. Modeling a Gear Pump using an Immersed Solid ............................................................................. 593
27.1. Tutorial Features ......................................................................................................................... 593
27.2. Overview of the Problem to Solve ................................................................................................ 593
27.3. Preparing the Working Directory ................................................................................................. 595
27.4. Defining the Case Using CFX-Pre ................................................................................................. 595
27.4.1. Importing the Mesh ............................................................................................................ 595
27.4.2. Creating Expressions for Time Step and Total Time .............................................................. 596
27.4.3. Setting the Analysis Type .................................................................................................... 596
27.4.4. Creating the Domains ......................................................................................................... 597
xviii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
27.4.4.1. Creating an Immersed Solid Domain .......................................................................... 597
27.4.4.2. Creating the Stationary Fluid Domain ......................................................................... 598
27.4.4.3. Creating the Rotating Fluid Domain ........................................................................... 601
27.4.5. Creating the Domain Interface ............................................................................................ 602
27.4.6. Creating Boundary Conditions ............................................................................................ 605
27.4.6.1. Inlet Boundary ........................................................................................................... 605
27.4.6.2. Outlet Boundary ........................................................................................................ 606
27.4.7. Setting Solver Control ......................................................................................................... 606
27.4.8. Setting Output Control ....................................................................................................... 607
27.4.9. Writing the CFX-Solver Input (.def ) File ................................................................................ 608
27.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 609
27.6. Viewing the Results Using CFD-Post ............................................................................................. 610
27.6.1. Creating a Chart of Mass Flow versus Time .......................................................................... 610
27.6.2. Creating a Velocity Vector Plot ............................................................................................ 611
27.6.3. Changing the Appearance in Preparation for an Animation ................................................. 612
27.6.4. Creating a Keyframe Animation .......................................................................................... 614
28. Drop Curve for Cavitating Flow in a Pump ........................................................................................ 617
28.1. Tutorial Features ......................................................................................................................... 617
28.2. Overview of the Problem to Solve ................................................................................................ 617
28.3. Preparing the Working Directory ................................................................................................. 619
28.4. Simulating the Pump with High Inlet Pressure .............................................................................. 619
28.4.1. Defining the Case Using CFX-Pre ......................................................................................... 619
28.4.1.1. Importing the Mesh ................................................................................................... 619
28.4.1.2. Loading Materials ...................................................................................................... 620
28.4.1.3. Creating the Domain ................................................................................................. 620
28.4.1.4. Creating the Boundaries ............................................................................................ 621
28.4.1.4.1. Inlet Boundary .................................................................................................. 621
28.4.1.4.2. Outlet Boundary ............................................................................................... 622
28.4.1.4.3. Wall Boundaries ................................................................................................ 622
28.4.1.5. Creating Domain Interfaces ........................................................................................ 623
28.4.1.5.1. Inblock to Passage Interface .............................................................................. 623
28.4.1.5.2. Passage to Outblock Interface ........................................................................... 624
28.4.1.6. Setting Initial Values ................................................................................................... 624
28.4.1.7. Setting Solver Controls .............................................................................................. 626
28.4.1.8. Writing the CFX-Solver Input (.def ) File ....................................................................... 627
28.4.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 627
28.4.3. Viewing the Results Using CFD-Post .................................................................................... 627
28.5. Simulating the Pump with Cavitation and High Inlet Pressure ....................................................... 628
28.5.1. Defining the Case Using CFX-Pre ......................................................................................... 628
28.5.1.1. Modifying the Domain and Boundary Conditions ....................................................... 628
28.5.1.2. Creating Expressions .................................................................................................. 631
28.5.1.3. Adding Monitor Points ............................................................................................... 631
28.5.1.4. Writing the CFX-Solver Input (.def ) File ....................................................................... 632
28.5.2. Obtaining the Solution using CFX-Solver Manager .............................................................. 632
28.5.3. Viewing the Results Using CFD-Post .................................................................................... 633
28.6. Simulating the Pump with Cavitation and a Range of Inlet Pressures ............................................ 634
28.6.1. Writing CFX-Solver Input (.def ) Files for Lower Inlet Pressures .............................................. 634
28.6.2. Obtaining the Solutions using CFX-Solver Manager ............................................................. 635
28.6.3. Viewing the Results Using CFD-Post .................................................................................... 635
28.6.3.1. Generating a Drop Curve ........................................................................................... 636
28.6.3.1.1. Creating a Table of the Head and NPSH Values ................................................... 636
28.6.3.1.2. Creating a Head-versus-NPSH Chart ................................................................... 636
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xix
Tutorials
28.6.3.1.3. Viewing the Drop Curve .................................................................................... 637
28.6.3.1.4. Creating a Head-versus-NPSH Chart (Optional Exercise) ..................................... 638
28.6.3.1.5. Viewing the Drop Curve .................................................................................... 640
28.6.3.2. Visualizing the Cavitation Regions (Optional Exercise) ................................................. 641
28.6.3.3. Restoring CFX run history and multi-configuration options ......................................... 642
29. Spray Dryer ........................................................................................................................................ 643
29.1. Tutorial Features ......................................................................................................................... 643
29.2. Overview of the Problem to Solve ................................................................................................ 644
29.3. Preparing the Working Directory ................................................................................................. 645
29.4. Defining the Case Using CFX-Pre ................................................................................................. 645
29.4.1. Importing the Mesh ............................................................................................................ 646
29.4.2. Importing the Evaporating CCL Drops Model Template ....................................................... 646
29.4.3. Editing the Domain ............................................................................................................ 647
29.4.4. Creating and Editing the Boundary Conditions .................................................................... 648
29.4.4.1. Water Nozzle Boundary .............................................................................................. 649
29.4.4.2. Air Inlet Boundary ...................................................................................................... 650
29.4.4.3. Outlet Boundary ........................................................................................................ 651
29.4.4.4. Domain 1 Default ...................................................................................................... 652
29.4.5. Creating a Domain Interface ............................................................................................... 652
29.4.6. Setting Solver Control ......................................................................................................... 653
29.4.7. Setting Output Control ....................................................................................................... 654
29.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 654
29.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 655
29.6. Viewing the Results Using CFD-Post ............................................................................................. 655
29.6.1. Displaying the Temperature Using a Contour Plot ................................................................ 655
29.6.2. Displaying the Water Mass Fraction Using a Contour Plot ..................................................... 656
29.6.3. Displaying the Liquid Water Averaged Mean Particle Diameter Using a Contour Plot ............ 656
29.6.4. Displaying the Liquid Water Averaged Temperature Using a Contour Plot ............................ 656
29.6.5. Displaying the Liquid Water Temperature Using Particle Tracking ......................................... 656
29.6.6. Displaying the Diameter of a Water Drop Using Particle Tracking ......................................... 657
30. Coal Combustion ............................................................................................................................... 659
30.1. Tutorial Features ......................................................................................................................... 659
30.2. Overview of the Problem to Solve ................................................................................................ 659
30.3. Preparing the Working Directory ................................................................................................. 661
30.4. Simulating the Coal Combustion without Swirl and without Nitrogen Oxide ................................. 662
30.4.1. Defining the Case Using CFX-Pre ......................................................................................... 662
30.4.1.1. Importing the Mesh ................................................................................................... 662
30.4.1.2. Importing the Coal Combustion Materials CCL File ...................................................... 662
30.4.1.3. Creating the Domain ................................................................................................. 664
30.4.1.4. Creating the Boundary Conditions ............................................................................. 668
30.4.1.4.1. Coal Inlet Boundary ........................................................................................... 668
30.4.1.4.2. Air Inlet Boundary ............................................................................................. 671
30.4.1.4.3. Outlet Boundary ............................................................................................... 672
30.4.1.4.4. Coal Gun No-Slip Wall Boundary ........................................................................ 673
30.4.1.4.5. Coal Inlet No-Slip Wall Boundary ........................................................................ 673
30.4.1.4.6. Air Inlet No-Slip Wall Boundary .......................................................................... 674
30.4.1.4.7. Furnace No-Slip Wall Boundary .......................................................................... 675
30.4.1.4.8. Quarl No-Slip Wall Boundary .............................................................................. 675
30.4.1.4.9. Symmetry Plane Boundaries .............................................................................. 676
30.4.1.5. Setting Solver Control ................................................................................................ 676
30.4.1.6. Writing the CFX-Solver Input (.def ) File ....................................................................... 678
30.4.2. Obtaining the Solution using CFX-Solver Manager .............................................................. 679
xx
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
30.4.3. Viewing the Results Using CFD-Post .................................................................................... 679
30.4.3.1. Displaying the Temperature on a Symmetry Plane ...................................................... 679
30.4.3.2. Displaying the Water Mass Fraction ............................................................................ 680
30.4.3.3. Displaying the Radiation Intensity .............................................................................. 680
30.4.3.4. Displaying the Temperature of the Fuel Particles ......................................................... 680
30.4.3.5. Displaying the Ash Mass Fraction using Particle Tracking ............................................ 680
30.5. Simulating the Coal Combustion with Swirl and without Nitrogen Oxide ...................................... 681
30.5.1. Defining the Case Using CFX-Pre ......................................................................................... 681
30.5.1.1. Editing the Boundary Conditions ................................................................................ 681
30.5.1.1.1. Air Inlet Boundary ............................................................................................. 682
30.5.1.1.2. Outlet Boundary ............................................................................................... 682
30.5.1.1.3. Deleting the Symmetry Plane Boundaries .......................................................... 683
30.5.1.2. Creating a Domain Interface ...................................................................................... 683
30.5.1.3. Writing the CFX-Solver Input (.def ) File ....................................................................... 683
30.5.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 683
30.5.3. Viewing the Results Using CFD-Post .................................................................................... 684
30.5.3.1. Displaying the Temperature on a Periodic Interface .................................................... 684
30.5.3.2. Displaying the Water Mass Fraction ............................................................................ 684
30.5.3.3. Displaying the Radiation Intensity .............................................................................. 684
30.5.3.4. Displaying the Temperature using Particle Tracking .................................................... 685
30.5.3.5. Displaying the Ash Mass Fraction using Particle Tracking ............................................ 685
30.6. Simulating the Coal Combustion with Swirl and with Nitrogen Oxide ........................................... 685
30.6.1. Defining the Case Using CFX-Pre ......................................................................................... 685
30.6.1.1. Editing the Domain .................................................................................................... 686
30.6.1.2. Writing the CFX-Solver Input (.def ) File ....................................................................... 687
30.6.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 687
30.6.3. Viewing the Results Using CFD-Post .................................................................................... 688
31. Steam Jet ........................................................................................................................................... 689
31.1. Tutorial Features ......................................................................................................................... 689
31.2. Overview of the Problem to Solve ................................................................................................ 690
31.3. Preparing the Working Directory ................................................................................................. 691
31.4. Defining the Case Using CFX-Pre ................................................................................................. 691
31.4.1. Importing the Mesh ............................................................................................................ 691
31.4.2. Importing the Steam Jet CCL .............................................................................................. 692
31.4.3. Creating a Steady-State Analysis ......................................................................................... 693
31.4.4. Creating and Loading Materials .......................................................................................... 693
31.4.4.1. Loading the Steam3v, Steam3l, and Steam3vl Materials ............................................... 694
31.4.4.2. Creating the Gas Mixture Material .............................................................................. 694
31.4.4.3. Creating the Liquid Mixture Material .......................................................................... 695
31.4.5. Creating the Domain .......................................................................................................... 695
31.4.6. Creating Subdomains ......................................................................................................... 699
31.4.6.1. Gas-to-Liquid Source Subdomain ............................................................................... 699
31.4.6.2. Liquid-to-Gas Source Subdomain ............................................................................... 705
31.4.7. Creating Boundaries ........................................................................................................... 710
31.4.7.1. Inlet Boundary ........................................................................................................... 711
31.4.7.2. Opening Boundary for the Outside Edges ................................................................... 712
31.4.7.3. Creating the Symmetry Plane Boundaries ................................................................... 714
31.4.8. Creating a Time Step Expression ......................................................................................... 715
31.4.9. Setting Solver Control ......................................................................................................... 716
31.4.10. Writing the CFX-Solver Input (.def ) File .............................................................................. 717
31.5. Obtaining the Solution Using CFX-Solver Manager ...................................................................... 717
31.6. Viewing the Results Using CFD-Post ............................................................................................. 717
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xxi
Tutorials
31.6.1. Displaying the Steam Molar Fraction ................................................................................... 717
31.6.2. Displaying the Gas-to-Liquid Mass Transfer Rate .................................................................. 718
31.6.3. Displaying the Liquid-to-Gas Mass Transfer Rate .................................................................. 718
31.6.4. Displaying the Gas-to-Liquid and Liquid-to-Gas Phase Transfer Rates in Synchronous
Views ........................................................................................................................................... 718
31.6.5. Creating a Chart to Plot the False Time Step Along a Line ..................................................... 719
32. Modeling a Buoy using the CFX Rigid Body Solver ........................................................................... 721
32.1. Tutorial Features ......................................................................................................................... 721
32.2. Overview of the Problem to Solve ................................................................................................ 722
32.3. Preparing the Working Directory ................................................................................................. 723
32.4. Simulating the Buoy with Fully Coupled Mesh Motion .................................................................. 724
32.4.1. Defining the Case Using CFX-Pre ......................................................................................... 724
32.4.1.1. Importing the Mesh ................................................................................................... 724
32.4.1.2. Importing the Required Expressions From a CCL File ................................................... 725
32.4.1.3. Defining a Transient Simulation .................................................................................. 725
32.4.1.4. Editing the Domain .................................................................................................... 727
32.4.1.5. Creating a Rigid Body ................................................................................................. 730
32.4.1.6. Creating the Boundary Conditions ............................................................................. 733
32.4.1.6.1. Symmetry Boundaries ....................................................................................... 733
32.4.1.6.2. Wall Boundaries ................................................................................................ 734
32.4.1.6.3. Opening Boundary ............................................................................................ 736
32.4.1.7. Setting Initial Values ................................................................................................... 737
32.4.1.8. Setting the Solver Control .......................................................................................... 740
32.4.1.9. Setting the Output Control ........................................................................................ 741
32.4.1.10. Writing the CFX-Solver Input (.def ) File ..................................................................... 743
32.4.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 743
32.4.3. Viewing the Results Using CFD-Post .................................................................................... 744
32.4.3.1. Creating a Contour Plot .............................................................................................. 744
32.4.3.2. Creating a Keyframe Animation .................................................................................. 745
32.4.3.3. Calculating the Minimum Mesh Face Angle ................................................................ 747
32.5. Simulating the Buoy with Decoupled Mesh Motion ...................................................................... 747
32.5.1. Defining the Case Using CFX-Pre ......................................................................................... 747
32.5.1.1. Creating a Subdomain ............................................................................................... 748
32.5.1.2. Editing the Domain Interfaces .................................................................................... 749
32.5.1.3. Writing the CFX-Solver Input (.def ) File ....................................................................... 750
32.5.2. Obtaining the Solution Using CFX-Solver Manager .............................................................. 750
32.5.3. Viewing the Results Using CFD-Post .................................................................................... 751
32.5.3.1. Loading a Contour Plot from the State File .................................................................. 751
32.5.3.2. Creating a Keyframe Animation .................................................................................. 751
32.5.3.3. Calculating the Minimum Mesh Face Angle ................................................................ 752
32.6. Comparing the Two Cases Using CFD-Post ................................................................................... 753
33. Time Transformation Method for an Inlet Disturbance Case ............................................................ 755
33.1. Tutorial Features ......................................................................................................................... 755
33.2. Overview of the Problem to Solve ................................................................................................ 755
33.3. Preparing the Working Directory ................................................................................................. 757
33.4. Defining a Steady-state Case in CFX-Pre ....................................................................................... 758
33.4.1. Basic Settings ..................................................................................................................... 758
33.4.2. Components Definition ...................................................................................................... 758
33.4.3. Physics Definition ............................................................................................................... 759
33.4.4. Modifying the Fluid Model Settings .................................................................................... 760
33.4.5. Initializing Profile Boundary Conditions ............................................................................... 760
33.4.6. Modifying Inlet and Outlet Boundary Conditions ................................................................. 761
xxii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
33.4.7. Writing the CFX-Solver Input (.def ) File ................................................................................ 762
33.5. Obtaining a Solution to the Steady-state Case .............................................................................. 762
33.6. Defining a Transient Blade Row Case in CFX-Pre ........................................................................... 762
33.6.1. Opening the Existing Case .................................................................................................. 763
33.6.2. Modifying the Analysis Type ............................................................................................... 763
33.6.3. Creating the Local Rotating Coordinate Frame .................................................................... 763
33.6.4. Setting up a Transient Blade Row Model .............................................................................. 764
33.6.5. Applying the Local Rotating Frame to the Inlet Boundary .................................................... 766
33.6.6. Setting the Output Control and Creating Monitor Points ..................................................... 766
33.6.7. Writing the CFX-Solver Input (.def ) File ................................................................................ 768
33.7. Obtaining a Solution to the Transient Blade Row Case .................................................................. 769
33.8. Viewing the Time Transformation Results in CFD-Post .................................................................. 770
33.8.1. Creating a Turbo Surface ..................................................................................................... 770
33.8.2. Creating a Contour Plot ...................................................................................................... 770
33.8.3. Animating Temperature ...................................................................................................... 770
34. Fourier Transformation Method for an Inlet Disturbance Case ........................................................ 773
34.1. Tutorial Features ......................................................................................................................... 773
34.2. Overview of the Problem to Solve ................................................................................................ 773
34.3. Preparing the Working Directory ................................................................................................. 775
34.4. Defining a Transient Blade Row Case in CFX-Pre ........................................................................... 775
34.4.1. Basic Settings ..................................................................................................................... 776
34.4.2. Components Definition ...................................................................................................... 776
34.4.3. Physics Definition ............................................................................................................... 777
34.4.4. Disturbance Definition ....................................................................................................... 778
34.4.5. Modifying the Fluid Model Settings .................................................................................... 779
34.4.6. Initializing Profile Boundary Conditions ............................................................................... 779
34.4.7. Creating the Local Rotating Coordinate Frame .................................................................... 780
34.4.8. Modifying Inlet and Outlet Boundary Conditions ................................................................. 781
34.4.9. Setting up a Transient Blade Row Model .............................................................................. 782
34.4.10. Setting the Output Control and Creating Monitor Points ................................................... 783
34.4.11. Setting the Execution Control ........................................................................................... 785
34.4.12. Writing the CFX-Solver Input (.def ) File .............................................................................. 787
34.5. Obtaining a Solution to the Transient Blade Row Case .................................................................. 788
34.6. Viewing the Fourier Transformation Results in CFD-Post ............................................................... 788
34.6.1. Creating a Turbo Surface ..................................................................................................... 789
34.6.2. Creating a Contour Plot ...................................................................................................... 789
34.6.3. Animating Temperature ...................................................................................................... 789
35. Time Transformation Method for a Transient Rotor-stator Case ...................................................... 791
35.1. Tutorial Features ......................................................................................................................... 791
35.2. Overview of the Problem to Solve ................................................................................................ 791
35.3. Preparing the Working Directory ................................................................................................. 793
35.4. Defining a Steady-state Case in CFX-Pre ....................................................................................... 793
35.4.1. Basic Settings ..................................................................................................................... 794
35.4.2. Components Definition ...................................................................................................... 794
35.4.3. Physics Definition ............................................................................................................... 795
35.4.4. Additional Fluid Model Settings .......................................................................................... 796
35.4.5. Initializing Profile Boundary Conditions ............................................................................... 796
35.4.6. Modifying Inlet and Outlet Boundary Conditions ................................................................. 797
35.4.7. Visualizing the Profile Boundary Value ................................................................................. 799
35.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 799
35.5. Obtaining a Solution to the Steady-state Case .............................................................................. 799
35.6. Defining a Transient Blade Row Case in CFX-Pre ........................................................................... 800
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xxiii
Tutorials
35.6.1. Opening the Existing Case .................................................................................................. 800
35.6.2. Modifying the Analysis Type ............................................................................................... 800
35.6.3. Modifying the Rotorstator Interface .................................................................................. 801
35.6.4. Setting up a Transient Blade Row Model .............................................................................. 801
35.6.5. Setting Output Control and Creating Monitor Points ........................................................... 802
35.6.6. Writing the CFX-Solver Input (.def ) File ................................................................................ 804
35.7. Obtaining a Solution to the Transient Blade Row Case .................................................................. 805
35.8. Viewing the Time Transformation Results in CFD-Post .................................................................. 806
35.8.1. Creating a Turbo Surface ..................................................................................................... 806
35.8.2. Creating a Vector Plot ......................................................................................................... 806
35.8.3. Creating a Contour Plot ...................................................................................................... 807
35.8.4. Creating a Variable Time Chart ............................................................................................ 807
35.8.5. Setting up Data Instancing Transformations ........................................................................ 809
35.8.6. Setting up Graphical Instancing Transformations ................................................................. 809
35.8.7. Animating the Movement of the Rotor Relative to the Stator ............................................... 810
36. Time Transformation Method for a Transient Rotor-stator Case with Conjugate Heat Transfer ...... 813
36.1. Tutorial Features ......................................................................................................................... 813
36.2. Overview of the Problem to Solve ................................................................................................ 814
36.3. Preparing the Working Directory ................................................................................................. 815
36.4. Defining a Transient Blade Row Case with Conjugate Heat Transfer in CFX-Pre .............................. 816
36.4.1. Basic Settings ..................................................................................................................... 816
36.4.2. Components Definition ...................................................................................................... 817
36.4.3. Physics Definition ............................................................................................................... 817
36.4.4. Additional Fluid Model Settings .......................................................................................... 819
36.4.5. Importing the Solid Blade Mesh File .................................................................................... 819
36.4.6. Creating the Solid Blade Domain ........................................................................................ 820
36.4.7. Modifying the Boundary Conditions ................................................................................... 821
36.4.7.1. Initializing Profile Boundary Conditions ...................................................................... 821
36.4.7.2. Modifying Inlet and Outlet Boundary Conditions ........................................................ 822
36.4.7.3. Visualizing the Profile Boundary Value ........................................................................ 824
36.4.7.4. Creating the Blade Base Boundary .............................................................................. 824
36.4.8. Creating the Conjugate Heat Transfer Interface ................................................................... 824
36.4.9. Setting up a Transient Blade Row Model .............................................................................. 825
36.4.10. Setting Output Control and Creating Monitor Points ......................................................... 826
36.4.11. Writing the CFX-Solver Input (.def ) File .............................................................................. 828
36.5. Obtaining a Solution to the Transient Blade Row Case .................................................................. 829
36.6. Viewing the Time Transformation Results in CFD-Post .................................................................. 830
36.6.1. Creating a Slice Plane ......................................................................................................... 831
36.6.2. Creating a Contour Plot ...................................................................................................... 831
36.6.3. Creating a Variable Time Chart ............................................................................................ 832
36.6.4. Setting up Data Instancing Transformations ........................................................................ 833
37. Fourier Transformation Method for a Transient Rotor-stator Case .................................................. 835
37.1. Tutorial Features ......................................................................................................................... 835
37.2. Overview of the Problem to Solve ................................................................................................ 836
37.3. Preparing the Working Directory ................................................................................................. 837
37.4. Defining a Transient Blade Row Case in CFX-Pre ........................................................................... 838
37.4.1. Basic Settings ..................................................................................................................... 838
37.4.2. Components Definition ...................................................................................................... 839
37.4.3. Physics Definition ............................................................................................................... 840
37.4.4. Disturbance Definition ....................................................................................................... 841
37.4.5. Additional Fluid Model Settings .......................................................................................... 842
37.4.6. Initializing Profile Boundary Conditions ............................................................................... 842
xxiv
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorials
37.4.7. Modifying Inlet and Outlet Boundary Conditions ................................................................. 843
37.4.8. Setting up a Transient Blade Row Model .............................................................................. 844
37.4.9. Setting Output Control and Creating Monitor Points ........................................................... 845
37.4.10. Setting the Execution Control ........................................................................................... 847
37.4.11. Writing the CFX-Solver Input (.def ) File .............................................................................. 849
37.5. Obtaining a Solution to the Transient Blade Row Case .................................................................. 849
37.5.1. Confirming Convergence Using Derived Variables ............................................................... 850
37.6. Viewing the Fourier Transformation Results in CFD-Post ............................................................... 852
37.6.1. Creating a Turbo Surface ..................................................................................................... 852
37.6.2. Creating a Vector Plot ......................................................................................................... 853
37.6.3. Creating a Contour Plot ...................................................................................................... 854
37.6.4. Creating a Variable Time Chart ............................................................................................ 854
37.6.5. Setting up Data Instancing Transformations ........................................................................ 855
37.6.6. Setting up Graphical Instancing Transformations ................................................................. 856
37.6.7. Animating the Movement of the Rotor Relative to the Stator ............................................... 856
38. Fourier Transformation Method for a Blade Flutter Case ................................................................. 859
38.1. Tutorial Features ......................................................................................................................... 859
38.2. Overview of the Problem to Solve ................................................................................................ 859
38.3. Preparing the Working Directory ................................................................................................. 862
38.4. Defining a Steady-state Case in CFX-Pre ....................................................................................... 862
38.4.1. Importing the Mesh ............................................................................................................ 862
38.4.2. Expanding Profile Data ....................................................................................................... 863
38.4.3. Initializing Profile Data ........................................................................................................ 864
38.4.4. Creating the Domain .......................................................................................................... 864
38.4.5. Creating the Boundaries ..................................................................................................... 866
38.4.5.1. Inlet Boundary ........................................................................................................... 866
38.4.5.2. Outlet Boundary ........................................................................................................ 868
38.4.5.3. Wall Boundaries ......................................................................................................... 869
38.4.6. Creating Domain Interfaces ................................................................................................ 871
38.4.7. Writing the CFX-Solver Input (.def ) File ................................................................................ 874
38.5. Defining a Transient Blade Row Case in CFX-Pre ........................................................................... 874
38.5.1. Opening the Existing Case .................................................................................................. 875
38.5.2. Modifying the Analysis Type ............................................................................................... 875
38.5.3. Modifying the Domain ........................................................................................................ 875
38.5.4. Creating Expressions for Frequency and Scaling Factor ........................................................ 876
38.5.5. Modifying the R1 Blade Boundary ....................................................................................... 876
38.5.6. Setting up a Transient Blade Row Model .............................................................................. 879
38.5.7. Setting Output Control and Creating Monitor Points ........................................................... 880
38.5.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 885
38.6. Obtaining a Solution to the Steady-state Case .............................................................................. 885
38.7. Obtaining a Solution to the Transient Blade Row Case .................................................................. 886
38.8. Viewing the Fourier Transformation Blade Flutter Results in CFD-Post ........................................... 887
38.8.1. Displaying Total Wall Work on the Blade .............................................................................. 887
38.8.2. Creating a Contour Plot for Total Wall Work on the Blade ...................................................... 888
38.8.3. Creating an Animation for Total Wall Work on the Blade ....................................................... 888
39. Time Transformation Method for a 1.5-stage Transient Rotor-stator Case ...................................... 891
39.1. Tutorial Features ......................................................................................................................... 891
39.2. Overview of the Problem to Solve ................................................................................................ 891
39.3. Preparing the Working Directory ................................................................................................. 893
39.4. Defining a Steady-state Case in CFX-Pre ....................................................................................... 893
39.4.1. Basic Settings ..................................................................................................................... 894
39.4.2. Components Definition ...................................................................................................... 894
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xxv
Tutorials
39.4.3. Physics Definition ............................................................................................................... 895
39.4.4. Additional Fluid Model Settings .......................................................................................... 896
39.4.5. Initializing Profile Boundary Conditions ............................................................................... 897
39.4.6. Modifying Inlet and Outlet Boundary Conditions ................................................................. 897
39.4.7. Visualizing the Profile Boundary Value ................................................................................. 899
39.4.8. Writing the CFX-Solver Input (.def ) File ................................................................................ 899
39.5. Obtaining a Solution to the Steady-state Case .............................................................................. 900
39.6. Defining a Transient Blade Row Case in CFX-Pre ........................................................................... 900
39.6.1. Opening the Existing Case .................................................................................................. 900
39.6.2. Modifying the Analysis Type ............................................................................................... 901
39.6.3. Modifying the Rotorstator Interfaces ................................................................................. 901
39.6.4. Setting up a Transient Blade Row Model .............................................................................. 902
39.6.5. Setting Output Control and Creating Monitor Points ........................................................... 903
39.6.6. Writing the CFX-Solver Input (.def ) File ................................................................................ 906
39.7. Obtaining a Solution to the Transient Blade Row Case .................................................................. 906
39.8. Viewing the Time Transformation Results in CFD-Post .................................................................. 907
39.8.1. Creating a Turbo Surface ..................................................................................................... 907
39.8.2. Creating a Vector Plot ......................................................................................................... 908
39.8.3. Creating a Blade-to-Blade Plot ............................................................................................ 909
39.8.4. Creating a Chart of Force on a Rotor Blade versus Time ........................................................ 909
39.8.5. Creating a Chart of a Solution Monitor and Fourier Coefficient Data for Pressure versus
Time ............................................................................................................................................. 910
39.8.6. Setting up Data Instancing Transformations ........................................................................ 912
39.8.7. Animating the Movement of the Rotor Relative to the Stator ............................................... 913
xxvi
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode
Time Transformation Method for a Transient Rotor-stator Case (p. 791) sets up a transient blade row calculation
using the Time Transformation model.
Time Transformation Method for a Transient Rotor-stator Case with Conjugate Heat Transfer (p. 813) sets up
a transient blade row calculation with conjugate heat transfer using the Time Transformation model.
Fourier Transformation Method for a Transient Rotor-stator Case (p. 835) sets up a transient blade row calculation using the Fourier Transformation model.
Fourier Transformation Method for a Blade Flutter Case (p. 859) sets up a transient blade row simulation using
the Fourier Transformation model as part of blade flutter modeling.
Time Transformation Method for a 1.5-stage Transient Rotor-stator Case (p. 891) sets up a transient blade
row calculation with a multistage machine using the Time Transformation model.
You should review the following topics before attempting to start a tutorial for the first time:
1.1. Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode
1.2. Running ANSYS CFX Tutorials Using ANSYS Workbench
1.3. Playing a Session File
1.4. Changing the Display Colors
1.5. Editor Buttons
1.6. Using Help
1.1. Setting the Working Directory and Starting ANSYS CFX in Standalone Mode
Before you start CFX-Pre, CFX-Solver Manager, or CFD-Post, set the working directory. The procedure
for setting the working directory and starting ANSYS CFX in stand-alone is listed below:
1.
2.
3.
4.
If you were directed here at some point during a tutorial, return to that location.
Note
All tutorials assume that the CFX run history and multi-configuration options, under the
Load Results File dialog box in CFD-Post, is set to Load only the last results.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tip
You may find it useful to open the ANSYS CFX help from the ANSYS CFX Launcher (which
does not take up a license).
2.
From the menu bar, click File > Save As and specify a name and directory for the project file, then click
Save.
The directory you choose will be referred to as the working directory.
3.
In the Toolbox pane, open Component Systems and double-click CFX. A CFX system opens in the Project
Schematic.
Note
You use a CFX component system because you are starting with a mesh. If you want
to create the geometry and mesh, you will start with a Fluid Flow (CFX) system.
4.
Type in the new name, such as System 1, to replace the highlighted text below the system.
Alternatively, you can right-click the first cell in the system and select Rename. The name will be
highlighted. Now you can change the highlighted text by typing in the new name.
5.
In the Project Schematic, right-click the Setup cell and select Edit to launch CFX-Pre.
6.
Continue from the section of the tutorial that provides instructions for defining the case using CFX-Pre.
The section is typically named Defining the Case Using CFX-Pre.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
If the Solution cell displays a prompt to perform an update, ignore it and proceed to
the next step.
To obtain a solution, you need to launch the CFX-Solver Manager and subsequently use it to start the
solver:
1.
2.
Continue from the Obtaining a Solution Using CFX-Solver Manager section of the tutorial.
2.
When the refresh is complete, right-click the Results cell and select Edit to open CFD-Post.
3.
Continue from the Viewing the Results in CFD-Post section of the tutorial.
If this is the final section of your tutorial, continue from Closing the Applications (p. 6). If you are
running ANSYS CFX tutorials with a sequence of multiple simulations, continue from Creating CFX
Component Systems for Multiple Simulations (p. 5).
In the ANSYS Workbench Project Schematic, right-click the first cell in System 1 and select Duplicate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Type in the new name System 2 to replace the highlighted text below the system.
3.
Click the Solution cell of System 1 and drag it to the Solution cell of System 2.
You will now see a line, indicating a transfer connection, going from Solution cell of System 1
to the Solution cell of System 2.
4.
Once you have set up the new CFX component system, continue from Step 5 of Setting Up the Project (p. 4).
Note
In the tutorial, ignore the steps that tell you to set the initial values file in the Define
Run dialog box for CFX-Solver Manager. Dragging the solution cell between systems
automatically sets the initialization options in CFX-Solver Manager.
2.
3.
4.
Click Open.
5.
6.
7.
8.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Using Help
9.
In the CFX-Solver File dialog box that appears, choose the *.def file and click Open.
10. If you were directed here at some point during a tutorial, return to that location.
The tutorial input files (which include tutorial session files) can be downloaded from the ANSYS Customer
Portal.
Session files and tutorial session files can be played only in ANSYS CFX stand-alone, not in ANSYS
Workbench. Some tutorials have more than one tutorial session file; each covers a particular set of CFXPre setup instructions.
Playing a session file may change the default settings under Case Options > General these
changes will be retained until the case is closed. To override these changes (to Automatic Default
Domain and Automatic Default Interfaces, for example) the settings must be changed from the
Outline tree view under Case Options > General rather than from the global options (Edit >
Options). Changes made to the global options are persistent and will not take effect until a new case
is opened.
2.
Adjust the color settings under CFX-Pre > Graphics Style (for CFX-Pre) or CFD-Post > Viewer
(for CFD-Post).
3.
Click OK.
4.
If you were directed here at some point during a tutorial, return to that location.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
Thermal Energy
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
Timestep
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFD-Post
Animation
Keyframe
Plots
Contour
Outline Plot (Wireframe)
Point
Slice Plane
Streamline
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
10
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11
2.
Note
If this is the first time you are running this software, a message box will appear notifying
you that automatic generation of the default domain is active. To avoid seeing this
message again clear Show This Message Again.
3.
4.
5.
Click Save.
Ensure that the Simulation Definition panel is displayed at the top of the details view.
2.
12
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Simulation Definition panel, under Mesh Data > Mesh File, click Browse
3.
4.
Click Open.
The mesh loads.
5.
Click Next.
2.
3.
4.
Click Rotate
2.
Click and drag within the geometry repeatedly to test the rotation of the geometry.
The geometry rotates based on the direction of mouse movement and based on the initial mouse
cursor shape, which changes depending on where the mouse cursor is in the viewer. If the mouse
drag starts near a corner of the viewer window, the motion of the geometry will be constrained
to rotation about a single axis, as indicated by the mouse cursor shape.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13
3.
Right-click a blank area in the viewer and select Predefined Camera > View From -X.
4.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z Up).
A clearer view of the mesh is displayed.
2.
3.
4.
14
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Next.
2.
Delete Inlet and Outlet from the list by right-clicking each and selecting Delete Boundary.
3.
Right-click in the blank area where Inlet and Outlet were listed, then select Add Boundary.
4.
5.
Click OK.
The boundary is created and, when selected, properties related to the boundary are displayed.
2.
3.
2.
3.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15
Review the boundary in1 settings on the Boundary Definition panel for accuracy. They should be as
follows:
Setting
Value
in1
> Boundary Type
Inlet
in1
> Location
in1
Flow Specification
> Option
Normal Speed
Flow Specification
> Normal Speed
2 [m s^-1]
Temperature Specification
> Static Temperature
315 [K]
Under the Boundary Definition panel, right-click in the selector area and select Add Boundary.
2.
Value
in2
> Boundary Type
Inlet
in2
> Location
in2
Flow Specification
> Option
Normal Speed
Flow Specification
> Normal Speed
2 [m s^-1]
Temperature Specification
> Static Temperature
16
285 [K]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
out
> Boundary Type
Outlet
out
> Location
out
Flow Specification
> Option
Flow Specification
> Relative Pressure
2.
0 [Pa]
Click Next.
2.
On the Basic Settings tab, set Advection Scheme > Option to Upwind.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17
Set Convergence Control > Fluid Timescale Control > Timescale Control to Physical Timescale
and set the physical timescale value to 2 [s].
4.
Click OK.
2.
3.
Click Save.
The CFX-Solver input file (StaticMixer.def) is created. CFX-Solver Manager automatically starts
and, on the Define Run dialog box, Solver Input File is set.
4.
5.
6.
7.
2.
3.
Select StaticMixer.pre.
4.
Click Open.
A CFX-Solver input file is written.
5.
18
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
8.
9.
One window shows the convergence history plots and the other displays text output from CFX-Solver.
The text lists physical properties, boundary conditions and various other parameters used or calculated
in creating the model. All the text is written to the output file automatically (in this case, StaticMixer_001.out).
19
2.
Note
Once the second iteration appears, data begins to plot. Plotting may take a long time
depending on the amount of data to process. Let the process run.
When CFX-Solver is finished, select the check box next to Post-Process Results.
2.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
3.
Click OK. After a short pause, CFX-Solver Manager closes and CFD-Post opens.
20
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The viewer displays an outline of the geometry and other graphic objects. You can use the mouse or
the toolbar icons to manipulate the view, exactly as in CFX-Pre.
The tutorial follows this general workflow for viewing results in CFD-Post:
2.6.1. Setting the Edge Angle for a Wireframe Object
2.6.2. Creating a Point for the Origin of the Streamline
2.6.3. Creating a Streamline Originating from a Point
2.6.4. Rearranging the Point
2.6.5. Configuring a Default Legend
2.6.6. Creating a Slice Plane
2.6.7. Defining Slice Plane Geometry
2.6.8. Configuring Slice Plane Views
2.6.9. Rendering Slice Planes
2.6.10. Coloring the Slice Plane
2.6.11. Moving the Slice Plane
2.6.12. Adding Contours
2.6.13. Working with Animations
2.6.14. Quitting CFD-Post
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
21
Tip
While it is not necessary to change the view to set the angle, do so to explore the
practical uses of this feature.
2.
Right-click a blank area anywhere in the viewer, select Predefined Camera from the shortcut menu, and
select Isometric View (Z up).
3.
In the Wireframe details view, under Definition, click in the Edge Angle box.
An embedded slider is displayed.
4.
5.
22
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Drag the embedded slider to set the Edge Angle value to approximately 45 [degree].
7.
8.
9.
Select Insert > Location > Point from the main menu.
You can also use the toolbars to create a variety of objects. Later modules and tutorials explore
this further.
2.
Click OK.
This accepts the default name.
3.
4.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
23
Click Apply.
The point appears as a symbol in the viewer as a crosshair symbol.
2.
Click OK.
3.
Tip
To create streamlines originating from more than one location, click the Ellipsis
icon
to the right of the Start From box. This displays the Location Selector dialog box,
where you can use the Ctrl and Shift keys to pick multiple locators.
4.
5.
6.
7.
8.
Click Apply.
The streamline shows the path of a zero mass particle from Point 1. The temperature is initially
high near the hot inlet, but as the fluid mixes the temperature drops.
24
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tip
In this module, you may choose to display various views and zooms from the Predefined
Camera option in the shortcut menu (such as Isometric View (Z up) or View From -X) and
by using Zoom Box
1.
2.
3.
Click Apply.
The point is moved and the streamline redrawn.
4.
and ensure that the adjacent toolbar icon is set to Single Select
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25
While in select mode, you cannot use the left mouse button to re-orient the object in the viewer.
5.
In the viewer, drag Point 1 (appears as a yellow addition sign) to a new location within the mixer.
The point position is updated in the details view and the streamline is redrawn at the new location.
The point moves normal in relation to the viewing direction.
6.
Click Rotate
Tip
You can also click in the viewer area, and press the space bar to toggle between Select
and Viewing Mode. A way to pick objects from Viewing Mode is to hold down Ctrl +
Shift while clicking on an object with the left mouse button.
7.
8.
Click Apply.
The point appears at its original location.
9.
Right-click a blank area in the viewer and select Predefined Camera > View From -X.
Note
If a user-specified range is used for the legend, one or more bands may represent values
beyond the legends range. In this case, these band colors are extrapolated slightly past the
range of colors shown in the legend.
The default legend displays values for the last eligible plot that was opened in the details view. To
maintain a legend definition during a CFD-Post session, you can create a new legend by clicking Legend
.
26
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tip
When editing values, you can restore the values that were present when you began editing
by clicking Reset. To restore the factory-default values, click Default.
1.
2.
Setting
Value
Definition
Title Mode
User Specified
Title
Streamline Temp.
Horizontal
(Selected)
Location
> Y Justification
3.
Bottom
Click Apply.
The appearance and position of the legend changes based on the settings specified.
4.
Modify various settings in Definition and click Apply after each change.
5.
6.
Modify a variety of settings in the Appearance and click Apply after each change.
7.
Click Defaults.
8.
Click Apply.
9.
Under Outline, in User Locations and Plots, clear the check boxes for Point 1 and Streamline
1.
Since both are no longer visible, the associated legend no longer appears.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
27
From the main menu, select Insert > Location > Plane or click Location > Plane.
2.
3.
Click OK.
The Geometry, Color, Render, and View tabs enable you to switch between settings.
4.
2.
3.
4.
5.
6.
Click Apply.
Slice appears under User Locations and Plots. Rotate the view to see the plane.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
The slice is now visible in the viewer.
28
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
5.
Click Rotate
6.
Click and drag the mouse pointer down slightly to rotate the geometry towards you.
7.
2.
3.
4.
5.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
29
Click Apply.
7.
8.
The line segments show where the slice plane intersects with mesh element faces. The end points
of each line segment are located where the plane intersects mesh element edges.
9.
Right-click a blank area in the viewer and select Predefined Camera > View From +Z.
The image shown below can be used for comparison with Flow in a Static Mixer (Refined
Mesh) (p. 71) (in the section Creating a Slice Plane (p. 79)), where a refined mesh is used.
Setting
Value
Color
Mode
Variable
Variable
Temperature
Show Faces
(Selected)
(Cleared)
Render
[a]
a. You can specify the variable (in this case, temperature) used to color the graphic
element. The Constant mode allows you to color the plane with a fixed color.
30
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Apply.
Hot water (red) enters from one inlet and cold water (blue) from the other.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
2.
3.
4.
Click and drag the plane to a new location that intersects the domain.
As you drag the mouse, the viewer updates automatically. Note that Point updates with new settings.
5.
6.
Click Apply.
7.
Click Rotate
8.
Turn off visibility of Slice by clearing the check box next to Slice in the Outline tree view.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
2.
Select Insert > Contour from the main menu or click Contour
4.
Click OK.
5.
Setting
Value
Geometry
Locations
Slice
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
31
6.
Setting
Value
Variable
Temperature
(Selected)
Click Apply.
Important
The colors of 3D graphics object faces are slightly altered when lighting is on. To view
colors with highest accuracy, go to the Render tab and, under Show Contour Bands,
clear Lighting and click Apply.
The graphic element faces are visible, producing a contour plot as shown.
Note
Make sure that the visibility for Slice (in the Outline tree view) is turned off.
32
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
2.
In the Outline, under User Locations and Plots, turn off the visibility of Slice Contour and
turn on the visibility of Slice.
3.
4.
A new keyframe named KeyframeNo1 is created. This represents the current image displayed in
the viewer.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
33
2.
3.
Click Apply.
The slice plane moves to the bottom of the mixer.
34
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Select KeyframeNo1.
6.
7.
Press Enter.
The Frame # column shows the frame in which each keyframe appears. KeyframeNo1 appears
at frame 1 since it defines the start of the animation. KeyframeNo2 is at frame 22 since you have
20 intermediate frames (frames 2 to 21) in between KeyframeNo1 and KeyframeNo2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
35
Click To Beginning
This ensures that the animation will begin at the first keyframe.
36
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
The animation plays from frame 1 to frame 22. It plays relatively slowly because the slice plane
must be updated for each frame.
2.
Setting
Value
Geometry
Point
0, 0, 1.99
Color
Mode
Variable
Variable
Temperature
Range
User Specified
Min
295 [K]
Max
305 [K]
Click Apply.
The slice plane moves to the top of the static mixer.
Note
Do not double-click in the next step.
3.
In the Animation dialog box, single click (do not double-click) KeyframeNo1 to select it.
If you had double-clicked KeyFrameNo1, the plane and viewer states would have been redefined
according to the stored settings for KeyFrameNo1. If this happens, click Undo
to select the keyframe.
4.
The image in the viewer replaces the one previously associated with KeyframeNo1.
5.
Double-click KeyframeNo2.
The object properties for the slice plane are updated according to the settings in KeyFrameNo2.
6.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
37
Setting
Value
Color
Mode
Variable
Variable
Temperature
Range
User Specified
Min
295 [K]
Max
305 [K]
7.
Click Apply.
8.
9.
The Loop and Bounce option buttons determine what happens when the animation reaches the
last keyframe. When Loop is selected, the animation repeats itself the number of times defined by
Repeat. When Bounce is selected, every other cycle is played in reverse order, starting with the
second.
2.
3.
4.
Click Browse
5.
6.
7.
Click Save.
The movie filename (including path) has been set, but the animation has not yet been produced.
8.
Click To Beginning
9.
38
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When you are finished, select File > Quit to exit CFD-Post.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
39
40
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
Thermal Energy
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
41
Feature
Details
Timestep
Animation
Keyframe
Plots
Contour
Outline Plot (Wireframe)
Point
Slice Plane
Streamline
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
42
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
2.
3.
In the dialog box that appears, browse to the working directory, set File name to StaticMixer, and
click Save.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
43
Note
You use a CFX component system because you are starting with a mesh. If you wanted
to create the geometry and mesh, you would start with a Fluid Flow (CFX) analysis
system.
2.
3.
Change the name of the system to Static Mixer. Finish by pressing Enter or by clicking outside the
cell.
4.
In ANSYS Workbench, enable View > Files and View > Progress so that you can see the files that are
written and the time remaining to complete operations.
5.
In the Workbench Project Schematic, double-click the Setup cell of the CFX component system.
CFX-Pre opens.
6.
Optionally, change the background color of the viewer in CFX-Pre for improved viewing:
a.
44
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
Click OK.
2.
3.
5.
6.
Click Open.
The mesh loads, which enables you to apply physics.
7.
Click Next.
Under Model Data, note that the Reference Pressure is set to 1 [atm].
All other pressure settings are relative to this reference pressure.
2.
3.
4.
Click Next.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
45
Delete Inlet and Outlet from the list by right-clicking each and selecting Delete Boundary.
2.
Right-click in the blank area where Inlet and Outlet were listed, then select Add Boundary.
3.
4.
Click OK.
The boundary is created and, when selected, properties related to the boundary are displayed.
2.
3.
Set the Flow Specification > Option to Normal Speed and set Normal Speed to: 2 [m s^-1]
4.
Set the Temperature Specification > Static Temperature to 315 [K] (note the units).
Under the Boundary Definition panel, right-click in the selector area and select Add Boundary.
2.
Value
in2
> Boundary Type
Inlet
in2
> Location
in2
Flow Specification
> Option
Normal Speed
Flow Specification
> Normal Speed
2 [m s^-1]
Temperature Specification
> Static Temperature
46
285 [K]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
out
> Boundary Type
Outlet
out
> Location
out
Flow Specification
> Option
Flow Specification
> Relative Pressure
2.
0 [Pa]
Click Next.
2.
Click Finish.
The three boundary conditions are displayed in the viewer as sets of arrows at the boundary surfaces.
Inlet boundary arrows are directed into the domain. Outlet boundary arrows are directed out of
the domain.
2.
3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
47
Click Rotate
2.
Click and drag within the geometry repeatedly to test the rotation of the geometry.
The geometry rotates based on the direction of mouse movement and based on the initial mouse
cursor shape, which changes depending on where the mouse cursor is in the viewer. If the mouse
drag starts near a corner of the viewer window, the motion of the geometry will be constrained
to rotation about a single axis, as indicated by the mouse cursor shape.
3.
Right-click a blank area in the viewer and select Predefined Camera > View From -X.
4.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z Up).
A clearer view of the mesh is displayed.
48
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
On the Basic Settings tab, set Advection Scheme > Option to Upwind.
3.
Set Convergence Control > Fluid Timescale Control > Timescale Control to Physical Timescale
and set the physical timescale value to 2 [s].
4.
Click OK.
Double-click the ANSYS Workbench Solution cell. The CFX-Solver Manager appears with the Define Run
dialog box displayed.
The Define Run dialog box enables configuration of a run for processing by CFX-Solver. In this
case, all of the information required to perform a new serial run (on a single processor) is entered
automatically. You do not need to alter the information in the Define Run dialog box.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
49
Note
Once the second iteration appears, data begins to plot. Plotting may take a long time
depending on the amount of data to process. Let the process run.
50
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
When the refresh is complete, double-click the Results cell. CFD-Post appears.
When CFD-Post starts, the viewer and Outline workspace are displayed. Optionally, change the background color of the viewer for improved viewing:
1.
In CFD-Post, select Edit > Options. The Options dialog box appears.
2.
Adjust the color settings under CFD-Post > Viewer. For example, you could set the Background > Color
Type to Solid and the Color to white.
3.
Click OK.
The viewer displays an outline of the geometry and other graphic objects. You can use the mouse or
the toolbar icons to manipulate the view, exactly as in CFX-Pre.
The tutorial follows this general workflow for viewing results in CFD-Post:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
51
2.
Right-click a blank area anywhere in the viewer, select Predefined Camera from the shortcut menu, and
select Isometric View (Z up).
Tip
While it is not necessary to change the view to set the edge angle for the wireframe,
doing so enables you to explore the practical uses of this feature.
3.
In the Wireframe details view, under Definition, click in the Edge Angle box.
An embedded slider is displayed.
4.
5.
52
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Drag the embedded slider to set the Edge Angle value to approximately 45 [degree].
7.
8.
9.
Select Insert > Location > Point from the main menu.
You can also use the toolbars to create a variety of objects. Later modules and tutorials will explore
this further.
2.
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
53
4.
5.
Click Apply.
The point appears as a symbol in the viewer as a crosshair symbol.
2.
Click OK.
3.
Tip
To create streamlines originating from more than one location, click the Ellipsis
icon
to the right of the Start From box. This displays the Location Selector dialog box,
where you can use the Ctrl and Shift keys to pick multiple locators.
4.
5.
6.
7.
8.
Click Apply.
The streamline shows the path of a zero mass particle from Point 1. The temperature is initially
high near the hot inlet, but as the fluid mixes the temperature drops.
54
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tip
In this module, you may choose to display various views and zooms from the Predefined
Camera option in the shortcut menu (such as Isometric View (Z up) or View From -X) and
by using Zoom Box
1.
2.
3.
Click Apply.
The point is moved and the streamline redrawn.
4.
and ensure that the adjacent toolbar icon is set to Single Select
.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
55
While in select mode, you cannot use the left mouse button to re-orient the object in the viewer.
5.
In the viewer, drag Point 1 (appears as a yellow addition sign) to a new location within the mixer.
The point position is updated in the details view and the streamline is redrawn at the new location.
The point moves normal in relation to the viewing direction.
6.
Click Rotate
Tip
You can also click in the viewer area, and press the space bar to toggle between Select
and Viewing Mode. A way to pick objects from Viewing Mode is to hold down Ctrl +
Shift while clicking on an object with the left mouse button.
7.
8.
Click Apply.
The point appears at its original location.
9.
Right-click a blank area in the viewer and select Predefined Camera > View From -X.
Note
If a user-specified range is used for the legend, one or more bands may represent values
beyond the legends range. In this case, these band colors are extrapolated slightly past the
range of colors shown in the legend.
The default legend displays values for the last eligible plot that was opened in the details view. To
maintain a legend definition during a CFD-Post session, you can create a new legend by clicking Legend
.
56
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tip
When editing values, you can restore the values that were present when you began editing
by clicking Reset. To restore the factory-default values, click Default.
1.
2.
Setting
Value
Definition
Title Mode
User Specified
Title
Streamline Temp.
Horizontal
(Selected)
Location
> Y Justification
3.
Bottom
Click Apply.
The appearance and position of the legend changes based on the settings specified.
4.
Modify various settings in Definition and click Apply after each change.
5.
Select Appearance.
6.
Modify a variety of settings in the Appearance and click Apply after each change.
7.
Click Defaults.
8.
Click Apply.
9.
Under Outline, in User Locations and Plots, clear the check boxes for Point 1 and Streamline
1.
Since both are no longer visible, the associated legend no longer appears.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
57
From the main menu, select Insert > Location > Plane or click Location > Plane.
2.
3.
Click OK.
The details view for the plane appears; the Geometry, Color, Render, and View tabs enable you
to configure the characteristics of the plane.
2.
3.
4.
5.
Click Apply.
Slice appears under User Locations and Plots. Rotate the view to see the plane.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
The slice is now visible in the viewer.
58
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
5.
Click Rotate
6.
Click and drag the mouse pointer down slightly to rotate the geometry towards you.
7.
2.
3.
4.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
59
6.
Click Apply.
7.
8.
The line segments show where the slice plane intersects with mesh element faces. The end points
of each line segment are located where the plane intersects mesh element edges.
9.
Right-click a blank area in the viewer and select Predefined Camera > View From +Z.
The image shown below can be used for comparison with Flow in a Static Mixer (Refined
Mesh) (p. 71) (in the section Creating a Slice Plane (p. 79)), where a refined mesh is used.
Setting
Value
Color
Mode
Variable
Variable
Temperature
Show Faces
(Selected)
(Cleared)
Render
60
[a]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
a. You can specify the variable (in this case, temperature) used to color the graphic
element. The Constant mode allows you to color the plane with a fixed color.
2.
Click Apply.
Hot water (red) enters from one inlet and cold water (blue) from the other.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
2.
3.
4.
Click and drag the plane to a new location that intersects the domain.
As you drag the mouse, the viewer updates automatically. Note that Point updates with new settings.
5.
6.
Click Apply.
7.
Click Rotate
8.
Turn off the visibility for Slice by clearing the check box next to Slice in the Outline tree view.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
2.
Select Insert > Contour from the main menu or click Contour
4.
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
61
Setting
Value
Geometry
Locations
Slice
Variable
Temperature
(Selected)
Render
6.
Click Apply.
Important
The colors of 3D graphics object faces are slightly altered when lighting is on. To view
colors with highest accuracy, go to the Render tab and, under Show Faces, clear
Lighting and click Apply.
The graphic element faces are visible, producing a contour plot as shown.
Note
Make sure that the visibility of Slice (in the Outline tree view) is turned off.
62
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
2.
In the Outline, under User Locations and Plots, turn off the visibility of Slice Contour and
turn on the visibility of Slice.
3.
A new keyframe named KeyframeNo1 is created. This represents the current image displayed in
the viewer.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
63
2.
3.
Click Apply.
The slice plane moves to the bottom of the mixer.
64
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Select KeyframeNo1 so that you can set the number of frames to be interpolated between the two
keyframes.
6.
7.
Press Enter.
The Frame # column shows the frame in which each keyframe appears. KeyframeNo1 appears
at frame 1 since it defines the start of the animation. KeyframeNo2 is at frame 22 since you have
20 intermediate frames (frames 2 to 21) in between KeyframeNo1 and KeyframeNo2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
65
Click To Beginning
This ensures that the animation will begin at the first keyframe.
66
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
The animation plays from frame 1 to frame 22. It plays relatively slowly because the slice plane
must be updated for each frame.
2.
Setting
Value
Geometry
Point
0, 0, 1.99
Color
Mode
Variable
Variable
Temperature
Range
User Specified
Min
295 [K]
Max
305 [K]
Click Apply.
The slice plane moves to the top of the static mixer.
Note
Do not double-click in the next step.
3.
In the Animation dialog box, single click (do not double-click) KeyframeNo1 to select it.
If you had double-clicked KeyFrameNo1, the plane and viewer states would have been redefined
according to the stored settings for KeyFrameNo1. If this happens, click Undo
to select the keyframe.
4.
The image in the viewer replaces the one previously associated with KeyframeNo1.
5.
Double-click KeyframeNo2.
The object properties for the slice plane are updated according to the settings in KeyFrameNo2.
6.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
67
Setting
Value
Color
Mode
Variable
Variable
Temperature
Range
User Specified
Min
295 [K]
Max
305 [K]
7.
Click Apply.
8.
9.
The Loop and Bounce option buttons determine what happens when the animation reaches the
last keyframe. When Loop is selected, the animation repeats itself the number of times defined by
Repeat. When Bounce is selected, every other cycle is played in reverse order, starting with the
second.
2.
3.
4.
Click Browse
5.
6.
If required, set the path location to a different directory. You may want to set the directory to your working
directory so that the animation will be in the same location as the project files.
7.
Click Save.
The movie filename (including path) has been set, but the animation has not yet been produced.
8.
Click To Beginning
9.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
69
70
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
Thermal Energy
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
CFD-Post
Timestep
Plots
Slice Plane
Sphere Volume
Other
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
71
You start a new simulation in CFX-Pre and import the refined mesh. This tutorial introduces General
mode (the mode used for most tutorials) in CFX-Pre. The physics for this tutorial are the same as for
Simulating Flow in a Static Mixer Using CFX in Stand-alone Mode (p. 9); therefore, you can import the
physics settings used in that tutorial to save time.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
72
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ensure the following tutorial input files are in your working directory:
StaticMixerRefMesh.gtm
StaticMixer.def
StaticMixer_001.res
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run StaticMixerRef.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
Select General in the New Case dialog box and click OK.
4.
5.
2.
Value
Files of type
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
73
Value
File name
StaticMixerRefMesh.gtm
[a]
a. This mesh is more refined than the one used in the other Static Mixer tutorials
(StaticMixerMesh.gtm).
3.
Click Open.
The Mesh tree shows the regions in the StaticMixerRefMesh.gtm assembly in a tree structure.
The first tree branch displays the 3D regions and the level below each 3D region shows the 2D
regions associated with it. The check box next to each item in the Mesh tree indicates the visibility
status of the object in the viewer; you can click these to toggle visibility.
Note
An assembly is a group of mesh regions that are topologically connected. Each assembly
can contain only one mesh, but multiple assemblies are permitted.
4.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
2.
3.
4.
Select StaticMixer.def created in Tutorial 1. If you did not work through Tutorial 1, you can obtain
this file from the ANSYS Customer Portal.
5.
Click Open.
6.
74
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
If you import CCL that references nonexistent mesh regions, you will get errors.
A number of file types can be used as sources to import CCL, including:
Simulation files (*.cfx)
Results files (*.res)
CFX-Solver input files (*.def)
The physics for a simulation can be saved to a CCL file at any time by selecting File > Export >
CCL.
On the Outline tree view, under Simulation > Flow Analysis 1, double-click Default Domain.
The domain Default Domain is opened for editing.
2.
Click the Basic Settings tab and review, but do not change, the current settings.
3.
Click Fluid Models and review, but do not change, the current settings.
4.
Click Initialization and review, but do not change, the current settings.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
75
Click Close.
2.
Click the Boundary Details tab and review the settings for Flow Regime, Mass and Momentum, Turbulence and Heat Transfer.
3.
Click Close.
Select Insert > Solver > Solver Control from the menu bar or click Solver Control
2.
Setting
Value
Basic Settings
Advection Scheme
> Option
High Resolution
Convergence Control
> Max. Iterations
[a]
150
Convergence Control
> Fluid Timescale Control
> Timescale Control
Physical Timescale
Convergence Control
> Fluid Timescale Control
> Physical Timescale
0.5 [s]
a. If your solution does not meet the convergence criteria after this number of time
steps, the CFX-Solver will stop.
76
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Apply.
4.
Tip
To select Advanced Options you may need to click the navigation icons next to the
tabs to move forward or backward through the various tabs.
5.
6.
Click OK.
3.
4.
Setting
Value
File name
StaticMixerRef.def
Click Save.
The CFX-Solver input file (StaticMixerRef.def) is created. CFX-Solver Manager automatically
starts and, on the Define Run dialog box, Solver Input File is set.
5.
If you are notified in CFX-Pre that the file already exists, click Overwrite.
6.
77
2.
Set Initial Values Specification > Initial Values > Initial Values 1 > Initial Values 1 Settings > File
Name to StaticMixer_001.res.
If you did not complete the first tutorial, you can use StaticMixer_001.res from your working
directory.
3.
4.
5.
Note
Convergence information is plotted once the second outer loop iteration is complete.
This lists the variables that were interpolated from the results file.
After the final iteration, a message similar to the following content appears in a message window:
StaticMixerRef_001 has completed normally.
Run concluded at: Fri Nov 27 11:57:57 2009
This indicates that CFX-Solver has successfully calculated the solution for the problem to the specified
accuracy or has run out of coefficient loops.
78
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Solver Run Finished Normally window, ensure that the check box next to Post-Process Results
is cleared to prevent CFD-Post from launching at this time.
2.
Click OK.
3.
Review the CFX-Solver Manager's Out File tab for details on the run results.
On the CFX-Solver Manager, select Tools > Post-Process Results or click Post-Process Results
toolbar.
2.
In the Start CFD-Post dialog box, next to Results File, ensure that StaticMixerRef_001.res is set.
If it is not, click Browse
3.
in the
4.
Click OK.
After a short pause, CFD-Post starts.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
2.
From the menu bar, select Insert > Location > Plane or under Location, click Plane.
3.
In the Insert Plane dialog box, type Slice and click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
79
Setting
Value
Geometry
Domains
Default Domain
Definition
> Method
XY Plane
Definition
Render
>Z
1 [m]
Plane Type
Slice
Show Faces
(Cleared)
(Selected)
5.
Click Apply.
6.
Right-click a blank area in the viewer and select Predefined Camera > View From +Z.
7.
8.
Compare the on-screen image with the equivalent picture from Simulating Flow in a Static Mixer Using
CFX in Stand-alone Mode (p. 9) (in the section Rendering Slice Planes (p. 29)).
80
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Color
Mode [a]
Variable
Variable
Temperature
Range
Global
Show Faces
(Selected)
(Cleared)
Render
a. A mode setting of Constant would enable you to color the plane with a fixed
color.
2.
Click Apply.
To load the results file from Tutorial 1, select File > Load Results or click Load Results
2.
(Do not click Open until instructed to do so.) In the Load Results File dialog box, select StaticMixer_001.res from your working directory.
3.
On the right side of the dialog box, there are three frames:
Case options
Additional actions
CFX run history and multi-configuration options.
Under Case options, select Keep current cases loaded and ensure that Open in new view is selected.
4.
Under Additional actions, ensure that the Clear user state before loading check box is cleared.
5.
Under CFX run history and multi-configuration options, ensure that Load only the last results is selected.
6.
7.
8.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
81
Click Apply.
11. Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
Both meshes are now displayed in a line along the Y axis. Notice that one mesh is of a higher resolution than the other.
12. Set Edge Angle to 30 [degree].
13. Click Apply.
1.
Under User Locations and Plots, select the check box beside Slice.
2.
Right-click in the viewer and select Predefined Camera > View From -Z.
Note the difference in temperature distribution.
3.
4.
Click in View 1 in the 3D Viewer, then clear the visibility check box for Slice in the Outline tree view.
5.
Click in View 2. Note that the visibility check box for Slice has been re-selected as it describes the state
of the plane for View 2. Clear the visibility check box for Slice in this view.
6.
7.
8.
82
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
2.
In the tree view, ensure that the visibility check box for StaticMixerRef_001 > Default Domain
> out is selected, then double-click out to open it for editing.
Because the boundary location geometry was defined in CFX-Pre, the details view does not display
a Geometry tab as it did for the planes.
3.
Setting
Value
Render
Show Faces
(Cleared)
Show Mesh
Lines
(Selected)
Color Mode
User Specified
Line Color
4.
Click Apply.
5.
6.
7.
Click Rotate
8.
From the menu bar, select Insert > Location > Volume or, under Location click Volume.
2.
In the Insert Volume dialog box, type Tet Volume and click OK.
3.
Setting
Geometry
Definition
Value
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
83
Setting
Value
> Method
Sphere
Definition
> Point
[a]
0.08, 0, -2
Definition
> Radius
0.14 [m]
Definition
> Mode
Below
Intersection
Inclusive [b]
(Cleared)
Color
Color
Red
Render
Show Faces
> Transparency
0.3
(Selected)
User Specified
Grey
a. The z sliders minimum value corresponds to the minimum z value of the entire
geometry, which, in this case, occurs at the outlet.
b. Only elements that are entirely contained within the sphere volume will be
included.
4.
5.
6.
In the Duplicate Tet Volume dialog box, type Prism Volume and click OK.
7.
8.
Setting
Geometry
Definition
> Point
84
Value
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Definition
Color
9.
> Radius
0.206 [m]
Color
Orange
Click Apply.
2.
3.
Tab
Setting
Value
Render
Show Faces
(Selected)
(Selected)
Line Width
Click Apply.
From the menu bar, select Insert > Location > Plane or under Location, click Plane.
2.
In the Insert Plane dialog box, type Slice 2 and click OK.
3.
Setting
Geometry
Definition
> Method
Value
YZ Plane
Definition
Render
>X
0 [m]
Show Faces
(Cleared)
(Selected)
4.
Click Apply.
5.
6.
To see the plane clearly, right-click in the viewer and select Predefined Camera > View From -X.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
85
Click the Report Viewer tab (located below the viewer window).
A report appears. Look at the table shown in the Mesh Report section.
2.
3.
In the Mesh Report details view, select Statistics > Maximum Face Angle.
4.
As a result of generating this mesh statistic for the report, a new variable, Maximum Face Angle,
has been created and stored at every node. This variable will be used in the next section.
2.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
3.
In the Outline tree view, select the visibility check box of Wireframe.
4.
From the menu bar, select Insert > Location > Volume or under Location, click Volume.
5.
In the Insert Volume dialog box, type Max Face Angle Volume and click OK.
6.
Setting
Geometry
Definition
> Method
Value
Isovolume
Definition
> Variable
Maximum Face
Angle
[a]
Definition
> Mode
Above Value
Definition
86
> Value
140 [degree]
Inclusive [b]
(Selected)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
a. Select Maximum Face Angle from the larger list of variables available by
clicking
b. This includes any elements that have at least one node with a variable value
greater than or equal to the given value.
7.
Click Apply.
The volume object appears in the viewer.
4.6.11. Viewing the Mesh Elements with Largest Face Angle Using a Point
Next, you will create a point object to show a node that has the maximum value of Maximum Face
Angle. The point object will be represented by a 3D yellow crosshair symbol. In order to avoid obscuring
the point object with the volume object, you may want to turn off the visibility of the latter.
1.
From the menu bar, select Insert > Location > Point or under Location, click Point.
2.
3.
Setting
Geometry
Definition
> Method
Value
Variable Maximum
Definition
> Location
Default Domain
Definition
Symbol
4.
> Variable
Maximum Face
Angle
Symbol Size
Click Apply.
When you are finished, select File > Quit to exit CFD-Post.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
87
88
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
Thermal Energy
Boundary Conditions
Boundary Profile
Visualization
Inlet (Profile)
Inlet (Subsonic)
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
Timestep
Plots
Default Locators
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
89
Feature
Details
Outline Plot (Wireframe)
Slice Plane
Streamline
Other
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
90
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Ensure the following tutorial input files are in your working directory:
InjectMixerMesh.gtm
InjectMixer_velocity_profile.csv
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run InjectMixer.pre.
For details, see Playing a Session File (p. 6).
b.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
91
3.
4.
5.
6.
Click Save.
7.
2.
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 temperature. 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.
92
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
From the main menu, select Insert > Expressions, Functions and Variables > Expression.
2.
3.
Click OK.
The details view for the Tupper equation is displayed.
4.
5.
6.
Ensure that no expression is highlighted, then right-click in the Expressions workspace and select Insert
> Expression.
7.
8.
Click OK.
9.
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)
Right-click VisT in the Expressions tree view, and then select Edit.
The Expressions details view for VisT appears.
Tip
Alternatively, double-clicking the expression also opens the Expressions details view.
2.
Setting
Value
Plot
Number of Points
10
(Selected)
Start of Range
275 [K]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
93
3.
Setting
Value
End of Range
325 [K]
2.
3.
2.
3.
4.
5.
6.
7.
8.
9.
Click OK.
(k-epsilon) turbulence
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.
94
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
Select Insert > Domain from the main menu or click Domain
2.
3.
Click OK.
4.
Setting
Basic Settings
Value
> Location
B1.P3
Fluid 1
Water
Domain Models
> Pressure
> Reference Pressure
5.
6.
0 [atm]
Value
Heat Transfer
> Option
7.
Thermal Energy
Click OK.
Select Insert > Boundary from the main menu or click Boundary
2.
Note
A boundary named after a region will use that region as its location by default.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
95
Click OK.
4.
Setting
Value
Basic Settings
Boundary Type
Inlet
Location
side inlet
Boundary
Details
Normal Speed
5 [m s^-1]
Heat Transfer
> Option
Static Temperature
Heat Transfer
> Static Temperature
5.
315 [K]
Click OK.
2.
3.
4.
Click Open.
5.
Click OK.
The profile data is read into memory.
Note
After profile data has been initialized from a file, the profile data file should not be deleted 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.
96
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Insert > Boundary from the main menu or click Boundary
7.
8.
Click OK.
9.
Setting
Value
Basic Settings
Boundary Type
Inlet
Location
main inlet
Profile Boundary
Conditions
> Use Profile Data
(Selected)
Profile Boundary
Setup
> Profile Name
main inlet
Setting
Boundary Details
Flow Regime
> Option
Value
Subsonic
Mass And
Momentum
> Option
Cart. Vel.
Components
Turbulence
> Option
Medium (Intensity
= 5%)
Heat Transfer
> Option
Static Temperature
Heat Transfer
Plot Options
285 [K]
Boundary Contour
(Selected)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
97
Setting
Value
Boundary Contour
> Profile Variable
Select Insert > Boundary from the main menu or click Boundary
2.
3.
Click OK.
4.
Setting
Value
Basic Settings
Boundary Type
Outlet
Location
outlet
Boundary Details
Flow Regime
> Option
Subsonic
5.
> Option
Average Static
Pressure
Relative Pressure
0 [Pa]
Click OK.
2.
Click Close.
98
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Basic Settings
Advection Scheme
> Option
Value
High Resolution
Convergence
Control
> Max. Iterations
50
Convergence
Control
> Fluid Timescale
Control
> Timescale Control
Physical Timescale
Convergence
Control
> Fluid Timescale
Control
> Physical Timescale
2 [s]
[a]
Convergence
Criteria
> Residual Type
RMS
Convergence
Criteria
> Residual Target
1.E-4
[b]
a. The physical timescale that will be set up is derived from the pipe diameter (1
m) and the rate at which the water flows in the pipe (0.5 m/s).
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.
99
1.
2.
3.
Setting
Value
File name
InjectMixer.def
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.
4.
5.
6.
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.
100
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Click Apply.
5.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
2.
3.
Click OK.
4.
Tab
Setting
Value
Geometry
Type
3D Streamline
Definition
> Start From
main inlet
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.
Under User Locations and Plots, modify the streamline object MainStream by applying the following
settings
Tab
Setting
Value
Color
Range
Local
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
101
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.
3.
Setting
Value
Color
Range
User Specified
Min
0.2 [m s^-1]
Max
2.2 [m s^-1]
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.
Setting
Value
Color
Mode
Constant
Color
(Green)
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.
2.
3.
Click OK.
4.
5.
102
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Geometry
Definition
Color
6.
Value
side inlet
Mode
Constant
Color
(Red)
Click Apply.
Red streamlines appear, starting from the side inlet.
7.
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, specific instructions follow.
3.
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.
Color the plane using the variable Turbulence Kinetic Energy, to show regions of high turbulence.
To do so, apply the settings below.
Tab
Setting
Value
Color
Mode
Variable
Variable
Turbulence Kinetic
Energy
4.
Click Apply.
5.
Experiment with other variables to color this plane (for example, Temperature to show the temperature
mixing of the two streams).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
103
When you are finished, select File > Quit to exit CFD-Post.
2.
104
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Transient
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Boundary Conditions
Inlet (Subsonic)
Opening
Wall: No-Slip
Timestep
Configuration
Multiple
Plots
Animation
Isosurface
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
105
Feature
Details
Other
Auto Annotation
Movie Generation
Printing
Time Step Selection
Title/Text
Transient Animation
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
106
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run CircVent.pre
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
2.
Value
File name
CircVentMesh.gtm
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
107
Click Open.
4.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
Note
While smoke is not required for the steady-state simulation, including it here prevents you
from having to set up time value interpolation in the transient analysis.
1.
From the menu bar, select Insert > Expressions, Functions and Variables > Additional Variable.
2.
3.
Click OK.
4.
5.
6.
Click OK.
From the Outline Tree, right-click Simulation > Flow Analysis 1 and click Rename.
2.
Select Insert > Domain from the menu bar, or click Domain
click OK.
2.
Setting
Basic Settings
108
Value
B1.P3
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Fluid 1
Air at 25 C
Domain Models
> Pressure
> Reference Pressure
Fluid Models
0 [atm]
Heat Transfer
> Option
None
smoke
(Selected)
(Selected)
a. 1.0E-5 [m^2 s^-1] is a representative kinematic diffusivity value for smoke in air.
3.
Click OK.
109
Select Insert > Boundary from the menu bar or click Boundary
2.
3.
Click OK.
4.
Tab
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
Wind
Boundary
Details
Cart. Vel.
Components
1 [m s^-1]
0 [m s^-1]
0 [m s^-1]
Turbulence
> Option
Intensity and
Length Scale
Turbulence
> Fractional Intensity
0.05
[a]
Turbulence
> Eddy Length Scale
110
0.25 [m]
[a]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Additional Variables
> smoke
> Option
Value
Additional Variables
> smoke
> Add. Var. Value
0 [kg m^-3]
[b]
5.
Click OK.
Note
The boundary marker vectors used to display boundary conditions (inlets, outlets, openings)
are normal to the boundary surface regardless of the actual direction specification. To plot
vectors in the direction of flow, select Boundary Vector under the Plot Options tab for the
inlet boundary, and on the Labels and Markers Options tab (accessible from Case Options
> Labels and Markers on the Outline tree view), ensure that Settings > Show Boundary
Markers is selected and Show Inlet Markers is cleared.
Select Insert > Boundary from the menu bar or click Boundary
2.
3.
Click OK.
4.
Tab
Setting
Value
Basic
Settings
Boundary Type
Opening
Location
Atmosphere
Boundary
Details
111
Setting
Value
0 [Pa]
Flow Direction
> Option
Normal to
Boundary Condition
Turbulence
> Option
Intensity and
Length Scale
Turbulence
> Fractional Intensity
0.05
Turbulence
> Eddy Length Scale
0.25 [m]
Additional Variables
> smoke
> Option
Value
Additional Variables
> smoke
> Add. Var. Value
5.
0 [kg m^-3]
Click OK.
Select Insert > Boundary from the menu bar or click Boundary
2.
3.
Click OK.
4.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
Vent
Boundary
Details
112
0.01 [m s^-1]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Turbulence
> Option
Turbulence
> Fractional Intensity
0.05
Turbulence
> Eddy Viscosity Ratio
10
Additional Variables
> smoke
> Option
Value
Additional Variables
> smoke
> Add. Var. Value
5.
0 [kg m^-3]
Click OK.
2.
Review the settings for velocity, pressure, turbulence and the smoke.
3.
Click OK.
2.
Setting
Basic
Settings
Convergence Control
> Max. Iterations
Value
75
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
113
Note that Convergence Control > Fluid Timescale Control > Timescale Control is set to Auto
Timescale.
4.
Click OK.
In the Outline tree view, right-click Simulation > Steady State Analysis and select Duplicate.
2.
Right-click Simulation > Copy of Steady State Analysis and select Rename.
3.
In the Outline tree view, ensure that Simulation > Transient Analysis is expanded.
2.
Right-click Simulation > Transient Analysis > Analysis Type and select Edit.
3.
Setting
Basic
Settings
Analysis Type
> Option
Value
Transient
Analysis Type
> Time Duration
> Option
Total Time
Analysis Type
> Time Duration
> Total Time
30 [s]
Analysis Type
> Time Steps
> Timesteps
[a]
Analysis Type
114
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Analysis Type
> Initial Time
> Time
0 [s]
a. This list specifies 4 time steps of 0.25 [s], then 2 time steps of 0.5 [s], and so on.
Enter the list without the units, then set the units in the drop-down list. Do NOT
click Enter Expression
4.
Click OK.
In the Outline tree view, ensure that Simulation > Transient Analysis > CircVent is expanded.
2.
Right-click Simulation > Transient Analysis > CircVent > Vent and select Edit.
3.
Setting
Boundary
Details
Value
0.2 [m s^-1]
Create a new expression by selecting Insert > Expressions, Functions and Variables > Expression from
the menu bar. Set the name to TimeConstant.
5.
Definition
TimeConstant
3 [s]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
115
7.
Create the following expressions with specific settings, remembering to click Apply after each is defined:
Name
Definition
FinalConcentration
1 [kg m^-3]
ExpFunction
FinalConcentration*abs(1-exp(-t/TimeConstant))
[a]
a. When entering this function, you can select most of the required items by
right-clicking in the Definition window in the Expression details view instead
of typing them. The names of the existing expressions are under the Expressions
menu. The exp and abs functions are under Functions > CEL. The variable t is
under Variables.
Note
The abs function takes the modulus (or magnitude) of its argument. Even though the
expression (1- exp (-t/TimeConstant)) can never be less than zero, the abs function is
included to ensure that the numerical error in evaluating it near to zero will never make
the expression evaluate to a negative number.
Next, you will visualize how the concentration of smoke issued from the vent varies with time.
2.
Setting
Value
Plot
(Selected)
t
> Start of Range
0 [s]
t
> End of Range
3.
30 [s]
116
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
As can be seen, the smoke concentration rises to its asymptotic value reaching 90% of its final
value at around 7 seconds.
4.
5.
Setting
Value
Boundary
Details
Additional Variables
> smoke
> Option
Value
Additional Variables
> smoke
> Add. Var. Value
ExpFunction
[a]
6.
to enter text.
Click OK.
117
In the Outline tree view, ensure that Simulation > Transient Analysis > Solver is expanded.
2.
Right-click Simulation > Transient Analysis > Solver > Solver Control and select Edit.
3.
4.
5.
In the Outline tree view, double-click Simulation > Transient Analysis > Solver > Output
Control.
2.
3.
4.
Setting
Value
Option
Selected Variables
[a]
Output Frequency
> Option
Time List
Output Frequency
> Time List
1, 2, 3 [s]
[b]
5.
118
Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
This creates a second transient results object. Each object can result in the production of many
transient results files.
7.
Value
Option
Selected Variables
Output Frequency
> Option
Time Interval
Output Frequency
> Time Interval
4 [s]
[a]
8.
Click OK.
2.
Right-click Simulation Control > Configurations and select Insert > Configuration.
3.
4.
Click OK.
5.
Setting
Value
General
Settings
Flow Analysis
Steady State
Analysis
Activation Conditions
> Activation Condition 1
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
119
6.
Setting
Value
> Option
Start of Simulation
Click OK.
Right-click Simulation Control > Configurations and select Insert > Configuration.
2.
3.
Click OK.
4.
Setting
Value
General
Settings
Flow Analysis
Transient Analysis
Activation Conditions
> Activation Condition 1
> Option
End of
Configuration
Activation Conditions
> Activation Condition 1
> Configuration Name
Steady State
Run
Definition
Configuration Execution
Control
Selected
Initial
Values
Selected
Configuration
Results
120
Steady State
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
In the Outline tree view, right-click Simulation Control and select Write Solver Input File.
2.
3.
Setting
Value
File of type
File name
CircVent.mdef
Click Save.
This will create CircVent.mdef as well as a directory named CircVent that contains
SteadyState.cfg and Transient.cfg.
4.
2.
3.
4.
Setting
Value
CircVent.mdef
Edit Configuration
Global Settings
5.
In the Workspace drop-down menu, select SteadyState_001. The residual plots for six equations will
appear: U - Mom, V - Mom, W - Mom, P - Mass, K-TurbKE, and E-Diss.K (the three momentum conservation
equations, the mass conservation equation and equations for the turbulence kinetic energy and turbulence
eddy dissipation). The Momentum and Mass tab contains four of the plots and the other two are under
Turbulence Quantities. The residual for the smoke equation is also plotted but registers no values since
it is not initialized.
6.
Upon the successful completion of the steady-state configuration, the solution of the transient configuration starts automatically. Notice that the text output generated by the CFX-Solver in the Run Transient
001 Workspace will be more than you have seen for steady-state problems. This is because each time
step consists of several inner (coefficient) iterations. At the end of each time step, information about
various quantities is printed to the text output area. The residual for the smoke equation is now plotted
under the Additional Variables tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
121
Upon the successful completion of the combined steady-state and transient configurations, ensure that
the check box beside Post-Process Results is cleared and click OK to close the message indicating the
successful completion of the simulation.
8.
9.
10. On the Start CFD-Post dialog box, select Shut down CFX-Solver Manager and click OK.
In CFD-Post, right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z
up).
This ensures that the view is set to a position that is best suited to display the results.
2.
From the menu bar, select Insert > Location > Isosurface, or under Location on the toolbar, click
Isosurface.
3.
4.
5.
Tab
Setting
Value
Geometry
Variable
smoke
Value
Click Apply.
A bumpy surface is displayed, showing the smoke emanating from the vent.
The surface is rough because the mesh is coarse. For a smoother surface, you would re-run the problem
with a smaller mesh length scale.
122
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In Geometry, experiment by changing the Value setting so that you can see the shape of the plume
more clearly.
Zoom in and rotate the geometry, as required.
7.
8.
Right-click a blank spot in the viewer and select Predefined Camera > Isometric View (Z up).
2.
Load the results for a Time value of 2 s by double-clicking the appropriate row in the Timestep Selector.
After a short pause, the Loaded Timestep (located just below the title bar of the Timestep Selector)
will be updated with the new time step number.
3.
4.
Double-click some more time values to see how the smoke plume grows with time.
5.
Select Insert > Text from the menu bar or click Create text
2.
3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
123
Note
Further text will be added at a later stage to complete this title.
4.
5.
6.
7.
8.
Under the Appearance tab, change Color Mode to User Specified and select a new color.
9.
Click Apply.
2.
3.
Click Browse
4.
5.
6.
To save the file, click Save on the Save Picture dialog box.
To view the file or make a hard copy, use an application that supports JPEG files.
8.
124
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click Animation
3.
4.
Position the geometry so that you will be able to see the plume of smoke.
5.
6.
7.
8.
9.
Note
To explore additional animation options, click the Options button. On the Advanced
tab of Animation Options, there is a check box called Save Frames As Image Files.
By selecting this check box, the JPEG or PPM files used to encode each frame of the
movie will persist after movie creation; otherwise, they will be deleted.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
125
2.
In the Load Results File dialog box, select Load only the last results (the other default settings should
remain unchanged) and ensure that File name is set to CircVent_001.mres. Click Open.
Note
A warning message appears. Click OK.
3.
If necessary, right-click a blank spot in the viewer and select Predefined Camera > Isometric View (Z
up).
4.
5.
Select Insert > Volume Rendering and set the Name to be SmokeVolume.
6.
Setting
Value
Geometry
Variable
smoke
Resolution
50
Transparency
.2
Mode
Variable
Variable
smoke
Color Map
Greyscale
Color
Click Apply.
7.
126
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
Domain Type
Single Domain
Turbulence Model
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Symmetry Plane
Wall: No-Slip
Wall: Free-Slip
Timestep
CFX-Solver
Manager
Parallel Processing
CFD-Post
Plots
Default Locators
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
127
Feature
Details
Outline Plot
(Wireframe)
Sampling Plane
Streamline
Vector
Volume
Other
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
128
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Ensure the following tutorial input files are in your working directory:
BluntBodyDist.cse
BluntBodyMesh.gtm
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run BluntBody.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
2.
3.
Value
File name
BluntBodyMesh.gtm
Click Open.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
129
Click Domain
2.
Setting
Basic
Settings
Value
> Location
B1.P3
Fluid 1
Air at 25 C
[a]
Domain Models
> Pressure
> Reference Pressure
Fluid
Models
1 [atm]
Heat Transfer
> Option
None
Turbulence
> Option
3.
130
Shear Stress
Transport
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
From the main menu, select Insert > Regions > Composite Region.
2.
3.
Setting
Value
Basic
Settings
Dimension (Filter)
2D
4.
Click
beside the Region List dialog box, to display the Selection Dialog. Hold down the Ctrl key and
select Free1 and Free2.
5.
6.
Click Boundary
2.
3.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
Inlet
Boundary
Details
Flow Regime
> Option
Subsonic
Normal Speed
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
131
Setting
Value
15 [m s^-1]
Turbulence
> Option
Intensity and
Length Scale
Turbulence
> Fractional Intensity
0.05
[a]
Turbulence
> Eddy Length Scale
0.1 [m]
[a]
4.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
Outlet
Boundary
Details
Static Pressure
3.
0 [Pa]
Click OK.
132
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
FreeWalls
Boundary
Details
3.
Click OK.
2.
3.
Tab
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SymP
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
Body
Boundary
Details
3.
No Slip Wall
Click OK.
The remaining 2D regions (in this case, just the low Z face) will be assigned the default boundary which
is an adiabatic, no-slip wall condition. In this case, the name of the default boundary is BluntBody
Default. Although the boundaries Body and BluntBody Default are identical (except for their locations),
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
133
2.
Setting
Global
Settings
Initial Conditions
Value
Automatic with
Value
Initial Conditions
> Cartesian Velocity Components
>U
15 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
>V
0 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
>W
3.
0 [m s^-1]
Click OK.
2.
Setting
Basic
Settings
Convergence Control
> Max. Iterations
Value
60
Convergence Control
> Fluid Timescale Control
134
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Physical
Timescale
Convergence Control
> Fluid Timescale Control
> Physical Timescale
2 [s][a]
Convergence Criteria
> Residual Target
1e-05
3.
Click OK.
2.
3.
Setting
Value
File name
BluntBody.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Note
The results produced will be identical, whether produced by a parallel or serial run.
If you do not want to solve this tutorial in parallel (on more than one processor) or you do not have a
license to run the CFX-Solver in parallel, proceed to Obtaining a Solution in Serial (p. 136).
If you do not know if you have a license to run the CFX-Solver in parallel, you should either ask your
system administrator, or query the license server (see the ANSYS, Inc. Licensing Guide (which is installed
with the ANSYS License Manager) for details). Alternatively proceed to Obtaining a Solution in Serial (p. 136).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
135
2.
When CFX-Solver is finished, select the check box next to Post-Process Results.
3.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
4.
Click OK. Continue this tutorial from Viewing the Results Using CFD-Post (p. 140).
Set Run Mode to a parallel mode suitable for your configuration; for example, Platform MPI Local
Parallel.
This is the recommended method for most applications.
3.
By default,partitions are assigned. Ideally, the number of partitions should not exceed the number
of available processor cores.
4.
5.
6.
7.
8.
When CFX-Solver is finished, select the check box next to Post-Process Results.
9.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
2.
Set Run Mode to a parallel mode suitable for your environment; for example, Platform MPI Dis
tributed Parallel.
The name of the machine that you are currently logged into should be in the Host Name list. You
are going to run with two partitions on two different machines, so another machine must be added.
3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
137
Note
The # processors, relative speed and system information does not have to be specified
to be able to run on a host.
4.
5.
Click Add.
The name of the machine is added to the Host Name column.
Note
Ensure that the machine that you are currently logged into is in the Hosts Name list in
the Define Run dialog box.
6.
7.
8.
9.
138
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
partitioning run
+------------------------------+------+--------+----------+----------+
| Host
| Mesh | PID
|
Job Started
|
|
| Part |
| DD/MM/YY | hh:mm:ss |
+------------------------------+------+--------+----------+----------+
| fastmachine1
|
1 |
5952 | 19/02/13 | 10:50:09 |
+------------------------------+------+--------+----------+----------+
This tells you that the information following is concerned with the partitioning. After the partitioning
job has finished, you will find:
+--------------------------------------------------------------------+
|
Partitioning Information
|
+--------------------------------------------------------------------+
Partitioning information for domain: BluntBody
+------------------+------------------------+-----------------+
|
Elements
|
Vertices
|
Faces
|
+------+------------------+------------------------+-----------------+
| Part |
Number
%
|
Number
%
%Ovlp | Number
%
|
+------+------------------+------------------------+-----------------+
| Full |
131878
|
37048
|
11318
|
+------+------------------+------------------------+-----------------+
|
1 |
67873
50.4 |
19431
50.4
4.0 |
5705
49.5 |
|
2 |
66865
49.6 |
19151
49.6
4.0 |
5820
50.5 |
+------+------------------+------------------------+-----------------+
| Sum |
134738 100.0 |
38582 100.0
4.0 |
11525 100.0 |
+------+------------------+------------------------+-----------------+
+--------------------------------------------------------------------+
|
Partitioning CPU-Time Requirements
|
+--------------------------------------------------------------------+
-
Preparations
Low-level mesh partitioning
Global partitioning information
Element and face partitioning information
Vertex partitioning information
Partitioning information compression
Summed CPU-time for mesh partitioning
3.689E-01
5.599E-02
9.998E-03
7.999E-03
0.000E+00
0.000E+00
4.609E-01
seconds
seconds
seconds
seconds
seconds
seconds
seconds
+--------------------------------------------------------------------+
|
Job Information at End of Run
|
+--------------------------------------------------------------------+
+---------------------------+------+----------+----------+-----------+
| Host
| Mesh |
Job Finished
|
CPU
|
|
| Part | DD/MM/YY | hh:mm:ss | seconds |
+---------------------------+------+----------+----------+-----------+
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
139
0:
Minutes:
0.799 )
Seconds )
This marks the end of the partitioning job. The CFX-Solver now begins to solve your parallel run:
+--------------------------------------------------------------------+
|
Job Information at Start of Run
|
+--------------------------------------------------------------------+
Run mode:
+------------------------------+------+--------+----------+----------+
| Host
| Mesh | PID
|
Job Started
|
|
| Part |
| DD/MM/YY | hh:mm:ss |
+------------------------------+------+--------+----------+----------+
| fastmchine1
|
1 |
6044 | 19/02/13 | 10:50:11 |
|
|
2 |
3276 | 19/02/13 | 10:50:11 |
+------------------------------+------+--------+----------+----------+
The machine that you are logged into runs the master process, and controls the overall simulation. The
second machine selected will run the slave process. If you had more than two processes, each additional
process is run as a slave process.
The master process in this example is running on the mesh partition number 1 and the slave is running
on partition number 2. You can find out which nodes and elements are in each partition by using CFDPost later on in the tutorial.
When the CFX-Solver finishes, the output file displays the job information and a dialog box to indicate
completion of the run.
140
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click a blank area in the viewer and select Predefined Camera > View From +X.
Click Location > Plane and set the name to Reflection Plane.
2.
Setting
Geometry
Definition
> Method
Value
ZX Plane
Definition
Render
3.
>Y
0.0 [m]
Show Faces
(cleared)
Click Apply.
This creates a plane at y=0, the same location as the symmetry plane defined in CFX-Pre. Now the
instance transform can be created using this plane:
4.
From the main menu, select Insert > Instance Transform and accept the default name.
5.
Setting
Value
Definition
(Cleared)
Apply Rotation
(Cleared)
Apply Reflection
(Selected)
Apply Reflection
> Plane
6.
Reflection Plane
Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
141
Under the Outline tab, in User Locations and Plots, configure the following setting(s) of
Wireframe:
Tab
Setting
View
2.
Click Apply.
3.
Value
Instance Transform
1
Right-click a blank area in the viewer and select Predefined Camera > View From +Y.
This ensures that the changes can be seen.
2.
3.
Configure the following setting(s) to create a sampling plane that is parallel to the ZX plane and located
at x= 6 m, y= 0.001 m and z= 1 m relative to blunt object:
Tab
Setting
Geometry
Definition
> Method
Value
Definition
> Point
6, -0.001, 1
Definition
142
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
> Normal
0, 1, 0
Plane Bounds
> Type
Rectangular
Plane Bounds
> X Size
2.5 [m]
Plane Bounds
> Y Size
2.5 [m]
Plane Type
Sample
Plane Type
> X Samples
20
Plane Type
Render
4.
> Y Samples
20
Show Faces
(Cleared)
(Selected)
Click Apply.
You can zoom in on the sampling plane to see the location of the sampling points (where lines
intersect). There are a total of 400 (20 * 20) sampling points on the plane. A vector can be created
at each sampling point.
5.
Click Vector
2.
Setting
Geometry
Definition
> Locations
Value
Sample
Definition
Symbol
> Sampling
Vertex
Symbol Size
0.25
3.
Click Apply.
4.
Zoom until the vector plot is roughly the same size as the viewer.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
143
Ignore the vertices on the sampling plane and increase the density of the vectors by applying the following
settings:
Tab
Setting
Geometry
Definition
> Sampling
Value
Equally Spaced
Definition
> # of Points
1000
6.
Click Apply.
7.
Change the location of the Vector plot by applying the following setting:
Tab
Setting
Geometry
Definition
> Locations
8.
Value
SymP
Click Apply.
Setting
Value
Color
Mode
Variable
Variable
Pressure
View
2.
Click Apply.
3.
4.
144
Instance Transform
1
Tab
Setting
Value
Render
Show Faces
(Cleared)
(Selected)
Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.6.4. Creating Surface Streamlines to Display the Path of Air along the Surface
of the Body
In order to show the path of air along the surface of the blunt body, surface streamlines can be made
as follows:
1.
2.
3.
Setting
Geometry
Definition
Value
> Method
YZ Plane
-0.1 [m]
4.
Click Apply.
5.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up).
The plane appears just upstream of the blunt body.
6.
7.
Click Streamline
8.
Setting
Value
Geometry
Type
Surface Streamline
Definition
> Surfaces
Body
Definition
> Start From
Locations
Definition
> Locations
Starter
Definition
> Max Points
100
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
145
Setting
Value
Definition
> Direction
9.
Forward
Click Apply.
The surface streamlines appear on half of the surface of the blunt body. They start near the upstream
end because the starting points were formed by projecting nodes from the plane to the blunt body.
2.
Select the
3.
In the viewer, click the Starter plane to select it, then drag it along the X axis.
Notice that the streamlines are redrawn as the plane moves. The rate at which the streamlines are
redrawn is dependent on your computer's speed. If the streamlines are updated infrequently, you
may find it useful to move the mouse very slowly.
2.
146
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
.A
Setting
Value
Color
Mode
Variable
Variable
Yplus
View
[a]
Instance Transform
1
3.
Click Apply.
4.
Setting
Value
Color
Mode
Variable
Variable
Yplus
View
5.
Instance Transform
1
Click Apply.
Note
The CFD-Post engine can respond to CCL commands issued directly, or to commands issued
using the graphical user interface. The Command Editor dialog box can be used to enter
any valid CCL command directly.
1.
2.
Right-click a blank area in the viewer and select Predefined Camera > View From -X.
3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
147
Type the following line into the Command Editor dialog box (the quotation marks and the semi-colon
are required):
!BluntBodyDist("Velocity u");
5.
Click Process.
The minimum, maximum and average values of the variable at each X location are written to the
file BluntBody.txt. The results can be viewed by opening the file in a text editor.
2.
The two Isosurfaces show the edges of the two partitions. The gap between the two plots shows the
overlap nodes. These were contained in both partitions 1 and 2.
When you have finished looking at the results, quit CFD-Post.
148
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Transient
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
Laminar
Heat Transfer
Thermal Energy
Buoyant Flow
Boundary Conditions
Symmetry Plane
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
Wall: Fixed
Temperature
Output Control
Timestep
Transient
Plots
Default Locators
Chart
Report
Other
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
149
Feature
Details
Transient Animation
The overall approach for solving this problem is to set up a transient simulation to see how the flow
develops when starting from stationary conditions. Because you are starting from stationary conditions,
there is no need to solve a steady-state simulation for use as the initial guess. You will then model the
buoyant flow and create a report outlining the results in CFD-Post. You will also create an animation
to see changes in temperature with time.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run Buoyancy2D.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
Select File > Save Case As and set File name to Buoyancy2D.
5.
Click Save.
2.
Value
Files of type
CFX-4 (*geo)
File name
Buoyancy2D.geo
Options
> Mesh Units
3.
Click Open.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
151
Right-click Analysis Type in the Outline tree view and select Edit or click Analysis Type
toolbar.
2.
Setting
Basic Settings
Analysis Type
> Option
Value
Transient
Analysis Type
> Time Duration
> Total Time
2 [s]
[a]
Analysis Type
> Time Steps
> Timesteps
0.025 [s]
[b]
Analysis Type
> Initial Time
> Time
0 [s]
3.
152
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
in the
You will model the cavity as if it were tilted at an angle of 30. You can do this by specifying horizontal
and vertical components of the gravity vector, which are aligned with the default coordinate axes, as
shown in the diagram above.
1.
Click Domain
2.
Setting
Basic
Settings
Value
> Location
Primitive 3D
Fluid 1
Air at 25 C
Domain Models
> Pressure
> Reference Pressure
1 [atm]
Domain Models
> Buoyancy Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
153
Setting
Value
> Option
Buoyant
Domain Models
> Buoyancy Model
> Gravity X Dirn.
-4.9 [m s^-2]
Domain Models
> Buoyancy Model
> Gravity Y Dirn.
-8.5 [m s^-2]
Domain Models
> Buoyancy Model
> Gravity Z Dirn.
0.0 [m s^-2]
Domain Models
> Buoyancy Model
> Buoy. Ref. Temp.
Fluid
Models
40 [C] [a]
Heat Transfer
> Option
Thermal
Energy
Turbulence
> Option
None
(Laminar)
3.
Click OK.
2.
154
Tab
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WALLHOT
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Boundary
Details
Heat Transfer
Value
> Option
Temperature
Heat Transfer
> Fixed Temperature
3.
Click OK.
4.
5.
75 [C]
Tab
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WALLCOLD
Boundary
Details
Heat Transfer
> Option
Temperature
Heat Transfer
> Fixed Temperature
6.
5 [C]
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SYMMET1, SYMMET2
[a]
3.
Click OK.
The default adiabatic wall boundary will be applied automatically to the remaining boundaries.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
155
2.
Setting
Global
Settings
Initial Conditions
> Cartesian Velocity Components
> Option
Value
Automatic
with
Value
Initial Conditions
> Cartesian Velocity Components
>U
0 [m
s^-1]
Initial Conditions
> Cartesian Velocity Components
>V
0 [m
s^-1]
Initial Conditions
> Cartesian Velocity Components
>W
0 [m
s^-1]
Initial Conditions
> Static Pressure
> Relative Pressure
0 [Pa]
Initial Conditions
> Temperature
> Temperature
3.
5 [C]
Click OK.
156
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
4.
Value
Option
Selected Variables
Pressure,
Temperature,
Velocity
[a]
Output Frequency
> Option
Time Interval
Output Frequency
> Time Interval
0.1 [s]
[b]
5.
Click OK.
2.
Setting
Basic
Settings
Advection Scheme
> Option
Value
High Resolution
Convergence Control
> Max. Coeff. Loops
[a]
Convergence Criteria
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
157
Setting
Value
RMS
Convergence Criteria
> Residual Target
1.E-4
[b]
3.
Click OK.
2.
3.
Setting
Value
File name
Buoyancy2D.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Note
Recall that the output displayed on the Out File tab of the CFX-Solver Manager is more
complicated for transient problems than for steady-state problems. Each time step consists
of several iterations, and after the time step, information about various quantities is printed.
1.
2.
Select the check box next to Post-Process Results when the completion message appears at the end of
the run.
3.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
158
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
Click the Report Viewer tab. Note that the report loads with some automatically-generated statistical
information.
2.
In the Outline tree view, under Report, experiment with the various settings for Mesh Report,
Physics Report and other report objects. These settings control the report contents. On the Report
Viewer tab, you can click Refresh to see the changes to your report.
Click the 3D Viewer tab and right-click a blank area of the viewer, then select Predefined Camera > View
From -Z.
2.
3.
4.
5.
6.
Click Apply.
The contour plot shows the temperature at the end of the simulation, since CFD-Post loads values for
the last time step by default. You can load different time steps using the Timestep Selector dialog box,
accessible by selecting Tools > Timestep Selector from the main menu.
Before proceeding, turn off the visibility of the contour plot.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
159
From the main menu, select Insert > Location > Point.
2.
3.
4.
5.
Click Apply.
Note the location of Point 1 in the viewer.
6.
Right-click the Point 1 object in the tree view and select Duplicate from the shortcut menu.
7.
8.
Right-click the Point 2 object in the tree view and select Edit from the shortcut menu.
9.
8.6.2.3. Comment
1.
2.
3.
4.
8.6.2.4. Figure
Figures are CCL objects that can be used to store and switch between different views in a given viewport.
By selecting a figure, the information contained in the figure, such as the camera angle, zoom level,
lighting and the visibility setting of each object in the tree view, is applied to the active viewport and
is usable in reports.
1.
2.
160
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
5.
6.
7.
8.
9.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
161
2.
3.
Value
A1
Location
A2
Point 1
A3
Point 2
B1
Temperature
B2
=probe(Temperature)@Point 1
B3
=probe(Temperature)@Point 2
The table shows temperatures at the end of the simulation, since CFD-Post loads values for the last
time step by default. You can load different time steps using the Timestep Selector dialog box, accessible
by selecting Tools > Timestep Selector.
8.6.4. Animations
You may want to create an animation of the buoyant flow over time. Use the animation feature to see
the changing temperature field. The animation feature was used in Flow from a Circular Vent (p. 105).
8.6.5. Completion
When you have finished, quit CFD-Post.
162
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady-state
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
Isothermal
Buoyant Flow
Multiphase
Homogeneous Model
Boundary Conditions
Inlet
Opening
Outlet
Symmetry Plane
Wall: No Slip
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
163
Feature
Details
CFD-Post
Plots
Default Locators
Isosurface
Polyline
Sampling Plane
Vector
Volume
Other
Chart Creation
Title/Text
Viewing the Mesh
A mesh is provided. You will create a two-phase homogeneous setting and the expressions that will
be used in setting initial values and boundary conditions. Later, you will use mesh adaption to improve
the accuracy of the downstream simulation.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
164
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Ensure the following tutorial input files are in your working directory:
Bump2DExpressions.ccl
Bump2Dpatran.out
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run Bump2D.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
2.
Value
Files of type
Filename
Bump2Dpatran.out
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
165
Value
Options
> Mesh units
3.
Click Open.
4.
To best orient the view, right-click a blank area in the viewer and select Predefined Camera > View From
-Z from the shortcut menu.
In the Outline tree view, edit Case Options > Labels and Markers.
2.
Setting
Value
Settings
Show Labels
(Selected)
Show Labels
> Show Primitive 3D Labels
(Selected)
Show Labels
> Show Primitive 2D Labels
3.
(Selected)
Click OK.
166
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click Expressions, Functions and Variables > Expressions in the tree view and
select Insert > Expression.
2.
Set the name to UpH and click OK to create the upstream free surface height.
3.
4.
Use the same method to create the expressions listed in the table below. These are expressions for the
downstream free surface height, the fluid density, the buoyancy reference density, the calculated density
of the fluid (density - buoyancy reference density), the upstream volume fractions of air and water, the
upstream pressure distribution, the downstream volume fractions of air and water, and the downstream
pressure distribution.
5.
Name
Definition
DownH
0.022 [m]
DenWater
DenRef
DenH
(DenWater - DenRef )
UpVFAir
step((y-UpH)/1[m])
UpVFWater
1-UpVFAir
UpPres
DenH*g*UpVFWater*(UpH-y)
DownVFAir
step((y-DownH)/1[m])
DownVFWater
1-DownVFAir
DownPres
DenH*g*DownVFWater*(DownH-y)
2.
In the Import CCL dialog box, ensure that the Append option is selected.
3.
Select Bump2DExpressions.ccl.
4.
Click Open.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
167
After the file has been imported, use the Expressions tree view to view the expressions that have been
created.
Edit Case Options > General in the Outline tree view and ensure that Automatic Default Domain
is turned on. A domain named Default Domain should appear under the Simulation > Flow
Analysis 1 branch.
2.
3.
Under Fluid and Particle Definitions, delete Fluid 1 and create a new fluid named Air.
4.
Setting
Value
Basic
Settings
Air
5.
6.
Air at 25 C
Tab
Setting
Value
Basic
Settings
Water
Water
[a]
Domain Models
> Pressure
> Reference Pressure
1 [atm]
Domain Models
> Buoyancy Model
> Option
Buoyant
Domain Models
> Buoyancy Model
168
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
0 [m s^-2]
Domain Models
> Buoyancy Model
> Gravity Y Dirn.[b]
-g
Domain Models
> Buoyancy Model
> Gravity Z Dirn.
0 [m s^-2]
Domain Models
> Buoyancy Model
> Buoy. Ref. Density [c]
Fluid
Models
DenRef
Multiphase
> Homogeneous Model [d]
(Selected)
Multiphase
> Free Surface Model
> Option
Standard
Heat Transfer
> Option
Isothermal
Heat Transfer
> Fluid Temperature
25 [C]
Turbulence
> Option
k-Epsilon
a. The models selected here describe how the fluids interact. No mass transfer
between the phases occurs in this example. You do not need to model surface
tension.
b. You need to click Enter Expression
c. Always set Buoyancy Reference Density to the density of the least dense fluid
in free surface calculations.
d. The homogeneous model solves for a single solution field.
7.
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
169
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
INFLOW
Boundary
Details
Normal Speed
0.26 [m s^-1]
Turbulence
> Option
Intensity and
Length Scale
Turbulence
> Fractional Intensity
0.05
Turbulence
Fluid
Values
UpH
Boundary Conditions
Air
Boundary Conditions
> Air
> Volume Fraction
> Volume Fraction
UpVFAir
Boundary Conditions
Water
Boundary Conditions
> Water
> Volume Fraction
> Volume Fraction
3.
UpVFWater
Click OK.
170
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
OUTFLOW
Boundary
Details
Flow Regime
> Option
Subsonic
Static Pressure
3.
DownPres
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
FRONT
[a]
3.
Click OK.
4.
5.
6.
Tab
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
BACK
Click OK.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
171
Setting
Value
Basic Settings
Boundary Type
Opening
Location
TOP
Boundary
Details
Entrainment
0 [Pa]
Turbulence
Fluid Values
> Option
Zero Gradient
Boundary Conditions
Air
Boundary Conditions
> Air
> Volume Fraction
> Volume Fraction
1.0
Boundary Conditions
Water
Boundary Conditions
> Water
> Volume Fraction
> Volume Fraction
3.
Click OK.
4.
5.
0.0
Tab
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
BOTTOM1, BOTTOM2,
BOTTOM3
Boundary
Details
No Slip Wall
Wall Roughness
> Option
6.
172
Smooth Wall
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Global
Settings
Initial Conditions
Value
Automatic
with Value
Initial Conditions
> Cartesian Velocity Components
>U
0.26 [m s^-1]
[a]
Initial Conditions
> Cartesian Velocity Components
>V
0 [m s^-1]
[a]
0 [m s^-1]
[a]
Initial Conditions
> Cartesian Velocity Components
>W
Initial Conditions
> Static Pressure
> Option
Automatic
with Value
Initial Conditions
> Static Pressure
Fluid
Settings
UpPres
Air
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
173
Setting
Value
> Option
Automatic
with Value
UpVFAir
Water
Automatic
with Value
UpVFWater
3.
Click OK.
2.
Setting
Value
Basic
Settings
Activate Adaption
(Selected)
(Cleared)
Adaption Criteria
174
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Air.Volume Fraction
Adaption Criteria
> Max. Num. Steps
Adaption Criteria
> Option
Multiple of Initial
Mesh
Adaption Criteria
> Node Factor
Advanced
Options
3.
100
1.6
Number of Levels
Click OK.
1.
2.
Setting
Basic
Settings
Convergence Control
> Max. Iterations
Value
200
Convergence Control
> Fluid Timescale Control
> Timescale Control
Physical Timescale
Convergence Control
> Fluid Timescale Control
Advanced
Options
0.25 [s]
Multiphase Control
(Selected)
[a]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
175
Setting
Value
Multiphase Control
> Volume Fraction Coupling
(Selected)
Multiphase Control
> Volume Fraction Coupling
> Option
Coupled
[b]
a. Estimated from the time it takes the water to flow over the bump.
b. The Coupled Volume Fraction solution algorithm typically converges better than
the Segregated Volume Faction algorithm for buoyancy-driven problems. The
Segregated Volume Faction algorithm would have required a significantly smaller
timescale (0.05 [s]).
Note
Selecting these options on the solver control activates the Coupled Volume Fraction
solution algorithm. This algorithm typically converges better than the Segregated Volume
Faction algorithm for buoyancy-driven problems such as this tutorial. The Segregated
Volume Faction algorithm would have required a 0.05 second timescale, as compared
with 0.25 seconds for the Coupled Volume Fraction algorithm.
3.
Click OK.
2.
3.
Setting
Value
File name
Bump2D.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
It is common for convergence in a residual sense to be difficult to obtain in a free surface simulation,
due to the presence of small waves at the surface preventing the residuals from dropping to the target
level. This is more frequently a problem in the subcritical flow regime, as the waves can travel upstream.
In the supercritical regime, the waves tend to get carried downstream and out the domain. To satisfy
convergence in these cases, monitor the value of a global quantity (for example, drag for flow around
a ships hull) to see when a steady-state value is reached.
Where there is no obvious global quantity to monitor, you should view the results to see where the
solution is changing. You can do this by running transient (with time steps that are small enough to
capture transient effects) for a few time steps, starting from a results file that you think is converged
or from backup results files you have written at different time steps.
In both cases, look to see where the results are changing (this could be due to the presence of small
transient waves). Also confirm that the value of quantities that you are interested in (for example,
downstream fluid height for this case) has reached a steady-state value.
1.
When a dialog box is displayed at the end of the run, select Post-Process Results.
2.
3.
Click OK.
To best orient the view, right-click a blank area in the viewer and select Predefined Camera > View From
-Z.
2.
3.
In the tree view, edit Bump2D_001 > Default Domain > front.
4.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
177
Setting
Value
Color
Mode
Variable
Variable
Water.Volume
Fraction
5.
Click Apply.
6.
Observe the plot, then clear the check box next to front.
Select Insert > Location > Plane to create a new plane named Plane 1.
2.
Setting
Geometry
Definition
> Method
Value
XY Plane
Plane Bounds
> Type
Rectangular
Plane Bounds
> X Size
1.25 [m]
[a]
Plane Bounds
> Y Size
0.3 [m]
Plane Bounds
Render
> X Angle
0 [degree]
Plane Type
Sample
X Samples
160
Y Samples
40
Show Faces
(Cleared)
(Selected)
[b]
a. The Plane Bounds settings overlap the plane with the wireframe. You can
experiment with other values and click Apply to see the results.
b. The Plane Samples settings produce square elements. You can experiment with
other values and click Apply to see the results.
3.
Click Apply.
4.
178
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Setting
Geometry
Definition
> Locations
Value
Plane 1
Definition
Symbol
Water.Velocity
Symbol Size
0.5
a. Because fluids in a free-surface calculation share the same velocity field, only
the velocity of the first non-vapor fluid is available. The other allowed velocities
are superficial velocities. For details, see Further Postprocessing (p. 184).
7.
Click Apply.
8.
Setting
Geometry
Definition
Symbol
9.
Value
> Variable
Air.Superficial
Velocity
Symbol Size
0.15
Normalize Symbols
(Selected)
Click Apply.
2.
3.
4.
Setting
Value
Color
Mode
Constant
Render
Show Faces
(Cleared)
(Selected)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
179
Click Apply.
The mesh has been refined near the free surface.
In the transition region between different levels of refinement, tetrahedral and pyramidal elements are
used because it is not possible to recreate hexahedral elements in CFX. Near the inlet, the aspect ratio
of these elements increases.
Avoid performing mesh refinement on high-aspect-ratio hex meshes as this will produce high aspect
ratio tetrahedral-elements and result in poor mesh quality.
Figure 9.1: Mesh around the bump
6.
7.
Setting
Geometry
Definition
> Method
Value
Isovolume
Definition
> Variable
Refinement Level
[a]
Definition
> Mode
At Value
Definition
Render
> Value
Show Faces
(Cleared)
(Selected)
180
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
User Specified
8.
(Green)
Click Apply.
You will see a band of green, which indicates the elements that include nodes added during the
first mesh adaption.
9.
Setting
Geometry
Definition
> Method
Value
Isovolume
Definition
> Variable
Refinement Level
Definition
> Mode
At Value
Definition
> Value
Color
Color
White
Render
Show Faces
(Selected)
(Selected)
User Specified
(Black)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
181
Setting
Geometry
Definition
> Locations
Value
Plane 1
Definition
> Variable
(Any Vector
Variable)
Color
Symbol
[a]
Mode
Variable
Variable
Refinement Level
Symbol
Cube
Symbol Size
0.02
Normalize Symbols
(Selected)
a. The variables magnitude and direction do not matter because you will change
the vector symbol to a cube with a normalized size.
2.
3.
182
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Geometry
Definition
> Variable
Value
Water.Volume
Fraction
Definition
> Value
4.
0.5
Click Apply.
Creating isosurfaces using this method is a good way to visualize a free surface in a 3D simulation.
5.
Right-click any blank area in the viewer, select Predefined Camera, then select Isometric View (Y up).
2.
3.
4.
Tab
Setting
Value
Geometry
Method
Boundary
Intersection
Boundary List
front
Intersect With
Isosurface 1
Click Apply.
A green line is displayed that follows the high-Z edge of the isosurface.
2.
Setting
Value
General
Title
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
183
3.
Tab
Setting
Value
Data Series
Name
Location
Polyline 1
X Axis
Variable
Y Axis
Variable
Line Display
Symbols
Rectangle
Click Apply.
As discussed in Creating Expressions for Initial and Boundary Conditions (p. 166), an approximate outlet
elevation is imposed as part of the boundary, even though the flow is supercritical. The chart illustrates
the effect of this, in that the water level rises just before the exit plane. It is evident from this plot that
imposing the elevation does not affect the upstream flow.
The chart shows a wiggle in the elevation of the free surface interface at the inlet. This is related to an
over-specification of conditions at the inlet because both the inlet velocity and elevation were specified.
For a subcritical inlet, only the velocity or the total energy should be specified. The wiggle is due to a
small inconsistency between the specified elevation and the elevation computed by the solver to obtain
critical conditions at the bump. The wiggle is analogous to one found if pressure and velocity were
both specified at a subsonic inlet in a converging-diverging nozzle with choked flow at the throat.
Tip
You can right-click an existing vector plot and select a new vector variable.
184
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
Domain Type
Single Domain
Turbulence Model
Heat Transfer
Total Energy
Boundary Conditions
Inlet (Supersonic)
Outlet (Supersonic)
Symmetry Plane
Wall: No-Slip
Wall: Adiabatic
Wall: Free-Slip
CFD-Post
Domain Interfaces
Timestep
Maximum Timescale
Plots
Contour
Vector
Other
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
185
A mesh is provided. You will create a domain that contains three regions that will be connected by
fluid-fluid interfaces. To solve the simulation, you will start with a conservative time scale that gradually
increases towards the fluid residence time as the residuals decrease.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
2.
186
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run WingSPS.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
2.
Value
Files of type
File name
WingSPSMesh.out
Options
> Mesh Units
3.
Click Open.
4.
To best orient the view, right-click a blank area in the viewer and select Predefined Camera > Isometric
View (Y up) from the shortcut menu.
Edit Case Options > General in the Outline tree view and ensure that Automatic Default Domain
is turned on. A domain named Default Domain should now appear under the Simulation branch.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
187
Setting
Basic Settings
Value
> Location
WING_Elements
Fluid 1
Domain Models
> Pressure
> Reference Pressure
[a]
Fluid Models
1 [atm]
Heat Transfer
> Option
Total Energy
[b]
Turbulence
> Option
3.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
INLET
Boundary
Details
Flow Regime
> Option
188
Supersonic
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
0 [Pa]
600 [m s^-1]
0 [m s^-1]
0 [m s^-1]
Turbulence
> Option
Intensity and
Length Scale
Turbulence
> Fractional Intensity
0.01
Turbulence
> Eddy Length Scale
0.02 [m]
Heat Transfer
> Static Temperature
3.
300 [K]
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
OUTLET
Boundary
Details
Flow Regime
> Option
3.
Supersonic
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
189
2.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SIDE1
[a]
a. Symmetry, which can make a 3D problem into a 2D problem, can be used when
geometry and mesh are invariant normal to the symmetry surface.
3.
Click OK.
4.
5.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SIDE2
6.
Click OK.
7.
8.
9.
Tab
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
BOTTOM
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
TOP
Boundary
Details
190
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WING_Nodes
[a]
a. If particular items do not appear in the drop-down list, click the Ellipsis
to see all available items.
3.
icon
Click OK.
2.
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
> Region List
Primitive 2D A
Interface Side 2
> Region List
3.
Click OK.
2.
Setting
Global
Settings
Initial Conditions
Value
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
191
Setting
Value
Automatic
with
Value
Initial Conditions
> Cartesian Velocity Components
>U
600 [m
s^-1]
Initial Conditions
> Cartesian Velocity Components
>V
0 [m
s^-1]
Initial Conditions
> Cartesian Velocity Components
>W
0 [m
s^-1]
Initial Conditions
> Temperature
> Option
Automatic
with
Value
Initial Conditions
> Temperature
> Temperature
3.
300 [K]
Click OK.
192
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Basic
Settings
Convergence Control
Value
(Selected)
Convergence Control
> Fluid Timescale Control
> Maximum Timescale
> Maximum Timescale
0.1 [s]
Convergence Criteria
> Residual Target
3.
1.0e-05
Click OK.
2.
3.
Setting
Value
File name
WingSPS.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
2.
Select the check box next to Post-Process Results when the completion message appears at the end of
the run.
3.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
4.
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
193
To best orient the view, select View From -Z by typing Shift +Z.
2.
3.
4.
Setting
Value
Geometry
Locations
SymP2
Variable
Mach Number
Range
User Specified
Min
Max
# of Contours
21
5.
Click Apply.
6.
2.
194
Tab
Setting
Value
Geometry
Locations
SymP2
Variable
Pressure
Range
Global
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Apply.
4.
2.
3.
Tab
Setting
Value
Geometry
Locations
SymP2
Variable
Temperature
Range
Global
Click Apply.
The contour shows that the temperature at the wing's leading edge is approximately 180 K higher
than the inlet temperature.
4.
2.
Setting
Value
Variable
1
Vector
(Selected)
X Expression
(Pressure+101325[Pa])*Normal
X
Y Expression
(Pressure+101325[Pa])*Normal
Y
Z Expression
(Pressure+101325[Pa])*Normal
Z
3.
Click Apply.
4.
5.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
195
Setting
Value
Geometry
Locations
WingSurface
Variable
Variable 1
Symbol Size
0.04
Symbol
6.
Click Apply.
7.
196
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
None
Particle Tracking
Boundary Conditions
Inlet (Profile)
Inlet (Subsonic)
Outlet (Subsonic)
Symmetry Plane
Wall: No-Slip
Wall: Rough
Timestep
Plots
Animation
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
197
Feature
Details
Default Locators
Particle Track
Point
Slice Plane
Other
Flows can contain particulates that affect the flow and cause erosion to pipe and valve components.
You can use the particle-tracking capability of CFX to simulate these effects.
In this example, water flows at 5 m/s through a 20 mm radius pipe that has a rough internal surface.
The velocity profile is assumed to be fully developed at the pipe inlet. The flow, which is controlled by
a butterfly valve set at an angle of 55 to the vertical axis, contains sand particles ranging in size from
50 to 500 microns. The equivalent sand grain roughness is 0.2 mm.
The reference temperature is 300 K; the reference pressure is 1 atm.
A mesh is provided. You will create sand particles and a domain that contains water; for one part of
the simulation the water and sand will be fully coupled, and for the other part of the simulation they
will be one-way coupled. To increase the accuracy of the simulation, the inlet will be given a velocity
profile that simulates a fully-developed boundary layer.
To solve the simulation, you will create two sets of identical particles. The first set will be fully coupled
to predict the effect of the particles on the continuous phase flow field and enable the particles to influence the flow field. The second set will be one-way coupled but will contain a much higher number
198
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run PipeValve.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
199
3.
Value
File name
PipeValveMesh.gtm
Click Open.
2.
Setting
Value
Basic Settings
Material Group
Particle Solids
Thermodynamic State
(Selected)
Material
Properties
Thermodynamic Properties
> Equation of State
> Density
[a]
Thermodynamic Properties
> Specific Heat Capacity
200
(Selected)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Thermodynamic Properties
> Specific Heat Capacity
> Specific Heat Capacity
0 [J kg^-1 K^-1]
[b]
Thermodynamic Properties
> Reference State
(Selected)
Thermodynamic Properties
> Reference State
> Option
Specified Point
Thermodynamic Properties
> Reference State
> Ref. Temperature
300 [K]
[a]
3.
Click OK.
4.
Under Materials, right-click Sand Fully Coupled and select Duplicate from the shortcut menu.
5.
6.
Sand One Way Coupled is created with properties identical to Sand Fully Coupled.
Edit Case Options > General in the Outline tree view and ensure that Automatic Default Domain
is turned on. A domain named Default Domain should appear under the Simulation > Flow
Analysis 1 branch.
2.
3.
4.
5.
Set Fluid and Particle Definitions > Water > Material to Water.
6.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
201
Under Fluid and Particle Definitions > Sand Fully Coupled, configure the following setting(s):
Setting
Value
Material
Sand Fully
Coupled
[a]
Morphology
> Option
Particle
Transport Solid
Morphology
> Particle Diameter Distribution
(Selected)
Morphology
> Particle Diameter Distribution
> Option
Normal in
Diameter by
Mass
Morphology
> Particle Diameter Distribution
> Minimum Diameter
50e-6 [m]
Morphology
> Particle Diameter Distribution
> Maximum Diameter
500e-6 [m]
Morphology
> Particle Diameter Distribution
> Mean Diameter
250e-6 [m]
Morphology
> Particle Diameter Distribution
> Std. Deviation
70e-6 [m]
8.
9.
Under Fluid and Particle Definitions > Sand One Way Coupled, configure the following setting(s):
202
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
Material
[a]
Morphology
> Option
Particle
Transport Solid
Morphology
> Particle Diameter Distribution
(Selected)
Morphology
> Particle Diameter Distribution
> Option
Normal in
Diameter by
Mass
Morphology
> Particle Diameter Distribution
> Minimum Diameter
50e-6 [m]
Morphology
> Particle Diameter Distribution
> Maximum Diameter
500e-6 [m]
Morphology
> Particle Diameter Distribution
> Mean Diameter
250e-6 [m]
Morphology
> Particle Diameter Distribution
> Std. Deviation
70e-6 [m]
Setting
Basic
Settings
Domain Models
Value
> Pressure
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
203
Setting
Value
1 [atm]
Heat Transfer
> Option
None
Turbulence
Fluid
Specific
Models
> Option
k-Epsilon[a]
Fluid
Sand Fully
Coupled
Fluid
> Sand Fully Coupled
> Erosion Model
> Option
Finnie
Fluid
> Sand Fully Coupled
> Erosion Model
> Vel. Power Factor
2.0
Fluid
> Sand Fully Coupled
> Erosion Model
> Reference Velocity
1 [m s^-1]
Fluid
> Sand One Way Coupled
(Selected)
Fluid
> Sand One Way Coupled
> Erosion Model
> Option
Finnie
Fluid
> Sand One Way Coupled
> Erosion Model
> Vel. Power Factor
2.0
Fluid
> Sand One Way Coupled
204
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Fluid Pair
Models
1 [m s^-1]
Fluid Pair
Water | Sand
Fully Coupled
Fluid Pairs
> Water | Sand Fully Coupled
> Particle Coupling
Fully Coupled
Fluid Pairs
>Water | Sand Fully Coupled
> Momentum Transfer
> Drag Force
> Option
Schiller
Naumann
Fluid Pair
[b]
Water | Sand
One Way
Coupled
Fluid Pairs
> Water | Sand One Way Coupled
> Particle Coupling
One-way
Coupling
Fluid Pairs
> Water | Sand One Way Coupled
> Momentum Transfer
> Drag Force
> Option
Schiller
Naumann
[b]
a. The turbulence model applies only to the continuous phase and not the particle
phases.
b. The Schiller Naumann drag model is appropriate for sparsely-distributed, solid
spherical particles.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
205
You can create a non-uniform (profile) boundary condition by doing one of the following:
Creating an expression using CEL that describes the inlet profile. Using a CEL expression is the easiest way
to create the profile.
Creating a User CEL Function that uses a user subroutine (linked to the CFX-Solver during execution) to
describe the inlet profile. The User CEL Function method is more complex, but is provided here as an example
of how to use this feature.
Loading a boundary condition profile file (a file that contains boundary condition profile data).
Profiles created from data files are not used in this tutorial, but are used in the tutorial Flow in a
Process Injection Mixing Pipe (p. 89).
Note
For complex profiles, it may be necessary to use a User CEL Function or a boundary condition
profile file.
Use a CEL expression to define the velocity profile for the inlet boundary:
1.
Definition
Rmax
20 [mm]
Wmax
5 [m s^-1]
Wprof
Wmax*(abs(1-r/Rmax)^0.143)
In the definition of Wprof, the variable r (radius) is a CFX System Variable defined as:
(11.2)
In this equation, and are defined as directions 1 and 2 (X and Y for Cartesian coordinate frames)
respectively, in the selected reference coordinate frame.
206
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Continue with the tutorial at Creating the Boundary Conditions (p. 207).
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
inlet
Boundary
Details
Cart. Vel.
Components
0 [m s^-1]
0 [m s^-1]
Fluid
Values
[b]
>W
Wprof
Boundary Conditions
Sand Fully
Coupled
[a]
Boundary Conditions
> Sand Fully Coupled
> Particle Behavior
> Define Particle Behavior
(Selected)
Boundary Conditions
> Sand Fully Coupled
> Mass and Momentum
> Option
Cart. Vel.
Components
[c]
Boundary Conditions
> Sand Fully Coupled
> Mass And Momentum
>U
0 [m s^-1]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
207
Setting
Value
Boundary Conditions
> Sand Fully Coupled
> Mass And Momentum
>V
0 [m s^-1]
Boundary Conditions
> Sand Fully Coupled
> Mass And Momentum
>W
Wprof
[a]
Boundary Conditions
> Sand Fully Coupled
> Particle Position
> Option
Uniform
Injection
Boundary Conditions
> Sand Fully Coupled
> Particle Position
> Number of Positions
> Option
Direct
Specification
Boundary Conditions
> Sand Fully Coupled
> Particle Position
> Number of Positions
> Number
200
Boundary Conditions
> Sand Fully Coupled
> Particle Mass Flow
> Mass Flow Rate
Boundary Conditions
Boundary Conditions
208
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
(Selected)
Boundary Conditions
> Sand One Way Coupled
> Mass and Momentum
> Option
Cart. Vel.
Components
[c]
Boundary Conditions
> Sand One Way Coupled
> Mass And Momentum
>U
0 [m s^-1]
Boundary Conditions
> Sand One Way Coupled
> Mass And Momentum
>V
0 [m s^-1]
Boundary Conditions
> Sand One Way Coupled
> Mass And Momentum
>W
Wprof
[a]
Boundary Conditions
> Sand One Way Coupled
> Particle Position
> Option
Uniform
Injection
Boundary Conditions
> Sand One Way Coupled
> Particle Position
> Number of Positions
> Option
Direct
Specification
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
209
Setting
Value
Boundary Conditions
> Sand One Way Coupled
> Particle Position
> Number of Positions
> Number
5000
Boundary Conditions
> Sand One Way Coupled
> Particle Position
> Particle Mass Flow Rate
> Mass Flow Rate
a. Use the Expressions details view
3.
Click OK.
One-way coupled particles are tracked as a function of the fluid flow field. The latter is not influenced
by the one-way coupled particles. The fluid flow will therefore be influenced by the 0.01 [kg s^-1] flow
of two-way coupled particles, but not by the 0.01 [kg s^-1] flow of one-way coupled particles.
2.
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
outlet
Boundary
Details
Flow Regime
> Option
Subsonic
210
Average Static
Pressure
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
3.
0 [Pa]
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
symP
[a]
a. Symmetry can be used when geometry and mesh are invariant normal to the
symmetry surface.
3.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
pipe wall
Rough Wall
Wall Roughness
Fluid
Values
0.2 [mm]
Boundary Conditions
Sand Fully
Coupled
[a]
Boundary Conditions
> Sand Fully Coupled
> Velocity
> Option
Restitution
Coefficient
Boundary Conditions
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
211
Setting
Value
0.8
[b]
Boundary Conditions
> Sand Fully Coupled
> Velocity
> Parallel Coeff.
a. From the problem description. Make sure that you change the units to
millimeters. The thickness of the first element should be of the same order as
the roughness height.
b. This value would typically come from experimental or reference data.
3.
Apply the same setting values for Sand One Way Coupled as for Sand Fully Coupled.
4.
Click OK.
In the Outline tree view, edit the boundary named Default Domain Default.
2.
Setting
Value
Fluid
Values
Boundary Conditions
Boundary Conditions
> Sand Fully Coupled
> Velocity
> Perpendicular Coeff.
0.9
Boundary Conditions
[a]
Boundary Conditions
> Sand One Way Coupled
> Velocity
> Perpendicular Coeff.
0.9
a. This value would typically come from experimental or reference data. For this
tutorial, the pipe wall and butterfly valve are considered to be made of different
materials, so their perpendicular coefficients are different.
212
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
2.
Setting
Global
Settings
Initial Conditions
Value
Automatic with
Value
Initial Conditions
> Cartesian Velocity Components
> Option
>U
0 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
> Option
>V
0 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
> Option
>W
3.
Wprof
Click OK.
2.
Setting
Basic
Settings
Advection Scheme
Value
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
213
Particle
Control
Setting
Value
> Option
High
Resolution
Particle Integration
> Max. Particle Intg. Time Step
(Selected)
Particle Integration
> Max. Particle Intg. Time Step
> Value
1e+10 [s]
(Selected)
(Selected)
10 [s]
(Selected)
10 [m]
(Selected)
10000
[a]
a. This value controls the number of mesh elements a particle is allowed to cross
and therefore must take into account the size and density of the mesh.
Note
The numeric values in the preceding table are all designed to put a high upper limit on
the amount of processing that will be done. For example, the tracking time of 10 seconds
would enable a particle to get caught in an eddy for a reasonable amount of time.
3.
214
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Setting
Value
File name
PipeValve.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Ensure the Define Run dialog box is displayed and click Start Run.
2.
Select the check box next to Post-Process Results when the completion message appears at the end of
the run.
3.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
4.
Click OK.
2.
Tab
Setting
Value
Color
Mode
Variable
Variable
[a]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
215
Setting
Value
Range
User Specified
Min
Max
[b]
3.
Click Apply.
As can be seen, the highest values occur on the edges of the valve where most particles strike.
Erosion of the low Z side of the valve would occur more quickly than for the high Z side.
Ensure that the check box next to Res PT for Sand Fully Coupled is cleared.
2.
3.
4.
Setting
Value
Color
Mode
Variable
Variable
Range
User Specified
Min
Max
5.
Click Apply.
6.
Optionally, fill the check box next to Default Domain Default to see how sand particles have deflected off the butterfly valve then to the pipe wall.
216
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Setting
Value
Geometry
Max Tracks
20
Color
Mode
Variable
Variable
Show Symbols
(Selected)
Symbol
[a]
Show Symbols
> Max Time
0 [s]
Show Symbols
> Min Time
0 [s]
Show Symbols
> Interval
0.07 [s]
Show Symbols
> Symbol
Ball
Show Symbols
> Scale
1.2
4.
Click Apply.
5.
Right-click a blank area anywhere in the viewer, select Predefined Camera from the shortcut menu and
select View From +X to view the particle tracks.
Symbols can be seen at the start of each track.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Y up) from the
shortcut menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
217
Right-click an edge of the flat side on the half cylinder and select Reflect/Mirror from the shortcut menu.
Click X Axis to choose it as the normal direction.
Note
Alternatively, you can apply Reflect/Mirror, by double-clicking Default Domain to
open the details view. In the Instancing tab enable Apply Reflection and select
Method to YZ Plane. Click Apply.
3.
4.
5.
6.
Click Options to display the Animation Options dialog box, then clear Override Symbol Settings to
ensure the symbol type and size are kept at their specified settings for the animation playback. Click OK.
Note
The arrow pointing downward in the bottom right corner of the Animation Window will
reveal the Options button if it is not immediately visible.
7.
Select Loop.
8.
9.
218
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
You should use Conservative variable values when performing calculations and Hybrid
values for visualization purposes. Conservative values are set by default in CFD-Post but
you can manually change the setting for each variable in the Variables Workspace, or
the settings for all variables by using the Function Calculator.
2.
3.
4.
5.
Click Calculate.
The result is the maximum value of pressure at the outlet.
6.
Perform the calculation again using minVal to obtain the minimum pressure at the outlet.
7.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
219
220
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Domain Type
Multiple Domain
(Fluid, Porous)
Fluid Type
Ideal Gas
Turbulence Model
k-Epsilon
Heat Transfer
Thermal Energy
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Wall: No-Slip
CFD-Post
Domain Interfaces
Fluid-Porous
Timestep
Plots
Contour
Default Locators
Outline Plot
(Wireframe)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
221
Feature
Details
Polyline
Slice Plane
Vector
Other
Chart Creation
Data Export
Title/Text
Viewing the Mesh
In this tutorial, you will model a catalytic converter in order to determine the pressure drop and heat
transfer through it when air enters the inlet at 25 m/s and 500 K, and exits the outlet at a static pressure
of 1 atm. For simplicity, you will not model chemical reactions.
You are provided with a mesh for the passageways inside a pipe-and-flange structure. You will use this
mesh, and a copy of it, to model the pipe and flange portions of the flow field, at both ends of the
catalytic converter.
For the housing, you are provided with a hexahedral mesh that was created in ICEM-Hexa. This mesh
fills the entire 3D volume of the housing.
To model the presence of the honeycomb structure that exists in the housing, you will model porosity
and apply resistance to the flow. The honeycomb structure has a porosity of 70%, which means that
222
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Ensure the following tutorial input files are in your working directory:
CatConvHousing.hex
CatConvMesh.gtm
CatConv.ccl
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run CatConv.pre.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
223
This tutorial requires that you are working with SI units. In particular, some coordinates used in the
specification of a mesh transformation (performed later in this tutorial) are given without units, and
CFX-Pre assumes that the working units apply. Before continuing, ensure that your units are set to SI
as follows:
1.
2.
In the tree on the left side of the dialog box, select Common > Units.
3.
4.
Click OK.
5.
6.
7.
8.
9.
Click Save.
Value
AreaDen
360 [m^-1]
HTC
50 [W m^-2 K^-1]
HTCoutside
20 [W m^-2 K^-1]
224
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
0.4 [m]
Porosity
0.7
Tinlet
500[K]
Toutside
40 [C]
2.
Select CatConv.ccl
3.
Click Open.
4.
Expand the Expressions section in the Outline tree to see a list of the expressions that have been
imported.
2.
Value
Files of type
All Types(*)
Mesh Format
ICEM CFD
File name
CatConvHousing.hex
Options
> Mesh Units
3.
cm
Click Open.
Later in this tutorial, you will create a porous domain for the housing in order to simulate flow through
a honeycomb structure.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
225
2.
3.
Value
File name
CatConvMesh.gtm
Click Open.
You now have a pipe and flange on the outlet end of the housing. In the next step, you will create a
transformed copy of the pipe and flange for the inlet end.
2.
Value
Transformation
Rotation
Rotation Option
Rotation Axis
From
0, 0, 0.16
To
0, 1, 0.16
Specified
Rotation Angle
180 [degree]
Multiple Copies
(Selected)
[a]
3.
Click Apply.
Later in this tutorial, you will create a fluid domain for both pipe and flange sections.
12.4.1.5. Creating a Single Region for Both Pipe and Flange Meshes
The outlet pipe and flange region is B1.P3. The inlet pipe and flange region is B1.P3 2.
There are three basic options for creating fluid domains on these regions:
Create two similar domains: one that applies to B1.P3, and one that applies to B1.P3 2.
226
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Create a new composite region by selecting Insert > Regions > Composite Region.
2.
3.
Click OK.
4.
5.
Tab
Setting
Value
Basic
Settings
Dimension (Filter)
3D
Region List
B1.P3, B1.P3 2
Click OK.
2.
3.
Click OK.
4.
Setting
Basic
Settings
Value
CatConverter
Fluid Domain
Fluid 1
Domain Models
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
227
Setting
Value
> Pressure
> Reference Pressure
Fluid
Models
1 [atm]
Heat Transfer
> Option
5.
Thermal Energy
Click OK.
where
2.
3.
Click OK.
4.
Setting
Basic
Settings
Value
LIVE
[a]
Porous
Domain
Fluid 1
228
> Material
Solid Definitions
(Add a new
solid named
Steel)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
is the
Setting
Value
Solid Definitions
> Steel
> Material
Steel
Domain Models
> Pressure
> Reference Pressure
Fluid
Models
Heat Transfer
> Option
Solid
Models
Thermal
Energy
Heat Transfer
> Option
Porosity
Settings
1 [atm]
Thermal
Energy
Volume Porosity
> Option
Value
Volume Porosity
> Volume Porosity
Porosity
[d]
Loss Model
> Option
Directional
Loss
Loss Model
> Loss Velocity Type
Superficial
[b]
Loss Model
> Directional Loss
> Streamwise Direction
> Option
Cartesian
Components
Loss Model
> Directional Loss
> Streamwise Direction
> X Component
Loss Model
> Directional Loss
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
229
Setting
Value
Loss Model
> Directional Loss
> Streamwise Direction
> Z Component
-1
Loss Model
> Directional Loss
> Streamwise Loss > Option
Linear and
Quadratic
Coeffs.
Loss Model
> Directional Loss
> Streamwise Loss
> Quadratic Resistance Coefficient
(Selected)
Loss Model
> Directional Loss
> Streamwise Loss
> Quadratic Resistance Coefficient
> Quadratic Coefficient
650 [kg
m^-4]
[c]
Loss Model
> Directional Loss
> Transverse Loss
> Option
Streamwise
Coeff.
Multiplier
Loss Model
> Directional Loss
> Transverse Loss
> Multiplier
10
[c]
230
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
AreaDen
[d]
HTC
[d]
5.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
PipeEnd 2
Boundary
Details
[a]
25 [m s^-1]
[b]
Heat Transfer
> Static Temperature
Tinlet
3.
Click OK.
231
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
PipeEnd
Boundary
Details
Static Pressure
3.
0 [Pa]
Click OK.
The remaining outer surfaces are automatically assigned to the default (no slip wall) boundaries:
Housing Default and Pipes Default.
2.
Setting
Boundary
Details
Heat Transfer
> Option
Value
Heat Transfer
Coefficient
Heat Transfer
> Heat Trans. Coeff.
HTCoutside
Heat Transfer
> Outside Temperature
Solid Values
Toutside
Boundary Conditions
> Steel
> Heat Transfer
> Option
Heat Transfer
Coefficient
Boundary Conditions
> Steel
> Heat Transfer
232
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
HTCoutside
Boundary Conditions
> Steel
> Heat Transfer
> Outside Temperature
3.
Toutside
Click OK.
Create a new domain interface by selecting Insert > Domain Interface, or click Domain Interface
2.
In the Insert Domain Interface dialog box, set the name to InletSide.
3.
Click OK.
4.
Setting
Value
Basic
Settings
Interface Type
Fluid Porous
Interface Side 1
> Domain (Filter)
Pipes
Interface Side 1
> Region List
FlangeEnd 2
Interface Side 2
> Domain (Filter)
Housing
Interface Side 2
> Region List
Mesh
Connection
INLET
GGI
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
233
Click OK.
6.
Create a similar domain interface named OutletSide that connects FlangeEnd (in domain Pipes)
to OUTLET (in domain Housing).
2.
Setting
Global
Settings
Initial Conditions
Value
Initial Conditions
> Cartesian Velocity
Components
>U
0 [m s^-1]
Initial Conditions
> Cartesian Velocity
Components
>V
0 [m s^-1]
Initial Conditions
> Cartesian Velocity
Components
>W
3.
234
-2.8 [m s^-1]
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Basic
Settings
Convergence Control
Value
Physical Timescale
Convergence Control
> Fluid Timescale Control
> Physical Timescale
3.
0.04 [s]
Click OK.
2.
3.
Setting
Value
File name
CatConv.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
2.
235
4.
5.
Click OK.
When CFD-Post opens, if you see the Domain Selector dialog box, ensure that both domains are selected,
then click OK.
2.
3.
Set Edge Angle to 10 [degree] and click Apply to see more of the mesh surface.
4.
Turn off the visibility of User Locations and Plots > Wireframe.
5.
Right-click a blank area in the viewer and select Predefined Camera > View From -Z.
In the Outline tree view, four interface sides are listed. There are two sides to the interface between
the housing and the inlet. Similarly, there are two sides to the corresponding interface on the outlet
side.
Examine the interface on the inlet side to see the nature of the GGI connection:
1.
2.
Setting
Value
Render
Show Faces
(Cleared)
(Selected)
236
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
User Specified
3.
Click Apply.
4.
5.
(Red)
Tab
Setting
Value
Render
Show Faces
(Cleared)
(Selected)
User Specified
6.
Click Apply.
7.
(Green)
You can now see the tetrahedral/prism and hexahedral mesh on each side of the GGI interface. This
interface was used to produce a connection between dissimilar meshes before the solution was calculated.
Notice that there are more tetrahedral/prism elements than hexahedral elements and that the extent
of the two meshes is not quite the same (this is most noticeable on the curved edges).
2.
Turn off the visibility of Pipes > InletSide Side 1 and Housing > InletSide Side 2.
Right-click a blank area in the viewer and select Predefined Camera > View From +Y.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
237
3.
Setting
Geometry
Definition
Value
> Method
ZX Plane
Definition
Color
>Y
0.0 [m]
Mode
Variable
Variable
Steel.Temperature[a]
Range
Global
a. If particular items do not appear in the drop-down list, click the Ellipsis icon
available items.
to see all
4.
Click Apply. Notice the temperature distribution in the steel throughout the catalytic converter housing.
5.
To see the temperature distribution in the fluid, change Variable to Temperature and click Apply.
6.
Turn off the visibility of User Locations and Plots > Plane 1 after you have analyzed the air
temperature variation on Plane 1.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Y Up).
2.
Click Location
3.
4.
Setting
Value
Geometry
Method
Transformed Surface
Surface Name
Housing Default
Mode
Variable
Variable
Steel.Temperature
Range
Local
Color
5.
238
Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Configure the following setting(s) to show the air temperature at the wall:
Tab
Setting
Value
Color
Variable
Temperature
Range
Local
7.
Click Apply.
8.
Configure the following setting(s) to show the steel heat flux at the wall:
9.
Tab
Setting
Value
Color
Variable
Range
Local
Click Apply.
The values of the heat flux are negative because heat flow is directed away from the catalyst
housing. The magnitude of heat flux should be greatest where the inlet pipe meets the housing
body.
10. Configure the following setting(s) to show the air heat flux at the wall:
Tab
Setting
Value
Color
Variable
Range
Local
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
239
2.
Setting
Value
Geometry
Method
Boundary Intersection
Boundary List
Color
Render
[a]
Intersect With
Plane 1
Mode
Constant
Color
(Yellow)
Line Width
3.
Click Apply.
4.
Turn off the visibility of User Locations and Plots > Polyline 1.
Right-click a blank area in the viewer and select Predefined Camera > View From +Y.
2.
Clear Plane 1 in the Outline tab if you have not already done so.
3.
4.
Setting
Value
Geometry
Locations
Plane 1
Variable
Pressure
Range
Global
# of Contours
30
(Cleared)
Render
5.
240
Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Tab
Setting
Value
Geometry
Locations
Plane 1
Symbol
Symbol Size
0.1
Normalize Symbols
(Selected)
Click Apply.
Notice that the flow separates from the walls, where the inlet pipe expands into the flange, setting up
a recirculation zone. The flow is uniform through the catalyst housing.
2.
Setting
Value
General
Title
Data
Series
Name
Pressure Drop
Data Source
> Location
X Axis
Data Selection
> Variable
Y Axis
Line
Display
Polyline 1
Data Selection
> Variable
Pressure
Pressure Drop
(Selected)
[a]
Line Display
> Line Style [b]
None
Line Display
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
241
Chart
Display
Setting
Value
Rectangle
Sizes
> Symbol
a. Click the Pressure Drop entry in the Specify the properties of each line
list to select it.
b. These options will only be revealed if you have successfully selected Pressure
Drop.
3.
Click Apply.
Through the main body of the catalytic converter you can see that the pressure drop is linear. This
is in the region from approximately Z=0.06 to Z=0.26. The two lines show the pressure on each
side of the wall. You can see a noticeable difference in pressure between the two walls on the inlet
side of the housing (at around Z=0.26).
4.
5.
Click the 3D Viewer tab, then right-click a blank area and select Predefined Camera > View From +Y.
You should now see that the flow enters the housing from the inlet pipe at a slight angle, producing
a higher pressure on the high X wall of the housing.
From the main menu, select File > Export > Export.
2.
Setting
Value
Options
Locations
Polyline 1
(Selected)
Select Variables
Pressure
Precision
Formatting
[a]
3.
Click Save.
The file export.csv will be written to the current working directory in a comma-separated variable
format. This file can be opened in any text editor. You can use the exported data file to plot charts
in other software such as a Microsoft Excel spreadsheet.
242
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
243
244
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
Laminar
Heat Transfer
None
Boundary Conditions
Symmetry Plane
Wall: No-Slip
Wall: Moving
CFD-Post
Timestep
Plots
Sampling Plane
Vector
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
245
The shear-thickening liquid that is used in this tutorial obeys the Ostwald de Waele model with a viscosity consistency of 10.0 kg m-1 s-1, a Power Law index of 1.5, and a time constant of 1 s. This model
is assumed to be valid for shear-strain rates ranging from 1.0E-3 s-1 to 100 s-1. The fluid has a density
of 1.0E4 kg m-3. The viscosity is plotted over this range in Figure 13.2: Apparent Viscosity of a Shearthickening Fluid (p. 247).
246
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This tutorial involves a shear thickening fluid that obeys the Ostwald de Waele model between apparent
viscosity and shear-strain rate:
(13.1)
where is the apparent viscosity, is the viscosity consistency, is the shear-strain rate, is a normalizing time constant, and is the Power Law index. Note that the units for are not tied to the value
of because the quantity in parentheses is dimensionless.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
247
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run NonNewton.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
2.
3.
Value
File name
NonNewtonMesh.gtm
Click Open.
248
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Value
Basic
Settings
Thermodynamic State
(Selected)
Thermodynamic State
> Thermodynamic State
Material
Properties
Liquid
Thermodynamic Properties
> Equation of State
> Molar Mass
1.0 [kg
kmol^-1]
[a]
Thermodynamic Properties
> Equation of State
> Density
1.0E+4 [kg
m^-3]
Transport Properties
> Dynamic Viscosity
(Selected)
Transport Properties
> Dynamic Viscosity
> Option
Non
Newtonian
Model
a. While this is not the correct molar mass, it is not a value used by CFX-Solver in
this particular case.
3.
Configure the following setting(s) under Transport Properties > Dynamic Viscosity > Non Newtonian
Viscosity Model:
Setting
Value
Option
Ostwald de Waele
Viscosity Consistency
0.001 [s^-1]
100 [s^-1]
Time Constant
1 [s]
1.5
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
249
Click OK.
Click Domain
2.
Setting
Value
Basic
Settings
Location
B8
Fluid 1
myfluid
Heat Transfer
> Option
None
Turbulence
> Option
3.
None (Laminar)
Click OK.
250
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
rotwall
Boundary
Details
No Slip Wall
(Selected)
Rotating Wall
Coordinate Axis
3.
Global Z
Click OK.
2.
3.
Tab
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SymP1
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
251
5.
6.
Tab
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SymP2
Click OK.
The outer annulus surfaces will default to the no-slip stationary wall boundary.
2.
Setting
Value
Automatic
with Value
Initial Conditions
> Cartesian Velocity Components
>U
0 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
>V
0 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
>W
3.
252
0 [m s^-1]
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Value
Basic
Settings
Advection Scheme
> Option
Specified Blend
Factor
Advection Scheme
> Blend Factor
1.0
[a]
Convergence Control
> Max. Iterations
50
Convergence Criteria
> Residual Type
RMS
Convergence Criteria
> Residual Target
1e-05
[b]
3.
Click OK.
2.
3.
Setting
Value
File name
NonNewton.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
253
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
2.
3.
4.
5.
Click OK.
Right-click a blank area in the viewer and select Predefined Camera > View From -Z from the shortcut
menu.
2.
3.
Setting
Geometry
Definition
> Method
Value
Definition
> Point
0, 0, 0.015
[a]
Definition
> Normal
0, 0, 1
Plane Bounds
> Type
Circular
Plane Bounds
> Radius
254
0.3 [m]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Plane Type
Sample
Plane Type
> R Samples
32
Plane Type
Render
24
Show Faces
(Cleared)
(Selected)
User Specified
Line Color
(Choose green, or
some other color,
to distinguish the
sample plane from
the Wireframe
object.)
a. This is the point on the axis of the inner pipe, in the middle of the domain in the
Z direction.
4.
Click Apply.
5.
Examine the sample plane. The sample points are located at the line intersections. Note that many of the
sample points are outside the domain. Only those points that are in the domain are usable for positioning
vectors in a vector plot.
6.
7.
8.
Setting
Geometry
Definition
> Locations
Value
Plane 1
Definition
> Sampling
Vertex
[a]
Definition
> Reduction
Reduction Factor
Definition
> Factor
1.0
[b]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
255
Setting
Value
Definition
> Variable
Velocity
Definition
Symbol
Hybrid
Symbol Size
[c]
[d]
a. This causes the vectors to be located at the nodes of the sample plane you
created previously. Note that the vectors can alternatively be spaced using other
options that do not require a sample plane.
b. A reduction factor of 1.0 causes no reduction in the number of vectors so that
there will be one vector per sample point.
c. The hybrid values are modified at the boundaries for postprocessing purposes.
d. Because CFD-Post normalizes the size of the vectors based on the largest vector,
and because of the large variation of velocity in this case, the smallest velocity
vectors would normally be too small to see clearly.
9.
Click Apply.
In CFX-Pre, you created a shear-thickening liquid that obeys the Ostwald de Waele model for shearstrain rates ranging from 1.0E-3 s-1 to 100 s-1. The values of dynamic viscosity, which are a function of
the shear-strain rate, were calculated as part of the solution. You can post-process the solution using
these values, which are stored in the Dynamic Viscosity variable. For example, you can use this
variable to color graphics objects.
Color Plane 1 using the Dynamic Viscosity variable:
1.
2.
Edit Plane 1.
3.
Setting
Value
Color
Mode
Variable
Variable
Dynamic Viscosity
Show Faces
(Selected)
Render
4.
Click Apply
Try plotting Shear Strain Rate on the same plane. Note that the distribution is somewhat different
than that of Dynamic Viscosity, as a consequence of the nonlinear relationship (see Figure 13.2: Apparent Viscosity of a Shear-thickening Fluid (p. 247)).
When you have finished, quit CFD-Post.
256
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
Turbo Wizard
Analysis Type
Steady State
Transient
Fluid Type
Ideal Gas
Domain Type
Multiple Domain
Rotating Frame of
Reference
Turbulence Model
k-Epsilon
Heat Transfer
Total Energy
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
Domain Interfaces
Frozen Rotor
Periodic
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
257
Feature
Details
Transient Rotor Stator
Timestep
Restart
CFD-Post
Plots
Parallel Processing
Animation
Isosurface
Surface Group
Turbo Post
Other
258
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The geometry to be modeled consists of a single stator blade passage and two rotor blade passages.
This is an approximation to the full geometry since the ratio of rotor blades to stator blades is close to,
but not exactly, 2:1. In the stator blade passage a 6 section is being modeled (360/60 blades), while
in the rotor blade passage, a 6.372 section is being modeled (2*360/113 blades). This produces a pitch
ratio at the interface between the stator and rotor of 0.942. As the flow crosses the interface, it is scaled
to enable this type of geometry to be modeled. This results in an approximation of the inflow to the
rotor passage. Furthermore, the flow across the interface will not appear continuous due to the scaling
applied.
You should always try to obtain a pitch ratio as close to 1 as possible in your model to minimize approximations, but this must be weighed against computational resources. A full machine analysis can be
performed (modeling all rotor and stator blades), which always eliminates any pitch change, but will
require significant computational time. For this geometry, a 1/4 machine section (28 rotor blades, 15
stator blades) would produce a pitch change of 1.009, but this would require a model about 15 times
larger than in this tutorial example.
In this example, the rotor rotates about the Z axis at 523.6 rad/s while the stator and shroud are stationary. The tip gap between the rotor blades and the shroud is not included in the mesh. Periodic
boundaries are used to enable only a small section of the full geometry to be modeled.
The important parameters of this problem are:
Total pressure = 0.265 bar
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
259
The overall approach of this tutorial is to run a transient simulation using the Transient Rotor-Stator
interface model initialized with the results of a steady-state simulation that uses the Frozen Rotor interface
model. First, you will define a steady-state Frozen Rotor simulation using the Turbomachinery Wizard.
The results of this simulation will be viewed using the Turbo-Post feature. Next, you will rerun the
steady-state Frozen Rotor simulation using an Exit Corrected Mass Flow Rate boundary condition. You
will modify a copy of this steady-state Frozen Rotor simulation to define the transient simulation with
the Transient Rotor-Stator interface model. After running the Transient Rotor-Stator simulation, you will
create an animation showing domain movement.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
260
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ensure the following tutorial input files are in your working directory:
rotor.grd
stator.gtm
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
14.4. Simulating the Stage with the Steady-State Frozen Rotor Model
You will first create the Frozen Rotor simulation.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run AxialIni.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
Value
Machine Type
Axial Turbine
Analysis Type
> Type
2.
Steady State
Click Next.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
261
Right-click in the blank area and select Add Component from the shortcut menu.
2.
3.
Value
Mesh
> File
stator.gtm
[a]
a. You may have to select the CFX Mesh (*gtm *cfx) option under Files of
type.
4.
5.
Value
Component Type
> Value
Mesh
> File
rotor.grd
[a]
Options
> Mesh Units
a. You may have to select the CFX-TASCflow (*grd) option under Files of
Type.
Note
The components must be ordered as above (stator then rotor) in order for the interface
to be created correctly. The order of the two components can be changed by rightclicking on S1 and selecting Move Component Up.
When a component is defined, Turbo Mode will automatically select a list of regions that correspond
to certain boundary types. This information should be reviewed in the Region Information section
to ensure that all is correct. This information will be used to help set up boundary conditions and
interfaces. The upper case turbo regions that are selected (for example, HUB) correspond to the
region names in the CFX-TASCflow grd file. CFX-TASCflow turbomachinery meshes use these names
consistently.
6.
262
Value
8.
9.
113
Setting
Value
Wall Configuration
(Selected)
Wall Configuration
> Tip Clearance at Shroud
Yes
[a]
No
[a]
Wall Configuration
> Tip Clearance at Hub
a. These settings configure the slip conditions on the walls such that the shroud
is counter-rotating with respect to the rotor, but the hub is not.
Value
Fluid
Model Data
> Reference Pressure
0.25 [atm]
Model Data
> Heat Transfer
Total Energy
Model Data
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
263
Value
> Turbulence
k-Epsilon
(Selected)
0 [atm]
340 [K]
Normal to
Boundary
Per Component
Interface
> Default Type
Frozen Rotor
Solver Parameters
(Selected)
Solver Parameters
> Advection Scheme
High Resolution
Solver Parameters
> Convergence Control
Physical
Timescale
Solver Parameters
> Physical Timescale
a. This time scale is approximately equal to 1 /
rotating machinery applications.
2.
264
0.002 [s]
[a]
Click Next.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click Next.
2.
Click Next.
2.
Click Finish.
After you click Finish, a dialog box appears stating that the Turbo report will not be included in
the solver file because you are entering General mode.
3.
2.
Value
File name
AxialIni.def
[a]
a. You do not need to set the full path unless you are saving the solver file
somewhere other than the working directory.
3.
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
265
2.
3.
4.
Click OK.
When you are finished, proceed to Viewing the Results Using CFD-Post (p. 267).
Set Run Mode to a parallel mode suitable for your environment; for example, Platform MPI Local
Parallel.
2.
By default, two partitions are assigned. Ideally, the number of partitions should not exceed the
number of available processor cores.
3.
4.
Select the check box next to Post-Process Results when the completion message appears at the end of
the run.
266
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
6.
Click OK.
When you are finished, proceed to Viewing the Results Using CFD-Post (p. 267).
Set Run Mode to a parallel mode suitable for your environment; for example, Platform MPI Dis
tributed Parallel.
One partition should already be assigned to the host that you are logged into.
2.
3.
In Select Parallel Hosts, select another host name (this should be a machine that you can log into using
the same user name).
4.
5.
6.
Select the check box next to Post-Process Results when the completion message appears at the end of
the run.
7.
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
8.
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
267
Note
If you do not see the Turbo Initialization dialog box, or as an alternative to using that
dialog box, you can initialize all components by clicking the Initialize All Components
button, which is visible initially by default, or after double-clicking the Initialization
object in the Turbo tree view.
2.
Click Yes.
In this case, the initialization works without problems. If there was a problem initializing a component, this would likely be indicated in the tree view.
From the main menu, select Insert > Location > Surface Group.
2.
3.
Setting
Value
Geometry
Locations
Color
Mode
Variable
Variable
Pressure
4.
Click Apply.
5.
6.
7.
Setting
3D
View
Graphical Instancing
> Domain
Value
R1
Graphical Instancing
268
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
> # of Copies
8.
Click Apply.
9.
Setting
3D
View
Graphical Instancing
> Domain
Value
S1
Graphical Instancing
> # of Copies
2.
3.
Click Apply.
This profile of the pressure curve is typical for turbomachinery applications.
4.
When you are finished viewing the chart, return to the Outline tab and keep CFD-Post open.
14.4.3. Simulating the Stage with the Exit Corrected Mass Flow Rate Boundary
Condition
You will now use a different outlet boundary condition, namely the Exit Corrected Mass Flow Rate
specification for the R1 Outlet boundary, that will enable you to specify the mass flow at the outlet
at corrected conditions. The Reference Pressure and Reference Temperature will be set to International
Standard Atmosphere (ISA) conditions (1 atm and 288.15 K).
The exit corrected mass flow is defined as:
(14.1)
where,
and
at the outlet.
are mass averaged values of total pressure and temperature in the stationary frame
The intent of this section is to obtain the same operating point with the exit corrected mass flow
boundary condition as with the previous setup that used the mass flow boundary condition at the
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
269
2.
Set the working directory and start CFX-Pre if it is not already open.
For details, see Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode (p. 3).
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run AxialIni_Cor.pre.
For details, see Playing a Session File (p. 6).
b.
4.
5.
6.
7.
Setting
Boundary
Details
Value
288.15 [K]
1 [atm]
[a]
a. The Ref. Temperature and Reference Pressure values should be the default
settings but if they are not, ensure that they are the values given in the table.
8.
270
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Setting
Value
File name
AxialIni_Cor.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
Procedure 2: If Simulation Control > Execution Control appears in the outline tree view:
1.
2.
Setting
Value
Run
Definition
AxialIni_Cor.def
3.
Click OK.
4.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
2.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
2.
Select Run Mode > Platform MPI Local Parallel and click Start Run.
3.
In CFX-Solver Manager, select Workspace > New Monitor in the main menu and click OK to accept the
default name.
4.
271
Setting
Plot Lines
Flow
Value
> Boundary
> R1 Outlet
> P-Mass Boundary Flow on
R1 Outlet (R1)
(Selected)
5.
Click OK.
6.
When the dialog box is displayed stating that the simulation has ended, click OK.
Note
The resulting plot of the P-Mass Boundary Flow on R1 Outlet (R1) vs. Accumulated Time
Step converges to 0.06 on the Y axis. The exit corrected mass flow rate entered (0.3745
kg s^-1) for this run yields the same physical mass flow as used in the previous steadystate setup; this is expected. The value is negative because the flow is leaving the domain.
If you would like to convince yourself that the results are identical, you can proceed to the following
section and do a case comparison in CFD-Post. If you do not want to compare the cases, proceed to
Simulating the Stage with the Transient Rotor-Stator Model (p. 274).
With AxialIni_001.res already loaded in CFD-Post, select File > Load Results.
2.
In the Load Results File dialog box, select Keep current cases loaded, then select the file AxialIni_Cor_001.res. Click Open. If the Domain Selector dialog box appears, ensure that both the R1
and S1 domains are selected, and then click OK.
3.
You should see the two cases beside one another in the 3D Viewer. Click the synchronize active view icon
.
4.
Right-click within the 3D view and select Predefined Camera > Isometric View (Y up) to orient the views.
Click Fit View
5.
Next, you will create an instancing transformation to plot three domain passages; three blade passages
for the stator and six blade passages for the rotor, as you did for the previous case.
The instancing properties of each domain have already been entered during Initialization. In the
next steps, you will create a surface group plot to color the blade and hub surfaces with the same
variable.
6.
272
Select Insert > Location > Surface Group from the main menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.
Setting
Geometry
Locations
> AxialIni_Cor_001
Value
Color
a. Click the
9.
[a]
Mode
Variable
Variable
Pressure
Click Apply.
Setting
3D
View
Graphical Instancing
> Domain
Value
R1 (AxialIni_Cor_001)
Graphical Instancing
> # of Copies
Note
If the image from the results of AxialIni_Cor_001 is not displayed in the 3D Viewer,
select it from the drop-down list at the top of the viewer.
Setting
3D
View
Graphical Instancing
> Domain
Value
S1 (AxialIni_Cor_001)
Graphical Instancing
> # of Copies
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
273
2.
Set the working directory and start CFX-Pre if it is not already running.
For details, see Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode (p. 3).
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run Axial.pre.
For details, see Playing a Session File (p. 6). The session file creates a new simulation named
Axial.cfx.
b.
4.
5.
274
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Since 10 time steps are used over this interval each time step should be 2.124e-5 s.
1.
2.
Value
Analysis Type
> Type
Transient
Analysis Type
> Total Time
2.124e-4 [s]
Analysis Type
> Time Steps
2.124e-5 [s]
[a]
a. This time step size will be used until the total time is reached, giving 10 time
steps, each 2.124e-5 s.
3.
Click Next.
Component Definition is displayed.
4.
Click Next.
Physics Definition is displayed.
5.
Value
Fluid
Interface
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
275
Value
Note
A Transient Rotor-Stator calculation often runs long enough for the blades to pass
through more than one pitch. In these cases, it may be useful to look at variable data
averaged over the time interval required to complete 1 pitch. You can then compare
data for each pitch rotation to see if a steady state has been achieved, or if the flow
is still developing.
6.
Click Next.
A warning message is displayed.
7.
Click Yes.
Interface Definition is displayed.
8.
Click Next.
Boundary Definition is displayed.
9.
Click Next.
Final Operations is displayed.
2.
3.
4.
Setting
Value
Option
Selected Variables
[a]
Output Frequency
> Option
276
Time Interval
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
Output Frequency
> Time Interval
2.124e-5 [s]
5.
Click OK.
2.
Setting
Value
Run
Definition
Axial.def
[a]
a. You do not need to set the full path unless you are saving the solver file
somewhere other than the working directory.
3.
Confirm that the rest of the execution control settings are set appropriately.
4.
Click OK.
Click Yes.
3.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
277
Under Initial Values Specification > Initial Values, select Initial Values 1.
3.
Under Initial Values Specification > Initial Values > Initial Values 1 Settings > File Name, click Browse
.
4.
5.
Click Open.
6.
Under Initial Values Specification > Use Mesh From, select Solver Input File.
7.
8.
9.
10. Click OK. Continue this tutorial from Monitoring the Run (p. 278).
278
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
If you do not see the Turbo Initialization dialog box, or as an alternative to using that
dialog box, you can initialize all components by clicking the Initialize All Components
button, which is visible initially by default, or after double-clicking the Initialization
object in the Turbo tree view.
2.
Click Yes.
Both components (domains) are now being initialized based on the automatically selected turbo
regions. When the process is complete, a green turbine icon appears next to each component entry
in the list. Also, the viewer displays a green background mesh for each initialized component.
3.
Double-click Component 1 (S1) and review the automatically-selected turbo regions and other data
in the details view.
4.
Double-click Component 2 (R1) and review the automatically-selected turbo regions and other data
in the details view (including the Passages per Component setting on the Instancing tab, which should
have a value of 2).
2.
Click Apply.
A surface of constant span appears, colored by pressure.
2.
3.
Create a Turbo Surface by selecting Insert > Location > Turbo Surface from the drop-down menu with
a Constant Span and value of 0.5.
2.
Under the Color tab select Variable and set it to Pressure with a user specified range of -10000 [Pa] to
-7000 [Pa].
3.
Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
279
2.
3.
Click Apply.
4.
5.
Click Apply.
6.
Return to the Outline tab and ensure that the turbo surface is visible again.
2.
3.
Click Apply to load the time step. The rotor blades move to their starting positions. These positions are
exactly 1 pitch from the blade positions that were previously displayed, so the blades will appear to be
in the same positions.
4.
5.
Position the geometry as shown below, ready for the animation. During the animation the rotor blades
will move to the right. Make sure you have at least two rotor blades out of view to the left side of the
viewer. They will come into view during the animation.
280
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Animation
8.
Click New
9.
Select KeyframeNo1, then set # of Frames to 9, then press Enter while in the # of Frames box.
to create KeyFrameNo1.
Tip
Be sure to press Enter and confirm that the new number appears in the list before
continuing.
10. Use the Timestep Selector to load the final time step.
11. In the Animation dialog box, click New
12. Click More Animation Options
to create KeyframeNo2.
13. Click Options and set Transient Case to TimeValue Interpolation. Click OK.
The animation now contains a total of 11 frames (9 intermediate frames plus the two Keyframes),
one for each of the available time values.
14. In the expanded Animation dialog box, select Save Movie.
15. Set Format to MPEG1.
16. Click Browse
, next to the Save Movie box and then set the file name to an appropriate file name.
17. If frame 1 is not loaded (shown in the F: text box at the bottom of the Animation dialog box), click
To Beginning
to load it.
Wait for CFD-Post to finish loading the objects for this frame before proceeding.
18. Click Play the animation
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
281
2.
In the Report Templates dialog box, select Turbine Report, then click Load.
The report will be generated automatically.
3.
Click the Report Viewer tab (located below the viewer window).
A report appears.
282
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
Variable Composition
Mixture
Domain Type
Single Domain
Turbulence Model
k-Epsilon
Heat Transfer
Thermal Energy
Particle Tracking
Component Source
Boundary Conditions
Inlet (Subsonic)
Outlet (Subsonic)
Symmetry Plane
Wall: Adiabatic
Additional Variables
CEL (CFX Expression
Language)
CFD-Post
Timestep
Plots
Isosurface
Slice Plane
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
283
The geometry consists of a mixing tube with three rings with twelve holes in each ring.
The main inlet has water entering at 2 m/s with a temperature of 300 K. The pressure at the outlet is
1 atm.
Through the ring of holes nearest the inlet, a solution of dilute sulfuric acid enters at 2 m/s with a
temperature of 300 K. Through each of the two other rings of holes, a solution of dilute sodium hydroxide
enters at 2.923 m/s with a temperature of 300 K. The properties of the solution of sulfuric acid are
shown in Table 15.1: Properties of the Dilute Sulfuric Acid Solution (p. 284):
Table 15.1: Properties of the Dilute Sulfuric Acid Solution
Property
Value
Molar mass
19.517 kg kmol^-1
Density
1078 kg m^-3
Dynamic Viscosity
Thermal Conductivity
284
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
Molar mass
18.292 kg kmol^-1
Density
1029 kg m^-3
Dynamic Viscosity
Thermal Conductivity
The acid and alkali undergo an exothermic reaction to form a solution of sodium sulfate (a type of salt)
and water according to the reaction:
Mixing the acid and alkali solutions in a stoichiometric ratio (and enabling them to react completely)
would result in a salt water solution that would include water from each of the original solutions plus
water produced during the reaction. The properties of this salt water product are shown in
Table 15.3: Properties of the Salt Water Product (p. 285).
Table 15.3: Properties of the Salt Water Product
Property
Value
Molar mass
18.600 kg kmol^-1
Density
1031 kg m^-3
Dynamic Viscosity
Thermal Conductivity
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
285
Note
You can also model this type of reaction using a reacting mixture as your fluid. For details,
see Combustion and Radiation in a Can Combustor (p. 413).
To model the pH, you will create an algebraic Additional Variable that is governed by a CEL expression
for pH. The Additional Variable will be available in the solution results for analysis during postprocessing.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
2.
Ensure the following tutorial input files are in your working directory:
ReactorExpressions.ccl
ReactorMesh.gtm
The tutorial input files are available from the ANSYS Customer Portal. To access tutorials and their
input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run Reactor.pre.
For details, see Playing a Session File (p. 6).
b.
286
3.
4.
5.
6.
Click Save.
2.
3.
Value
File name
ReactorMesh.gtm
Click Open.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
287
Setting
Value
Basic
Settings
Option
Pure
Substance
Thermodynamic State
(Selected)
Thermodynamic State
Material
Properties
Liquid
Option
General
Material
Thermodynamic Properties
> Equation of State
> Option
Value
Thermodynamic Properties
> Equation of State
> Molar Mass
19.517 [kg
kmol^-1]
[a]
Thermodynamic Properties
> Equation of State
> Density
1078 [kg
m^-3]
Thermodynamic Properties
> Specific Heat Capacity
(Selected)
Thermodynamic Properties
> Specific Heat Capacity
> Option
Value
Thermodynamic Properties
> Specific Heat Capacity
> Specific Heat Capacity
4190 [J kg^-1
K^-1]
Transport Properties
> Dynamic Viscosity
(Selected)
Transport Properties
> Dynamic Viscosity
> Option
Value
Transport Properties
288
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
0.001 [kg
m^-1 s^-1]
Transport Properties
> Thermal Conductivity
(Selected)
Transport Properties
> Thermal Conductivity
> Option
Value
Transport Properties
> Thermal Conductivity
> Thermal Conductivity
0.6 [W m^-1
K^-1]
a. The Molar Masses for the three materials do not affect the solution except
through the post-processed variables Molar Concentration and Molar Fraction.
3.
Click OK.
2.
Setting
Value
Basic
Settings
Option
Pure
Substance
Thermodynamic State
(Selected)
Thermodynamic State
Material
Properties
Liquid
Option
General
Material
Thermodynamic Properties
> Equation of State
> Option
Value
Thermodynamic Properties
> Equation of State
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
289
Setting
Value
18.292 [kg
kmol^-1]
Thermodynamic Properties
> Equation of State
> Density
1029 [kg
m^-3]
Thermodynamic Properties
> Specific Heat Capacity
(Selected)
Thermodynamic Properties
> Specific Heat Capacity
> Option
Value
Thermodynamic Properties
> Specific Heat Capacity
> Specific Heat Capacity
4190 [J kg^-1
K^-1]
Transport Properties
> Dynamic Viscosity
(Selected)
Transport Properties
> Dynamic Viscosity
> Option
Value
Transport Properties
> Dynamic Viscosity
> Dynamic Viscosity
0.001 [kg
m^-1 s^-1]
Transport Properties
> Thermal Conductivity
(Selected)
Transport Properties
> Thermal Conductivity
> Option
Value
Transport Properties
> Thermal Conductivity
> Thermal Conductivity
290
0.6 [W m^-1
K^-1]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
2.
Setting
Value
Basic
Settings
Option
Pure
Substance
Thermodynamic State
(Selected)
Thermodynamic State
Material
Properties
Liquid
Option
General
Material
Thermodynamic Properties
> Equation of State
> Option
Value
Thermodynamic Properties
> Equation of State
> Molar Mass
18.600 [kg
kmol^-1]
Thermodynamic Properties
> Equation of State
> Density
1031 [kg
m^-3]
Thermodynamic Properties
> Specific Heat Capacity
(Selected)
Thermodynamic Properties
> Specific Heat Capacity
> Option
Value
Thermodynamic Properties
> Specific Heat Capacity
> Specific Heat Capacity
4190 [J kg^-1
K^-1]
Transport Properties
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
291
Setting
Value
(Selected)
Transport Properties
> Dynamic Viscosity
> Option
Value
Transport Properties
> Dynamic Viscosity
> Dynamic Viscosity
0.001 [kg
m^-1 s^-1]
Transport Properties
> Thermal Conductivity
(Selected)
Transport Properties
> Thermal Conductivity
> Option
Value
Transport Properties
> Thermal Conductivity
> Thermal Conductivity
3.
0.6 [W m^-1
K^-1]
Click OK.
2.
Setting
Value
Basic
Settings
Option
Variable Composition
Mixture
Material Group
Materials List
Thermodynamic State
(Selected)
Thermodynamic State
> Thermodynamic State
292
Liquid
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
2.
3.
Tab
Setting
Value
Basic
Settings
Variable Type
Specific
Units
[]
Tensor Type
Scalar
Click OK.
This Additional Variable is now available for use when you create or modify a domain. You will set
other properties of the Additional Variable, including how it is calculated, when you apply it to the
domain later in this tutorial.
293
The acid solution contains water and sulfuric acid. In the acid solution, it is assumed that the sulfuric
acid molecules completely dissociate into ions according to the following reaction:
The
ions and
reaction:
ions react to form sodium sulfate (a type of salt) and water according to the
Note that this reaction requires the ions from two molecules of sodium hydroxide and the ions from
one molecule of sulfuric acid. The stoichiometric ratio for the dry alkali and acid molecules is 2-to-1.
Instead of modeling dry molecules of alkali and acid, this tutorial models solutions that contain these
molecules (in dissociated form) plus water. The calculations used to model the alkali-acid reactions, and
to measure the pH, require a mass-based stoichiometric ratio, , that expresses the mass ratio between
the alkali solution and the acid solution required for complete reaction of all of the (dissociated) alkali
and acid molecules within them.
Using
to denote
two masses:
and
to denote
where:
is the concentration of
is the concentration of
in kmol/kg solution).
in kmol/kg solution).
The molar mass of the alkali solution (given as 18.292 kg/kmol solution) is a weighted average of the
molar masses of water (18.015 kg/kmol) and dry sodium hydroxide (39.9971 kg/kmol), with the
weighting in proportion to the number of each type of molecule in the solution. You can compute the
fraction of the molecules in the solution that are sodium hydroxide as:
294
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The molar mass of the acid solution (given as 19.517 kg/kmol solution) is a weighted average of the
molar masses of water (18.015 kg/kmol) and dry sulfuric acid (98.07848 kg/kmol), with the weighting
in proportion to the number of each type of molecule in the solution. You can compute the fraction of
the molecules in the solution that are sulfuric acid as:
into Equation 15.1 (p. 294) yields the mass-based stoichiometric ratio
.
where
is time,
is velocity,
is the
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
295
From the problem description, the heat of reaction is 460 kJ per kg of acid solution.
Note
This is a technical note, for reference only.
A source is fully specified by an expression for its value .
A source coefficient is optional, but can be specified to provide convergence enhancement
or stability for strongly-varying sources. The value of may affect the rate of convergence
but should not affect the converged results.
If no suitable value is available for , the solution time scale or time step can still be reduced
to help improve convergence of difficult source terms.
Important
must never be positive.
An optimal value for when solving an individual equation for a positive variable
source whose strength decreases with increasing is
with a
may be sufficient to ensure convergence. (This is the form used for the acid solution and alkali
solution mass source coefficients in this tutorial.)
Another useful formula for
is
where is a local estimate for the source time scale. Provided that the source time scale is
not excessively short compared to flow or mixing time scales, this may be a useful approach
for controlling sources with positive feedback (
) or sources that do not depend
directly on the solved variable .
296
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15.4.4.3. Calculating pH
The pH (or acidity) of the mixture is a function of the volume-based concentration of
ions. The latter
can be computed using the following two equations, which are based on charge conservation and
equilibrium conditions, respectively:
(where
You can substitute one equation into the other to obtain the following quadratic equation:
where
where:
is the concentration of
is the concentration of
in kmol/m^3.
in kmol/m^3.
is the concentration of
is the concentration of
Note that the second expression above can be re-written by substituting for
The result is:
in kmol/kg solution).
in kmol/kg solution).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
297
In order to set a limit on pH for calculation purposes, the following relation will be used in this tutorial:
2.
3.
4.
Click Open.
Observe the expressions listed in the tree view of CFX-Pre. Some expressions are used to support other
expressions. The main expressions are:
Expression
Name
Description
Supporting
Expressions
pH
Hions, a, b, c, Yions,
Xions, alpha, i
HeatSource
HeatReaction, Rate
AcidSource
Rate
AcidSourceCoeff
AcidSource
AlkaliSource
Rate
AlkaliSourceCoeff
AlkaliSource
ProductSource
Rate
298
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Edit Case Options > General in the Outline tree view and ensure that Automatic Default Domain
is turned on.
A domain named Default Domain should now appear under the Simulation branch.
2.
3.
Under the Fluid and Particle Definitions setting, delete Fluid 1 and create a new fluid definition
called Mixture.
4.
Setting
Basic
Settings
Value
B1.P3
Fluid Domain
Mixture
mixture
Domain Models
> Pressure
> Reference Pressure
Fluid
Models
1 [atm]
Heat Transfer
> Option
Thermal Energy
Component Models
> Component
acid
Component Models
> Component
> acid
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
299
Setting
Value
> Option
Transport
Equation
Component Models
> Component
> acid
> Kinematic Diffusivity
(Selected)
Component Models
> Component
> acid
> Kinematic Diffusivity
> Kinematic Diffusivity
0.001 [m^2
s^-1]
5.
Use the same Option and Kinematic Diffusivity settings for alkali and product as you have just set
for acid.
6.
Setting
Fluid
Models
Component Models
Value
> Component
Water
Component Models
> Component
> Water
> Option
Constraint
One component must always use Constraint. This is the component used to balance the mass
fraction equation; the sum of the mass fractions of all components of a fluid must equal unity.
7.
Configure the following setting(s) to apply the Additional Variable that you created earlier:
Tab
Setting
Fluid
Models
Value
(Selected)
300
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Algebraic Equation
[a]
pH
a. The other possible options either involve a transport equation to transport the
Additional Variable in the flow field, or a Vector Algebraic Equation, which is for
vector quantities. The Algebraic Equation is suitable because it allows the
calculation of pH as a function of existing variables and expressions.
8.
Click OK.
Ensure that you have loaded the CEL expressions from the provided file.
The expressions should be listed in the tree view.
2.
3.
Setting
Value
Basic
Settings
Location
B1.P3
Sources
Sources
(Selected)
[a]
Sources
> Equation Sources
acid.mf
Sources
> Equation Sources
> acid.mf
(Selected)
Sources
> Equation Sources
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
301
Setting
Value
> acid.mf
> Option
Source
Sources
> Equation Sources
> acid.mf
> Source
AcidSource
Sources
> Equation Sources
> acid.mf
> Source Coefficient
(Selected)
Sources
> Equation Sources
> acid.mf
> Source Coefficient
> Source Coefficient
AcidSourceCoeff
Sources
> Equation Sources
alkali.mf
Sources
> Equation Sources
> alkali.mf
(Selected)
Sources
> Equation Sources
> alkali.mf
> Option
Source
Sources
> Equation Sources
> alkali.mf
> Source
AlkaliSource
Sources
> Equation Sources
302
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
> alkali.mf
> Source Coefficient
(Selected)
Sources
> Equation Sources
> alkali.mf
> Source Coefficient
> Source Coefficient
AlkaliSourceCoeff
Sources
> Equation Sources
Energy
Sources
> Equation Sources
> Energy
(Selected)
Sources
> Equation Sources
> Energy
> Option
Source
Sources
> Equation Sources
> Energy
> Source
HeatSource
Sources
> Equation Sources
product.mf
Sources
> Equation Sources
> product.mf
(Selected)
Sources
> Equation Sources
> product.mf
> Option
Source
Sources
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
303
Setting
Value
ProductSource
Sources
> Equation Sources
> product.mf
> Source Coefficient
(Selected)
Sources
> Equation Sources
> product.mf
> Source Coefficient
> Source Coefficient
0 [kg m^-3
s^-1]
4.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
InWater
Boundary
Details
Normal Speed
304
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
2 [m s^-1]
Heat Transfer
> Option
Static Temperature
Heat Transfer
> Static Temperature
300 [K]
3.
Leave mass fractions for all components set to zero. Since Water is the constraint fluid, it will be automatically given a mass fraction of 1 on this inlet.
4.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
InAcid
Boundary
Details
Normal Speed
2 [m s^-1]
Heat Transfer
> Option
Static
Temperature
Heat Transfer
> Static Temperature
300 [K]
Component Details
acid
Component Details
> acid
> Mass Fraction
1.0
Component Details
alkali
Component Details
> alkali
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
305
Setting
Value
Component Details
product
Component Details
> product
> Mass Fraction
3.
Click OK.
Create a boundary for the alkali solution inlet holes using the given information:
1.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
InAlkali
Boundary
Details
Normal Speed
2.923 [m s^-1]
Heat Transfer
> Option
Static
Temperature
Heat Transfer
> Static Temperature
300 [K]
Component Details
> acid
(Selected)
Component Details
> acid
> Mass Fraction
Component Details
> alkali
(Selected)
Component Details
306
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
> alkali
> Mass Fraction
Component Details
> product
(Selected)
Component Details
> product
> Mass Fraction
3.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
out
Boundary
Details
Static Pressure
3.
0 [Pa]
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
sym1
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
307
Click OK.
4.
5.
6.
Tab
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
sym2
Click OK.
Note that, in this case, a periodic interface can be used as an alternative to the symmetry boundary
conditions.
2.
Setting
Value
Automatic with
Value
Initial Conditions
> Cartesian Velocity Components
>U
2 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
>V
0 [m s^-1]
Initial Conditions
> Cartesian Velocity Components
308
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
>W
0 [m s^-1]
Initial Conditions
> Component Details
acid
Initial Conditions
> Component Details
> acid
> Option
Automatic with
Value
Initial Conditions
> Component Details
> acid
> Mass Fraction
Initial Conditions
> Component Details
alkali
Initial Conditions
> Component Details
> alkali
> Option
Automatic with
Value
Initial Conditions
> Component Details
> alkali
> Mass Fraction
Initial Conditions
> Component Details
product
Initial Conditions
> Component Details
> product
> Option
Automatic with
Value
Initial Conditions
> Component Details
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
309
Setting
Value
> product
> Mass Fraction
3.
Click OK.
2.
Setting
Value
Basic
Settings
Advection Scheme
> Option
High Resolution
Convergence Control
> Max. Iterations
50
Convergence Control
> Fluid Timescale Control
> Timescale Control
Physical Timescale
Convergence Control
> Fluid Timescale Control
> Physical Timescale
0.01 [s]
[a]
a. The length of mixing tube is 0.06 m and inlet velocity is 2 m/s. An estimate of
the dynamic timescale is 0.03 s. An appropriate time step would be between 1/4
and 1/2 of this estimate.
3.
Click OK.
2.
3.
310
Setting
Value
File name
Reactor.def
Click Save.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
2.
3.
4.
5.
6.
Click OK.
2.
3.
4.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
311
312
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Multiple Domain
Turbulence Model
k-Epsilon
Shear Stress Transport
Heat Transfer
Thermal Energy
Conjugate Heat
Transfer (via Electrical
Resistance Heating)
Boundary Conditions
Inlet (Subsonic)
Opening
Wall: No-Slip
Wall: Adiabatic
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
313
Feature
Details
Timestep
Plots
Contour
Cylindrical Locator
Isosurface
Temperature Profile
Chart
Other
314
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This tutorial also includes an optional step that demonstrates the use of the CFX to ANSYS Data Transfer
tool to export thermal and mechanical stress data for use with ANSYS Multi-field solver. A results file is
provided in case you want to skip the model creation and solution steps within ANSYS CFX.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
2.
3.
If you want to set up the simulation automatically using a tutorial session file:
a.
Run HeatingCoil.pre.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
315
2.
3.
4.
5.
6.
7.
Click Save.
2.
Value
File name
HeatingCoilMesh.gtm
3.
Click Open.
4.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (Z up) from the
shortcut menu.
Expand Materials in the tree view, right-click Copper and select Edit.
2.
Setting
Value
Material
Properties
Electromagnetic Properties
Electromagnetic Properties
> Electrical Conductivity
(Selected)
Electromagnetic Properties
> Electrical Conductivity
> Electrical Conductivity
316
59.6E+06 [S m^-1]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
3.
Value
.
Click Material
2.
Setting
Value
Basic Settings
Material Group
User
Thermodynamic State
(Selected)
[a]
Thermodynamic State
> Thermodynamic State
Material
Properties
Solid
Thermodynamic Properties
> Equation of State
> Molar Mass
100.087 [kg
kmol^-1]
Thermodynamic Properties
> Equation of State
> Density
2.71 [g cm^-3]
[b]
Thermodynamic Properties
> Specific Heat Capacity
(Selected)
Thermodynamic Properties
> Specific Heat Capacity
> Specific Heat Capacity
0.9 [J g^-1
K^-1]
[b]
Transport Properties
> Thermal Conductivity
(Selected)
[c]
Transport Properties
> Thermal Conductivity
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
317
Setting
Value
3.85 [W m^-1
K^-1]
a. The material properties for Calcium Carbonate defined in this table came
directly from the Overview of the Problem to Solve (p. 314) section at the
beginning of this tutorial.
b. Make sure that you change the units to those indicated.
c. You may need to first expand the Transport Properties frame by clicking
Roll Down
3.
Click Domain
2.
Setting
Basic Settings
Value
Annulus
[a]
Fluid 1
Water
Domain Models
> Pressure
> Reference Pressure
Fluid Models
Initialization
318
1 [atm]
Heat Transfer
> Option
Thermal
Energy
Domain Initialization
(Selected)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
a. This region name may be different depending on how the mesh was created.
You should pick the region that forms the exterior surface of the volume
surrounding the coil.
3.
2.
Setting
Basic
Settings
Value
Coil
[a]
Solid Domain
Solid Definitions
Solid 1
Solid Definitions
> Solid 1
> Solid 1
> Material
Solid
Models
Copper
Heat Transfer
> Option
Thermal
Energy
Electromagnetic Model
(Selected)
Electromagnetic Model
> Electric Field Model
> Option
Electric
Potential
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
319
Setting
Value
> Temperature
> Option
Automatic
with Value
Domain Initialization
> Initial Conditions
> Temperature
> Temperature
550 [K]
a. This region name may be different depending on how the mesh was created.
You should pick the region that forms the coil.
3.
Click Boundary
2.
3.
Setting
Value
Basic Settings
Boundary Type
Wall
Location
Boundary
Details
Electric Field
> Option
Voltage
Electric Field
> Voltage
a. You will need to click Multi-select from extended list
0 [V]
to see a list of all regions.
4.
5.
Create a similar boundary named Hot at the other end of the coil, Coil End 2, and apply a voltage of 4.4[V].
320
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
inflow
Boundary
Details
Normal Speed
0.4 [m s^-1]
Heat Transfer
> Option
Static
Temperature
Heat Transfer
> Static Temperature
3.
300 [K]
2.
Name this new expression OutletTemperature and press the Enter key to continue.
3.
4.
Click Apply.
5.
6.
7.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
321
Setting
Value
Basic
Settings
Boundary Type
Opening
Location
outflow
Boundary
Details
0 [Pa]
Heat Transfer
> Option
Static Temperature
Heat Transfer
> Static Temperature
OutletTemperature
[a]
8.
A default no slip, adiabatic wall boundary named WaterZone Default will be applied automatically
to the remaining unspecified external boundaries of the WaterZone domain.
Two more boundary conditions are generated automatically when a domain interface is created to
connect the fluid and solid domains. The domain interface is discussed in the next section.
from the row of icons located along the top of the screen.
2.
3.
Setting
Value
Basic
Settings
Interface Type
Fluid Solid
Interface Side 1
> Domain (Filter)
WaterZone
Interface Side 1
> Region List
coil surface
Interface Side 2
> Domain (Filter)
322
SolidZone
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Interface Side 2
Additional
Interface
Models
Heat Transfer
(Selected)
Heat Transfer
> Interface Model
> Option
Thin Material
Heat Transfer
> Interface Model
> Material
Calcium Carbonate
Heat Transfer
> Interface Model
> Thickness
1 [mm]
[a]
4.
2.
Setting
Basic
Settings
Convergence Control
Value
Physical Timescale
Convergence Control
> Fluid Timescale Control
> Physical Timescale
2 [s]
For the Convergence Criteria, an RMS value of at least 1e-05 is usually required for adequate
convergence, but the default value is sufficient for demonstration purposes.
3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
323
2.
3.
Setting
Value
File name
HeatingCoil.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is
set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
2.
3.
4.
5.
Click OK.
324
When CFD-Post opens, if you see the Domain Selector dialog box, ensure that both domains are selected,
then click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Setting
Value
Geometry
Location
Domain Interface 1
Side 1
[a]
Variable
Temperature
Range
Local
Boundary Data
> Hybrid
(Selected)
4.
Click Apply.
5.
Take note of the temperature range displayed below the Range drop-down box. The temperature on the
outer surface of the deposit should range from around 380 [K] to 740 [K].
6.
Change the contour location to Domain Interface 1 Side 2 (the deposit side that is in contact
with the coil) and click Apply.
Notice how the temperature ranges from around 420 [K] to 815 [K] on the inner surface of the
deposit.
16.6.2.1. Expression
1.
2.
Set the name of this new expression to expradius and press the Enter key to continue.
3.
4.
Setting
Value
Definition
(x^2 + y^2)^0.5
Click Apply.
16.6.2.2. Variable
1.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
325
Set the name of this new variable to radius and press the Enter key to continue.
3.
4.
Setting
Value
Expression
expradius
Click Apply.
2.
3.
Setting
Geometry
Definition
> Variable
>Isosurface.
Value
radius
Definition
Color
Render
> Value
0.8 [m]
Mode
Variable
Variable
Temperature
Range
User Specified
Min
299 [K]
Max
309 [K]
Show Faces
(Selected)
[a]
[b]
4.
Click Apply.
5.
Turn off the visibility of Contour 1 so that you have an unobstructed view of Isosurface 1.
Note
The default range legend now displayed is that of the isosurface and not the contour.
The default legend is set according to what is being edited in the details view.
326
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Setting
Geometry
Definition
> Line.
Value
> Point 1
-0.75, 0, 0
Definition
> Point 2
-0.75, 0, 2.25
Line Type
> Sample
(Selected)
Line Type
> Samples
200
4.
Click Apply.
5.
6.
Name this chart Temperature Profile and press the Enter key to continue.
7.
8.
9.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
327
2.
Setting
Render
Show Faces
> Specular
3.
Value
(Cleared)
Click Apply.
Tip
If using the stand-alone version, you can move the light source by positioning the mouse
pointer in the viewer, holding down the Ctrl key, and dragging using the right mouse button.
Importing a surface mesh from ANSYS into CFD-Post, and associating the surface with the corresponding
2D region in the CFX-Solver results file.
2.
Exporting the data to a file containing SFE commands that represent surface element thermal or
mechanical stress values.
3.
Loading the commands created in the previous step into ANSYS and visualizing the loads.
In this case, you will be using CFX-Solver Manager to export data. Since the heat transfer in the solid
domain was calculated in ANSYS CFX, the 3D thermal data will be exported using element type 3D
Thermal (70). The mechanical stresses are calculated on the liquid side of the liquid-solid interface.
These values will be exported using element type 2D Stress (154).
328
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Value
Results File
HeatingCoil_001.res
Export File
HeatingCoil_001_ansysfsi_70.cdb
Domain Name
> Domain
SolidZone
Domain Name
> Boundary
(Empty) [a]
Export Options
> ANSYS Element Type
3D Thermal (70)
a. Leave Boundary empty since the entire volume is exported for 3D data.
4.
Click Export.
When the export is complete, click OK to acknowledge the message and continue with the next
steps to export data for Mechanical Stresses (p. 329).
Configure the following setting(s) in the Export to ANSYS MultiField Solver dialog box:
Setting
Value
Results File
HeatingCoil_001.res
Export File
HeatingCoil_001_ansysfsi_154.cdb
Domain Name
> Domain
WaterZone
Domain Name
> Boundary
WaterZone Default
Export Options
> ANSYS Element Type
2.
2D Stress (154)
Click Export.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
329
Click Close.
4.
You now have two exported files that can be used with ANSYS Multi-field solver. When you are finished,
close CFX-Solver Manager and CFD-Post.
330
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Steady State
Fluid Type
General Fluid
Domain Type
Multiple Domain
Rotating Frame of
Reference
Turbulence Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
331
Feature
Details
Heat Transfer
None
Buoyant Flow
Multiphase
Boundary Conditions
Inlet (Subsonic)
Outlet (Degassing)
Wall: Thin Surface
Wall: (Slip Depends on
Volume Fraction)
Domain Interfaces
Frozen Rotor
Periodic
Thin Surface Partners
Output Control
CFD-Post
Timestep
Plots
Default Locators
Slice Plane
Other
Quantitative Calculation
332
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The figure above shows the full geometry with part of the tank walls and one baffle cut away. The
symmetry of the vessel allows a 1/4 section of the full geometry to be modeled.
If this is the first tutorial you are working with, it is important to review the following topics before
beginning:
Running ANSYS CFX Tutorials Using ANSYS Workbench (p. 4)
Changing the Display Colors (p. 7)
2.
Ensure the following tutorial input files are in your working directory:
MixerImpellerMesh.gtm
MixerTank.geo
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
333
If you want to set up the simulation automatically using a tutorial session file:
a.
Run MultiphaseMixer.pre.
For details, see Playing a Session File (p. 6).
b.
2.
3.
4.
5.
6.
Click Save.
334
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
This simulation involves the use of two domains: a stationary fluid domain on the main 3D
region of the tank mesh and a rotating fluid domain on the main 3D region of the impeller
mesh. It is not necessary to use separate meshes in this type of simulation, as long as there
are 3D regions available for locating these two domains.
2.
Value
Files of type
CFX-4 (*geo)
File name
MixerTank.geo
Options
> Mesh Units
Advanced Options
> CFX-4 Options
> Create 3D Regions on
> Fluid Regions (USER3D, POROUS)
(Cleared)
[a]
a. In this case, the mesh file contains USER3D regions that you do not need.
3.
Click Open.
2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
335
Value
File name
MixerImpellerMesh.gtm
3.
Click Open.
4.
Right-click a blank area in the viewer and select Predefined Camera > Isometric View (X up) to view
the mesh assemblies.
2.
3.
Value
Transformation
Translation
Method
Deltas
Dx, Dy, Dz
0.275, 0, 0
In the Outline workspace, expand the tree to show MixerTank.geo > Principal 3D Regions >
Primitive 3D > Principal 2D Regions.
2.
You can now see the mesh on one of the periodic regions of the tank. To reduce the solution time for
this tutorial, the mesh used is very coarse. This is not a suitable mesh to obtain accurate results, but it
is sufficient for demonstration purposes.
Note
If you do not see the surface mesh, highlighting may be turned off. If highlighting is disabled,
toggle Highlighting
. The default highlight type will show the surface mesh for any selected
regions. If you see a different highlighting type, you can alter it by selecting Edit > Options
and browsing to CFX-Pre > Graphics Style.
336
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Domain
2.
3.
4.
5.
Setting
Basic
Settings
Value
> Location
Main
Air
Air at 25 C
Dispersed
Fluid
3 [mm]
Water
Water
Domain Models
> Pressure
> Reference Pressure
1 [atm]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
337
Setting
Value
Domain Models
> Buoyancy Model
> Option
Buoyant
Domain Models
> Buoyancy Model
> Gravity X Dirn.
-9.81 [m
s^-2]
Domain Models
> Buoyancy Model
> Gravity Y Dirn.
0 [m s^-2]
Domain Models
> Buoyancy Model
> Gravity Z Dirn.
0 [m s^-2]
Domain Models
> Buoyancy Model
> Buoy. Ref. Density
997 [kg
m^-3]
[a]
Domain Models
> Domain Motion > Option
Rotating
Domain Models
> Domain Motion
> Angular Velocity
84 [rev min
^-1]
[b]
Domain Models
> Domain Motion
> Axis Definition
> Rotation Axis
Fluid
Models
Global X
Multiphase
> Homogeneous Model
(Cleared)
[c]
Multiphase
> Free Surface Model > Option
None
Heat Transfer
338
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
(Cleared)
Heat Transfer
> Option
Isothermal
Heat Transfer
> Fluid Temperature
25 [C]
Turbulence
> Homogeneous Model
(Cleared)
Turbulence
Fluid
Pair
Models
> Option
Fluid
Dependent
Fluid Pair
Air | Water
Fluid Pair
> Air | Water
> Surface Tension Coefficient
(Selected)
Fluid Pair
> Air | Water
> Surface Tension Coefficient
> Surf. Tension Coeff.
0.073 [N
m^-1]
[d]
Fluid Pair
> Air | Water
> Momentum Transfer
> Drag Force
> Option
Grace
Fluid Pair
> Air | Water
> Momentum Transfer
> Drag Force
> Volume Fraction Correction Exponent
(Selected)
Fluid Pair
> Air | Water
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
339
Setting
Value
[e]
Fluid Pair
> Air | Water
> Momentum Transfer
> Non-drag forces
> Turbulent Dispersion Force
> Option
Favre
Averaged
Drag Force
Fluid Pair
> Air | Water
> Momentum Transfer
> Non-drag forces
> Turbulent Dispersion Force
> Dispersion Coeff.
Fluid Pair
> Air | Water
> Turbulence Transfer
> Option
Sato
Enhanced
Eddy
Viscosity
[f]
a. This buoyancy reference density value should always be used for dilute dispersed
multiphasic flow.
b. Ensure that you are using the correct unit.
c. Disabling the homogeneous model allows you to specify a unique velocity field
for each fluid.
d. This enables the Grace drag model.
e. A positive value is appropriate for large bubbles.
340
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Setting
Value
Click OK.
2.
Rename the duplicated domain to tank and then open it for editing.
3.
Setting
Basic Settings
Value
Primitive 3D
Domain Models
> Domain Motion
> Option
4.
Stationary
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
341
Note
The blade surfaces of the impeller will be modeled using domain interfaces later in the tutorial.
2.
Setting
Value
Basic
Settings
Boundary Type
Inlet
Location
INLET_DIPTUBE
Boundary
Details
Fluid
Values
> Option
Fluid Dependent
Boundary Conditions
Air
Boundary Conditions
> Air
> Velocity
> Option
Normal Speed
Boundary Conditions
> Air
> Velocity
> Normal Speed
5 [m s^-1]
Boundary Conditions
> Air
> Volume Fraction
> Option
Value
Boundary Conditions
> Air
> Volume Fraction
> Volume Fraction
Boundary Conditions
Water
Boundary Conditions
342
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
> Water
> Velocity
> Option
Normal Speed
Boundary Conditions
> Water
> Velocity
> Normal Speed
5 [m s^-1]
Boundary Conditions
> Water
> Volume Fraction
> Option
Value
Boundary Conditions
> Water
> Volume Fraction
> Volume Fraction
3.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Outlet
Location
WALL_LIQUID_SURFACE
Boundary
Details
3.
Degassing
Condition
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
343
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WALL_BAFFLES
Boundary
Details
[a]
Fluid Dependent
Fluid
Values
> Option
Use Volume
Fraction
Boundary Conditions
Air
Boundary Conditions
> Air
> Mass and Momentum
> Option
Boundary Conditions
Water
[b]
Boundary Conditions
> Water
> Mass and Momentum
> Option
No Slip Wall
a. The WALL_BAFFLES region includes the surfaces on both sides of the baffle.
You can confirm this by examining WALL_BAFFLES in the region selector.
b. The Free Slip Wall condition can be used for the gas phase since the
contact area with the walls is near zero for low gas phase volume fractions.
3.
344
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WALL_SHAFT,
WALL_SHAFT_CENTER
Boundary
Details
Fluid Dependent
Fluid
Values
> Option
Use Volume
Fraction
Boundary Conditions
Air
Boundary Conditions
> Air
> Mass And Momentum
> Option
No Slip Wall
Boundary Conditions
> Air
> Mass And Momentum
> Wall Velocity
(Selected)
Boundary Conditions
> Air
> Mass And Momentum
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
345
Setting
Value
Rotating Wall
Boundary Conditions
> Air
> Mass And Momentum
> Wall Velocity
> Angular Velocity
Boundary Conditions
> Air
> Mass And Momentum
> Wall Velocity
> Axis Definition
> Option
Coordinate Axis
Boundary Conditions
> Air
> Mass And Momentum
> Wall Velocity
> Axis Definition
> Rotation Axis
3.
4.
Click OK.
Global X
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
Hub,Shaft
Boundary
Details
Fluid Dependent
346
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Fluid
Values
Setting
Value
> Option
Use Volume
Fraction
Boundary Conditions
Air
Boundary Conditions
> Air
> Mass And Momentum
> Option
Boundary Conditions
Water
Boundary Conditions
> Water
> Mass and Momentum
> Option
3.
No Slip Wall
Click OK.
2.
Setting
Boundary
Details
Value
Fluid Dependent
Fluid
Values
> Option
Use Volume
Fraction
Boundary Conditions
Air
Boundary Conditions
> Air
> Mass And Momentum
> Option
Boundary Conditions
Water
Boundary Conditions
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
347
Setting
Value
> Water
> Mass And Momentum
> Option
3.
No Slip Wall
Click OK.
It is not necessary to set the default boundary in the impeller domain since the remaining surfaces
will be assigned interface conditions in the next section.
2.
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
> Domain (filter)
impeller
Interface Side 1
> Region List
Blade
Interface Side 2
> Domain (filter)
impeller
Interface Side 2
> Region List
348
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Additional
Interface
Models
Value
Side Dependent
[a]
a. This option allows you to set a fluid dependent treatment on each side of the
interface.
3.
Click OK.
Two boundaries named Blade Thin Surface Side 1 and Blade Thin Surface Side
2 are created automatically.
4.
In the tree view, open Blade Thin Surface Side 1 for editing.
5.
Setting
Boundary
Details
Value
Fluid Dependent
Fluid
Values
> Option
Use Volume
Fraction
Boundary Conditions
Air
Boundary Conditions
> Air
> Mass And Momentum
> Option
Boundary Conditions
Water
Boundary Conditions
> Water
> Mass And Momentum
> Option
No Slip Wall
6.
Click OK.
7.
In the tree view, open Blade Thin Surface Side 2 for editing.
8.
9.
Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
349
2.
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
> Domain (Filter)
impeller
Interface Side 1
> Region List
Periodic1
Interface Side 2
> Domain (Filter)
impeller
Interface Side 2
> Region List
Periodic2
Interface Models
> Option
Rotational
Periodicity
Interface Models
> Axis Definition
> Option
Coordinate Axis
Interface Models
> Axis Definition
> Rotation Axis
Mesh
Connection
Global X
3.
Click OK.
1.
2.
350
Automatic
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
> Domain (Filter)
tank
Interface Side 1
> Region List
BLKBDY_TANK_PER1
Interface Side 2
> Domain (Filter)
tank
Interface Side 2
> Region List
BLKBDY_TANK_PER2
Interface Models
> Option
Rotational
Periodicity
Interface Models
> Axis Definition
> Option
Coordinate Axis
Interface Models
> Axis Definition
> Rotation Axis
Mesh
Connection
Global X
3.
Automatic
Click OK.
2.
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
351
Setting
Value
impeller
Interface Side 1
> Region List
Top
Interface Side 2
> Domain (Filter)
tank
Interface Side 2
> Region List
BLKBDY_TANK_TOP
Interface Models
> Option
General Connection
Interface Models
> Frame Change/Mixing Model
> Option
3.
Click OK.
4.
5.
Frozen Rotor
Tab
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
> Domain (Filter)
impeller
Interface Side 1
> Region List
Bottom
Interface Side 2
> Domain (Filter)
tank
Interface Side 2
> Region List
BLKBDY_TANK_BOT
Interface Models
> Option
General Connection
Interface Models
> Frame Change/Mixing Model
> Option
352
Frozen Rotor
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK.
7.
8.
Setting
Value
Basic
Settings
Interface Type
Fluid Fluid
Interface Side 1
> Domain (Filter)
impeller
Interface Side 1
> Region List
Outer
Interface Side 2
> Domain (Filter)
tank
Interface Side 2
> Region List
BLKBDY_TANK_OUTER
Interface Models
> Option
General Connection
Interface Models
> Frame Change/Mixing Model
> Option
9.
Frozen Rotor
Click OK.