ANSYS CFX Reference Guide
ANSYS CFX Reference Guide
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. ANSYS CFX Launcher .............................................................................................................................. 1
1.1. The ANSYS CFX Launcher Interface .................................................................................................... 1
1.1.1. Menu Bar ................................................................................................................................. 1
1.1.1.1. File Menu ........................................................................................................................ 1
1.1.1.1.1. Save As ................................................................................................................... 1
1.1.1.1.2. Quit ........................................................................................................................ 1
1.1.1.2. Edit Menu ....................................................................................................................... 2
1.1.1.2.1. Clear ....................................................................................................................... 2
1.1.1.2.2. Find ........................................................................................................................ 2
1.1.1.2.3. Options .................................................................................................................. 2
1.1.1.2.3.1. User Interface Style ........................................................................................ 2
1.1.1.2.3.2. Application Font and Text Window Font .......................................................... 2
1.1.1.3. CFX Menu ....................................................................................................................... 2
1.1.1.3.1. CFX-Pre .................................................................................................................. 2
1.1.1.3.2. CFX-Solver Manager ............................................................................................... 2
1.1.1.3.3. CFD-Post ................................................................................................................ 2
1.1.1.3.4. Other CFX Applications ........................................................................................... 2
1.1.1.4. Show Menu ..................................................................................................................... 3
1.1.1.4.1. Show Installation .................................................................................................... 3
1.1.1.4.2. Show All ................................................................................................................. 3
1.1.1.4.3. Show System .......................................................................................................... 3
1.1.1.4.4. Show Variables ....................................................................................................... 3
1.1.1.5. Tools Menu ...................................................................................................................... 3
1.1.1.5.1. ANSYS Client Licensing Utility ................................................................................. 3
1.1.1.5.2. Command Line ....................................................................................................... 3
1.1.1.5.3. Configure User Startup Files (Linux only) ................................................................. 4
1.1.1.5.4. Edit File .................................................................................................................. 4
1.1.1.5.5. Edit Site-wide Configuration File ............................................................................. 4
1.1.1.6. User Menu ....................................................................................................................... 4
1.1.1.7. Help Menu ...................................................................................................................... 4
1.1.2. Toolbar .................................................................................................................................... 4
1.1.3. Working Directory Selector ....................................................................................................... 4
1.1.4. Output Window ....................................................................................................................... 5
1.2. Customizing the ANSYS CFX Launcher .............................................................................................. 5
1.2.1. CCL Structure ........................................................................................................................... 5
1.2.1.1. GROUP ............................................................................................................................ 5
1.2.1.2. APPLICATION ................................................................................................................... 6
1.2.1.2.1. Including Environment Variables ............................................................................. 8
1.2.1.3. DIVIDER ........................................................................................................................... 8
1.2.2. Example: Adding the Windows Calculator ................................................................................. 8
2. Volume Mesh Import API ........................................................................................................................ 9
2.1. Valid Mesh Elements in CFX ............................................................................................................... 9
2.2. Creating a Custom Mesh Import Executable for CFX-Pre ................................................................... 10
2.2.1. Compiling Code with the Mesh Import API ............................................................................. 11
2.2.2. Linking Code with the Mesh Import API .................................................................................. 11
2.2.2.1. Linking a Customized Mesh Import Executable on a Windows Platform .......................... 11
2.2.2.2. Linking a Customized Mesh Import Executable on a Linux Platform ................................ 12
2.2.2.2.1. Linking a Customized C Mesh Import Executable on a Linux Platform ..................... 12
2.2.2.2.2. Linking a Customized Fortran Mesh Import Executable on a Linux Platform ............ 12
2.3. Details of the Mesh Import API ........................................................................................................ 13
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
iii
Reference Guide
2.3.1. Defined Constants .................................................................................................................. 13
2.3.1.1. Element Types ............................................................................................................... 13
2.3.1.2. Region Types ................................................................................................................. 14
2.3.2. Initialization Routines ............................................................................................................. 14
2.3.2.1. cfxImportStatus ............................................................................................................. 14
2.3.2.2. cfxImportInit ................................................................................................................. 14
2.3.2.3. cfxImportTest ................................................................................................................ 15
2.3.3. Termination Routines ............................................................................................................. 15
2.3.3.1. cfxImportDone .............................................................................................................. 15
2.3.3.2. cfxImportTotals ............................................................................................................. 15
2.3.4. Error Handling Routines ......................................................................................................... 15
2.3.4.1. cfxImportError ............................................................................................................... 16
2.3.4.2. cfxImportFatal ............................................................................................................... 16
2.3.5. Node Routines ....................................................................................................................... 16
2.3.5.1. cfxImportNode .............................................................................................................. 16
2.3.5.2. cfxImportGetNode ........................................................................................................ 16
2.3.5.3. cfxImportNodeList ......................................................................................................... 16
2.3.6. Element Routines ................................................................................................................... 17
2.3.6.1. cfxImportElement .......................................................................................................... 17
2.3.6.2. cfxImportGetElement .................................................................................................... 18
2.3.6.3. cfxImportElementList .................................................................................................... 18
2.3.6.4. cfxImportGetFace .......................................................................................................... 19
2.3.6.5. cfxImportFindFace ......................................................................................................... 19
2.3.7. Primitive Region Routines ....................................................................................................... 20
2.3.7.1. cfxImportBegReg .......................................................................................................... 20
2.3.7.2. cfxImportAddReg .......................................................................................................... 20
2.3.7.3. cfxImportEndReg .......................................................................................................... 20
2.3.7.4. cfxImportRegion ........................................................................................................... 21
2.3.7.5. cfxImportRegionList ...................................................................................................... 21
2.3.7.6. cfxImportGetRegion ...................................................................................................... 21
2.3.8. Composite Regions Routines .................................................................................................. 21
2.3.8.1. cfxImportBegCompRegion ............................................................................................ 21
2.3.8.2. cfxImportAddCompRegComponents ............................................................................. 21
2.3.8.3. cfxImportEndCompReg ................................................................................................. 22
2.3.8.4. cfxImportCompositeRegion ........................................................................................... 22
2.3.9. Explicit Node Pairing .............................................................................................................. 22
2.3.9.1. cfxImportMap ............................................................................................................... 22
2.3.10. Fortran Interface .................................................................................................................. 22
2.3.10.1. cfxinit .......................................................................................................................... 22
2.3.10.2. cfxtest ......................................................................................................................... 23
2.3.10.3. cfxunit ......................................................................................................................... 23
2.3.10.4. cfxwarn ....................................................................................................................... 23
2.3.10.5. cfxfatl .......................................................................................................................... 23
2.3.10.6. cfxdone ....................................................................................................................... 23
2.3.10.7. cfxnode ....................................................................................................................... 23
2.3.10.8. cfxnodg ....................................................................................................................... 23
2.3.10.9. cfxnods ....................................................................................................................... 23
2.3.10.10. cfxelem ..................................................................................................................... 24
2.3.10.11. cfxeleg ...................................................................................................................... 24
2.3.10.12. cfxeles ....................................................................................................................... 24
2.3.10.13. cfxfacd ...................................................................................................................... 24
2.3.10.14. cfxface ....................................................................................................................... 24
iv
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
2.3.10.15. cfxffac ....................................................................................................................... 24
2.3.10.16. cfxregn ...................................................................................................................... 25
2.3.10.17. cfxregb ...................................................................................................................... 25
2.3.10.18. cfxrega ...................................................................................................................... 25
2.3.10.19. cfxrege ...................................................................................................................... 25
2.3.10.20. cfxregs ...................................................................................................................... 25
2.3.10.21. cfxregg ...................................................................................................................... 25
2.3.10.22. cfxcmpb .................................................................................................................... 26
2.3.10.23. cfxcmpa .................................................................................................................... 26
2.3.10.24. cfxcmpe .................................................................................................................... 26
2.3.11. Unsupported Routines Previously Available in the API ........................................................... 26
2.4. An Example of a Customized C Program for Importing Meshes into CFX-Pre ..................................... 26
2.5. Import Programs ............................................................................................................................ 26
2.5.1. ANSYS .................................................................................................................................... 27
2.5.2. CFX Def/Res ........................................................................................................................... 27
2.5.3. CFX-4 ..................................................................................................................................... 28
2.5.4. CFX-5.1 .................................................................................................................................. 28
2.5.5. CFX-TfC .................................................................................................................................. 29
2.5.6. CGNS ..................................................................................................................................... 30
2.5.6.1. SplitCGNS.exe ................................................................................................................ 31
2.5.7. Fluent .................................................................................................................................... 31
2.5.8. GridPro/az3000 ...................................................................................................................... 31
2.5.9. I-DEAS ................................................................................................................................... 32
2.5.10. ICEM CFX ............................................................................................................................. 32
2.5.11. PATRAN ................................................................................................................................ 32
2.5.12. NASTRAN ............................................................................................................................. 32
2.5.13. CFX-TASCflow ...................................................................................................................... 33
3. Mesh and Results Export API ................................................................................................................ 35
3.1. Creating a Customized Export Program ........................................................................................... 35
3.1.1. An Example of an Export Program .......................................................................................... 36
3.1.1.1. File Header .................................................................................................................... 36
3.1.1.2. Allowed Arguments ....................................................................................................... 36
3.1.1.3. Main Program Initialization ............................................................................................ 36
3.1.1.4. Checking File Names ..................................................................................................... 38
3.1.1.5. Opening the CFX Results File ......................................................................................... 38
3.1.1.6. Timestep Setup ............................................................................................................. 39
3.1.1.7. Geometry File Output .................................................................................................... 40
3.1.1.8. Template Results File ..................................................................................................... 42
3.1.1.9. Creating Files with Results for Each Variable ................................................................... 43
3.1.2. Example of Output Produced ................................................................................................. 45
3.1.2.1. example.geom .............................................................................................................. 45
3.1.2.2. example.res ................................................................................................................... 46
3.1.2.3. example.s01 .................................................................................................................. 46
3.1.3. Source Code for getargs.c ....................................................................................................... 46
3.2. Compiling Code with the Mesh and Results Export API .................................................................... 47
3.3. Linking Code with the Mesh and Results Export API ......................................................................... 47
3.3.1. Linking a Customized Mesh and Results Export Executable on a Windows Platform ................. 48
3.3.2. Linking a Customized Mesh and Results Export Executable on a Linux Platform ....................... 48
3.4. Details of the Mesh Export API ........................................................................................................ 48
3.4.1. Defined Constants and Structures ........................................................................................... 49
3.4.1.1. Element Types ............................................................................................................... 49
3.4.1.2. Volume List Types .......................................................................................................... 49
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
3.4.1.3. Region List Types ........................................................................................................... 49
3.4.1.4. Count Entries ................................................................................................................. 50
3.4.1.5. Node Data Structure ...................................................................................................... 50
3.4.1.6. Element Data Structure .................................................................................................. 50
3.4.2. Initialization and Error Routines .............................................................................................. 50
3.4.2.1. cfxExportInit .................................................................................................................. 50
3.4.2.2. cfxExportDone .............................................................................................................. 51
3.4.2.3. cfxExportError ............................................................................................................... 51
3.4.2.4. cfxExportFatal ............................................................................................................... 51
3.4.3. Zone Routines ........................................................................................................................ 51
3.4.3.1. cfxExportZoneCount ..................................................................................................... 51
3.4.3.2. cfxExportZoneSet .......................................................................................................... 51
3.4.3.3. cfxExportZoneGet ......................................................................................................... 52
3.4.3.4. cfxExportZoneFree ........................................................................................................ 52
3.4.3.5. cfxExportZoneIsRotating ............................................................................................... 52
3.4.3.6. cfxExportZoneMotionAction .......................................................................................... 52
3.4.4. Node Routines ....................................................................................................................... 53
3.4.4.1. cfxExportNodeCount ..................................................................................................... 53
3.4.4.2. cfxExportNodeList ......................................................................................................... 53
3.4.4.3. cfxExportNodeGet ......................................................................................................... 53
3.4.4.4. cfxExportNodeFree ........................................................................................................ 53
3.4.5. Element Routines ................................................................................................................... 53
3.4.5.1. cfxExportElementCount ................................................................................................. 54
3.4.5.2. cfxExportElementList ..................................................................................................... 54
3.4.5.3. cfxExportElementGet ..................................................................................................... 54
3.4.5.4. cfxExportElementFree ................................................................................................... 55
3.4.6. Region Routines ..................................................................................................................... 55
3.4.6.1. cfxExportRegionCount .................................................................................................. 55
3.4.6.2. cfxExportRegionSize ...................................................................................................... 55
3.4.6.3. cfxExportRegionName ................................................................................................... 55
3.4.6.4. cfxExportRegionList ....................................................................................................... 56
3.4.6.5. cfxExportRegionGet ...................................................................................................... 56
3.4.6.6. cfxExportRegionFree ..................................................................................................... 56
3.4.7. Face Routines ......................................................................................................................... 56
3.4.7.1. cfxExportFaceNodes ...................................................................................................... 56
3.4.8. Volume Routines .................................................................................................................... 57
3.4.8.1. cfxExportVolumeCount .................................................................................................. 58
3.4.8.2. cfxExportVolumeSize ..................................................................................................... 58
3.4.8.3. cfxExportVolumeName .................................................................................................. 58
3.4.8.4. cfxExportVolumeList ...................................................................................................... 58
3.4.8.5. cfxExportVolumeGet ..................................................................................................... 58
3.4.8.6. cfxExportVolumeFree .................................................................................................... 58
3.4.9. Boundary Condition Routines ................................................................................................. 59
3.4.9.1. cfxExportBoundaryCount .............................................................................................. 59
3.4.9.2. cfxExportBoundaryName ............................................................................................... 59
3.4.9.3. cfxExportBoundaryType ................................................................................................ 59
3.4.9.4. cfxExportBoundarySize .................................................................................................. 59
3.4.9.5. cfxExportBoundaryList .................................................................................................. 60
3.4.9.6. cfxExportBoundaryGet .................................................................................................. 60
3.4.9.7. cfxExportBoundaryFree ................................................................................................. 60
3.4.10. Variable Routines .................................................................................................................. 60
3.4.10.1. cfxExportVariableCount ............................................................................................... 60
vi
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
3.4.10.2. cfxExportVariableSize .................................................................................................. 61
3.4.10.3. cfxExportVariableName ............................................................................................... 61
3.4.10.4. cfxExportVariableList ................................................................................................... 61
3.4.10.5. cfxExportVariableGet ................................................................................................... 61
3.4.10.6. cfxExportVariableFree .................................................................................................. 62
4. Remeshing Guide .................................................................................................................................. 63
4.1. User Defined Remeshing ................................................................................................................. 64
4.1.1. Remeshing with Key-Frame Meshes ........................................................................................ 65
4.1.2. Remeshing with Automatic Geometry Extraction .................................................................... 65
4.2. ICEM CFD Replay Remeshing ........................................................................................................... 66
4.2.1. Steps to Set Up a Simulation Using ICEM CFD Replay Remeshing ............................................. 68
4.3. Directory Structure and Files Used During Remeshing ..................................................................... 69
4.4. Additional Considerations ............................................................................................................... 70
4.4.1. Mesh Re-Initialization During Remeshing ................................................................................ 70
4.4.2. Software License Handling ..................................................................................................... 70
4.4.3. Results File Option ................................................................................................................. 71
5. Reference Guide for Mesh Deformation and Fluid-Structure Interaction ............................................ 73
5.1. Mesh Deformation .......................................................................................................................... 73
5.1.1. Mesh Folding: Negative Sector and Element Volumes .............................................................. 73
5.1.2. Applying Large Displacements Gradually ................................................................................ 73
5.1.3. Consistency of Mesh Motion Specifications ............................................................................. 74
5.1.4. Solving the Mesh Displacement Equations and Updating Mesh Coordinates ........................... 74
5.1.5. Mesh Displacement Diffusion Scheme .................................................................................... 74
5.1.6. Mesh Displacement vs. Total Mesh Displacement .................................................................... 77
5.1.7. Simulation Restart Behavior .................................................................................................... 77
5.2. Fluid Structure Interaction .............................................................................................................. 78
5.2.1. Unidirectional (One-Way) FSI .................................................................................................. 78
5.2.1.1. Using CFX Only .............................................................................................................. 78
5.2.1.2. Using CFX and the Mechanical Application .................................................................... 78
5.2.1.2.1. Importing Data from the Mechanical Application Solver ........................................ 78
5.2.1.2.2. Export Data to Other ANSYS Software Products ..................................................... 79
5.2.1.2.3. Mechanical Import/Export Example: One-Way FSI Data Transfer ............................. 79
5.2.1.3. Using CFX and Other CAE Software ................................................................................ 80
5.2.2. Bidirectional (Two-Way) FSI .................................................................................................... 80
5.2.2.1. Using CFX Only .............................................................................................................. 80
5.2.2.2. Using CFX and the Mechanical Application .................................................................... 80
5.2.2.3. Using CFX and Other CAE Software ................................................................................ 82
6. CFX Best Practices Guide for Numerical Accuracy ................................................................................ 83
6.1. An Approach to Error Identification, Estimation and Validation ......................................................... 83
6.2. Definition of Errors in CFD Simulations ............................................................................................ 84
6.2.1. Numerical Errors .................................................................................................................... 85
6.2.1.1. Solution Errors ............................................................................................................... 85
6.2.1.2. Spatial Discretization Errors ........................................................................................... 86
6.2.1.3. Time Discretization Errors .............................................................................................. 86
6.2.1.4. Iteration Errors .............................................................................................................. 87
6.2.1.5. Round-off Error .............................................................................................................. 88
6.2.1.6. Solution Error Estimation ............................................................................................... 88
6.2.2. Modeling Errors ..................................................................................................................... 90
6.2.3. User Errors ............................................................................................................................. 91
6.2.4. Application Uncertainties ....................................................................................................... 92
6.2.5. Software Errors ...................................................................................................................... 92
6.3. General Best Practice Guidelines ..................................................................................................... 93
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vii
Reference Guide
6.3.1. Avoiding User Errors ............................................................................................................... 93
6.3.2. Geometry Generation ............................................................................................................ 93
6.3.3. Grid Generation ..................................................................................................................... 93
6.3.4. Model Selection and Application ............................................................................................ 95
6.3.4.1. Turbulence Models ........................................................................................................ 95
6.3.4.1.1. One-equation Models ........................................................................................... 96
6.3.4.1.2. Two-equation Models ........................................................................................... 96
6.3.4.1.3. Second Moment Closure (SMC) Models ................................................................. 97
6.3.4.1.4. Large Eddy Simulation Models .............................................................................. 97
6.3.4.1.5. Wall Boundary Conditions ..................................................................................... 98
6.3.4.1.5.1. Wall Function Boundary Conditions .............................................................. 98
6.3.4.1.5.2. Integration to the wall (low-Reynolds number formulation) ........................... 98
6.3.4.1.5.3. Mixed formulation (automatic near-wall treatment) ...................................... 99
6.3.4.1.5.4. Recommendations for Model Selection ......................................................... 99
6.3.4.2. Heat Transfer Models ..................................................................................................... 99
6.3.4.3. Multi-Phase Models ....................................................................................................... 99
6.3.5. Reduction of Application Uncertainties ................................................................................. 100
6.3.6. CFD Simulation .................................................................................................................... 100
6.3.6.1. Target Variables ........................................................................................................... 100
6.3.6.2. Minimizing Iteration Errors ........................................................................................... 101
6.3.6.3. Minimizing Spatial Discretization Errors ........................................................................ 101
6.3.6.4. Minimizing Time Discretization Errors ........................................................................... 102
6.3.6.5. Avoiding Round-Off Errors ........................................................................................... 103
6.3.7. Handling Software Errors ...................................................................................................... 103
6.4. Selection and Evaluation of Experimental Data .............................................................................. 103
6.4.1. Verification Experiments ....................................................................................................... 104
6.4.1.1. Description .................................................................................................................. 104
6.4.1.2. Requirements .............................................................................................................. 104
6.4.2. Validation Experiments ......................................................................................................... 104
6.4.2.1. Description .................................................................................................................. 105
6.4.2.2. Requirements .............................................................................................................. 105
6.4.3. Demonstration Experiments ................................................................................................. 106
6.4.3.1. Description .................................................................................................................. 106
6.4.3.2. Requirements .............................................................................................................. 107
7. CFX Best Practices Guide for Cavitation .............................................................................................. 109
7.1. Liquid Pumps ................................................................................................................................ 109
7.1.1. Pump Performance without Cavitation ................................................................................. 109
7.1.2. Pump Performance with Cavitation ....................................................................................... 110
7.1.3. Procedure for Plotting Performance Curve ............................................................................ 111
7.1.4. Setup ................................................................................................................................... 111
7.1.5. Convergence Tips ................................................................................................................. 112
7.1.6. Postprocessing ..................................................................................................................... 112
8. CFX Best Practices Guide for Combustion ........................................................................................... 113
8.1. Gas Turbine Combustors ............................................................................................................... 113
8.1.1. Setup ................................................................................................................................... 113
8.1.1.1. Steady-state vs. Transient ............................................................................................. 113
8.1.1.2. Turbulence Model ........................................................................................................ 113
8.1.1.3. Reference Pressure ...................................................................................................... 113
8.1.1.4. Combustion Model ...................................................................................................... 113
8.1.2. Reactions ............................................................................................................................. 114
8.1.3. Convergence Tips ................................................................................................................. 114
8.1.4. Postprocessing ..................................................................................................................... 115
viii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
8.2. Combustion Modeling in HVAC Cases ............................................................................................ 115
8.2.1. Set Up .................................................................................................................................. 115
8.2.2. Convergence Tips ................................................................................................................. 116
8.2.3. Postprocessing ..................................................................................................................... 116
9. CFX Best Practices Guide for HVAC ..................................................................................................... 117
9.1. HVAC Simulations ......................................................................................................................... 117
9.1.1. Setting Up HVAC Simulations ................................................................................................ 117
9.1.1.1. Buoyancy .................................................................................................................... 117
9.1.1.2. Thermal Radiation ....................................................................................................... 118
9.1.1.2.1. Thermal Radiation Model .................................................................................... 118
9.1.1.2.2. Spectral Model .................................................................................................... 118
9.1.1.2.3. Scattering Model ................................................................................................ 118
9.1.1.3. CHT (Conjugate Heat Transfer) Domains ....................................................................... 119
9.1.1.4. Mesh Quality ............................................................................................................... 119
9.1.1.5. Fans ............................................................................................................................ 120
9.1.1.6. Thermostats ................................................................................................................ 120
9.1.1.7. Collections of Objects .................................................................................................. 120
9.2. Convergence Tips ......................................................................................................................... 120
10. CFX Best Practices Guide for Multiphase .......................................................................................... 121
10.1. Bubble Columns ......................................................................................................................... 121
10.1.1. Setup ................................................................................................................................. 121
10.1.2. Convergence Tips ............................................................................................................... 122
10.1.3. Postprocessing ................................................................................................................... 122
10.2. Mixing Vessels ............................................................................................................................. 122
10.2.1. Setup ................................................................................................................................. 122
10.3. Free Surface Applications ............................................................................................................ 123
10.3.1. Setup ................................................................................................................................. 123
10.3.2. Convergence Tips ............................................................................................................... 123
10.4. Multiphase Flow with Turbulence Dispersion Force ...................................................................... 124
11. CFX Best Practices Guide for Turbomachinery .................................................................................. 125
11.1. Gas Compressors and Turbines .................................................................................................... 125
11.1.1. Setup for Simulations of Gas Compressors and Turbines ...................................................... 125
11.1.2. Convergence Tips ............................................................................................................... 126
11.1.3. Computing Speedlines for a Machine .................................................................................. 126
11.1.4. Postprocessing ................................................................................................................... 127
11.2. Liquid Pumps and Turbines ......................................................................................................... 128
11.2.1. Setup for Simulations of Liquid Pumps and Turbines ........................................................... 128
11.2.2. Convergence Tips ............................................................................................................... 129
11.2.3. Postprocessing ................................................................................................................... 129
11.3. Fans and Blowers ........................................................................................................................ 129
11.3.1. Setup for Simulations of Fans and Blowers .......................................................................... 129
11.3.2. Convergence Tips ............................................................................................................... 129
11.3.3. Postprocessing ................................................................................................................... 130
11.4. Frame Change Models ................................................................................................................. 130
11.4.1. Frozen Rotor ....................................................................................................................... 130
11.4.2. Stage (Mixing-Plane) .......................................................................................................... 131
11.4.3. Transient Rotor-Stator ......................................................................................................... 131
11.5. Domain Interface Setup .............................................................................................................. 131
11.5.1. General Considerations ...................................................................................................... 131
11.5.2. Case 1: Impeller/Volute ....................................................................................................... 132
11.5.3. Case 2: Step Change Between Rotor and Stator ................................................................... 132
11.5.4. Case 3: Blade Passage at or Close to the Edge of a Domain ................................................... 133
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ix
Reference Guide
11.5.5. Case 4: Impeller Leakage ..................................................................................................... 134
11.5.6. Case 5: Domain Interface Near Zone of Reversed Flow ......................................................... 135
11.6. Transient Blade Row .................................................................................................................... 136
11.6.1. Steady versus Transient Blade Row Analysis ......................................................................... 136
11.6.2. Full Model Simulation versus Reduced Geometry Simulation (Pitch Change Models) ............ 136
11.6.3. Selecting an Appropriate Transient Blade Row Model with Pitch Change ............................. 137
11.6.3.1. Profile Transformation ................................................................................................ 137
11.6.3.2. Time Transformation .................................................................................................. 137
11.6.3.3. Fourier Transformation ............................................................................................... 138
11.6.4. Convergence and Solution Monitoring of Transient Blade Row Flow Problems ..................... 138
11.6.5. Boundary Conditions in Blade Row Simulation .................................................................... 139
11.6.5.1. Steady-state Analysis ................................................................................................. 139
11.6.5.2. Transient Analysis ...................................................................................................... 139
12. Best Practices: Scale-Resolving Simulations in ANSYS CFD .............................................................. 141
12.1. Scale-Resolving Simulation (SRS) Models Basic Formulations ..................................................... 143
12.1.1. Scale-Adaptive Simulation (SAS) ......................................................................................... 143
12.1.2. Detached Eddy Simulation (DES) ......................................................................................... 145
12.1.3. Shielded Detached Eddy Simulation (SDES) ......................................................................... 147
12.1.4. Stress-Blended Eddy Simulation (SBES) ............................................................................... 150
12.1.5. Large Eddy Simulation (LES) ................................................................................................ 151
12.1.5.1. Limitations of Large Eddy Simulation (LES) ................................................................. 151
12.1.6. Wall Modeled Large Eddy Simulation (WMLES) .................................................................... 160
12.1.7. Embedded/Zonal LES (ELES, ZLES) ...................................................................................... 162
12.1.8. Unsteady Inlet/Interface Turbulence ................................................................................... 163
12.2. Generic Flow Types and Basic Model Selection ............................................................................. 164
12.2.1. Globally Unstable Flows ...................................................................................................... 164
12.2.1.1. Flow Physics .............................................................................................................. 164
12.2.1.2. Modeling ................................................................................................................... 165
12.2.1.3. Meshing Requirements .............................................................................................. 166
12.2.1.4. Numerical Settings .................................................................................................... 166
12.2.1.5. Examples ................................................................................................................... 167
12.2.1.5.1. Flow around a Fighter Aircraft ........................................................................... 167
12.2.1.5.2. Flow around a Triangular Cylinder ...................................................................... 168
12.2.1.5.3. ITS Combustion Chamber .................................................................................. 170
12.2.2. Locally Unstable Flows ........................................................................................................ 176
12.2.2.1. Flow Physics .............................................................................................................. 176
12.2.2.2. Modeling ................................................................................................................... 177
12.2.2.3. Meshing Requirements .............................................................................................. 178
12.2.2.4. Numerical Settings .................................................................................................... 179
12.2.2.5. Examples ................................................................................................................... 179
12.2.2.5.1. Mixing Layer ..................................................................................................... 179
12.2.2.5.2. Backward-Facing Step I ..................................................................................... 183
12.2.3. Stable Flows and Wall Boundary Layers ............................................................................... 189
12.2.3.1. Flow Physics .............................................................................................................. 189
12.2.3.2. Modeling ................................................................................................................... 189
12.2.3.3. Meshing Requirements .............................................................................................. 190
12.2.3.4. Numerical Settings .................................................................................................... 191
12.2.3.5. Examples ................................................................................................................... 191
12.2.3.5.1. Periodic Channel ............................................................................................... 191
12.2.3.5.2. Wall Boundary Layer .......................................................................................... 196
12.2.3.5.3. NASA Hump Flow .............................................................................................. 201
12.2.3.5.4. T-Junction with Thermal Mixing ......................................................................... 203
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
12.3. Numerical Settings for SRS .......................................................................................................... 211
12.3.1. Spatial Discretization .......................................................................................................... 211
12.3.1.1. Momentum ............................................................................................................... 211
12.3.1.2. Turbulence Equations ................................................................................................ 213
12.3.1.3. Gradients (ANSYS Fluent) ........................................................................................... 213
12.3.2. Pressure (ANSYS Fluent) ...................................................................................................... 213
12.3.3. Time Discretization ............................................................................................................. 213
12.3.3.1. Time Integration ........................................................................................................ 213
12.3.3.2. Time Advancement and Under-Relaxation (ANSYS Fluent) .......................................... 214
12.4. Initial and Boundary Conditions .................................................................................................. 214
12.4.1. Initialization of SRS ............................................................................................................. 215
12.4.2. Boundary Conditions for SRS .............................................................................................. 215
12.4.2.1. Inlet Conditions ......................................................................................................... 215
12.4.2.2. Outlet Conditions ...................................................................................................... 215
12.4.2.3. Wall Conditions .......................................................................................................... 215
12.4.3. Symmetry vs. Periodicity ..................................................................................................... 215
12.5. Postprocessing and Averaging .................................................................................................... 216
12.5.1. Visual Inspection ................................................................................................................ 216
12.5.2. Averaging .......................................................................................................................... 218
12.6. Summary .................................................................................................................................... 219
12.6.1. Acknowledgment ............................................................................................................... 219
12.6.2. Appendix 1: Summary of Numerics Settings with ANSYS Fluent ........................................... 219
12.6.3. Appendix 2: Summary of Numerics Settings With ANSYS CFX .............................................. 220
12.6.4. Appendix 3: Models ............................................................................................................ 221
12.6.5. Appendix 4: Generic Flow Types and Modeling .................................................................... 224
12.7. Scale-Resolving Simulations References ....................................................................................... 227
13. CFX Command Language (CCL) ......................................................................................................... 231
13.1. CFX Command Language (CCL) Syntax ........................................................................................ 231
13.1.1. Basic Terminology .............................................................................................................. 232
13.1.2. The Data Hierarchy ............................................................................................................. 232
13.1.3. Simple Syntax Details ......................................................................................................... 232
13.1.3.1. Case Sensitivity .......................................................................................................... 232
13.1.3.2. CCL Names Definition ................................................................................................ 233
13.1.3.3. Indentation ............................................................................................................... 233
13.1.3.4. End of Line Comment Character ................................................................................. 233
13.1.3.5. Continuation Character .............................................................................................. 233
13.1.3.6. Named Objects .......................................................................................................... 233
13.1.3.7. Singleton Objects ...................................................................................................... 234
13.1.3.8. Parameters ................................................................................................................ 234
13.1.3.9. Lists ........................................................................................................................... 234
13.1.3.10. Parameter Values ..................................................................................................... 234
13.1.3.10.1. String .............................................................................................................. 234
13.1.3.10.2. String List ........................................................................................................ 235
13.1.3.10.3. Integer ............................................................................................................ 235
13.1.3.10.4. Integer List ...................................................................................................... 235
13.1.3.10.5. Real ................................................................................................................ 235
13.1.3.10.6. Real List .......................................................................................................... 235
13.1.3.10.7. Logical ............................................................................................................ 235
13.1.3.10.8. Logical List ...................................................................................................... 236
13.1.3.11. Escape Character ..................................................................................................... 236
14. CFX Expression Language (CEL) ........................................................................................................ 237
14.1. CEL Fundamentals ...................................................................................................................... 237
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xi
Reference Guide
14.1.1. Values and Expressions ....................................................................................................... 237
14.1.1.1. Using Locators in Expressions ..................................................................................... 238
14.1.2. CFX Expression Language Statements ................................................................................. 238
14.1.2.1. Use of Constants ........................................................................................................ 239
14.1.2.2. Expression Syntax ...................................................................................................... 239
14.1.2.3. Multiple-Line Expressions .......................................................................................... 240
14.2. CEL Operators, Constants, and Expressions ................................................................................... 240
14.2.1. CEL Operators .................................................................................................................... 240
14.2.2. Conditional if Statement ..................................................................................................... 241
14.2.3. CEL Constants .................................................................................................................... 242
14.2.4. Using Expressions ............................................................................................................... 242
14.2.4.1. Use of Offset Temperature .......................................................................................... 242
14.3. CEL Examples .............................................................................................................................. 243
14.3.1. Example: Reynolds Number Dependent Viscosity ................................................................ 243
14.3.2. Example: Feedback to Control Inlet Temperature ................................................................. 244
14.3.3. Examples: Using Expressions in CFD-Post ............................................................................ 245
14.4. CEL Technical Details ................................................................................................................... 246
15. Functions in ANSYS CFX .................................................................................................................... 247
15.1. CEL Mathematical Functions ....................................................................................................... 247
15.2. Quantitative CEL Functions in ANSYS CFX .................................................................................... 249
15.3. Functions Involving Coordinates ................................................................................................. 252
15.4. CEL Functions with Multiphase Flow ............................................................................................ 252
15.5. Quantitative Function List ........................................................................................................... 253
15.5.1. area ................................................................................................................................... 257
15.5.1.1. Tools > Command Editor Example .............................................................................. 258
15.5.1.2. Tools > Function Calculator Example .......................................................................... 258
15.5.2. areaAve .............................................................................................................................. 258
15.5.2.1. Tools > Command Editor Example .............................................................................. 259
15.5.2.2. Tools > Function Calculator Examples ......................................................................... 259
15.5.3. areaInt ............................................................................................................................... 259
15.5.3.1. Tools > Command Editor Example .............................................................................. 260
15.5.3.2. Tools > Function Calculator Examples ......................................................................... 260
15.5.4. ave ..................................................................................................................................... 260
15.5.4.1. Tools > Command Editor Example .............................................................................. 261
15.5.4.2. Tools > Function Calculator Example .......................................................................... 261
15.5.5. count ................................................................................................................................. 261
15.5.5.1. Tools > Command Editor Example .............................................................................. 261
15.5.5.2. Tools > Function Calculator Example .......................................................................... 262
15.5.6. countTrue .......................................................................................................................... 262
15.5.6.1.Tools > Command Editor Examples ............................................................................. 262
15.5.6.2. Tools > Function Calculator Example .......................................................................... 262
15.5.7. force .................................................................................................................................. 262
15.5.7.1. Tools > Command Editor Example .............................................................................. 263
15.5.7.2. Tools > Function Calculator Examples ......................................................................... 263
15.5.8. forceNorm .......................................................................................................................... 263
15.5.8.1. Tools > Command Editor Example .............................................................................. 264
15.5.8.2. Tools > Function Calculator Example .......................................................................... 264
15.5.9. inside ................................................................................................................................. 264
15.5.9.1. Tools > Command Editor Example .............................................................................. 264
15.5.10. length .............................................................................................................................. 264
15.5.10.1. Tools > Command Editor Example ............................................................................ 265
15.5.10.2. Tools > Function Calculator Example ........................................................................ 265
xii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
15.5.11. lengthAve ........................................................................................................................ 265
15.5.11.1. Tools > Command Editor Example ............................................................................ 265
15.5.11.2. Tools > Function Calculator Example ........................................................................ 265
15.5.12. lengthInt .......................................................................................................................... 266
15.5.12.1. Tools > Command Editor Example ............................................................................ 266
15.5.13. mass ................................................................................................................................ 266
15.5.14. massAve ........................................................................................................................... 266
15.5.15. massFlow ......................................................................................................................... 266
15.5.15.1. Mass Flow Sign Convention ...................................................................................... 267
15.5.15.2. Tools > Command Editor Example ............................................................................ 267
15.5.15.3. Tools > Function Calculator Example ........................................................................ 267
15.5.16. massFlowAve ................................................................................................................... 268
15.5.17. massFlowAveAbs .............................................................................................................. 268
15.5.18. Details on Mass Flow Related Functions ............................................................................ 269
15.5.19. massFlowInt ..................................................................................................................... 270
15.5.19.1. Tools > Command Editor Example ............................................................................ 270
15.5.19.2. Tools > Function Calculator Example ........................................................................ 270
15.5.20. massInt ............................................................................................................................ 270
15.5.21. maxVal ............................................................................................................................. 271
15.5.21.1. Tools > Command Editor Example ............................................................................ 271
15.5.21.2. Tools > Function Calculator Example ........................................................................ 271
15.5.22. minVal .............................................................................................................................. 271
15.5.22.1. Tools > Command Editor Example ............................................................................ 271
15.5.22.2. Tools > Function Calculator Example ........................................................................ 271
15.5.23. probe ............................................................................................................................... 272
15.5.23.1. Tools > Command Editor Example ............................................................................ 272
15.5.23.2. Tools > Function Calculator Example ........................................................................ 272
15.5.24. rbstate ............................................................................................................................. 272
15.5.24.1. Expressions Details View Example ............................................................................ 273
15.5.25. rmsAve ............................................................................................................................. 273
15.5.26. sum .................................................................................................................................. 273
15.5.26.1. Tools > Command Editor Example ............................................................................ 274
15.5.26.2. Tools > Function Calculator Example ........................................................................ 274
15.5.27. torque .............................................................................................................................. 274
15.5.27.1. Tools > Command Editor Example ............................................................................ 274
15.5.27.2. Tools > Function Calculator Example ........................................................................ 274
15.5.28. volume ............................................................................................................................. 274
15.5.28.1. Tools > Command Editor Example ............................................................................ 274
15.5.28.2. Tools > Function Calculator Example ........................................................................ 275
15.5.29. volumeAve ....................................................................................................................... 275
15.5.29.1. Tools > Command Editor Example ............................................................................ 275
15.5.29.2. Tools > Function Calculator Example ........................................................................ 275
15.5.30. volumeInt ........................................................................................................................ 275
15.5.30.1. Tools > Command Editor Example ............................................................................ 276
15.5.30.2. Tools > Function Calculator Example ........................................................................ 276
16. Variables in ANSYS CFX ..................................................................................................................... 277
16.1. Hybrid and Conservative Variable Values ...................................................................................... 277
16.1.1. Solid-Fluid Interface Variable Values .................................................................................... 278
16.1.1.1. Conservative Values at 1:1 Interface ............................................................................ 278
16.1.1.2. Hybrid Values at 1:1 Interface ..................................................................................... 278
16.1.1.3. Conservative Values on a GGI Interface ....................................................................... 279
16.1.1.4. Hybrid Values on a GGI Interface ................................................................................ 279
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xiii
Reference Guide
16.2. List of Field Variables ................................................................................................................... 279
16.2.1. Common Variables Relevant for Most CFD Calculations ....................................................... 280
16.2.2. Variables Relevant for Turbulent Flows ................................................................................ 284
16.2.3. Variables Relevant for Buoyant Flow .................................................................................... 287
16.2.4. Variables Relevant for Compressible Flow ............................................................................ 287
16.2.5. Variables Relevant for Particle Tracking ................................................................................ 288
16.2.6. Variables Relevant for Calculations with a Rotating Frame of Reference ................................ 288
16.2.7. Variables Relevant for Parallel Calculations .......................................................................... 289
16.2.8. Variables Relevant for Multicomponent Calculations ........................................................... 289
16.2.9. Variables Relevant for Multiphase Calculations .................................................................... 290
16.2.10. Variables Relevant for Radiation Calculations ..................................................................... 291
16.2.11. Variables for Total Enthalpies, Temperatures, and Pressures ................................................ 293
16.2.12. Variables and Predefined Expressions Available in CEL Expressions .................................... 294
16.2.12.1. System Variable Prefixes ........................................................................................... 303
16.2.12.2. CEL Variables r and theta .......................................................................................... 304
16.2.12.3. CEL Variable rNoDim ................................................................................................ 304
16.2.12.4. CEL Variable "subdomain" and CEL Function "inside" ................................................. 305
16.2.12.5. Timestep, Timestep Interval, and Iteration Number Variables ..................................... 305
16.2.12.5.1. Steady-State Runs ........................................................................................... 305
16.2.12.5.2. Transient Runs ................................................................................................. 305
16.2.12.5.3. ANSYS Multi-field Runs .................................................................................... 305
16.2.12.5.4. Timestep Variables in CFD-Post ........................................................................ 305
16.2.12.6. Expression Names .................................................................................................... 306
16.2.12.7. Scalar Expressions .................................................................................................... 306
16.2.12.8. Expression Properties ............................................................................................... 306
16.2.12.9. Available and Unavailable Variables .......................................................................... 306
16.3. Particle Variables Generated by the Solver ................................................................................... 307
16.3.1. Particle Track Variables ........................................................................................................ 307
16.3.2. Particle Field Variables ........................................................................................................ 310
16.3.2.1. Particle Sources into the Coupled Fluid Phase ............................................................. 310
16.3.2.2. Particle Radiation Variables ........................................................................................ 311
16.3.2.3. Particle Vertex Variables ............................................................................................. 312
16.3.2.3.1. Variable Calculations ......................................................................................... 314
16.3.2.4. Particle Boundary Vertex Variables .............................................................................. 315
16.3.2.5. Particle RMS Variables ................................................................................................ 316
16.3.2.5.1. Variable Calculations ......................................................................................... 316
16.4. Miscellaneous Variables ............................................................................................................... 317
17. Power Syntax in ANSYS CFX .............................................................................................................. 329
17.1. Examples of Power Syntax ........................................................................................................... 329
17.1.1. Example 1: Print the Value of the Pressure Drop Through a Pipe ........................................... 330
17.1.2. Example 2: Using a for Loop ................................................................................................ 331
17.1.3. Example 3: Creating a Simple Subroutine ............................................................................ 331
17.1.4. Example 4: Creating a Complex Quantitative Subroutine ..................................................... 332
17.2. Predefined Power Syntax Subroutines ......................................................................................... 333
17.2.1. Power Syntax Subroutine Descriptions ................................................................................ 333
17.2.2. Power Syntax Usage ........................................................................................................... 334
17.2.3. Power Syntax Subroutines .................................................................................................. 334
17.2.3.1. area(Location, Axis) .................................................................................................... 334
17.2.3.2. areaAve(Variable, Location, Axis) ................................................................................. 334
17.2.3.3. areaInt(Variable, Location, Axis) .................................................................................. 334
17.2.3.4. ave(Variable, Location) ............................................................................................... 335
17.2.3.5. calcTurboVariables() ................................................................................................... 335
xiv
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reference Guide
17.2.3.6. calculate(function,...) .................................................................................................. 335
17.2.3.7. calculateUnits(function,...) .......................................................................................... 335
17.2.3.8. collectTurboInfo() ...................................................................................................... 335
17.2.3.9. comfortFactors() ........................................................................................................ 335
17.2.3.10. compressorPerform(Location, Location, Location, Var, Args) ....................................... 335
17.2.3.11. compressorPerformTurbo() ...................................................................................... 335
17.2.3.12. copyFile(FromPath, ToPath) ...................................................................................... 335
17.2.3.13. count(Location) ....................................................................................................... 335
17.2.3.14. countTrue(Expression, Location) ............................................................................... 336
17.2.3.15. cpPolar(Location, Var, Arg, Var, Location, Arg) ............................................................. 336
17.2.3.16. evaluate(Expression) ................................................................................................ 336
17.2.3.17. evaluateInPreferred(Expression) ............................................................................... 336
17.2.3.18. exprExists(Expression) .............................................................................................. 336
17.2.3.19. fanNoiseDefault() ..................................................................................................... 337
17.2.3.20. fanNoise() ................................................................................................................ 337
17.2.3.21. force(Location, Axis) ................................................................................................. 337
17.2.3.22. forceNorm(Location, Axis) ........................................................................................ 337
17.2.3.23. getBladeForceExpr() ................................................................................................. 337
17.2.3.24. getBladeTorqueExpr() .............................................................................................. 337
17.2.3.25. getCCLState() ........................................................................................................... 337
17.2.3.26. getChildrenByCategory(Category) ............................................................................ 337
17.2.3.27. getChildren(Object Name, Child Type) ...................................................................... 337
17.2.3.28. getExprOnLocators() ................................................................................................ 338
17.2.3.29. getExprString(Expression) ........................................................................................ 338
17.2.3.30. getExprVal(Expression) ............................................................................................. 338
17.2.3.31. getObjectName(Object Path) ................................................................................... 338
17.2.3.32. getParameterInfo(Object Name, Parameter Name, Info Type) ..................................... 338
17.2.3.33. getParameters(Object Name) ................................................................................... 338
17.2.3.34. getTempDirectory() ................................................................................................. 338
17.2.3.35. getType(Object Name) ............................................................................................. 338
17.2.3.36. getValue(Object Name, Parameter Name) ................................................................. 339
17.2.3.36.1. Example .......................................................................................................... 339
17.2.3.37. getViewArea() .......................................................................................................... 339
17.2.3.38. isCategory(Object Name, Category) .......................................................................... 339
17.2.3.39. Length(Location) ..................................................................................................... 339
17.2.3.40. lengthAve(Variable, Location) ................................................................................... 340
17.2.3.41. lengthInt(Variable, Location) .................................................................................... 340
17.2.3.42. liquidTurbPerformTurbo() ........................................................................................ 340
17.2.3.43. liquidTurbPerform() ................................................................................................. 340
17.2.3.44. massFlow(Location) ................................................................................................. 340
17.2.3.45. massFlowAve(Variable, Location) .............................................................................. 340
17.2.3.46. massFlowAveAbs(Variable, Location) ........................................................................ 340
17.2.3.47. massFlowInt(Variable, Location) ............................................................................... 340
17.2.3.48. maxVal(Variable, Location) ....................................................................................... 340
17.2.3.49. minVal(Variable, Location) ........................................................................................ 340
17.2.3.50. objectExists(Object Name) ....................................................................................... 341
17.2.3.51. probe(Variable, Location) ......................................................................................... 341
17.2.3.52. pumpPerform() ........................................................................................................ 341
17.2.3.53. pumpPerformTurbo() ............................................................................................... 341
17.2.3.54. range(Variable, Location) .......................................................................................... 341
17.2.3.55. reportError(String) ................................................................................................... 341
17.2.3.56. reportWarning(String) .............................................................................................. 341
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xv
Reference Guide
17.2.3.57. showPkgs() .............................................................................................................. 341
17.2.3.58. showSubs(packageName) ........................................................................................ 341
17.2.3.59. showVars(packageName) ......................................................................................... 342
17.2.3.60. spawnAsyncProcess(command, arguments) ............................................................. 342
17.2.3.61. sum(Variable, Location) ............................................................................................ 342
17.2.3.62. torque(Location, Axis) .............................................................................................. 342
17.2.3.63. turbinePerform() ...................................................................................................... 342
17.2.3.64. turbinePerformTurbo() ............................................................................................. 342
17.2.3.65. verboseOn() ............................................................................................................. 342
17.2.3.66. volume(Location) ..................................................................................................... 342
17.2.3.67. volumeAve(Variable, Location) ................................................................................. 342
17.2.3.68. volumeInt(Variable, Location) ................................................................................... 342
18. Bibliography ...................................................................................................................................... 345
18.1. References 1-20 .......................................................................................................................... 345
18.2. References 21-40 ......................................................................................................................... 348
18.3. References 41-60 ......................................................................................................................... 351
18.4. References 61-80 ......................................................................................................................... 354
18.5. References 81-100 ....................................................................................................................... 357
18.6. References 101-120 ..................................................................................................................... 359
18.7. References 121-140 ..................................................................................................................... 362
18.8. References 141-160 ..................................................................................................................... 365
18.9. References 161-180 ..................................................................................................................... 368
18.10. References 181-200 ................................................................................................................... 371
18.11. References 201-220 ................................................................................................................... 374
18.12. References 221- ......................................................................................................................... 378
Glossary ................................................................................................................................................... 379
xvi
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The launcher consists of a menu bar, a toolbar for launching applications, a working directory selector,
and an output window where messages are displayed. On Windows platforms, an icon to start Windows
Explorer in the working directory appears next to the directory selector.
1.1.1.1.1. Save As
Saves the contents of the output window to a file.
1.1.1.1.2. Quit
Shuts down the ANSYS CFX Launcher. Any programs already launched will continue to run.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.1.1.2.1. Clear
Clears the output window.
1.1.1.2.2. Find
Displays a dialog box where you can search the text in the output window.
1.1.1.2.3. Options
Presents the Options dialog box, which enables you to change the appearance of the ANSYS CFX
Launcher.
1.1.1.3.1. CFX-Pre
Runs CFX-Pre, with the working directory as specified in Working Directory Selector (p. 4).
1.1.1.3.3. CFD-Post
Runs CFD-Post, in the current working directory as specified in Working Directory Selector (p. 4).
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.
1.1.2. Toolbar
The toolbar contains shortcuts to the main components of CFX, for example CFX-Pre, CFX-Solver Manager
and CFD-Post. Pressing any of the buttons will start up the component in the specified working directory.
The equivalent menu entries for launching the components also show a keyboard shortcut that can be
used to launch the component.
) next to the directory name. This displays a list of recently used directories.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Browse
1.2.1.1. GROUP
GROUP objects represent menus and toolbar groups in the ANSYS CFX Launcher. Each new GROUP
creates a new menu and toolbar. Nothing will appear in the menu or toolbar until you add APPLICA
TION or DIVIDER objects to the group. An example of a GROUP object is given below:
GROUP: CFX
Position = 200
Menu Name = &CFX
Show In Toolbar = Yes
Show In Menu = Yes
Enabled = Yes
END
The group name is set after the colon. In this case, it is "CFX". This is the name that APPLICATION and
DIVIDER objects will refer to when you want to add them to this group. This name should be different to
all other GROUP objects.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.2.1.2. APPLICATION
APPLICATION objects create entries in the menus and toolbars that will launch an application or run
a process. Two examples are given below with an explanation for each parameter. The first example
creates a menu entry in the Tools menu that opens a command line window. The second example
creates a menu entry and toolbar button to start CFX-Solver Manager.
APPLICATION: Command Line 1
Position = 300
Group = Tools
Tool Tip = Start a window in which CFX commands can be run
Menu Item Name = Command Line
Command = <windir>\system32\cmd.exe
Arguments = /c start
Show In Toolbar = No
Show In Menu = Yes
Enabled = Yes
OS List = winnt
END
APPLICATION: CFXSM
Position = 300
Group = CFX
Tool Tip = Launches ANSYS CFX-Solver Manager
Menu Item Name = CFX-Solver Manager
Command = cfx5solve
Show In Toolbar = Yes
Show In Menu = Yes
Enabled = Yes
Toolbar Name = ANSYS CFX-Solver Manager
Icon = LaunchSolveIcon.xpm
Shortcut = CTRL+S
END
The application name is set after the colon, in the first example it is "Command Line 1". This name should
be different from all other APPLICATION objects.
Position: sets the relative position of the menu entry. The value should be an integer between 1 and
1000. The higher the value, relative to other applications that have the same group, the further down the
menu or the further to the right in a toolbar the entry will appear. If you do not specify a position, the object
assumes a high position value (so it will appear at the bottom of a menu or at the right of a group of buttons).
Group: sets the GROUP object to which this application belongs. The value must correspond to the name
that appears after "GROUP:" in an existing GROUP object. The menu and/or toolbar entry will not be created
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.2.1.3. DIVIDER
DIVIDER objects create a divider in a menu and/or toolbar (see the Tools menu for an example). An
example of the CCL for DIVIDER objects is shown below.
DIVIDER: Tools Divider 1
Position = 250
Group = Tools
OS List = winnt
END
The Position, Group and OS List parameters are the same as those used in APPLICATION objects.
For details, see APPLICATION (p. 6).
Although the parameter Toolbar Name is not strictly required, you would end up with a blank toolbar
button if it were not set.
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.
You must write the program using the API to translate the mesh read from the 3rd-party file into a
format that can be processed by CFX-Pre.
Inclusion of the cfxImport.h header file (for C programs and not Fortran programs).
2.
3.
4.
5.
Optionally, definitions of 2D and 3D regions with either cfxImportRegion or the following three
functions: cfxImportBegReg, cfxImportAddReg, cfxImportEndReg
6.
10
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Windows users should note that custom mesh import programs must be compiled as multithreaded applications.
The customized executable must be linked with the provided Mesh Import API library and the provided
I/O library as detailed in Linking Code with the Mesh Import API (p. 11).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11
where <CFXROOT> is the directory in which CFX is installed and <OSDIR> is a directory name corresponding to the architecture of the machine.
Here, -lmeshimport, -lratlas_api, -lratlas, -lpgtapi, -lunits, -lcclapillt, and -lio
indicate the libraries mentioned above, while -lm and -lc are system libraries.
In this example, your own import program is named myimport.c and the executable file will be called
myimport. You should ensure that the libraries to which you are linking (which are in the path given
after -L) appear on the command line after the source file (or object file if you are just linking to an
existing object).
The compiler flags and required libraries may vary, depending on the compiler and the custom program.
The supported compilers are listed in Compiler Requirements for All Linux Versions in the ANSYS, Inc.
Linux Installation Guide.
The supported compilers are listed in Compiler Requirements for All Linux Versions in the ANSYS, Inc.
Linux Installation Guide.
12
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
In past releases of ANSYS CFX the API has defined IDs of nodes and elements as integers
(int). This release now uses a datatype ID_t to represent these quantities. This type is currently
defined as an unsigned integer (unsigned int). This allows a greater number of nodes and
elements to be imported than in the past.
cfxELEM_TET
cfxELEM_PYR
cfxELEM_WDG
cfxELEM_HEX
4
5
6
8
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13
1
2
3
Node and Face regions define 2D regions of the imported mesh. Element regions define 3D regions of
the imported mesh.
It is best to use face regions to define 2D regions of the mesh and element regions to define 3D regions
of the mesh.
Node regions will be automatically transformed into a face region by the import process. This transformation requires the node IDs specified to define vertices of valid element faces. If no element faces can
be constructed from the defined node region the node region will be deleted.
Note
Due to the limited topological information recoverable from a set of nodes it is not advisable
to define 2D regions internal to a 3D region using nodes. In this case it is advisable to use
Face regions.
Node regions are specified by a list of node IDs.
Face regions are defined by a list of face IDs. These face IDs are a combination of an element ID and a
local face number in the element.
2.3.2.1. cfxImportStatus
int cfxImportStatus ()
Returns 0 if descriptor is not opened and -1 if not opened for writing. In the normal case, 1 is returned
if opened for writing to CFX, and 2 if opened for writing to a file.
2.3.2.2. cfxImportInit
void cfxImportInit ()
Performs initialization to begin communicating with CFX. This routine should be called early on in the
import program to let CFX know that data is to be sent. If not called within 60 seconds, CFX will terminate
the import process. If called and there is no connection with CFX, then the routine cfxImport
14
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.3.2.3. cfxImportTest
int cfxImportTest (filename)
char *filename;
This routine allows testing of import program in isolation from CFX by writing data to a file filename
instead of attempting to write it to the CFX communication channel.
The routine will return the file descriptor of the output file or will terminate with a call to cfxImport
Fatal on error.
2.3.3.1. cfxImportDone
long cfxImportDone ()
Indicate to the import API that all mesh data has been given and the API should now send the data to
CFX. Except for cfxImportTotals, this should be last call made to the API. Returns the total number
of bytes transferred to CFX by the import program.
2.3.3.2. cfxImportTotals
long cfxImportTotals (counts)
size_t counts[cfxImpCNT_SIZE];
Get the total number of nodes, elements, regions and other useful information given to the mesh import
API by the program. This information is returned in the array counts, which should be of size at least
cfxImpCNT_SIZE (currently defined as 9). The values returned in counts may be indexed by the
enum list in cfxImport.h, which is:
counts[cfxImpCNT_NODE]
counts[cfxImpCNT_ELEMENT]
counts[cfxImpCNT_REGION]
counts[cfxImpCNT_UNUSED]
counts[cfxImpCNT_DUP]
counts[cfxImpCNT_TET]
counts[cfxImpCNT_PYR]
counts[cfxImpCNT_WDG]
counts[cfxImpCNT_HEX]
=
=
=
=
=
=
=
=
=
number
number
number
number
number
number
number
number
number
of
of
of
of
of
of
of
of
of
nodes
elements
regions
unused nodes
duplicate nodes
tetrahedral elements
pyramid elements
wedge elements
hexahedral elements
The return value for the function is the total number of bytes of data sent to CFX or written to the test
file given when cfxImportTest was called.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15
2.3.4.1. cfxImportError
void cfxImportError (callback)
void (*callback)(char *errmsg);
Define a user routine to be called before terminating due to a fatal error. callback is the applicationsupplied function to be called in the case of an error. The callback routine takes a single argument,
errmsg, which will be passed by cfxImportFatal and should be processed by the callback function
as a brief message describing the error that has occurred. If this function is not called or callback is not
specified, then the normal termination behavior of the mesh import API will be that the any fatal errors
will write the error message to stderr as well as being sent to CFX.
2.3.4.2. cfxImportFatal
void cfxImportFatal (errmsg)
char *errmsg;
Terminate with an error message, errmsg. This routine will send the message to CFX, shut down the
communication channel or test file and call the user callback function (if specified by a call to cfxImportError).
There is no return from this call. The import program will terminate immediately after clean up tasks
have been performed.
2.3.5.1. cfxImportNode
ID_t cfxImportNode (nodeid, x, y, z)
ID_t nodeid;
double x, y, z;
Define a node in the import API to be subsequently imported into CFX. The unique identifier of the
node is given by nodeid, and the coordinates of the node by x, y, and z.
Returns 0 if nodeid is invalid (less than 1), or nodeid is successfully defined. If a node with the same
identity has already been defined, the coordinate values will alter to the supplied values.
2.3.5.2. cfxImportGetNode
ID_t cfxImportGetNode (nodeid, x, y, z)
ID_t nodeid;
double *x, *y, *z;
Get the coordinates for the node identified by nodeid and return the values in x, y, and z. Returns 0
if the node has not been defined or the node ID for the node.
2.3.5.3. cfxImportNodeList
ID_t * cfxImportNodeList ()
16
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.3.6.1. cfxImportElement
ID_t cfxImportElement (elemid, elemtype, nodelist)
ID_t elemid, *nodelist; int elemtype;
Define a new element to be imported to CFX. The unique identifier of the element is given by elemid,
the element type by elemtype and the list of vertices by nodelist. If an element with the same ID
has already been defined, it will be replaced by the new element being defined.
Only volume elements are currently supported by CFX; these may be tetrahedrons (4 vertices), pyramids
(5 vertices), prisms (6 vertices) or hexahedrons (8 vertices). elemtype is the number of vertices for the
element.
The following defines are included in the header file, cfxImport.h for convenience:
#define
#define
#define
#define
cfxELEM_TET
cfxELEM_PYR
cfxELEM_WDG
cfxELEM_HEX
4
5
6
8
/*
/*
/*
/*
*/
*/
*/
*/
The list of vertices in nodelist refers to IDs of nodes that on termination of the import program by
a call to cfxImportDone must have been defined by calls to cfxImportNode. If this is not the case
a fatal error will be reported and the API will terminate.
The vertex ordering for the elements follows Patran Neutral File element conventions, and is shown in
the following figure.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17
Note
The vertex ordering for the export API is different. For details, see cfxExportElementList (p. 54).
Returns 0 in the case of an elemid is invalid (less than 1) or an unsupported value is given by elem
type, or elemid if the element is successfully defined. If the element already exists the vertices of the
element will be redefined.
2.3.6.2. cfxImportGetElement
ID_t cfxImportGetElement (elemid, nodelist)
ID_t elemid, nodelist[];
Get the node IDs for corresponding to the vertices of element identified by elemid and store in the
array nodelist. This array must be at least as large the number of vertices for the element (a size of 8
will handle all possible element types).
Returns 0 if the element is not defined, or the element type (number of vertices). The node IDs will be
ordered in the order expected by cfxImportElement if the program was to redefine the element.
2.3.6.3. cfxImportElementList
ID_t * cfxImportElementList ()
Returns an array of all the currently defined element IDs or NULL if no elements have been defined.
The first entry in the array is the number of elements.
The memory for the array returned is allocated using malloc by the routine, consequently it should
be destroyed when no longer required by calling free.
18
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.3.6.4. cfxImportGetFace
ID_t cfxImportGetFace (elemid, facenum, nodelist)
ID_t elemid, nodelist[]; int facenum;
Gets the node IDs for the local facenumth face of the element identified by elemid.
The node IDs are returned in nodelist, which should be of at least of size 4. The nodes correspond
to the vertices of the face and are ordered counter-clockwise such that the normal for the face points
away from the element. The face numbers and associated node indices are modeled after Patran
Neutral File elements, and are tabulated here:
Element Type
Face
Nodes
tetrahedron
pyramid
prism
hexahedron
Note
The face numbers and associated node indices are different when exporting elements. For
details, see cfxExportFaceNodes (p. 56).
Returns -1 if the element has not been defined, 0 if the face number is out of range, or the number of
nodes for the face (3 or 4):
2.3.6.5. cfxImportFindFace
ID_t cfxImportFindFace (elemid, nnodes, nodeid)
ID_t elemid, nodeid[]; int nnodes;
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
19
2.3.7.1. cfxImportBegReg
int cfxImportBegReg (regname, regtype)
char *regname;
int regtype;
Initialize for the specification of a region. If a region is currently being defined, cfxImportEndReg
will be called.
The name of the region is given by regname. If the region name is NULL, the name Unnamed Region
2D or Unnamed Region 3D, with a sequential integer appended, will be used. If a region named
regname has already been defined, then additional objects will be added to the previous region.
The type of region is given by regtype, which should be one of cfxImpREG_NODES, cfxIm
pREG_FACES or cfxImpREG_ELEMS depending on whether the region is to be defined by nodes,
faces or elements, respectively. It is not currently possible to mix types in a region; doing so will cause
the import API to terminate with an error message.
Returns the number of objects (node, faces or elements) currently in the region.
2.3.7.2. cfxImportAddReg
int cfxImportAddReg (numobjs, objlist)
int numobjs, *objlist;
2.3.7.3. cfxImportEndReg
int cfxImportEndReg ()
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.3.7.4. cfxImportRegion
int cfxImportRegion (regname, regtype, numobjs, objlist)
char *regname;
int regtype, numobjs, *objlist;
Import a region named regname of type regtype. The number of objects to add to the region is
given by numobjs, and the list of object IDs by objlist. This routine combines calls to cfxImport
BegReg, cfxImportAddReg and cfxImportEndReg.
Returns the total number of objects in the region on termination of the routine.
2.3.7.5. cfxImportRegionList
char ** cfxImportRegionList ()
2.3.7.6. cfxImportGetRegion
int * cfxImportGetRegion (regname)
char *regname;
Returns a list of objects in the region named regname, or NULL if the region does not exist. The first
entry in the returned list is the region type and the second entry is the number of object IDs.
The memory for the array is allocated using malloc by the routine, consequently the array itself should
be destroyed when no longer required by calling free.
2.3.8.1. cfxImportBegCompRegion
cfxImportBegCompReg()
char *regionName;
2.3.8.2. cfxImportAddCompRegComponents
int cfxImportAddCompRegComponents(componentCount,components)
int componentCount;
char **components;
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
21
2.3.8.3. cfxImportEndCompReg
int cfxImportEndCompReg()
2.3.8.4. cfxImportCompositeRegion
int cfxImportCompositeRegion(regionName, componentCount, components)
char *regionName, **components;
int componentCount;
2.3.9.1. cfxImportMap
ID_t cfxImportMap (nodeid, mapid)
ID_t nodeid, mapid;
Explicitly map the node identified by nodeid to the node identified by mapid.
On calling cfxImportDone the Mesh Import API will update regions and elements referencing the
mapped node to the node it is mapped to. This therefore reduces the total node count imported to
CFX and eliminates the duplicate nodes.
Duplicate nodes may also be removed by CFX if the appropriate options are selected in the CFX interface
and an appropriate tolerance set. For details, see Importing Meshes in the CFX-Pre User's Guide.
2.3.10.1. cfxinit
call cfxinit
22
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.3.10.2. cfxtest
CHARACTER*n filename
call cfxtest(filename)
Interface to cfxImportTest. filename is a CHARACTER*n value that gives the name of the file to
dump the output to.
2.3.10.3. cfxunit
CHARACTER*n units
call cfxunit(units)
2.3.10.4. cfxwarn
CHARACTER*n mesg
call cfxwarn(mesg)
2.3.10.5. cfxfatl
CHARACTER*n mesg
call cfxfatl(mesg)
Interface to cfxImportFatal. Emit a warning message mesg and terminate the program cleanly.
2.3.10.6. cfxdone
call cfxdone
Interface to cfxImportDone. Terminates the program and transfers the data to CFX-Pre.
2.3.10.7. cfxnode
INTEGER idnode
DOUBLE PRECISION x,y,z
call cfxnode(idnode,x,y,z)
Interface to cfxImportNode. Imports a node with the specified coordinates. idnode is an INTEGER
value for the node ID, and x, y, and z are the DOUBLE PRECISION coordinates of the node.
2.3.10.8. cfxnodg
INTEGER idnode
DOUBLE PRECISION x,y,z
call cfxnodg(idnode,x,y,z)
2.3.10.9. cfxnods
INTEGER ids(*)
call cfxnods(ids)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
23
2.3.10.10. cfxelem
INTEGER idelem,itelem,nodes(*)
call cfxelem(idelem,itelem,nodes)
Interface to cfxImportElement. idelem is element ID, and itelem is the element type (number
of nodes - 4,5,6, or 8). Both are of type INTEGER. nodes is an array of INTEGER node IDs dimensioned
of size at least itelem.
2.3.10.11. cfxeleg
INTEGER idelem,itelem,nodes(*)
call cfxeleg(idelem,itelem,nodes)
Interface to cfxImportGetElement. Queries the current node ids that define the vertices of the
element referenced by the id idelem. idelem is element ID, and itelem is the element type (number
of nodes - 4, 5, 6, or 8). Both are of type INTEGER. nodes is an array of INTEGER values that will contain
the node IDs on successful return. It should be dimensioned of size at least itelem.
2.3.10.12. cfxeles
INTEGER ids(*)
call cfxeles(ids)
Interface to cfxImportElemList. Retrieves the list of all valid element IDs having been imported
into the API. ids is an INTEGER array that must be at least as large as the number of elements currently
imported.
2.3.10.13. cfxfacd
INTEGER eleid, elefc, id
call cfxfacd(eleid, elefc, id)
Interface to cfxImportFaceID. Defines a face id (id) in terms of an element ID (eleid) and local
face (elefc) of that element.
2.3.10.14. cfxface
INTEGER eleid, elefc, vtx(*)
INTEGER cfxface(eleid, elefc, vtx)
Interface to cfxImportGetFace. Returns the node IDs of the vertices defining a face located by the
element ID (eleid) and local face (elefc) of that element.
2.3.10.15. cfxffac
INTEGER eleid, nvtx, vtx(*), elefc
call cfxffac(eleid, nvtx, vtx, elefc)
Interface to cfxImportFindFace. Returns the local face (elefc) of an element (eleid) that is
defined by the vertices (vtx).
24
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.3.10.16. cfxregn
CHARACTER*n regname
INTEGER type,nobjs,objs(*)
call cfxregn(regname,type,nobjs,objs)
Interface to cfxImportRegion. Regname is a CHARACTER*n string defining the region name, type
is an INTEGER value specifying the type of region, either 1 for nodes, 2 for faces, or 3 for elements.
nobjs is an INTEGER value that gives the number of objects in the region, and objs is an INTEGER array
of object IDs dimensioned at least size nobjs.
2.3.10.17. cfxregb
CHARACTER*n regname
INTEGER type
call cfxregb(regname,type)
Interface to cfxImportBegReg. Start defining a new region or make an existing region of the same
name the current one if it already exists and is of the same type. regname is a CHARACTER*n string
defining the region name, type is an INTEGER value specifying the type of region, either 1 for nodes, 2
for faces, or 3 for elements.
2.3.10.18. cfxrega
INTEGER nobjs,objs(*)
call cfxrega(nobjs,objs)
Interface to cfxImportAddReg. Add the objects (objs) to the current region. nobjs is an INTEGER
value that gives the number of objects to add to the region, and objs is an INTEGER array of object
IDs dimensioned at least size nobjs.
2.3.10.19. cfxrege
call cfxrege()
Interface to cfxImportEndReg. Finish defining the current region (after the call there will be no
current region).
2.3.10.20. cfxregs
CHARACTER*n regname
INTEGER numobj
call cfxregs(regname,numobj)
Query how many objects (returned in numobj) are referenced by the region regname. regname is a
CHARACTER*n string specifying the region name.
2.3.10.21. cfxregg
CHARACTER*n regname
INTEGER type, obj(*)
call cfxregg(regname, type, objs)
Get the type (type) and object IDs (objs) referenced by the region regname. regname is a CHARACTER*n string specifying the region name. type is INTEGER and objs is an INTEGER array at least of the
size returned by cfxregs.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25
2.3.10.22. cfxcmpb
CHARACTER*n regname
call cfxcmpb(regname)
2.3.10.23. cfxcmpa
INTEGER nregs
CHARACTER*(n) regs
call cfxcmpa(nregs,regs)
Interface to cfxImportAddCompReg. Add the region names (regs) to the current composite region
being defined. nregs is an INTEGER value that gives the number of regions to add to the region, and
regs is a CHARACTER*(*) array of region names dimensioned at least size nregs.
2.3.10.24. cfxcmpe
call cfxcmpe()
Interface to cfxImportEndCompReg. Finish defining the current composite region (after the call there
will be no current composite region).
26
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Import Programs
If you want to use command line options that cannot be specified through the CFX-Pre User Interface,
then you may want to run these programs as user-defined mesh import programs. User Import details
how to run a mesh import program.
The executables are located in <CFXROOT>/bin/<os>.
ANSYS (p. 27)
CFX Def/Res (p. 27)
CFX-4 (p. 28)
CFX-5.1 (p. 28)
CFX-TfC (p. 29)
CGNS (p. 30)
Fluent (p. 31)
GridPro/az3000 (p. 31)
I-DEAS (p. 32)
ICEM CFX (p. 32)
PATRAN (p. 32)
NASTRAN (p. 32)
CFX-TASCflow (p. 33)
2.5.1. ANSYS
Imports an ANSYS file. The external import routine is ImportANSYS. Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-E Import Elements of the same type as regions.
-A Import ANSA parts as regions.
-S Display a list of all supported element types.
27
2.5.3. CFX-4
Imports a CFX-4 grid file. The external import routine is ImportCFX4.
Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-C Read coordinates as being in cylindrical coordinates.
-i Included interfaces in regions.
-3 Include USER3D and POROUS regions as 3D regions.
-c Import blocked-off conducting solid regions as 3D regions.
-l Include blocked-off solid regions as 3D regions.
-X Import axisymmetric problem with default values in geometry file.
-a <nk> Override the number of planes created in the k direction by nk (for example, split theta with
nk planes) for axisymmetric import.
-A <theta> Create a total sector of theta degrees for axisymmetric import.
-S Rename multiple symmetry planes with the same name to conform to CFX-Solver requirements
(that is, must lie in a plane).
2.5.4. CFX-5.1
Imports a CFX-5.1 results file. The external import routine is ImportCFX5.
Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-f Input file is formatted.
-u Input file is unformatted (Fortran).
-M <machine type> Set the machine type in the case of a binary or unformatted file so that data
conversion may be done if needed. The default file format is 32-bit IEEE (Iris, Sun, HP, IBM). The currently
recognized machine types are:
IEEE - generic 32-bit IEEE machine.
BSIEEE - generic 32-bit byteswapped IEEE machine.
IBM - IBM 32-bit IEEE.
IRIS - Iris 32-bit IEEE.
HP - HP 32-bit IEEE.
SUN - Sun 32-bit IEEE.
28
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Import Programs
ALPHA - Compaq Tru64 UNIX Alpha 64-bit byte-swapped IEEE.
DOS - DOS 16-bit byte-swapped IEEE.
Compaq Tru64 UNIX - Compaq Tru64 UNIX 32-bit byte-swapped IEEE.
CRAY - Cray 64-bit format.
CONVEX - native Convex floating point format.
Windows - 32-bit Windows.
The argument machine type is case insensitive, and only the first 2 characters are needed (any others
are ignored).
-M <machine type> Set the machine type in the case of a binary or unformatted file so that data
conversion may be done if needed. The default file format is 32-bit IEEE (Iris, Sun, HP, IBM). The currently
recognized machine types are:
IEEE - generic 32-bit IEEE machine.
BSIEEE - generic 32-bit byteswapped IEEE machine.
IBM - IBM 32-bit IEEE.
IRIS - Iris 32-bit IEEE.
HP - HP 32-bit IEEE.
SUN - Sun 32-bit IEEE.
ALPHA - Compaq Tru64 UNIX Alpha 64-bit byte-swapped IEEE.
DOS - DOS 16-bit byte-swapped IEEE.
Compaq Tru64 UNIX - Compaq Tru64 UNIX 32-bit byte-swapped IEEE.
CRAY - Cray 64-bit format.
CONVEX - native Convex floating point format.
Windows - 32-bit Windows.
The argument machine type is case-insensitive, and only the first two characters are needed (any others
are ignored).
2.5.5. CFX-TfC
Imports a CFX-TfC 1.3 mesh file. The external import routine is ImportGEM.
Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-f Input file is formatted.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
29
2.5.6. CGNS
Imports a CGNS file. The external import routine is ImportCGNS. Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-b Read a grid from the specific CGNS base.
-B Read all CGNS bases. (default)
-c Read BOCO information as 2D regions.
-f Import Family Information as regions.
-E Import each Element Section as a separate region.
-I Import each side of a connection as a separate region.
-P Do not add the Zone name as a prefix to any region being defined.
30
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Import Programs
2.5.6.1. SplitCGNS.exe
The SplitCGNS.exe program will take a single CGNS file and split it into multiple files on a "file per
problem basis". The method for running this is:
SplitCGNS.exe [ -l ] <filename> <basename>
If the file contains two problems called "Pipe" and "Elbow", the import filter will only currently read
"Pipe", but using SplitCGNS will produce two files called basename_Pipe.cgns and basename_Elbow.cgns each containing a single problem that can then be selected for import via the normal
method.
Specifying the "-l" option "links" the part of the data in the original file to the created file using a relative pathname. The created file does not therefore need to duplicate data.
The "-l" option should only be used if the original file and resulting files are going to be kept relative
to each other (that is, if when SplitCGNS was run the original file was in ../../example.cgns, it
must always remain in this position relative to the created files).
2.5.7. Fluent
Imports Fluent msh and cas files. The external import routine is ImportFluent. The import routine
will read the mesh information from the .cas or .msh file.
Available command line options are:
-v Verbose output. Echo additional data to stdout during the import.
-I Import interior boundary conditions.
2.5.8. GridPro/az3000
Imports a GridPro/az3000 grid and connectivity file from Program Development Corporation (PDC).
The external import routine is ImportPDC. The import routine will attempt to determine the connectivity
file associated with the grid file by appending the extension conn to the grid filename. If the file is not
found, then the grid filename extension will be replaced by conn and the new file checked for. If neither
of these are found, the import routine will look for a file named conn.tmp, and if found will use it. A
command line option (-c) is also available to explicitly name the connectivity file.
If a connectivity file is found, the interface information in the file will be used to eliminate the duplicate
nodes at block interfaces, and boundaries conditions will be imported as regions into CFX. If the
boundary condition is named in the connectivity file, then that name will be used for the region name,
else the default name UnnamedRegionX with the X replaced by a number will be used. If a connectivity
file is not found, or the command line option to ignore the connectivity file is given (-i), then only the
grid file will be imported, resulting in duplicate nodes at the block interfaces. You may then want to
eliminate these duplicate nodes with the command line option (-d or -D).
Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-i Ignore the connectivity file. Duplicate nodes will result and no regions will be imported.
-c <connfile> Set the name of the connectivity file associated with the grid file to connfile.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
31
2.5.9. I-DEAS
Imports an I-DEAS Universal file from SDRC. The external import routine is ImportIDEAS. Reads datasets
781 and 2411 (nodes) as nodes, 780 and 2412 (elements) as elements, and nodes (type 7) from datasets
752 and 2417 (permanent groups) as regions. All other datasets are read, but not processed.
Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-n Import nodes in a PERMANENT group as a 2D region.
-l Import elements in a PERMANENT group as a 3D region.
-f Import faces in a PERMANENT group as a 2D region.
2.5.11. PATRAN
Imports a PATRAN Neutral file. The external import routine is ImportPatran. Reads packet 01 (nodes)
as nodes, packet 02 (elements) as elements, and nodes (type 5) from packet 21 (named groups) as regions.
A command line option is available to read packet 06 (loads) as regions also. All other packets are read,
but not processed.
Available options are:
-v Verbose output. Echo additional data to stdout during the import.
-l Import packet 06 (distributed loads) as regions. The regions will be assigned the name PatranLoadX
where the X is replaced by the load ID number.
2.5.12. NASTRAN
Imports a NASTRAN file. The external import routine is ImportMSC. Currently reads only nodes (GRID),
tet (CTETRA) and hex (CHEXA) elements.
Available options are:
32
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Import Programs
-v Verbose output. Echo additional data to stdout during the import.
-l Import PLOAD4 datasets as 2D regions.
-s Import PSOLID datasets as 3D regions.
2.5.13. CFX-TASCflow
Imports TASCflow Version 2 files. The external import routine is ImportGRD. The import routine will
read the mesh information from the GRD file and automatically remove duplicate nodes where interfaces
are defined and are 1:1.
Available command line options are:
-v Verbose output. Echo additional data to stdout during the import.
-V More verbose output.
-i Ignore the blockoff file (BCF).
-c Ignore GCI file.
-o Old style 2.4 format.
-b <file> Specifies a bcf file that contains blocked-off regions (boundary condition information is
ignored). For details, see CFX-TASCflow Files in the CFX-Pre User's Guide.
-g <file> Specifies the gci file to import. For details, see CFX-TASCflow Files in the CFX-Pre User's
Guide.
-f Formatted (ASCII) GRD file.
-u Fortran unformatted GRD file.
-3 Import labelled 3D regions.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
33
34
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.
Numerous keywords are required for development and use of custom export files. For details, see
cfx5export Arguments.
An example source routine can be used as the basis of a customized program; one is given in the next
section.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
35
<stdio.h>
<string.h>
<stdlib.h>
<io.h>
Obtaining CFX-Mesh and Results Export API header files is described in more detail. For details, see
Linking Code with the Mesh and Results Export API (p. 47).
The following piece of code simply defines the message that is printed if you enter incorrect options
to the program.
static char *usgmsg[] = {
"usage: ExportTemplate [options] res_file [basename]",
" options are:",
" -u<level>
= user level of interest",
" -d<domain>
= domain of interest (default is 0 - all the domains",
"
are combined into a single domain)",
" -t<timestep> = timestep of interest (if set to -1, all timesteps",
"
are exported)"
" -c
= use corrected boundary node data",
" -i
= include boundary node only data",
" -f
= get info on the res_file (No output is created)",
" <basename> is the base filename for Template file output.",
"If not specified, it defaults to res_file. The Template",
"geometry file will be written to <basename>.geom, the",
"results file to <basename>.res, and the variables to",
"<basename>.s## or <basename>.v## where ## is the variable",
"number and s indicates a scalar and v a vector.",
NULL
};
36
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The variable cfxCNT_SIZE and the types cfxNode and cfxElement are defined in the header file
cfxExport.h as are all variables and functions starting with the letters cfx. For details, see Mesh
and Results Export API (p. 35). The variables level, zone, alias, bndfix and bnddat are used for
setting the default values for the various parameters that can be set on the command line of the program.
The following line prints an error message if there are not enough arguments to proceed.
if (argc < 2)
cfxUsage (usgmsg, NULL);
The following piece of code reads the specified options and assigns values to certain variables accordingly.
If an invalid or incomplete option is specified, then getargs prints an error message and the export
program stops.
while ((n = getargs (argc, argv, options)) > 0) {
switch (n) {
case u:
level = atoi (argarg);
break;
case d:
zone = atoi (argarg);
break;
case t:
timestep = atoi (argarg);
isTimestep = 1;
break;
case c:
bndfix = 1;
break;
case i:
bnddat = 1;
break;
case f:
infoOnly = 1;
break;
}
}
After this, the level variable contains the user level specified. All results are output if they are of this
user level or below it. The zone variable contains the domain number that you specified. The variable
alias determines whether the variables are referred to by their long names or short names. The default
here is for short names to be used because some post-processors need variable names to contain no
spaces, but you are encouraged to use long variable names wherever possible. The variable bndfix
determines whether the variables are exported with corrected boundary node values - if bndfix is set
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
37
The following code writes the basename specified to the character array baseFileName. If one was
not specified, then it defaults to the name of the results file specified. A basename name may be specified
in another directory (for example, ../template/output). However, later in the code this basename
without the preceding directory information is required (in this example output); and so the pointer
pptr is assigned to point to the first character of this name.
/* base file name */
if (argind + 1 < argc)
strcpy (baseFileName,
else
strcpy (baseFileName,
if (NULL != (pptr = strrchr
pptr++;
else if (NULL != (pptr =
pptr++;
else
pptr = baseFileName;
argv[argind+1]);
argv[argind]);
(baseFileName, /)))
strrchr (baseFileName, \\)))
The following code checks that the results file that will be produced by the export program will not
overwrite an existing results file.
/* dont overwrite results file */
sprintf (fileName, "%s.res", baseFileName);
if (0 == strcmp (argv[argind], fileName)) {
fprintf (stderr, "Template res file would overwrite CFX results file\n");
fprintf (stderr, "Need to select new Template output base file name\n");
exit (1);
}
38
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following code is ignoring any pyramid elements (elements with 5 nodes) and decreases nelems
by the number of pyramid elements. It then checks to make sure that neither the number of nodes nor
the number of elements is zero; if so, the program exits with return code -1.
The first two lines focus on the number of nodes in the zone and the number of elements in the zone.
nnodes = cfxExportNodeCount();
nelems = cfxExportElementCount();
if (counts[cfxCNT_PYR]) {
printf ("%d pyramid elements found - they are being ignored\n",
counts[cfxCNT_PYR]);
nelems -= counts[cfxCNT_PYR];
}
if (!nnodes || !nelems)
cfxExportFatal ("no nodes and/or elements");
39
*/
"Template Geometry file exported from CFX\n");
" \n");
"node id given\n");
"element id off\n");
The following code writes first the word "coordinates" and the number of nodes that will be written.
The pointer nodes is initialized to point at the data for the first node and the node data is written into
the geometry file. For each node, a node number is written, followed by the three coordinates of that
node. Note that n ranges between 0 and nnodes-1. This program adds 1 to each node number so
that the nodes in the geometry file are numbered between 1 and nnodes. When it has finished, the
cfxExportNodeFree routine frees the memory that was used to store the node data, and finally the
word "done" is printed on the screen to alert you that it has finished writing the node data.
/* write nodes */
fprintf( fp, "coordinates\n");
fprintf( fp, "%8d\n", nnodes );
nodes = cfxExportNodeList();
printf (" writing %d nodes ...", nnodes);
fflush (stdout);
for (n = 0; n < nnodes; n++, nodes++) {
fprintf( fp, "%8d %12.5e %12.5e %12.5e\n", n + 1, nodes->x,
nodes->y, nodes->z );
}
cfxExportNodeFree();
printf (" done\n");
40
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For tetrahedral elements, the word "tetra4" is written to the file, followed by the number of tetrahedral
elements written.
/* tets */
fprintf( fp, "tetra4\n");
fprintf( fp, "%8d\n", counts[cfxCNT_TET] );
The following code is executed only if the number of tetrahedral elements is non-zero. Assuming this,
elems is set to point to the list of elements stored in the results file. The index n loops over all the
elements. For each element, the following step is carried out: If the element is a tetrahedron, then loop
over its four vertices and write their node numbers to the geometry file, then start a new line (ready
for the next set of data). The output produced can be seen in the examples of the exported files in
the next section.
if (counts[cfxCNT_TET]) {
elems = cfxExportElementList();
for (n = 0; n < nelems; n++, elems++) {
if (cfxELEM_TET == elems->type) {
for (i = 0; i < elems->type; i++)
fprintf (fp, "%8d", elems->nodeid[i]);
putc (\n, fp);
}
}
}
For wedges (triangular prisms) and hexahedral elements, the same procedure is followed. However,
there is a slight difference in the way that the fprintf line is written for hexahedral elements. This
is because the order that the element nodes are written to the geometry file is different to the order
in which they were read from the results file. This may need to be done if a post-processor has a different
convention for node order than the one that the cfx5export node routines have. The order the nodes
are written in will affect which node is connected to which. The node ordering for exported elements
is illustrated in cfxExportElementList (p. 54).
/* wedges */
fprintf( fp, "penta6\n");
fprintf( fp, "%8d\n", counts[cfxCNT_WDG] );
if (counts[cfxCNT_WDG]) {
elems = cfxExportElementList();
for (n = 0; n < nelems; n++, elems++) {
if (cfxELEM_WDG == elems->type) {
for (i = 0; i < elems->type; i++)
fprintf (fp, "%8d", elems->nodeid[i]);
}
putc (\n, fp);
}
}
/* hexes */
fprintf( fp, "hexa8\n");
fprintf( fp, "%8d\n", counts[cfxCNT_HEX] );
if (counts[cfxCNT_HEX]) {
elems = cfxExportElementList();
for (n = 0; n < nelems; n++, elems++) {
if (cfxELEM_HEX == elems->type)
fprintf (fp, "%8d%8d%8d%8d%8d%8d%8d%8d\n",
elems->nodeid[0], elems->nodeid[1],
elems->nodeid[3], elems->nodeid[2],
elems->nodeid[4], elems->nodeid[5],
elems->nodeid[7], elems->nodeid[6]);
}
}
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
41
2.
Either be a variable with useful values everywhere in the zone or be a variable that has values only on the
boundaries (in which case it will be exported only if you asked to "include boundary node only data" by
specifying the option -i when starting the export program, which translated to setting bnddat = 1
when the arguments were processed).
Review the cfxExportVariableSize routine if this logic is unclear. For details, see cfxExportVariableSize (p. 61).
Once results are identified, the code calculates the variable namelen, which is the length of the longest
variable name to be exported (the alias variable was set when processing the arguments passed to
the export program, and depends upon whether you wanted to use long names or short names). If
there are no vector or scalar variables to be exported, the export program exits.
/* output results file */
nscalars = nvectors = namelen = 0;
if ((nvalues = cfxExportVariableCount(level)) > 0) {
for (n = 1; n <= nvalues; n++) {
cfxExportVariableSize (n, &dim, &length, &i);
if ((1 != dim && 3 != dim) ||
(length != nnodes && length != bnddat))
continue;
if (1 == dim)
nscalars++;
else
nvectors++;
i = strlen (cfxExportVariableName (n, alias));
if (namelen < i)
namelen = i;
}
}
if (0 == (nscalars + nvectors)) {
cfxExportDone ();
exit (0);
}
The following code checks that the results file can be opened for writing to, and exits if not. The number
of scalar and vector variables are written to the file, followed by some numbers (which EnSight, for example, requires) that are always the same for any export of this kind.
sprintf (fileName, "%s.res", baseFileName);
if (NULL == (fp = fopen (fileName, "w+"))) {
sprintf (errmsg, "cant open <%s> for writing", fileName);
cfxExportFatal (errmsg);
}
printf ("writing Template results file to <%s>\n", fileName);
fflush (stdout);
42
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Next, for each scalar variable, a line is written that contains the filename where the scalar will be written,
and then the name of the variable. Note that the filename is not the basename, but the basename with
all the directory structure (if any) stripped off the front. For details, see Checking File Names (p. 38).
This is done because these file will be written in the same directory as this Template results file, so there
is no need for directory information.
if ( nscalars ) {
for (n = 1; n <= nvalues; n++) {
cfxExportVariableSize (n, &dim, &length, &i);
if (1 == dim && (length == nnodes || length == bnddat))
if(!isTimestep)
fprintf (fp, "%s%s.s%2.2d %s\n", pptr, zoneExt,
n, cfxExportVariableName(n, alias));
else if(t1 == t2)
fprintf (fp, "%s%s_t%d.s%2.2d %s\n", pptr, zoneExt,
cfxExportTimestepNumGet(t1), n,
cfxExportVariableName(n, alias));
else
fprintf (fp, "%s%s_t%*.*s.s%2.2d %s\n", pptr, zoneExt,
nTimeDig, nTimeDig, wildcard, n,
cfxExportVariableName(n, alias));
}
}
The same information is then written for each vector variable and the Template results file is closed.
if ( nvectors ) {
for (n = 1; n <= nvalues; n++) {
cfxExportVariableSize (n, &dim, &length, &i);
if (3 == dim && (length == nnodes || length == bnddat))
if(!isTimestep)
fprintf (fp, "%s%s.v%2.2d %s\n", pptr, zoneExt,
n, cfxExportVariableName(n, alias));
else if(t1 == t2)
fprintf (fp, "%s%s_t%d.v%2.2d %s\n", pptr, zoneExt,
cfxExportTimestepNumGet(t1), n,
cfxExportVariableName(n, alias));
else
fprintf (fp, "%s%s_t%*.*s.v%2.2d %s\n", pptr, zoneExt,
nTimeDig, nTimeDig, wildcard, n,
cfxExportVariableName(n, alias));
}
}
fclose( fp );
43
Note
This program makes no use of any of the region routines, which enable access to boundary
condition data, nor the volume routines that enable access to the subdomains that are
defined for a problem.
Region Routines (p. 55)
Volume Routines (p. 57)
/* output each timestep to a different file */
for(t = t1; t <= t2; t++) {
ts = cfxExportTimestepNumGet(t);
if(cfxExportTimestepSet(ts) < 0) {
continue;
}
/* build file name and open file */
if(!isTimestep)
sprintf( fileName, "%s%s.%c%2.2d", baseFileName, zoneExt,
1 == dim ? s : v, n);
else if(t1 == t2)
sprintf( fileName, "%s%s_t%d.%c%2.2d", baseFileName, zoneExt,
ts, 1 == dim ? s : v, n);
else
sprintf( fileName, "%s%s_t%*.*d.%c%2.2d", baseFileName, zoneExt,
nTimeDig, nTimeDig, t-1, 1 == dim ? s : v, n);
if (NULL == (fp = fopen (fileName, "w+"))) {
sprintf (errmsg, "cant open <%s> for writing\n", fileName);
cfxExportFatal (errmsg);
}
printf (" %-*s -> %s ...", namelen,
cfxExportVariableName(n, alias), fileName);
fflush (stdout);
fprintf( fp, "%s\n", cfxExportVariableName(n, alias));
length = nnodes * dim;
for ( i = 0; i < length; i++, var++ ) {
fprintf( fp, "%12.5e ", *var );
if ( i && 5 == (i % 6) )
putc (\n, fp);
}
if ( 0 != ( nvalues % 6 ) )
putc( \n, fp );
fclose( fp );
cfxExportVariableFree (n);
printf (" done\n");
}
}
} /* loop for each timestep */
cfxExportDone();
exit (0);
}
44
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Five files are produced: the geometry file example.geom, the Template results file example.res,
and three variable files called example.s01, example.s02 and example.v03, which contain the
results for pressure, temperature and velocity, respectively. For details, see:
example.geom (p. 45)
example.res (p. 46)
example.s01 (p. 46)
3.1.2.1. example.geom
The content of this file appears as:
Template Geometry file exported from CFX
node id given
element id off
coordinates
2365
1 2.00000e+00 0.00000e+00 0.00000e+00
2-2.00000e+00-6.51683e-07 0.00000e+00
3 2.00000e+00 0.00000e+00 2.00000e+00
4-2.00000e+00-6.51683e-07 2.00000e+00
5 3.00000e+00 1.00000e+00 5.00000e-01
....
....
....
2362-1.13337e+00 2.18877e-01 4.02491e-01
2363-1.12115e+00-3.66598e-01 2.22610e-01
2364 1.36924e+00 4.78359e-01 1.22588e-01
2365-3.30703e-01 1.38487e+00 2.23515e+00
part 1
volume elements
tetra4
11435
754
230
12
145
755
216
8
122
756
212
125
215
....
....
....
2365
496
475
474
penta6
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
45
3.1.2.2. example.res
The content of this file appears as:
2 1 0
1
0.0
0 1
example.s01 Pressure
example.s02 Temperature
example.v03 Velocity
3.1.2.3. example.s01
The content of this file appears as:
Pressure
1.42748e+04 1.42621e+04 1.43425e+04 1.43350e+04 1.44118e+04 1.44777e+04
1.38639e+04 1.37352e+04 1.44130e+04 1.44755e+04 1.37733e+04 1.37626e+04
....
....
....
1.39092e+04 1.40699e+04 1.24139e+04 1.34786e+04 1.34859e+04 1.37959e+04
46
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.2. Compiling Code with the Mesh and Results Export API
Compilation of a customized executable must be performed using an appropriate compiler and compiler
flags. The supported compilers are listed in Compiler Requirements for All Windows Versions in the
ANSYS, Inc. Installation Guide for Windows and Compiler Requirements for All Linux Versions in the ANSYS,
Inc. Linux Installation Guide.
The customized executable must be linked with the provided Mesh and Results Export API library and
the provided I/O library as detailed in Linking Code with the Mesh and Results Export API (p. 47).
3.3. Linking Code with the Mesh and Results Export API
In order to build a customized export utility, it must be linked with several libraries. These libraries are
located in <CFXROOT>/lib/<os>/:
libmeshexport.lib (on Windows), or libmeshexport.a (on Linux)
libratlas_api.lib (on Windows), or libratlas_api.a (on Linux)
libratlas.lib (on Windows), or libratlas.a (on Linux)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
47
where <CFXROOT> is the directory in which CFX is installed and <OSDIR> is a directory name corresponding to the architecture of the machine.
In this example, your own export program is named export.c and the executable file will be called
export.exe. You should ensure that the libraries to which you are linking (which are in the path
given after -L) appear on the command line after the source file (or object file if you are just linking
to an existing object).
The compiler flags and required libraries may vary, depending on the compiler and the custom program.
The supported compilers are listed in Compiler Requirements for All Linux Versions in the ANSYS, Inc.
Linux Installation Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
cfxELEM_TET
cfxELEM_PYR
cfxELEM_WDG
cfxELEM_HEX
4
5
6
8
In the case of nodes, the global node number is returned, while in the case of faces, the returned value
is a combination of the global element number and local face number of the element. The following
macros are available to enable you to extract the element and face number from the combined value:
#define cfxFACENUM(face) ((face) & 7)
#define cfxELEMNUM(face) ((face) >> 3)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
49
where x, y, and z are the coordinates of the node. A pointer to an array of these structures is returned
by cfxExportNodeList. For details, see cfxExportNodeList (p. 53).
where type is the element type and nodeid is an array of node numbers that define the topology of
the element. A pointer to an array of these structures is returned by cfxExportElementList. For
details, see Element Types (p. 49) and cfxExportElementList (p. 54).
3.4.2.1. cfxExportInit
int cfxExportInit (char *resfile, int counts[cfxCNT_SIZE])
50
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.4.2.2. cfxExportDone
void cfxExportDone ()
Closes the CFX results file and destroys any internal storage used by the API. This should be the final
call made to the Export API.
3.4.2.3. cfxExportError
void cfxExportError (void (*callback) (char *errmsg))
Specify a callback function that will be executed when a fatal error is generated by a call to cfxIm
portFatal (see cfxImportFatal (p. 16)). The argument, callback, is the function that will be called, it
should take an argument that is the error message passed to cfxImportFatal. It is the responsibility of
the function to terminate the application if required.
3.4.2.4. cfxExportFatal
void cfxExportFatal (char *errmsg)
Generate a fatal error message (errmsg) and close the ANSYS CFX results file. This routine also calls a
callback function, if one has been specified by cfxExportError (see cfxExportError (p. 51)). If no
callback function has been specified the function also terminates the application. There is no return
from this call.
3.4.3.1. cfxExportZoneCount
int cfxExportZoneCount ()
3.4.3.2. cfxExportZoneSet
int cfxExportZoneSet (int zone, int counts[cfxCNT_SIZE])
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
51
3.4.3.3. cfxExportZoneGet
int cfxExportZoneGet ()
3.4.3.4. cfxExportZoneFree
void cfxExportZoneFree ()
While a zone is being accessed, internal storage is allocated, this storage should be deallocated when
no longer required. This can be done by calling cfxExportZoneFree or by calling cfxExportNode
Free, cfxExportElementFree, cfxExportVolumeFree, cfxExportRegionFree and cfxEx
portVariableFree. Details on each of these routines is available; see:
cfxExportNodeFree (p. 53)
cfxExportElementFree (p. 55)
cfxExportVolumeFree (p. 58)
cfxExportRegionFree (p. 56)
cfxExportVariableFree (p. 62).
3.4.3.5. cfxExportZoneIsRotating
int cfxExportZoneIsRotating(double rotationAxis[2][3], double *angularVelocity)
Query whether the current zone is rotating and describe axis and angular velocity of the rotation if
applicable. Returns 1 if the current zone is rotating and 0 if it is not; for the combined zone the return
value is always -1. If successful the rotation axis is returned in rotationAxis and the velocity in an
gularVelocity in radians/second.
3.4.3.6. cfxExportZoneMotionAction
int cfxExportZoneMotionAction(const int zone, const int flag)
Specify whether grid coordinates and variables should have the appropriate rotation applied to them
if the zone is rotating so that grid coordinates appear in their correct locations and velocities (for examples) take this rotation into consideration. If cfxExportZoneList and cfxExportVariableList
should return rotated values, flag should be set to cfxMOTION_USE. The default behavior for a particular zone will be used if cfxMOTION_IGNORE is specified or this function is not called. If zone is not
valid or flag is not cfxMOTION_USE, cfxMOTION_IGNORE the return value will be -1 otherwise 0 is
returned.
52
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.4.4.1. cfxExportNodeCount
int cfxExportNodeCount ()
3.4.4.2. cfxExportNodeList
cfxNode *cfxExportNodeList ()
Return a pointer to an array of cfxNode elements (see cfxnode (p. 23)) containing the coordinate values
of each node in the current zone. The first node in the zone is the first element of the array, the second
is the second and so on.
The memory allocated to represent this information should be deallocated using cfxExportNodeFree
(see cfxExportNodeFree (p. 53)) when no longer required.
3.4.4.3. cfxExportNodeGet
int cfxExportNodeGet (int nodeid, double *x, double *y, double *z)
3.4.4.4. cfxExportNodeFree
void cfxExportNodeFree ()
Deallocate any internal storage allocated by the Export API after calls to cfxExportNodeList (see
cfxExportNodeList (p. 53)) and cfxExportNodeGet (see cfxExportNodeGet (p. 53)) have been made
in the current zone.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
53
3.4.5.1. cfxExportElementCount
int cfxExportElementCount ()
3.4.5.2. cfxExportElementList
cfxElement *cfxExportElementList ()
Return a pointer to an array of cfxElement elements (see cfxelem (p. 24)) containing the type and vertices
of each element in the current zone. The first element in the zone is the first element of the array, the
second the second and so on.
The memory allocated to represent this information should be deallocated using cfxExportElement
Free (see cfxExportElementFree (p. 55)) when no longer required.
The following diagrams show the order of the nodes and connections that ANSYS CFX uses for exporting
elements:
Note
The vertex ordering for the import API is different. For details, see cfxImportElement (p. 17).
3.4.5.3. cfxExportElementGet
int cfxExportElementGet (int elemid, int elemtype, int *nodelist)
54
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.4.5.4. cfxExportElementFree
void cfxExportElementFree ()
Deallocates any internal storage allocated by making calls to cfxExportElementList (see cfxExportElementList (p. 54)) or cfxExportElementGet (see cfxExportElementGet (p. 54)).
3.4.6.1. cfxExportRegionCount
int cfxExportRegionCount ()
3.4.6.2. cfxExportRegionSize
int cfxExportRegionSize (int regnum, int type)
Query the number of faces (if type is cfxREG_FACES) or nodes (if type is cfxREG_NODES) defined
in the region identified by regnum in the current zone.
The function returns the number of faces or nodes in the current zone or 0 if either regnum is out of
range or type is invalid.
3.4.6.3. cfxExportRegionName
char *cfxExportRegionName (int regnum)
Query the name of the region in the current zone identifies by regnum.
The function returns the name of the region or NULL if the region number supplied is out of range.
The pointer returned points to static storage, which will be overwritten by the next call to cfxExport
RegionName.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
55
3.4.6.4. cfxExportRegionList
int *cfxExportRegionList (int regnum, int type)
Query the nodes (type is cfxREG_NODES) or faces (cfxREG_FACES) that define a region. This function
returns a pointer to an array of node ids or face ids that define the region identified by regnum or NULL
if the region number is out of range or the type is not recognized. If type is specified as cfxREG_FACES,
the returned ids will represent faces. The element number and local element face number may be extracted from each face id returned by using the macros cfxELEMNUM and cfxFACENUM. The node
numbers for the face may be obtained by calling cfxExportFaceNodes. For details, see cfxExportFaceNodes (p. 56).
3.4.6.5. cfxExportRegionGet
int cfxExportRegionGet (int regnum, int type, int index, int *id)
Query the indexth element (type is cfxREG_ELEM) or indexth node (type is cfxREG_NODE) that
defines a region regnum in the current zone.
If regnum is out of range or type is not recognized or index is out of range, 0 is returned.
Otherwise id will contain the id of the appropriate node or face defining the region and the function
will return index.
If type is specified as cfxREG_FACES, the returned id will represent the identity of a face. The element
number and local element face number may be extracted from the id by using the macros cfxELEMNUM
and cfxFACENUM.
3.4.6.6. cfxExportRegionFree
void cfxExportRegionFree (int regnum)
Deallocate any internal data storage associated with the region defined by regnum.
3.4.7.1. cfxExportFaceNodes
int cfxExportFaceNodes (int faceid, int *nodes)
Requests the vertices for the face identified by faceid. The argument faceid should be constructed
from the element number and local face number using the following formula:
(element_number << 3) & local_face_number
Values returned from cfxExportRegionGet and cfxExportRegionList can be supplied directly
to this function.
56
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Face
Nodes
tetrahedron
pyramid
prism
hexahedron
Note
The face numbers and associated node indices are different when importing elements. For
details, see cfxImportGetFace (p. 19).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
57
3.4.8.1. cfxExportVolumeCount
int cfxExportVolumeCount ()
3.4.8.2. cfxExportVolumeSize
int cfxExportVolumeSize (int volnum, int type)
Query the number of nodes (if type is cfxVOL_NODES) or number of elements (if type is cfx
VOL_ELEMS) defining the volume indexed by volnum in the current zone. The return value will be 0
if volnum is out of range or type is invalid.
3.4.8.3. cfxExportVolumeName
char *cfxExportVolumeName (int volnum)
Query the name of the volume in the current zone indexed by volnum. Returns NULL if the volnum
is out of range.
Note
The returned pointer points to internal storage, which will be overwritten by the next call
to cfxExportVolumeName.
3.4.8.4. cfxExportVolumeList
int *cfxExportVolumeList (int volnum, int type)
Query the nodes (type is cfxVOL_NODES) or elements (cfxVOL_ELEMS) that define a volume.
This function returns a pointer to an array of node ids or element ids that define the volume identified
by volnum or NULL if the volume number is out of range or the type is not recognized.
3.4.8.5. cfxExportVolumeGet
int cfxExportVolumeGet (int volnum, int type, int index, int *id)
Query the [index]th element (type is cfxVOL_ELEM) or [index]th node (type is cfxVOL_NODE) that
defines a volume volnum in the current zone.
If volnum is out of range or type is not recognized or index is out of range, 0 is returned.
Otherwise id will contain the id of the appropriate node or element in defining the volume and the
function will return index.
3.4.8.6. cfxExportVolumeFree
void cfxExportVolumeFree (int volnum)
Deallocate any internal data storage associated with the volume defined by volnum.
58
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.4.9.1. cfxExportBoundaryCount
int cfxExportBoundaryCount ()
3.4.9.2. cfxExportBoundaryName
const char *cfxExportBoundaryName (const int bcidx)
Query the name of the boundary condition in the current zone identified by bcidx.
The function returns the name of the boundary condition or NULL if the bcidx supplied is out of
range.
The pointer returned points to static storage, which will be overwritten by the next call to cfxExport
BoundaryName.
Note
The following routines use bcidx, which must lie between 1 and cfxExportBoundary
Count() and use index which must lie between 1 and cfxExportBoundarySize (bcidx,
type).
3.4.9.3. cfxExportBoundaryType
const char *cfxExportBoundaryType (const int bcidx)
Query the type (for example, Inlet, Outlet, and so on) of the boundary condition in the current zone
identified by bcidx.
The function returns the type of the boundary condition or NULL if the bcidx supplied is out of range.
The pointer returned points to static storage, which will be overwritten by the next call to cfxExport
BoundaryType.
3.4.9.4. cfxExportBoundarySize
int cfxExportBoundarySize (const int bcidx, const int type)
Query the number of faces (if type is cfxREG_FACES) or nodes (if type is cfxREG_NODES) defined
in the boundary condition identified by bcidx in the current zone.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
59
3.4.9.5. cfxExportBoundaryList
int *cfxExportBoundaryList (const int bcidx, const int type)
Query the faces (if type is cfxREG_FACES) or nodes (if type is cfxREG_NODES) that define a
boundary condition.
This function returns a pointer to an array of node ids or face ids that define the location of the
boundary condition identified by bcidx or NULL if bcidx is out of range or the type is not recognized.
If type is specified as cfxREG_FACES, the returned ids will represent faces. The element number and
local element face number may be extracted from each face id returned by using the macros cfxEL
EMNUM and cfxFACENUM respectively. The node numbers for the face may be obtained by calling
cfxExportFaceNodes. For details, see cfxExportFaceNodes (p. 56).
The returned pointer points to static data that should be destroyed using cfxExportBoundaryFree.
Subsequent calls to cfxExportBoundaryList will overwrite the array.
3.4.9.6. cfxExportBoundaryGet
int cfxExportBoundaryGet (const int bcidx, const int type, const int index, int *id)
Query the index'th face (type is cfxREG_FACES) or index'th node (type is cfxREG_NODES) that defines
the boundary condition location indexed by bcidx in the current zone. If bcidx is out of range or
type is not recognized or index is out of range (not between 1 and cfxExportBoundarySize), 0
is returned. Otherwise id will contain the identifier of the appropriate node or face defining the
boundary condition location and the function will return index.If type is specified as cfxREG_FACES,
the returned id will represent the identity of a face. The element number and local element face
number may be extracted from the id by using the macros cfxELEMNUM and cfxFACENUM respectively.
3.4.9.7. cfxExportBoundaryFree
void cfxExportBoundaryFree (const int bcidx)
Deallocate any internal data storage associated with the boundary condition defined by bcidx.
3.4.10.1. cfxExportVariableCount
int cfxExportVariableCount(int usr_level)
Query the number of variables at interest level usr_level or below. If usr_level is 0, then the
total number of variables is returned.
60
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.4.10.2. cfxExportVariableSize
int cfxExportVariableSize (int varnum, int *dimension, int *length, int *bdnflag)
Query the dimension, dimension, and length, length, for the variable identified by varnum, which
should be from 1 to the number of variables, returned by cfxExportVariableCount (cfxExportVariableCount (p. 60)). The length, length, will either be 1 or the same as the number of nodes returned
by cfxExportNodeCount (see cfxExportNodeCount (p. 53)). If 1, then the variable has meaningful
values only at the boundary nodes, with a constant value in the interior.
The function also returns bdnflag, which indicates if the variable contains corrected boundary node
values (1) or not (0).
The function returns varnum if successful, or 0 if the variable number is out of range.
3.4.10.3. cfxExportVariableName
char *cfxExportVariableName (int varnum, int alias)
3.4.10.4. cfxExportVariableList
float *cfxExportVariableList (int varnum, int correct)
3.4.10.5. cfxExportVariableGet
int cfxExportVariableGet (int varnum, int correct, int index, float *value)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
61
3.4.10.6. cfxExportVariableFree
void cfxExportVariableFree (int varnum)
Deallocates the internal data storage for the variable identified by varnum for the current zone.
62
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
As shown in Figure 4.1: Integration of a Remeshing Loop into the General Simulation Workflow (p. 63),
in addition to the Preprocessing and Solution steps of the standard simulation workflow, the
remeshing loop includes three additional steps:
Data Extraction
Geometry Modification
Mesh Recreation.
In the context of remeshing, those steps are responsible for completing the following sub-steps;
Data Extraction: Extract any data needed to guide geometry modifications and mesh re-creation from
the most recent analysis results and monitor point values.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
63
Remeshing Guide
Geometry Re-Creation: Update the analysis geometry so that it conforms to that of the most recent
analysis results (that is, account for mesh deformation).
Mesh Re-Creation: Generate new mesh(es) that correspond to the updated geometry.
Preprocessing: Insert the new mesh(es) into the analysis definition, and generate an updated CFXSolver Input File.
Solution: Interpolate the previously generated analysis results onto the new mesh, re-partition the
mesh if a parallel run mode is selected, and continue the solution process.
As described in Remeshing Tab in the CFX-Pre User's Guide, there are two options available for remeshing:
User Defined and ICEM CFD Replay. As outlined in the discussions that follow, the Preprocessing and
Solution steps (and their respective sub-steps) are automatically executed for both remeshing options.
Although the remaining steps are automatically executed for the ICEM CFD Replay remeshing option,
they become the responsibility of a user defined external command for the User Defined remeshing
option.
This remeshing option is ideally suited for users who have previously completed an in-house remeshing
solution involving scripts or varying degrees of manual user-intervention. When this option is used, the
following steps are automatically executed:
64
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
65
Remeshing Guide
sequently defined (unless this has already been done), and a remeshing definition is created with the
following settings:
Set Option to User Defined.
Set the Activation Condition(s) to the previously created interrupt control condition(s).
Set the Location to the mesh region that will be replaced.
Set the External Command to the command that will be used to generate the replacement mesh file.
Set the Replacement File to the name of the file that will be generated by the external command.
The External Command is typically a shell script or batch file that completes the following tasks:
Extract geometry data from the most recent solution of the analysis, and either update or replace the
original geometry. This may be done using mesh-to-geometry conversion tools available in software
such as ANSYS ICEM CFD, or by extracting monitor point data values (for example, the Total Centroid
Displacement variable) using the cfx5mondata executable. For details, see Exporting Monitor Data
from the Command Line in the CFX-Solver Manager User's Guide.
Create a replacement mesh file using the updated or newly generated geometry. This may be done in
any suitable mesh generation application.
Note that some mesh-to-geometry conversion tools are unable to extract the latest mesh coordinates
from the most recent CFX-Solver Results file. If this is the case, then introduce a call to CFX-Pre (within
the External Command) that executes a session file that simply loads the latest CFX-Solver Results file
and writes a new CFX-Solver Input file. That CFX-Solver Input file will contain the required, latest mesh
coordinates.
66
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When this option is used, the following steps are automatically executed:
Extract geometry and mesh control data and write them to the cfx_params.rpl replay file in the
run directory. The data includes:
Centroid displacements for boundaries that are included in ANSYS ICEM CFD Part Maps
Mesh control parameters (for example, ehgt and emax)
Scalar parameters.
Run (in batch) the ANSYS ICEM CFD mesh generation program using the master replay file. This master
replay file executes the following tasks:
Read the cfx_params.rpl file.
Load the reference geometry from the Geometry File identified in the Remesh definition.
Apply displacements (including scaling and any offsets) corresponding to all ANSYS ICEM CFD Part
Map definitions contained in the Remesh definition. This is done using the default geometry replay
file provided, or using the user defined replay file if specified in the ICEM CFD Geometry Control
setting.
Apply ICEM CFD Mesh Controls defined in the Remesh definition. This is done using the provided
controls, or using the user-defined replay file if specified in the ICEM CFD Mesh Control setting.
Load your Mesh Replay File, specified in the Remesh definition.
Export a new mesh for ANSYS CFX.
Insert the new mesh(es) into the analysis definition, and generate an updated CFX-Solver Input file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
67
Remeshing Guide
Interpolate the previously generated analysis results onto the new mesh, re-partition the mesh if a
parallel run mode is selected, and continue the solution process.
You must create the reference Geometry File and the Mesh Replay File because these are specific to
each case. However, the generic default replay files (icemcfd_Remesh.rpl, icemcfd_GeomMod.rpl,
and icemcfd_MeshMod.rpl) used by this option are provided in the <CFXROOT>/etc/Remeshing
directory. These files may be edited to provide installation-wide changes to the ICEM CFD Replay
remeshing behavior. Alternatively, the geometry and mesh modification files may be copied and edited
to provide case-specific changes.
Note
As indicated previously, only translational mesh motion is automatically handled by the ICEM
CFD Replay remeshing option. This is accomplished by applying the displacements of centroids
of boundaries in the ANSYS CFX analysis definition to parts in the ANSYS ICEM CFD geometry.
All other mesh motion (such as rotation about the centroid or another point, or general deformation) will not be applied, and an inconsistency in the analysis geometry before and
after remeshing will be introduced.
Use File > Replay Scripts > Replay Control to begin recording the commands for the Mesh Replay File.
The Replay Control dialog box is displayed.
2.
Revisit all of the mesh related tabs and settings used to generate the mesh, clicking either the Apply or
OK to commit the settings into the Replay Control panel.
3.
4.
In the Replay Control panel, clear the Record (after current) toggle and select Save to write the settings
to replay file.
You may also want to export the mesh that was (re)generated for use in the simulation definition (as
in the next step).
68
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Note
See also the discussion in Mesh Re-Initialization During Remeshing (p. 70).
3.
Define the flow analysis including the definition of one or more solver interrupt controls, as described in
Interrupt Control in the CFX-Pre User's Guide, to identify the condition(s) under which solver execution
will be interrupted.
4.
Define a configuration and complete the ICEM CFD Replay remeshing setup as described in ANSYS ICEM
CFD Replay Remeshing in the CFX-Pre User's Guide. The Geometry File and Mesh Replay File created
above are referenced here. Note also, that references to one or more of the previously defined solver interrupt control conditions are required to activate remeshing.
5.
Complete any execution controls for the simulation and either start the solver or write the CFX-Solver
Input file for later use.
The first instance of remeshing occurred when the solver was interrupted after the third time step.
Following this instance of remeshing, all CFX-Solver Results files (such as transient, backup, and
remeshing) contained in the run directory, case_001.dir, were moved into the final solution directory,
case_001. The results file written when the solver was interrupted before remeshing was renamed to
3_oldmesh.res. Any text output to the console window during remeshing was redirected to the file
named 3_remesh.out, which is also placed in the final solution directory.
The second, and currently running, instance of remeshing began when the solver was interrupted after
the fifth time step. The results file written by the solver still has the generic name, res, and monitor
data (contained in the mon file) has not yet been inserted into the results file.
Just after inserting the new mesh(es) into the analysis definition, the files contained in the final solution
and run directories change slightly. The results and console output files are renamed (to
5_oldmesh.res and 5_remesh.out, respectively) and moved from the run directory into the final
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
69
Remeshing Guide
solution directory. An automatically generated session file, meshUpdate.pre, is used by CFX-Pre to
generate the updated the solver input file, 5_newmesh.def, and each of these files are present in the
run directory. These files are, however, replaced or removed during the next instance of remeshing or
when the analysis ends and the run directory is deleted.
Note
Total Centroid Displacement is the sum of total mesh displacement and an offset
vector. The value of the offset is determined by the displacement of the boundarys centroid
from its original position to its initial position. When using Total Centroid Displace
ment in a non-remeshing case, the original and the initial position are the same, resulting
in an offset value of zero. In this case, there seems to be no difference between the variables,
Total Centroid Displacement and Total Mesh Displacement. However, when
using Total Centroid Displacement in a remeshing case, the original position is
defined at the start of the simulation, while the initial position is defined after the last remesh;
this results in an offset contribution that is non-zero.
An example of the expressions used to evaluate an applied displacement that includes the required
offset to account for mesh re-initialization is given below. In this example, the applied displacement is
evaluated as the desired displacement minus the value of the desired displacement at the Mesh
Initialisation Time.
Disp Desired = 1[m]*0.5*(1-cos(2.[s^-1]*pi*t))
Disp Mesh ReInit = 1[m]*0.5*(1-cos(2.[s^-1]*pi*Mesh Initialisation Time ))
Disp Applied = Disp Desired - Disp Mesh ReInit
70
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Additional Considerations
the licenses for other users when remeshing is not executing, it also introduces the possibility that required licenses are not available when they are needed for remeshing.
This model for software license handling may cause problems in multi-user environments, but work is
underway to provide a broader range of handling options for future releases.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
71
72
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
73
5.1.4. Solving the Mesh Displacement Equations and Updating Mesh Coordinates
During each outer iteration or timestep, the mesh displacement equations are solved to the specified
convergence level and the resulting displacements are applied to update the mesh coordinates. This
occurs before proceeding to solve the general transport (for example, hydrodynamics, turbulence, and
so on) equations.
Unlike other equation classes, the convergence level (that is, controls and criteria) applied to mesh
displacement equations is unaffected by changes made to the basic settings for all other equations.
The default convergence controls and criteria for the mesh displacement equation are tabulated below,
and are changed by visiting the Mesh Displacement entry in the Equation Class Settings tab under
Solver Control.
Setting
Value
Residual Type
RMS
Residual Target
1.0E-4
Mesh folding occurs and is detected when the displacements are used to update the mesh coordinates.
Folded meshes can occur if the displacement equations are incompletely solved. In this case, the unconverged displacement solution field does not vary smoothly enough to ensure that adjacent mesh nodes
move by similar amounts.
74
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh Deformation
Figure 5.1: Original Undeformed Mesh
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
75
76
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh Deformation
Figure 5.3: Deformed Mesh with "meshdisp diffusion scheme = 3"
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
77
Restart Simulation
Restart Behavior
No Deformation
Deformation
Deformation
No Deformation
Deformation
Deformation
If the restart is a transient run with the initial time set to Value, then the final mesh from the initial run will serve as the initial mesh
for the restart simulation.
78
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Load the fluids results file, from which you want to transfer results, into CFD-Post
2.
Select File > Import > Import Mechanical CDB Surface. The Import Mechanical CDB Surface dialog
box appears.
3.
4.
Select File > Export > Export Mechanical Load File. The Export Mechanical Load File dialog box appears.
5.
In the Export Mechanical Load File dialog box, select a filename to which to save the data. For the Location parameter value, select the imported ANSYS mesh object. Under File Format select ANSYS Load
Commands (FSE or D). (Alternatively, you can select WB Simulation Input (XML) to get XML output.)
Also select the appropriate data to export: Normal Stress Vector, Tangential Stress Vector, Stress Vector,
Heat Transfer Coefficient, Heat Flux, or Temperature. Click Save, and the data file is created.
The one-way FSI data transfer described above is performed automatically when using the FSI: Fluid
Flow (CFX) > Static Structural custom system in ANSYS Workbench. For details, see the FSI: Fluid Flow
(ANSYS CFX) > Static Structural in the Workbench User's Guide section in the ANSYS documentation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
79
80
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.
81
82
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.
83
84
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
85
power of the
where
is the
derivative of the exact solution at a given location. An example is a central difference
for a spatial derivative:
(6.5)
This formulation has a truncation error of order 2 and is therefore second-order accurate. The overall
truncation error order of the spatial discretization scheme is determined by the lowest order truncation
error after all terms have been discretized.
In the
. First-order
tional to
. This term then contributes to the diffusion term (numerical/false diffusion), which is
most dangerous in 3D problems with grid lines not aligned to the flow direction. These schemes enhance
the dissipation property of the numerical algorithm (see for example, Ferziger and Peric [141 (p. 365)])
and are not desirable in high-quality CFD simulations.
From a practical standpoint, it is important to understand that for a first-order method, the error is reduced to 50% by a doubling of the grid resolution in each spatial direction. For a second-order method,
it is reduced to 25% for the same grid refinement.
86
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This equation can be converged completely (left hand side goes to zero) in in order to solve the
original exact implicit formulation given by Equation 6.7 (p. 86). It is obvious that it is not necessary to
converge the coefficient loop to zero, while the right hand side has a finite (first-order) error in
. It
can be shown that for a first-order time integration, one coefficient loop is consistent with the accuracy
of the method. In a case where a second-order accurate scheme is used in the time derivative, two
coefficient loops will ensure overall second-order accuracy of the method. Note, however, that this is
correct only if the coefficient loops are not under-relaxed in any way.
For explicit methods, no coefficient loops are required and the time discretization error is defined solely
from a Taylor series expansion.
87
of the grid spacing. The subscript, , refers to the current level of grid resolution. Solutions on different
grids are represented by different subscripts.
The assumption for the derivation of an error estimate is that the order of the numerical discretization
is known. This is usually the case. Assuming a second-order accurate method, the above expansion can
be written for two different grids:
(6.15)
(6.16)
88
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
It can be shown (Roache [139 (p. 365)]) that the exact relative error and the approximation are related
by:
(6.21)
Equation 6.20 (p. 89) can also be divided by the range of
prevent the error to become infinite as
goes to zero.
In order to arrive at a practical error estimator, the following definitions are proposed:
Field error:
(6.22)
Maximum error:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
89
(6.23)
RMS error:
(6.24)
It must be emphasized that these definitions do not impose an upper limit on the real error, but are
estimates for the evaluation of the quality of the numerical results. Limitations of the above error estimates are:
The solution has to be smooth
The truncation error order of the method has to be known
The solution has to be sufficiently converged in the iteration domain
The coarse grid solution has to be in the asymptotic range.
For three-dimensional simulations, the demand that the coarse grid solution be in the asymptotic range
is often hard to ensure. It is therefore required to compute the error for three different grid levels, to
avoid fortuitous results. If the solution is in the asymptotic range, the following indicator should be
close to constant:
(6.27)
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.
91
92
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
93
94
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.
95
96
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.
97
98
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.
99
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.
4.
Can be computed inside the solver and displayed during run time (optimal).
It is optimal if the variable can be computed during run time and displayed as part of the convergence
history. This enables you to follow the development of the target variable during the iterative process.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
101
It should be noted that under strong grid and timestep refinement, sometimes flow features are resolved
that are not relevant for the simulation. An example is the (undesirable) resolution of the vortex shedding
at the trailing edge of an airfoil or a turbine blade in a RANS (p. 91) simulation for very fine grids and
timesteps. Another example is the gradual switch to a DNS (p. 84) for the simulation of free surface
flows with a Volume of Fluid (VOF) method (for example, drop formation, wave excitation for free
surfaces, and so on). This is a difficult situation, as it usually means that no grid/timestep converged
solution exists below the DNS (p. 84) range, which can usually not be achieved.
102
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.
103
6.4.1.1. Description
For CFD code verification, convergence can be tested against exact analytical solutions like:
Convection of disturbances by a given flow
Laminar Couette flow
Laminar channel flow.
For the verification of newly implemented models, verification can only in limited cases be based on
analytical solutions. An example is the terminal rise velocity of a spherical bubble in a calm fluid.
In most other cases, simple experiments are used for the verification. It is recommended that you
compute the test cases given by the model developer in the original publication of the model, or other
trustworthy publications. Quite often experimental correlations can be applied, without the need for
comparison with one specific experiment. For instance for turbulence model verification, the most frequently used correlations are those for flat plate boundary layers.
6.4.1.2. Requirements
The only requirement for verification data is that they enable a judgement of the correct implementation
of the code and/or the models. This requires information from other sources concerning the performance
of the model for the test case. Strictly speaking, it is not required that the simulations are in good
agreement with the data, but that the differences between the simulations and the data are as expected.
The test suite for model verification must be diverse enough to check all aspects of the implementation.
As an example, a fully developed channel flow does not enable a test of the correct implementation
of the convective terms of a transport equation. The test suite should also enable testing the correct
interaction of the new model with other existing features of the software.
Software verification for physical models should be carried out in the same environment that the enduser has available. Testing of the new features in an expert environment might miss some of error
sources, such as the GUI.
Verification cases should be selected before the model is implemented. They must be considered an
integral part of the model implementation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.4.2.1. Description
Examples of validation cases are flows with a high degree of information required to test the different
aspects of the model formulation. In an ideal case, a validation test case should be sufficiently complete
to enable an improvement of the physical models it was designed to evaluate. Increasingly, validation
data are obtained from DNS (p. 84) studies. The main limitation here is in the low-Reynolds number
and the limited physical complexity of DNS (p. 84) data. Typically, validation cases are geometrically
simple and often based on two-dimensional or axisymmetric geometries.
6.4.2.2. Requirements
Validation cases are selected to be as close as possible to the intended application of the model. As an
example, the validation of a turbulence model for a flat plate boundary layer does not ensure the applicability of the model to flows with separation (as is known from the
model). It is well accepted
by the CFD community and by model developers that no model (turbulence, multi-phase or other) will
be able to cover all applications with sufficient accuracy. This is the reason why there are always multiple
models for each application. The validation cases enable the CFD user to select the most appropriate
model for the intended type of application.
Test case selection requires that the main features of the CFD models that are to be tested be clearly
identified. They must then be dominant in the validation case. Validation cases are often single physics
cases, but it will be more and more necessary to validate CFD methods for combined effects.
The requirements for validation cases are that there should be sufficient detail to be able to compute
the flow unambiguously and to evaluate the performance of the CFD method for a given target application.
Completeness of information is one of the most important requirements for a validation test case. This
includes all information required to run the simulation, like:
Geometry
Boundary conditions
Initial conditions (for unsteady flows)
Physical effects involved.
While the first three demands are clearly necessary to be able to set up and run the simulation, the
knowledge of all physical effects taking place in the experiment is not always considered. However, it
is crucial to have a clear understanding of the overall flow in order to be able to judge the quality of
a test case. Typical questions are:
Is the flow steady-state or does it have a large-scale unsteadiness?
Is the flow two-dimensional (axisymmetric, for example)?
Are all the relevant physical effects known (multi-phase, transition, and so on)?
Have any corrections been applied to the data and are they appropriate?
Was there any measurement/wind or water tunnel interference?
Completeness of information is also essential for the comparison of the simulation results with the experimental data. A validation case should have sufficient detail to identify the sources for the discrepRelease 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
105
6.4.3.1. Description
For an aerodynamic study, a typical hierarchy would be:
Verification - Flat plate
Validation - Airfoil or wing
Demonstration - Complete aircraft.
Similar hierarchies can be established for other industrial areas.
106
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.4.3.2. Requirements
Typically, the detail of the experimental data is much lower than for verification or validation cases.
Completeness of information to set up the test case is of similar importance as for validation cases and
involves the same aspects as listed below:
Geometry
Boundary conditions
Initial conditions (for unsteady flows)
Physical effects involved.
Typically, the level of completeness of the data for demonstration cases is much lower than for validation
cases. It is therefore even more essential to identify the missing information and to carry out sensitivity
studies with respect to these data.
In terms of postprocessing, demonstration cases often do not provide a high degree of detail. They are
usually not appropriate to identify specific weaknesses in the physical models or the CFD codes. Typically,
only the point data or global parameters, as efficiencies, are provided.
Even though the density of data is usually lower, the quality should satisfy the same criteria as for validation cases. Error estimates are desirable and so are independent measurements.
Due to the limited amount of data available, the information is usually not sufficient to carry out consistency checks.
The requirements in terms of availability/openness are usually lower than for validation cases, as the
demonstration applies usually to a smaller audience. A demonstration case might be carried out for a
single customer or one specific industrial sector. It has to be ensured, as in all cases, that the data can
be shown to the target audience of the simulation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
107
108
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.
109
NPSH is the Net Positive Suction Head, a quantity directly related to the inlet total pressure by the relation:
(7.1)
110
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Liquid Pumps
where pT,inlet is the inlet total pressure, pv is the vapor pressure, is density, and g is the acceleration
due to gravity. As the inlet total pressure drops, so does the NPSH value, and the amount of cavitation
increases.
To generate this diagram, RPM and flow rate are fixed, and the pressure rise is measured at progressively
lower inlet total pressures. For the part of the test where the inlet total pressure is sufficiently high to
prevent cavitation, the pressure rise across the pump is constant, equal to the amount predicted by
the first performance diagram. This results in a horizontal trend in the performance curve as the inlet
total pressure is dropped. Because the pressure rise remains constant, the total pressure at the outlet
drops by the same amount as at the inlet. Using CFX software, a mass flow outlet boundary condition
can be specified to fix the flow rate while the inlet total pressure is varied.
When the inlet total pressure reaches a sufficiently low value, cavitation occurs. A further reduction in
inlet total pressure causes more cavitation, which almost always causes a large loss of pressure rise. In
rare cases, pressure rise can actually increase slightly with small amounts of cavitation. Even in such
cases, however, a further increase in cavitation causes a sudden loss of pressure rise. In the lab, the
pressure rise will eventually become insufficient to maintain the required flow rate. Using CFX software,
the solution will eventually fail to converge. Before this point, data should be collected with a sufficient
resolution (sufficiently small changes in inlet pressure) to resolve the part of the performance curve
where the pressure starts to drop. The point of cavitation is often marked by the NPSH at which the
pressure rise has fallen by a few percent.
Set up a simulation with cavitation turned on and pressure levels set high enough to avoid levels of
cavitation that significantly affect pressure rise.
If you have trouble getting a converged solution, try running a simulation with cavitation turned
off, then use the result as an initial guess for a simulation with cavitation turned on.
2.
3.
Calculate the pressure rise across the pump and the NPSH value, then plot a point in the performance
diagram.
4.
5.
Repeat starting from step 2, using the previous solution as the initial guess, until cavitation has caused a
significant loss of pump head.
7.1.4. Setup
To facilitate setting up typical domain settings for the cavitation of water, you may load a single-domain
mesh, then run the template .ccl file:
CFX/etc/model-templates/cavitating_water.ccl
This file should be examined in a text editor before using it so that you understand which settings it
specifies.
For the domain fluids list, specify both a liquid and a vapor for the same material. In most cases, it is
sufficient to use a constant-density vapor.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
111
2.
The inlet boundary condition should specify that the volume fraction of vapor is zero.
Turbulence models should be chosen as usual (for example, k-epsilon or SST). For turbulence induced
cavitation, consider using the DES model.
For advection scheme, use high resolution, or a specified blend factor of unity.
If editing a material, remember that the vapor pressure is on an absolute scale; it does not depend on
the specified reference pressure.
Cavitation models cannot be combined with other types of interphase mass transfer, such as thermal
phase changes.
7.1.6. Postprocessing
A contour plot of volume fraction for the vapor can show where cavitation bubbles exist.
To calculate the inlet and outlet pressures, use the function calculator.
112
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.1.1. Setup
8.1.1.1. Steady-state vs. Transient
Most simulations are steady-state, particularly for stationary gas turbines that operate at a constant
load.
Non-Premixed Combustion
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
113
Non-Premixed Combustion
8.1.2. Reactions
During the initial analysis of a combustor, the highest values of temperature and outgoing heat flux
are likely to be of primary concern. For this purpose, a single-step Eddy Dissipation reaction can be
used. Such a reaction is likely to overpredict the temperature, and will not predict emissions correctly,
but can provide a conservative indicator of the expected temperature levels.
Other reaction steps might then be added to the simulation to account for the formation of combustion
byproducts. Each reaction step has its own separate time scale. As a result, convergence can become
very difficult when a multi-step reaction contains more than about 5 steps.
114
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Depending on the location of the SOLVER CONTROL block, the temperature damping may be applied
to a particular domain or phase. Set the Temperature Damping Limit to 0 so that positive
damping is always applied. The Under Relaxation Factor can be set to multiply changes in
temperature by a value between 0 and 1. You should try a factor of 0.2 if you are having trouble converging a solution.
8.1.4. Postprocessing
Some of the most common plots to create in CFD-Post include:
Mass Fractions: fuel, O2, products, intermediate species (CO), pollutants (NO)
Turbulent Mixing Time Scale (Eddy Dissipation / Turbulent Kinetic Energy)
Reaction Rates
The variable "<my reaction>.Molar Reaction Rate" is available for every "Single Step" reaction (EDM,
FRC or combined model).
Plots of the turbulent Damkhler number (the ratio of the turbulent time scale to the chemical time scale)
8.2.1. Set Up
Most simulations are set up as transient. The choice of timestep is generally model dependent, but will
usually fall into the range 0.5 s to 2 s. The Total Energy heat transfer model should be selected to fully
model buoyancy.
Note
When modeling buoyancy, it is very important to correctly specify the buoyancy reference
density when opening boundary conditions are used.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
115
8.2.3. Postprocessing
The most common parameters of interest in a combusting fire model are simulation-dependent, but
will usually include one of more of the following:
Temperature
Products (including carbon monoxide and other toxins)
Visibility
Wall Temperature
Wall convective and radiative heat fluxes
116
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.1.1.1. Buoyancy
Most HVAC cases involve flow that is affected by buoyancy. Buoyancy can be activated on the Basic
Settings tab of the Domain details view.
Two buoyancy models are available: Full and Boussinesq. These models are automatically selected according to the properties of the selected fluid(s).
The Full buoyancy model is used if fluid density is a function of temperature and/or pressure (which includes
all ideal gases and real fluids). In this case, a Buoyancy Reference Density must be set as the expected average
density of the domain.
1
HVAC is a reference to Heating, Ventilation (or Ventilating), and Air Conditioning. Often, it is also used as a reference to refrigeration.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
117
Note
If any solid domain uses the Monte Carlo radiation model (that is, if it uses radiation at all),
then all fluid domains using a radiation model must use the Monte Carlo model.
The material used in a domain that transmits radiation has radiation properties that specify Absorption
Coefficient, Scattering Coefficient, and the Refractive Index. These properties may be edited in the
Materials details view.
Note
Radiation modeling cannot be used with Eulerian multiphase simulations.
Thermal radiation properties are specified on the Boundary Details panel for each boundary of a domain
that transmits radiation. For opaque surfaces, the properties that must be specified are: Emissivity and
Diffuse Fraction. For inlets, outlets, and openings, you may specify either the Local Temperature or
an External Blackbody Temperature.
118
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
HVAC Simulations
The Monte Carlo and Discrete Transfer models allow radiation sources to be specified on the Sources
panel for any subdomain or wall boundary. For subdomains, radiation sources per unit volume are
specified; for boundaries, radiation fluxes are specified. Radiation sources may be directed or isotropic.
Multiple isotropic sources and up to one directed source may be specified for any given wall boundary
or subdomain.
Material properties related to radiation, thermal radiation properties for boundaries, and source strengths
can be specified as expressions that depend on one or more of the built-in variables: Wavelength in
Vacuum (or wavelo), Frequency (or freq), Wavenumber in Vacuum (or waveno).
A domain representing an opaque solid should not have a radiation model set. The boundaries of radiation-transmitting domains that interface with such a solid domain should be specified as opaque.
External windows of a room can be modeled as solid domains which interface with the room (air) domain;
they may also be modeled as an external boundary of the room domain. In either case, the exterior
boundary must be modeled as an opaque wall. A diffuse and a directed radiation source emitted from
the opaque surface can be used to simulate sunlight. In order to simulate the motion of the sun, the
direction vector for directed radiation can be specified by CEL expressions that depend on time (t).
Radiation escaping through a window can be modeled by specifying a non-zero emissivity (to cause
radiation absorption) and either:
Specifying a heat transfer coefficient via a CEL expression that accounts for the thermal energy lost
Specifying a fixed wall temperature.
When using solid domains that transmit radiation, a spectral radiation model is recommended. If a
simulation contains no solid domains that transmit radiation, a gray radiation model can be used for
rough calculations but a spectral model should be used for more detailed modeling.
119
9.1.1.5. Fans
Fans should be represented by momentum sources if they are embedded in the domain. Fans can also
be represented by an inlet or outlet boundary condition or both.
9.1.1.6. Thermostats
A Thermostat can be defined using a User Fortran routine. Refer to the HVAC tutorial for details.
120
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
10.1.1. Setup
The choice of a steady-state or transient simulation depends on the type of simulation you want to
analyze. For example, an analysis using a steady-state simulation is often satisfactory for monitoring
global quantities. A transient simulation can be used to observe transient effects, such as recirculation
zones.
Most bubble columns use two fluids: one continuous fluid and one dispersed fluid. The
model is
typically used in the continuous fluid, and the dispersed phase zero equation is used for the dispersed
phase.
Non-drag forces become less significant with increasing size of the bubble column. For smaller columns,
non-drag forces may be significant.
The Grace drag model is recommended, especially for modeling air/water.
121
10.1.3. Postprocessing
The main design objective for bubble columns is efficient mixing, which is strongly influenced by the
dispersed phase. Mixing efficiency can be measured in a number of ways. One example is to measure
the gas hold-up in the riser as a function of the superficial gas velocity. This would require solving for
the gas volume fraction for a number of simulations, each with a different mass flow rate of the dispersed
phase at the sparger. Another option would be to use the same input parameters, this time measuring
the liquid velocity in the downcomer.
10.2.1. Setup
Mixing vessels generally use two domains. The impeller domain is a small, rotating domain that encloses
the impeller. The rest of the tank is represented by a stationary domain. Different types of domain interfaces are available for the connection between the stationary and the rotating domains. The recommended types are:
Frozen Rotor: faster but cruder
Transient: slower (transient analysis) but much more accurate
The choice of a steady-state or transient simulation is dependent on the type of interface that exists
between the two domains. Where a Frozen Rotor interface is used, a steady-state simulation is usually
carried out. Performing a transient simulation allows you to use the transient rotor/stator frame change
model to account for transient effects.
The initial guess for velocity can be set to zero in the relative frame for each domain.
122
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
10.3.1. Setup
The choice of using a steady-state or transient simulation is problem-dependent. There are two models
available for free surface flow: homogeneous and inhomogeneous. The homogeneous model can be
used when the interface between the two phases remains well defined and none of the dispersed phase
becomes entrained in the continuous phase. An example of homogeneous free surface flow is flow in
an open channel. A breaking wave is one example of an inhomogeneous flow case.
The same choice of turbulence model as for single phase simulations is appropriate. When using the
inhomogeneous model, you should use the homogeneous turbulence option in CFX-Pre. The Buoyancy
Reference Density should be set to the density of the least dense fluid.
When setting boundary conditions, the volume fractions can be set up using step functions to set the
liquid height at each boundary. An outlet boundary having supercritical flow should use the Supercritical option for Mass And Momentum. This requires that you set the relative pressure of the gas above
the free surface at the outlet.
For most free surface applications, the initial conditions can use step functions to set the volume fractions
of the phases as a function of height. The initial condition for pressure should be set to hydrostatic
conditions for the specified volume fraction initialization and the buoyancy reference density.
The timestep for free surface flows should be based on a L/U (Length/Velocity) scale. The length scale
should be a geometric length scale. The velocity scale should be the maximum of a representative flow
velocity and a buoyant velocity, which is given by:
In addition, it is sometimes helpful to reduce the timestep for the volume fraction equations by an order
of magnitude below that of the other equations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
123
124
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
125
126
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11.1.4. Postprocessing
CFD-Post offers a powerful array of postprocessing tools for turbomachinery applications, including
turbo-specific plots and performance calculation macros. To use many of the Turbo Post tools, you must
first initialize each domain by specifying the locations of turbo regions and instancing information.
The Turbo Calculator from the Turbo menu in CFD-Post allows you to perform calculations on the type
of application you are modeling. The macro prints a report in HTML showing a number of calculated
variables, including torque, head and flow coefficients, blade loading, and efficiency.
You can also create your own macros to customize postprocessing using Power Syntax, which is based
on the Perl language.
The optimal performance characteristics can be determined by creating a curve of pressure ratio versus
flow rate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
127
In Figure 11.1: Flow Rate vs Pressure Rise for a Gas Compressor (p. 128), Region 1 shows an area where
a large change in mass flow rate represents a small change in pressure rise. When modeling flow in
this region, a mass flow rate specified outlet is better than a pressure specified outlet. Region 2 shows
an area where a small change in flow rate represents a large pressure variation. This region is close to
choking, and a pressure-specified or exit corrected mass flow rate outlet is the best choice. For details,
see Convergence Tips (p. 126).
CFD-Post provides a performance macro for gas compressors and turbines.
128
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11.2.3. Postprocessing
If a total pressure inlet boundary condition is used (recommended where possible), it will also provide
a useful starting point for streamlines that are colored by total pressure during postprocessing. The
uniform total pressure distribution means lines will begin with a uniform color. It may be harder to
visually resolve these pressure values if an inlet velocity profile is used.
CFD-Post provides a performance macro for liquid pumps and turbines.
129
11.3.3. Postprocessing
A similar postprocessing approach to pumps and turbines is also useful for fans and blowers. For details,
see Postprocessing (p. 129). See the following figure for a plot of flow rate vs pressure rise for a blower.
130
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The dynamic re-intersection of the interface at the start of each time step may result in a
different interface topology, which in turn may require more or less memory. Unlike the
static interfaces (Frozen Rotor, Stage), which are only intersected once (first time step of a
serial run or partitioner in a parallel run), the initial memory estimate might not be sufficient
for the whole run. To avoid potential memory problems, it might be necessary to start the
simulation with more conservative (larger) memory factors.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
131
132
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.
133
134
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.
135
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11.6.3. Selecting an Appropriate Transient Blade Row Model with Pitch Change
ANSYS CFX provides a variety of transient blade row pitch change models to be used on a diverse range
of turbomachinery flow problems:
11.6.3.1. Profile Transformation
11.6.3.2.Time Transformation
11.6.3.3. Fourier Transformation
137
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.
139
140
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
141
142
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
143
Figure 12.2: SAS simulation of flow past a circular cylinder (SAS-SST model)
The SAS concept is described in much detail in the cited references and will not be repeated here.
However, the basic model formulation must be provided for a discussion of the models characteristics.
The difference between standard RANS and SAS models lies in the treatment of the scale-defining
144
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
for
(12.1)
(12.2)
(12.3)
The main new term is the one including the von Karman length scale
, which does not appear in
any standard RANS model. The second velocity derivative allows the model to adjust its length scale
to those structures already resolved in the flow. This functionality is not present in standard RANS
models. This leads to the behavior shown in Figure 12.2 (p. 144), which agrees more closely with the
experimental observations for such flows.
The
term can be transformed and implemented into any other scale-defining equation resulting in
SAS capabilities as in the case of the SAS-SST model. For the SAS-SST model, the additional term in the
-equation resulting from the transformation has been designed to have no (or at least minimal) effect
on the SST models RANS performance for wall boundary layers. It can have a moderate effect on free
shear flows (Davidson, 2006 [4] (p. 227)).
The SAS model will remain in steady RANS mode for wall bounded flows, and can switch to SRS mode
in flows with large and unstable separation zones (see Section 12.2 (p. 164)).
145
(12.4)
where
is the maximum edge length of the local computational cell. The actual formulation for a
two-equation model (for example, the -equation of the
model) is:
(12.5)
(12.6)
(12.7)
(12.8)
146
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
function
above. For this reason, the natural shielding of the model based on the mesh length definition, , can
be reduced. The mesh length scale used in the SDES model is defined as follows:
(12.10)
The first part represents the conventional LES grid length scale definition, and the second part is again
based on the maximum edge length as in the DES formulation. However, the factor 0.2 ensures that
for highly stretched meshes, the grid length scale is a factor of 5 smaller than for DES/DDES. Since the
grid length scale enters quadratically into the definition of the eddy viscosity in LES mode, this means
a reduction by a factor of 25 in such cases. It will be shown that this drastically reduces the frequently
observed problem of slow transition of DES/DDES models from RANS to LES. Note that the combination
of this more aggressive length scale with the conventional DDES shielding function would severely
reduce the shielding properties of DDES and is therefore not recommended.
The SDES constant
is also different from in the DES/DDES formulation, where it is calibrated based
on decaying isotropic turbulence (DIT) with the goal of matching the turbulence spectrum relative to
data after certain running times. However, in engineering flows, one typically has to deal with shear
flows, for which a reduced Smagorinsky constant should be used. This is achieved by setting
=0.4.
The combination of the re-definition of the grid length scale and the modified constant leads to a reduction in the eddy viscosity by a factor of around 60 in separating shear flows on stretched grids. It
will be shown later that this results in a much more rapid transition from RANS to LES.
The shielding function
The following test case shows the improved shielding properties of SDES/SBES models relative to DDES.
The flow is a diffuser flow in an axisymmetric geometry featuring a small separation bubble. Due to the
adverse pressure gradient, the boundary layer grows strongly and shielding is difficult to achieve due
to the strong increase in .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
147
a standard RANS grid is used with steps in the streamwise and circumferential directions of
and
respectively (the grid step in the circumferential direction is changing in the radial
direction due to the axisymmetric geometry). Here
is the boundary layer thickness at the
inlet section. The height of the wall cell is chosen to satisfy the condition
in the entire domain
and around 30 cells cover the boundary layer.
Figure 12.3: The domain and grid for the separated flow in CS0 diffuser
As seen from the contours of the SBES and DDES blending functions shown in Figure 12.4: Contours of
blending functions overset by vorticity iso-lines for CS=0 diffuser for SBES and DDES models (p. 149),
SBES covers the entire boundary layer including the rapid growth area of the boundary layer due to
the separation bubble, while DDES preserves only the portion of the domain at the inlet. This means
that under adverse pressure gradient conditions, the shielding properties of DDES are substantially
impaired.
148
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Similar observations can be made for the eddy viscosity fields shown in Figure 12.5: Contours of eddy
viscosity ratio for CS0 diffuser for SBES and DDES models (p. 150). The eddy viscosity levels of SBES correspond to those of the SST model (not shown), while the DDES model produces much reduced levels
in the adverse pressure gradient region.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
149
150
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.
151
(12.14)
where is the spatial filter. Filtering the Navier-Stokes equations results in the following form (density
fluctuations neglected):
(12.15)
The equations feature an additional stress term due to the filtering operation:
(12.16)
Despite the difference in derivation, the additional sub-grid stress tensor is typically modeled as in RANS
using an eddy viscosity model:
(12.17)
The important practical implication from this modeling approach is that the modeled momentum
equations for RANS and LES are identical if an eddy-viscosity model is used in both cases. The modeled
Navier-Stokes equations have no knowledge of their derivation. The only information they obtain from
the turbulence model is the level of the eddy viscosity. Depending on that, the equations will operate
in RANS or LES mode (or in some intermediate mode). The formal identity of the filtered Navier-Stokes
and the RANS equations is the basis of hybrid RANS-LES turbulence models, which can obviously be
introduced into the same set of momentum equations. Only the model (and the numerics) have to be
switched.
Classical LES models are of the form of the Smagorinsky, 1963 [29] (p. 229) model:
(12.18)
where is a measure of the grid spacing of the numerical mesh, is the strain rate scalar and
is a
constant. This is obviously a rather simple formulation, indicating that LES models will not provide a
highly accurate representation of the smallest scales. From a practical standpoint, a very detailed
modeling might not be required. A more appropriate goal for LES is not to model the impact of the
unresolved scales onto the resolved ones, but to model the dissipation of the smallest resolved scales.
This can be seen from Figure 12.6 (p. 153) showing the turbulence energy spectrum of a Decaying Isotropic Turbulence (DIT) test case; that is, initially stirred turbulence in a box, decaying over time (ComteBellot and Corrsin, 1971 [3] (p. 227)).
is the turbulence energy as a function of wave number .
Small values represent large eddies and large values represent small eddies. Turbulence moves
down the turbulence spectrum from the small wave number to the high wave numbers. In a fully resolved
simulation (Direct Numerical Simulation, or DNS), the turbulence is dissipated into heat at the smallest
scales (
in Figure 12.6 (p. 153)), by viscosity. The dissipation is achieved by:
(12.19)
152
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
LES computations are usually performed on numerical grids that are too coarse to resolve the smallest
scales. In the current example, the cut-off limit of LES (resolution limit) is at around
. The velocity
gradients of the smallest resolved scales in LES are therefore much smaller than those at the DNS limit.
The molecular viscosity is then not sufficient to provide the correct level of dissipation. In this case, the
proper amount of dissipation can be achieved by increasing the viscosity, using an eddy-viscosity:
(12.20)
The eddy viscosity is calibrated to provide the correct amount of dissipation at the LES grid limit. The
effect can be seen in Figure 12.6 (p. 153), where a LES of the DIT case is performed without a LES model
and with different LES models. When the LES models are activated, the energy is dissipated and the
models provide a sensible spectrum for all resolved scales. LES is not modeling the influence of unresolved
small scale turbulence onto the larger, resolved scales, but the dissipation of turbulence into heat (the
dissipated energy is typically very small relative to the thermal energy of the fluid and does not have
to be accounted for, except for high Mach number flows).
Figure 12.6: Turbulence spectrum for DIT test case after t=2. Comparison of results without
Sub-Grid Scale model (no LES) with WALE and Smagorinsky LES model simulations
This discussion shows that LES is a fairly simple technology, which does not provide a reliable backbone
for modeling. This is also true for more complex LES models like dynamic models. Dynamic eddy viscosity
LES models (see Geurts, 2004 [12] (p. 228)) are designed to estimate the required level of dissipation at
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
153
154
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Reynolds number dependence of wall-resolved LES can be estimated for a simple periodic channel
flow as shown in Figure 12.8 (p. 155) ( -streamwise, -wall-normal, -spanwise, is the channel height).
(12.22)
(12.23)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
155
(12.24)
(12.25)
500
103
104
105
).
The Re number scaling for channel flows could be reduced by the application of wall functions with
increasing
values for higher
numbers. However, wall functions are a strong source of modeling
uncertainty and can undermine the overall accuracy of simulations. Furthermore, the experience with
RANS models shows that the generation of high quality wall-function grids for complex geometries is
a very challenging task. This task is even more challenging for LES applications, where you would have
to control the resolution in all three space dimensions to conform to the LES requirements (for example,
and
then depend on
).
For external flows, there is an additional Re number effect resulting from the relative thickness of the
boundary layer (for example, boundary layer thickness relative to chord length of an airfoil). At high Re
numbers, the boundary layer becomes very thin relative to the bodys dimensions. Assuming a constant
resolution per boundary layer volume, Spalart et al., 1997 [30] (p. 229), 2000 [31] (p. 229) provided estimates
of computing power requirements for high Reynolds number aerodynamic flows under the most favorable
assumptions. Even then, the computing resources are excessive and will not be met even by optimistic
estimates of computing power increases for several decades, except for simple flows.
While the computing requirements for high Re number flows are dominated by the relatively thin
boundary layers, the situation for low Re number technical flows is often equally unfavorable, as effects
such as laminar-turbulent transition dominate and need to be resolved. Based on reduced geometry
156
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Cells
Time steps
Inner
loops per
time step
Ratio to
RANS
RANS
~106
~102
LES
~108109
~104105
10
105107
Considering that the goal of turbomachinery companies is the simulation of entire machines (or at least
significant parts of them), it is unrealistic to assume that LES will become a major element of industrial
CFD simulations even for such low Re number (
) applications. However, LES can play a role in
the detailed analysis of elements of such flows like cooling holes or active flow control.
All the above does not mean that LES of wall-bounded flows is not feasible at all, but just that the costs
of such simulations are high. Figure 12.9 (p. 158) shows the grid used for a LES around a NACA 0012
airfoil using the WALE model. The computational domain is limited in the spanwise direction to 5% of
the airfoil chord length using periodic boundary conditions in that direction. At a Reynolds number of
a spanwise extent of 5% has been estimated as the minimum domain size that allows
turbulence structures to develop without being synchronized across the span by the periodic boundary
conditions. The estimate was based on the boundary layer thickness at the trailing edge as obtained
from a precursor RANS computation. This boundary layer thickness is about 2% chord length. The grid
had 80 cells in the spanwise direction and overall
cells. The simulation was carried out at an
angle of attack of
, using ANSYS Fluent in incompressible mode. The chord length was set to
, the freestream velocity,
and the fluid is air at standard conditions. The
time step was set to
giving a Courant number of
inside the boundary layer.
Figure 12.10 (p. 159) shows turbulence structures near the leading edge (a) and the trailing edge (b).
Near the leading edge, the laminar-turbulent transition can clearly be seen. The transition is triggered
by a laminar separation bubble. Near the trailing edge, the turbulence structures are already relatively
large, but still appear unsynchronized in the spanwise direction (no large scale 2D structures with axis
orientation in the spanwise direction). The simulation was run for ~104 time steps before the averaging
procedure was started. The time averaging was conducted for
time steps. Figure 12.11 (p. 159)
shows a comparison of the wall pressure coefficient
and Figure 12.12 (p. 160) of the wall shear stress
coefficient
on the suction side of the airfoil in comparison to a RANS computation using the SST
model (Menter, 1994 [16] (p. 228)). No detailed discussion of the simulation is intended here, but the
comparison of the wall shear stress with the well-calibrated RANS model indicates that the resolution
of the grid is still insufficient for capturing the near-wall details. For this reason, the wall shear stress is
significantly underestimated by about 30% compared to the SST model in the leading edge area. As
the trailing edge is approached, the comparison improves, mainly because the boundary layer thickness
is increased whereas the wall shear stress is decreased, which produces a higher relative resolution in
the LES. Based on this simulation, it is estimated that a refinement by a factor of 2, in both streamwise
and spanwise directions, would be required in order to reproduce the correct wall shear stress. While
such a resolution is not outside the realm of available computers, it is still far too high for day-to-day
simulations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
157
158
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 12.11: Wall pressure coefficient Cp on the suction side of a NACA 4412 airfoil: comparison
of RANS-SST and LES-WALE results
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
159
Overall, LES for industrial flows will be restricted in the foreseeable future to flows not involving wall
boundary layers, or wall-bounded flows in strongly reduced geometries, preferentially at low Re numbers.
The limitations of the conventional LES approach are the driving force behind the development of hybrid
RANS-LES models that are described in the later parts of this report.
160
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The WMLES formulation in ANSYS CFD is based on the formulation of Shur et al., 2008 [27] (p. 228):
(12.26)
where
is a near-wall
damping function. This formulation was adapted to suit the needs of the ANSYS general purpose CFD
codes. Near the wall, the min-function selects the Prandtl mixing length model whereas away from the
wall it switches over to the Smagorinsky model. Meshing requirements for the WMLES approach are
given in Section 12.2.3.3 (p. 190).
For wall boundary layer flows, the resolution requirements of WMLES depend on the details of the
model formulation. In ANSYS Fluent and ANSYS CFX they are (assuming for this estimate that is the
streamwise, the wall normal and the spanwise direction as shown in Figure 12.14 (p. 162)):
(12.27)
where ,
, and
are the numbers of cells per boundary layer thickness, , in the streamwise, wall
normal, and spanwise directions respectively, (see Figure 12.14 (p. 162)). About 6000-8000 cells are
needed to cover one boundary layer volume
. This is also the minimal resolution for classical
LES models at low Reynolds numbers. Actually, for low Reynolds numbers, WMLES turns essentially into
classical LES. The advantage of WMLES is that the resolution requirements relative to the boundary
layer thickness remain independent of the Reynolds number.
While WMLES is largely Reynolds number-independent for channel and pipe flows (where the boundary
layer thickness must be replaced by half of the channel height) there remains a Reynolds number
sensitivity for aerodynamic boundary layer flows, where, the ratio of the boundary layer thickness, ,
to a characteristic body dimension, , is decreasing with increasing Reynolds number. In aerodynamic
boundary layer flows, there are more boundary layer volumes to consider at increased Reynolds numbers.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
161
at the wall.
values (
-insens-
Figure 12.14: Sketch of boundary layer profile with thickness , x-streamwise direction, y-normal
direction, and z-spanwise direction
For channel and pipe flows, the above resolution requirements for the boundary layer should be applied,
only replacing the boundary layer thickness, , with half the channel height, or with the pipe radius in
the grid estimation. This estimate would result in a minimum of ~120 cells in the circumferential direction
(
) for a fully developed pipe flow.
It should be noted that reductions in grid resolution similar to WMLES can be achieved with classical
LES models when using LES wall functions. However, the generation of suitable grids for LES wall
functions is very challenging as the grid spacing normal to the wall and the wall-parallel grid resolution
requirements are coupled and strongly dependent on
number (unlike RANS where only the wallnormal resolution must be considered).
In ANSYS Fluent, the WMLES formulation can be selected as one of the LES options; in ANSYS CFX it is
always activated inside the LES zone of the Zonal Forced LES (ZFLES) method.
162
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
163
164
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.2.1.2. Modeling
Of all flows where SRS modeling is required, globally unstable flows are conceptually the easiest to
handle. Typically they can be captured by a global RANS-LES model such as SAS, DDES, SDES, or SBES.
Such models cover the attached and mildly separated boundary layers in RANS mode, thereby avoiding
the high costs of resolving wall turbulence. Due to the strong flow instability past the separation line,
there is no need for specifying unsteady inlet turbulence nor to define specific LES zones. Globally unRelease 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
165
166
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.2.1.5. Examples
The following examples have been computed before the availability of the SBES model family. They are
therefore based on the SAS/DDES model formulations. Due to the strong flow instability in these flows,
the choice of model formulation is marginal and all hybrid models provide fairly similar solutions.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
167
168
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 12.17 (p. 169) shows a visual representation of the flow using the DDES-SST and the SAS-SST
models with the Q-criterion (see Section 12.5.1 (p. 216)). Both simulations have been carried out using
the BCD scheme. Both models generate resolved turbulence structures in agreement with the expectation
for the grid provided. Figure 12.18 (p. 170) shows a comparison with the experimental data (Sjunnesson
et al., 1992 [28] (p. 228)) for the wake velocity profiles as well as for turbulence characteristics.
Figure 12.17: Turbulence structures for flow around a cylinder in crossflow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
169
Figure 12.19 (p. 170) shows a comparison of the CD and the BCD scheme for the triangular cylinder using
the SAS-SST model. The turbulence content is almost identical, except that some smaller scales are
present in the CD simulation downstream of the body. A comparison with experimental data showed
results that are almost identical to the ones shown in Figure 12.18 (p. 170) and independent of whether
the CD or the BCD scheme was used.
Figure 12.19: SAS-SST simulation for flow around a triangular cylinder using the BCD and the CD
scheme for the convective fluxes
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.
171
The flow structures from the SAS-SST computations of the non-reacting and the reacting flow at a given
instance in time are shown in Figure 12.22 (p. 173) using the
-criterion (
, see Sec-
tion 12.5.1 (p. 216)). The isosurface in Figure 12.22 (p. 173) is given by
. The
main turbulence structures seem to be captured well in the simulations. Clearly, small-scale turbulence
cannot be resolved on such a grid. The grid resolution used here should not be considered as a recommendation for combustion chambers, but as the lowest limit for which such SRS models can be applied.
Figure 12.23 (p. 174) shows a comparison of the standard
RANS and SAS results at a given distance
from the burner entrance. It shows the level of improvement that results from the application of SRS
methods. Many more details of this simulation can be found in Egorov et al., 2010 [6] (p. 227) or in a
more detailed analysis of a more complex combustion chamber in Widenhorn et al., 2009 [38] (p. 229).
172
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.
173
174
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.
175
176
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.2.2.2. Modeling
The goal in SRS is to cover the boundary layer turbulence (solid yellow circles in Figure 12.24 (p. 176))
in RANS and the mixing layer turbulence (red in Figure 12.24 (p. 176)) in resolved mode. This can only
be achieved if the impact of the RANS turbulence model is significantly reduced downstream of the
trailing edge; otherwise the formation of unsteady structures would be suppressed.
The SAS model will typically not switch to SRS mode in such situations, independent of the mesh
provided, as the eddy-viscosity produced in the mixing layer will be too large for the flow instability at
hand. From a pure turbulence modeling standpoint, this is often acceptable, as such flows are typically
covered with reasonable accuracy by using RANS models (mixing layers, wakes, back step, and so on).
However, in cases where unsteady information is required for other reasons (for example, acoustics),
the SAS model will likely not be suitable, unless an interface is used that converts modeled turbulence
energy into resolved energy (see Section 12.1.7 (p. 162)).
The DDES, SDES and SBES models allow SRS behavior because the shielding function is turned off past
the trailing edge of the plate and, assuming a fine (LES) grid is provided downstream of the plate, the
eddy-viscosity is reduced. These models then switch to LES mode in the wake, and the mixing-layer
instability is strong enough to generate resolved turbulence relative quickly (within a few boundary
layer thicknesses). It is important to point out that the ability of the DDES/SDES/SBES models to generate
unsteady structures in the mixing layer depends on the grid provided in that area. Assuming an overly
coarse grid (for example, in the spanwise direction), the grid limiter would not engage and the model
would stay in RANS mode, which will not enable the formation of resolved structures. Remember that,
for the DES model, the length scale is defined as:
(12.29)
where
is the largest edge length for each cell. For this case, assume that the grid in the
plane
shown in Figure 12.24 (p. 176) is very fine (of LES quality), and
is the grid resolution in the
spanwise ( ) direction. Conversely, if
is very coarse, the DES limiter would always select the RANS
length scale and the model would remain in RANS mode in the wake region. No unsteady structures
would develop as the RANS model will damp them out. As the grid in the -direction is refined, the
DES limiter will be activated at some location downstream of the trailing edge where
(note
that grows as the mixing layer becomes thicker). With further grid refinement, the location of the
implicit RANS-LES interface would move closer to the trailing edge. Eventually, the entire mixing layer
would be covered by LES. This behavior of (D)DES is both a disadvantage and an advantage. The disadvantage and the danger lie in the strong grid sensitivity introduced explicitly into the turbulence
model. As a result, when using (D)DES (as well as SDES/SBES), you must be very careful to provide a
suitable grid for a given application when using DDES. The advantage is that the model can be applied
to locally unstable flows without the definition of an explicit RANS-LES interface. However, the grid
sensitivity can be reduced by employing an interface which converts modeled turbulence to resolved
turbulence using the DDES/SDES/SBES model upstream and downstream of the interface (see Section 12.1.7 (p. 162)).
The most general approach to the flows discussed here is the use of the embedded or zonal RANS-LES
methods, where the boundary layers are covered by a RANS model and the mixing layer by a LES
model. The models are explicitly switched from RANS to LES at a pre-defined interface upstream or at
the trailing edge. In order to obtain a proper LES solution, a grid with LES resolution is required in the
mixing layer. Frequently a non-conformal interface between the RANS and the LES part is used to reduce
the grid resolution in the upstream RANS region. For a fully consistent simulation, one must introduce
synthetic turbulence at the RANS-LES interface. By such injection of synthetic turbulence, the balance
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
177
(12.30)
It is important to emphasize that this quantity should be evaluated based on a precursor RANS solution.
This implies that such a solution exists and is meaningful. If the precursor solution is not available, then
you can estimate the ratio based on the thickness of SSL. For equilibrium mixing layers, the following
ratio is approximately correct:
(12.31)
where
where 0.2 should be considered an extreme lower limit of resolution and 0.1 the desirable lower limit.
Again, higher grid resolution should be used if computing power permits. The value of
corresponds to a resolution of 15 cells across the mixing layer. This amount of cells is not a very fine grid
resolution, but equal resolution should ideally be provided in all three space dimensions. In addition,
the SSL can be thin relative to the body dimensions, resulting in very high computational costs. The
178
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.2.2.5. Examples
12.2.2.5.1. Mixing Layer
The single-stream mixing layer flow is experimentally investigated in Morris and Foss, 2003 [21] (p. 228).
The experimental section consists of a flat plate which suddenly terminates at a corner step (Figure 12.25: The domain and grid for the single stream mixing layer flow (p. 180)), which induces the
formation of the mixing layer from the separation point. The experiment is carried out at a Reynolds
number of
based on the momentum thickness
of the incoming boundary layer and on
the free-stream velocity .
The inlet of the computational domain shown in Figure 12.25: The domain and grid for the single stream
mixing layer flow (p. 180) is located at
(
corresponds to the step location). The size of the domain in the wall normal direction is
upstream of the step and
downstream of it. Finally, in the spanwise direction the domain is
wide.
Two computational grids are considered (Figure 12.25: The domain and grid for the single stream mixing
layer flow (p. 180)). Mesh 1 consists of about
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
179
As seen from the instantaneous structures visualized with the use of isosurfaces of the Q-criterion
(Figure 12.26: Isosurfaces of the Q-criterion colored with the velocity magnitude (p. 181)), SBES and SDES
provide a swift development of three-dimensional turbulence downstream of the step, while DDES
yields almost two-dimensional structures in the entire domain regardless of the used grid. For SDES,
this rapid transition relative to DDES is based on the alternative definition of the grid length scale and
the reduced
constant. For SBES, it is based on the activation of the low eddy viscosity levels from
the WALE model in the LES domain.
180
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Due to the much faster transition from RANS to LES, both, the SDES and the SBES model show superior
agreement with the experiments in terms of the velocity profiles compared to DDES (see Figure 12.27: Profiles of the mean velocity at different sections (x/=19.3, 29.6, 40.6, and 54.2) for mixing layer test
case (p. 182)). Similar performance could be obtained with DDES only under severe grid refinement
meaning that SDES/SBES can produce more realistic solutions on much coarser grids than required for
DDES.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
181
182
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The boundary conditions are specified as shown in Figure 12.28: The domain and grid for the backstep
test case (p. 183). The inflow profiles are obtained from the precursor SST-RANS simulation of the developing plane channel flow up to the experimental boundary layer thickness of
. Periodic conditions
are applied in the spanwise direction. No-slip conditions are specified on the solid walls. At the outlet
boundary, a constant pressure is specified, while the other transported quantities are extrapolated from
the domain interior.
A non-dimensional time step of
ensures that the CFL number is less than one in the
entire domain. The instantaneous flow fields are averaged over 5000 time steps in order to achieve a
sufficient time sample for the unsteady statistics.
As seen from iso-surfaces of the Q-criterion shown in Figure 12.29: Isosurfaces of the Q-criterion colored
with the velocity magnitude for backstep test case (p. 184), SBES and SDES provide visually similar turbulent structures downstream of the step, while relatively larger structures are observed for DDES. It
can also be seen that the blending functions of SBES and SDES, relative to that of DDES, cover a smaller
portion of the flow near the bottom wall (Figure 12.30: Contours of the blending function with the
vorticity iso-lines for backstep test case (p. 185)), while, in the channel center, the SDES and SBES models
work in the RANS mode. DDES also remains in RANS mode there, but this is not visible due to the lack
of grid information in the DDES shielding function. DDES provides a larger eddy viscosity level in the
mixing zone relative to those of SBES and SDES, as can be seen from Figure 12.31: Contours of the eddy
viscosity ratio for backstep test case (p. 186). Again, this explains the larger turbulent structures observed
in this region with DDES.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
183
184
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.
185
However, despite the above differences, the skin friction coefficient distribution depicted in Figure 12.32: Distribution of the skin friction coefficient for backstep test case (p. 187) along the bottom
wall shows that the results of all the models are in good agreement with the experimental data. However,
the DDES model shows a slightly overly large separation zone and a slight over-prediction of -recovery
downstream of the reattachment point. Finally, the mean and RMS velocity profiles for all the considered
models agree fairly well with the experimental data. The better prediction for the backstep as compared
to the mixing layer above is not surprising because the mesh for the backstep has been designed for
the DDES model. It features lower grid spacing (relative to the upstream boundary layer thickness) in
spanwise direction compared to the mixing layer case.
186
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.
187
188
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.2.3.2. Modeling
For stable flows, the use of embedded or zonal RANS-LES methods with a well-defined interface between
the RANS and the LES zone is essential. Synthetic turbulence must be introduced at the RANS-LES interface to ensure a proper balance between the modeled and the resolved content of turbulence. The introduction of resolved/synthetic turbulence allows the balance between RANS and LES turbulence across
the interface to be preserved (assuming the synthetic turbulence is of sufficient quality). Neither DDES
nor SAS-type models are able to switch from RANS to SRS mode in such stable situations. Even in cases
where resolved turbulence is specified at the inlet (or an interface) the SAS model will typically switch
back to its underlying RANS mode after some boundary layer thicknesses (for example, Davidson, 2006
[4] (p. 227)). The DDES model does remain in LES mode but with a significant error in the logarithmic
layer. The SBES model is able to perform in WMLES mode and provide proper velocity profiles downstream
of synthetically generated turbulence.
Even an explicit switch from a RANS to a LES model (and the corresponding grid refinement in the LES
zone) at the interface without an introduction of synthetic turbulence does not work well. If sufficient
resolution is provided in the LES zone, the flow would eventually go through a transitional process and
recover the fully turbulent state. However, such a process would require many boundary layer thicknesses,
with an entirely unbalanced model formulation in-between. This method is not acceptable in most
technical flows and must be avoided.
In such stable flows, the most suitable selection of hybrid RANS-LES models are Embedded- or Zonal
models, where the RANS and the LES zones are user-defined and synthetic turbulence is injected at the
RANS-LES interface. As mentioned previously, the RANS-LES interface should be placed in a non-critical
region of the flow (equilibrium flow), since existing synthetic turbulence generators do not provide
realistic turbulent fluctuations for strongly non-equilibrium flows. As a result, placing the interface in
such regions results in a too-slow relaxation from synthetic to "real" turbulence (typically, several
boundary layer thicknesses).
As an alternative, the RANS and LES simulations can be carried out separately. The RANS domain would
include the full geometry whereas the LES solution can be carried out on a smaller portion of the original domain. This separate LES domain would be identical to the LES zone in the equivalent ELES setup. The information from the larger RANS solution can then be mapped onto the boundaries of the
LES domain. Synthetic turbulence should be introduced at the inlet of the LES domain. This approach
can be used if you are confident that the physical decoupling has very little or no effect onto the
overall flow topology. The advantage of the decoupled method over the ELES approach is that the
RANS solution does not have to carry the burden of the excessive temporal resolution that the LES
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
189
For wall-bounded flows, it is clear that large domains cannot be covered in SRS mode, even when using
WMLES. In most cases you would limit the domain size of the LES zone by one or more of the following
concepts:
Use only a limited spanwise domain size.
190
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.2.3.5. Examples
12.2.3.5.1. Periodic Channel
The periodic channel flow is not an ELES, but a WMLES application. This section of the report shows
that as WMLES is typically used in the LES portion of ELES/ZLES applications. The entire domain is
WMLES and there are no RANS-LES interfaces. Simulations of this flow have been carried out assuming
incompressible fluid at several Reynolds numbers based on friction velocity
and channel height
, Re = 395, 760, 1100, 2400, and 18000. The flow is driven by a constant pressure gradient
, where is the pressure and is the density. This pressure gradient is taken into
account in the governing equations via a source term in the momentum equations, which allows imposing periodic boundary conditions not only in the spanwise direction , but also in the streamwise
direction . Note that within such an approach, the bulk velocity of the flow is not specified and should
be obtained as a part of the solution, which means that it could be different with different turbulence
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
191
Number of
Nodes
395
384 000
40.0
20.0
760
480 000
76.9
38.5
1100
480 000
111.4
55.7
2400
528 000
243.0
121.5
18000
624 000
1822.7
911.4
Figure 12.36 (p. 193) shows the turbulence structures using the
is colored by the streamwise velocity.
192
-criterion (
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
). The isosurface
Figure 12.37 (p. 193) shows the flow in a horizontal cut through the domain for the lowest and the
highest Reynolds numbers. The thin region of RANS modeling near the wall for the high Reynolds
number is indicated by the high eddy-viscosity (note the different scales in the plot for the eddy-viscosity
ratio for the different Reynolds numbers). RANS modeling in this context is as described in Section 12.1.6 (p. 160), based on the near-wall mixing length formulation.
Figure 12.37: Flow visualization for WMLES of channel flow (a) Vorticity rate Omega, (b) Absolute
value of velocity U, (c) Ratio of eddy-viscosity to molecular viscosity
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
193
The same test case has been computed with the global hybrid RANS-LES models. In order to push them
into unsteady SRS mode, the simulations are started from the WMLES solution above. Please note that
the DDES model is not shown because it would produce a severe shift in the logarithmic velocity profile.
The IDDES model shown for comparison has been calibrated for WMLES applications; it does however
have only limited shielding capabilities and is therefore not suitable for general industrial applications.
As seen from Figure 12.39: Isosurfaces of the Q-criterion colored with the velocity magnitude (p. 195),
all the models provide resolved turbulent structures for both considered Reynolds numbers. The results
194
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.
195
Interestingly, the profiles of the mean velocity as shown in Figure 12.41: Profiles of the mean velocity
for different models (p. 196) are in good agreement with each other and with the empirical correlation
for all models. It should be noted, that, despite SDES yielding the smallest magnitude of the LLM (Figure 12.41: Profiles of the mean velocity for different models (p. 196)), it noticeably underestimates the
total turbulence kinetic energy (Figure 12.42: Profiles of the total turbulence kinetic energy for different
models (p. 196)) for both Reynolds numbers. This indicates that the wall modeled LES capability of SDES
is not optimal for the given meshes. At the same time, the profiles of the total kinetic energy of SBES
and IDDES are relatively close to each other, which means that the models have similar wall modeled
LES capabilities. The results also indicate that further improvements in terms of WMLES resolution could
be obtained by moving the RANS-LES interface slightly closer to the wall.
Figure 12.41: Profiles of the mean velocity for different models
Figure 12.42: Profiles of the total turbulence kinetic energy for different models
196
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The simulations have been performed for an incompressible fluid. A summary of physical parameters
is presented in Table 12.4 (p. 197).
Table 12.4: Properties for flat plate boundary layer simulations
1000
10 000
0.032
0.032
0.001
0.001
1.0
1.0
The geometry and the computational grid used for the test case are shown in Figure 12.44 (p. 198). The
base grid is uniform in the - and -directions with steps 0.004 [m] and 0.002 [m] respectively. In the
wall normal direction the grid was expanded by a factor of 1.15. For all computations the value of
is less than 1, which means that the governing equations are integrated to the wall. A complete summary
of all used grids is presented in Table 12.5 (p. 198).
Figure 12.44 (b) (p. 198) presents all the boundary condition types used in the simulations. The cyan
color shows one of the periodic planes, the red color the no-slip wall boundary, the blue color the
outlet boundary, the green color the inlet boundary, and the yellow color the symmetry boundary.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
197
Number of
Nodes
1000
1 085 000
68.0
34.0
10 000
1 333 000
680.0
340.0
Two cases have been computed using the numerical grids with the parameters shown in
Table 12.5 (p. 198). They have different inlet Reynolds numbers that are based on the boundary layer
momentum thickness (
).
The Non-Iterative Time Advancement (NITA) algorithm based on the Fractional Time Step method was
applied with the second order scheme for the approximation of time derivatives. The convective terms
in the momentum equations have been approximated with the second order Central Difference scheme
and the Green-Gauss cell-based method was used for interpolation of variables on cell faces. The
Standard option was selected for the pressure interpolation scheme.
Visualizations of the flow at two values of
are shown in Figure 12.45 (p. 199). Isosurfaces of the
-criterion that are equal to
and colored with the velocity magnitude are depicted. It can be
seen that the turbulence structures are well-developed and do not show any visual decay or disruption
downstream of the inlet. This indicates that the Vortex Method provides sufficiently realistic turbulent
content at the inlet boundary.
198
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 12.46 (p. 200) shows the skin-friction coefficient for the two Reynolds numbers. The results
demonstrate that the inlet wall friction provided by the RANS inlet velocity profiles is maintained without
any major disruption. This indicates again that the vortex method produces sensible synthetic inlet
turbulence. In addition, the models react properly to the Reynolds number variation, suggesting that
the WMLES can maintain a boundary layer accurately even at high Reynolds numbers, where standard
LES models would fail due to a lack of resolution. Figure 12.46 (a) (p. 200) shows, in part (a), the impact
of the pressure interpolation scheme, which has proven to be critical for locally stable flows. It is worth
re-iterating that the PRESTO scheme requires slightly more running length to recover the correct levels
of turbulence and wall shear stress.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
199
Figure 12.47 (p. 201) shows Reynolds stresses and velocity profiles from the simulations. The figure
suggests that, just as for the channel flow, the quality of the simulations is fairly high in terms of both
the mean flow prediction (the logarithmic profile is reproduced faithfully) and Reynolds stresses (they
are well within the range expected from known DNS studies of the flat plate boundary layer).
200
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The above simulations have been carried out with ANSYS Fluent. Similar results can be obtained with
ANSYS CFX where WMLES is the default formulation inside the LES zone of the ZFLES method.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
201
Figure 12.50 (p. 203) shows the skin-friction and wall-pressure coefficient distributions from the simulations.
It can be seen that the use of ELES combined with the WMLES model in the LES zone results in very
close agreement with the data, even though the skin-friction is known to be very sensitive to simulation
details. A comparison of the results obtained using WMLES with those obtained using the standard
WALE model in the LES zone is shown in Figure 12.50 (p. 203). The results suggest that the latter performs
considerably worse than the former. In particular, in the simulations using the WALE model, the wall
shear stress drops immediately after the RANS-LES interface to unrealistically small values due to the
lack of resolution. The results with this model further downstream are therefore no longer reliable as
the wall shear stress has a strong influence on the overall boundary layer development. Further investigations of this flow are on-going, so the results should not be considered final, but are provided to
demonstrate the basic concepts.
202
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Bulk velocity
Mass
flow
Temperature
Re number
Hot
Pipe
Cold
Pipe
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
203
section,
The computational grid for this flow comprises about 4.9 million hexahedral cells (see Figure
12.51 (p. 205)). The wall normal grid spacing was set to 0.0001 [m], which yields
in the
entire domain. The grid spacing in the axial and circumferential directions was set as follows:
For the cold water pipe where the inlet boundary layer thickness
spacing was chosen
and
and
For the hot water pipe the inlet boundary layer thickness
was chosen
and
and
.
In wall units, the grid spacing is (
) (115, 70) for the cold water pipe, which means that the flow requires near-wall turbulence modeling. The time step was set to 0.001 [s], which leads to CFL~1 in the central mixing zone.
204
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The boundary conditions for this case have been specified as follows. For the inlet boundaries, the
precursor simulations of the pipe flow have been performed using the SST model. For the cold water
pipe, a fully developed pipe flow was calculated using the SST model and the profiles of velocity and
turbulence quantities have been specified at the inlet boundary. For the hot leg and the pipe, the profiles
in the experiments were not fully developed. For this reason, a separate pipe flow simulation was conducted using constant inlet values for velocity and turbulence. The inlet profiles for the hot leg have
then been extracted from this precursor simulation at the location where they matched the experimental
profiles most closely.
It bears repeating that this flow is not easily categorized into one of the three groups described above,
but might be described as between globally unstable and locally unstable. It was originally computed
with the global SAS and DDES models. Although both simulations turn into a proper SRS mode in the
interaction zone of the two streams, the results turned out to be very sensitive to numerical details and
solver settings, especially for the SAS model. As an illustration, in Figure 12.52 (p. 206), the turbulence
structures are shown as predicted by the SAS-SST model with the use of the CD and BCD numerical
schemes. The effect of the scheme on the resolved flow is striking. This effect is an indication that the
underlying flow instability is not very strong and can only be represented by the SAS model with the
use of a low dissipative numerical scheme such as CD in this particular case. Under such conditions, it
is not advisable to apply global methods like SAS (and to a lesser extent, DDES), as will be seen from
the temperature distributions later. It is important to emphasize that in more unstable flows, the difference between CD and BCD is not nearly as strong and often barely noticeable.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
205
It is therefore recommended to apply the ELES model with synthetic turbulence specified at predefined
RANS-LES interfaces located in both pipes upstream of the interaction zone. Switch from the RANS to
LES at these interfaces using the vortex method. In this case, the SST model was employed in the RANS
zone and the WMLES approach was used in the LES part of the domain. As seen in Figure 12.53 (p. 207),
with this approach resolved turbulence is generated well-upstream of the interaction zone and is then
maintained through the interaction zone independent of the numerical scheme (CD or BCD).
206
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 12.54 (p. 208) shows velocity profiles of different velocity components at different measurement
locations (see Figure 12.51 (p. 205)). Figure 12.54 (a) (p. 208) shows results for the DDES, ELES/WMLES,
and SAS simulations using the CD scheme. All simulations agree well with each other and with the experimental data. Figure 12.54 (b) (p. 208) shows the same models, but computed using the BCD scheme.
As discussed, the SAS/BCD model shows marked differences compared to the experimental data, as
already expected from Figure 12.52 (p. 206). It stays in URANS mode, which for this case turns out to be
inadequate. The other models are less sensitive to the numerical set-up and provide almost identical
results when using the BCD and the CD scheme.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
207
From an application-oriented standpoint, the most important outcome of these simulations is the
thermal mixing and the resulting wall temperature distributions. Results for the different simulations
are shown in Figure 12.55 (p. 209) to Figure 12.58 (p. 210). The comparison is depicted for four lines located
on the wall of the main pipe downstream of the intersection at the Top ( ), Front ( ), Bottom (
),
and Rear (
) (see Figure 12.51 (p. 205)). One can find significant differences between the global and
the ELES formulations, especially on the top wall. The temperature mixing is more accurately predicted
with the ELES model because the transitional process between RANS and LES is not well-defined in
global models. While the solution of global hybrid models is much better than URANS (not shown here),
the details can still be missed in the initial mixing zone. The ELES method is more consistent, as it
provides a clear interface where modeled and resolved turbulence are exchanged (RANS-LES interface
with synthetic turbulence). Because of that, well-defined resolved turbulence is already present upstream
of the junction, thereby avoiding the ambiguities of the formation of resolved turbulence in the interaction zone.
208
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 12.56: Comparison of the experimental and computational wall temperature distributions
for T-Junction flow at the Front wall (90 degrees, see Figure 12.51 (p. 205)) of the main pipe
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
209
Figure 12.58: Comparison of the experimental and computational wall temperature distributions
for T-Junction flow at the Rear wall (270 degrees, see Figure 12.51 (p. 205)) of the main pipe
Details of the resolved turbulence can be seen in Figure 12.59 (p. 211), which shows the region just
downstream of the pipe intersection on the Top wall ( - Figure 12.51 (p. 205)) where the temperature
predictions between ELES and DDES differ the most (Figure 12.55 (p. 209)). ELES shows significantly
stronger resolved turbulence activity than DDES, confirming the arguments above. More recent simula210
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.
211
The CD scheme can be used successfully for (WM)LES of simple flows on optimal grids (typically hexahedral grids with low skew) such as channel or pipe flows. For more complex geometries, ELES allows
the reduction of the LES domain to a limited region with high quality grids. Under such conditions, CD
can be employed inside the LES portion of the grid, while using a standard upwind biased scheme for
the RANS part of the domain.
For global models, like SAS or DDES/SDES/SBES, involving RANS and LES portions without a well-defined
interface between them, most cases require the use of the BCD scheme, which can also handle both
the RANS and LES domains with acceptable accuracy.
When using ELES in ANSYS Fluent, one can also switch the numerical scheme between the RANS and
the LES regions (see Cokljat et al., 2009 [2] (p. 227)) by hand.
In ANSYS CFX, the default for the SAS and SBES models is a numerical scheme that switches explicitly
between a second order upwind and the CD scheme, based on the state of the flow, using a switch
proposed by Strelets, 2001 [33] (p. 229). This switching scheme is relatively complex and it is advisable
to apply the less complex BCD scheme that is also available in the code. In ANSYS CFX there is an additional parameter for the BCD scheme that allows a continuous variation of the scheme from BCD to
212
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
For SBES, numerical problems have been observed on complex grids with second order turbulence numerics. First order numerics is therefore recommended. Note that this has little
effect on the accuracy, because the RANS region is typically insensitive to this switch. In the
LES region, the two-equation model is, in any case, overwritten by the selected LES model.
(with a constant
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
213
(12.34)
where
simulation.
You can also apply a more global estimate by assessing the through flow time, which is the time required
by a fluid element to pass through the LES domain of length
timate of how many cells,
with velocity
. With an es.
214
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
215
where in different definitions the constant might be different (for historic reasons,
in ANSYS
Fluent and
in ANSYS CFD-Post). The value of the constant
is typically unimportant as we
are only interested in visual impressions when using this quantity. In this definition, is the absolute
value of the Strain Rate and is the absolute value of vorticity.
(12.37)
The rationale behind this definition is that we want to visualize vorticity, which characterizes turbulence
vortices, but also to subtract the mean shear rate in order to avoid displaying steady shear layers (where
).
There are different definitions of , some of them non-dimensional. Avoid using non-dimensional
values as they can be mainly used for visualization of free vortices and their dynamics (for example, tip
216
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
-values can be very large and can vary greatly in the domain. Frequently, values up
can be found in high Re number flows. In such cases, isosurfaces in the range of
are typically sensible. You must experiment with some values for the isosurface before
obtaining a suitable picture. It might be helpful to first plot on a fixed surface as a contour plot and
select the correct scaling from that contour plot. Use positive values for the isosurface. Do not use
for visualization, as it will show very weak structures not relevant to turbulence visualizations.
It is also advisable to color the isosurface of
eddy-viscosity ratio (
), or a velocity component that is small or zero in RANS (such as the spanwise
velocity), or the CFL number, and so on. The visual inspection should be done continuously during the
entire start-up and run time of the simulations (once per day or after every 1000 time steps). It serves
the following purposes (see for example Figure 12.16 (p. 169) and Figure 12.17 (p. 169)):
Check if unsteady turbulence develops at all and at the expected locations.
Check large scale symmetries/asymmetries of the flow.
Check the solution for numerical wiggles (odd-even decoupling)
Check the size of the resolved eddies and see if they are as one would expect from the grid resolution.
Check the CFL number on these eddies. It should be smaller than CFL 1. Check the eddy-viscosity ratio. It
should be much smaller than RANS.
Check for global SRS turbulence models (SAS/DDES/SDES/SBES) if the turbulence structures develop early
in the separating shear layer or if a noticeable delay is observed (see Figure 12.26: Isosurfaces of the Q-criterion
colored with the velocity magnitude (p. 181)).
Check for ELES/Unsteady inlet conditions, if synthetic turbulence is reasonable and does not decay (such
as in Figure 12.45 (p. 199)).
Check the progress of the simulation towards a statistically converged solution. This means that the resolved
turbulence requires some time until it has developed and has been transported through the domain. Timeaveraging has to wait until that stage has been achieved.
Include pictures of turbulence structures in any reports of the test case (slides, reports, publications, service
requests).
If possible make animations, which help to understanding of the flow physics and is also helpful for others
to understand the flow.
Add monitoring points at interesting locations and plot their development in time to demonstrate statistical
convergence.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
217
12.5.2. Averaging
Unsteady simulations with scale resolution require special care in postprocessing and averaging. Engineers
are usually interested only in time-averaged results and not in the details of the unsteady flowfield. It
is therefore important to follow a systematic approach when computing such quantities.
The typical process is to start from a RANS solution (or reasonable initial condition). When switching to
any SRS model, the flow will require some time to statistically settle into a new state for the following
reasons:
The resolved turbulence requires some time to develop and be transported through the domain.
The global flow topology might change from the initial (RANS) solution.
Other physical effects might require longer start-up times (such as multi-phase).
The general strategy is therefore to run the simulation for some start-up time
, before activating
the averaging process (or initiating the acquisition of, for example, acoustics information). When should
this process be started and how long does it take until the flow is statistically steady? This is the stage
where any increase in
would not change the averaged solutions. Unfortunately
depends
strongly on the flowfield and no general guidelines can be given. For some flows, the flow develops
quickly (in a few thousand time steps). For others it takes tens of thousands of steps to reach that point.
However, a first estimate can be obtained by estimating throughflow time,
. This is the time that
the mean flow requires to pass one time through the domain
where
is the length
of the domain and
is the mean flow velocity. The turbulence statistics typically require several (35) throughflow times to establish themselves. Again, this is just a rough estimate and can depend on
the particular flow.
In order to determine
more systematically, one must monitor the simulation. It is advisable to
monitor some local and some global quantities.
Continuously inspect the solution visually with the aid of regular images and updated animations.
Inspect solution variables at monitor points in the critical zone of simulation (pressure, velocity, temperature,
and so on) as a function of time. The amplitude and frequency of local oscillations should become regular
before the averaged statistics can be gathered.
Monitor global quantities (forces on body, massflow, integrated swirl, and so on). Interesting quantities are
often those that would be zero for RANS (spanwise forces, and so on) as they are sensitive to the SRS characteristics. They also help to evaluate the overall symmetry of the solution (they should fluctuate around
zero) and to determine slow transients (quantities that fluctuate around zero but with low overlaid frequencies).
Only when all indicators show that the flow is no longer changing statistically (meaning only the details
of the turbulence structures are a function of time) should the averaging be activated. It is important
to document the number of steps that have already occurred when averaging was started and how
many steps have been averaged. With respect to averaged quantities:
Monitor time-averaged quantities and ensure that they are not drifting. They will drift initially, but should
then settle to an asymptotic value.
218
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
Ensure that they satisfy the symmetry conditions of the flow. Any asymmetry is an indicator of non-convergence (exceptionally, there are flows that develop physical asymmetries despite a symmetric set-up. Example:
some symmetric diffusers separate from one side and stay attached on the other).
Ensure that the averaged quantities are smooth.
In zonal/embedded simulations, check if averaged quantities are reasonably smooth across RANS-LES interfaces (they will never be perfectly smooth, but should also not change drastically).
12.6. Summary
An overview of hybrid Scale-Resolving Simulation (SRS) technologies was given. Due to the nature of
the subject, only a rough outline of the models could be provided. The rational and the advantages/disadvantages of each model family have been discussed. Based on the description of the models, an attempt has been made to categorize flows into sub-classes, and to map the modeling strategies onto
these classes. It should be emphasized again, that the proposed categories are not easily and clearly
defined and have significant overlap. Still it is considered necessary to explain that no single SRS model
is suitable for all applications and it is not possible to generalize about which model should be used
for which type of flow.
In principle, ELES and ZFLES, in combination with WMLES, are suitable for all flows, but require a substantial amount of preprocessing work to define the corresponding zones and provide suitable grids
for all of them. For complex applications, this is not always feasible/practical, and global models (SAS,
DDES, SDES, SBES) are favored. Studies have shown a clear superiority of the SBES model over all the
other global hybrid RANS-LES formulations. The SBES model is therefore recommended for such applications. However, as detailed, all of these models work only if a sufficient level of instability is present
in the flow. If in doubt, it is better to select the safer option over the more convenient one.
Details on many aspects of SRS have been provided, ranging from numerics, to grid resolution all the
way to postprocessing. Numerous examples have been shown to enable the reader to properly place
the intended application into this framework. It is anticipated that the document will evolve over time,
as new questions are posed by users and as the SRS models themselves will evolve.
A brief summary of the more important points is provided in the Appendices.
12.6.1. Acknowledgment
The material in this report was prepared with the help of members of the turbulence team at ANSYS
Jochen Schtze, Yuri Egorov, Richard Lechner, as well as with the help of the colleagues at NTS in St.
Petersburg Mikhail Gritskevich and Andrey Garbaruk. Aleksey Gerasimov at ANSYS has provided a very
thorough review, which has resulted in the removal of numerous inconsistencies and has significantly
improved the quality and readability of the document. Some of the test cases have been run in the
framework of the EU projects DESIDER and ATAAC.
Comment
Convection
Terms
CD / BCD
Pressure
Discretization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
219
Comment
of turbulence structures can be delayed
(inhibited) with PRESTO.
Velocity
Gradients
Iterative
Method
SIMPLEC
Under-relaxation URF 1
Time
Discretization
Unsteady Simulation
Comment
CD / BCD
220
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
Unsteady Simulation
Comment
CDS Bound enables shifting between the
classical BCD scheme and the Central
Difference scheme.
Time
discretization
Applications
Comments
221
Comments
Shielded
Detached
Eddy
Simulation
(SDES)
Improved version of
DDES. It provides better
shielding of the RANS
boundary layers and a
more aggressive
definition of the grid
length scale leading to
more rapid transition
from RANS to LES.
Stress-Blended
Eddy
Simulation
(SBES)
Large
Eddy
Simulation
(LES)
Wall
Modeled
LES
(WMLES)
Use CFL~1
Apply synthetic
turbulence at inlets
222
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
Applications
Comments
Check -criterion
carefully during run time
to ensure SRS structures
Embedded
LES (ELES)
Zonal
Forced
LES
(ZFLES)
Use CFL~1
Apply synthetic
turbulence at RANS-LES
interface
Check -criterion
carefully during run time
to ensure SRS structures
Vortex
Method
(VM)
Fluent
Use to generate
synthetic turbulence at
RANS-LES interface or
LES (WMLES) inlet
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
223
Comments
Examples
Modeling
224
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
DDES/SDES/SBES in case SAS does not show sufficient
content of resolved turbulence. Provide suitable LES
grid in LES region.
Often SAS and DDES give very similar solutions.
Optimal model SBES.
ELES typically not required.
The DDES model has been superseded by the SBES
model family. The SBES modeling approach is
recommended.
Critical
Examples
Modeling
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
225
Examples
Modeling
226
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
[1] Boris, J. P., Grinstein, F. F., Oran, E. S., and Kolbe, R. S. New insights into Large Eddy Simulation. Fluid
Dynamic Research. Vol. 10. 199-228. 1992.
[2] Cokljat D., Caradi D., Link G., Lechner R., and Menter F.R. Embedded LES Methodology for GeneralPurpose CFD Solvers. 22-24 June 2009. Proc. Turbulent Shear Flow Phenomena, 6th Int. Symp.
Turbulence and Shear Flow Phenomena. Seoul, Korea. . 1191-1196.
[3] Comte-Bellot, G., and Corrsin, S. Simple Eulerian time correlation of full- and narrow-band velocity
signals in grid-generated, isotropic turbulence. Journal of Fluid Mechanics. Vol. 48, Part 2. 273337. 1971.
[4] Davidson, L. Evaluation of the SAS-SST Model Channel Flow, Asymmetric Diffuser and Axi-Symmetric
Hill. Proceedings European Conference on Computational Fluid Dynamics . ECCOMAS CFD. .
2006.
[5] Durbin, P., and Pettersson Reif, B.A. Statistical theory of turbulent flows. John Wiley and Sons, Ltd. UK.
2003.
[6] Egorov Y., Menter F.R., and Cokljat D. Scale-Adaptive Simulation Method for Unsteady Flow Predictions.
Part 2: Application to Aerodynamic Flow. Flow Turbulence and Combustion. Vol. 85, No. 1. 139165. 2010.
[7] Frhlich J., Mellen C.P., Rodi W., Temmerman L., and Leschziner M. Highly resolved large-eddy simulation of separated flow in a channel with streamwise periodic constrictions. Journal of Fluid
Mechanics. Vol. 526. 1966. 2005.
[8] Frhlich J., and von Terzi, D. Hybrid LES/RANS methods for simulation of turbulent flows. Progress in
Aerospace Sciences. Vol. 44, Issue 5. 349-377. 2008.
[9] Girimaji, S. S. Partially-Averaged Navier-Stokes Method: A RANS to DNS Bridging Method. 2004.
[10] Girimaji, S., and Abdul-Hamid, K.S. Partially-averaged Navier-Stokes model for turbulence: implementation and validation. AIAA Aerospace Sciences Meeting and Exhibit. Reno, Nevada. . 2005-0502.
2005.
[11] Gritskevich, M.S. Garbaruk, A.V., Schtze, J., and Menter F.R. Sensitization of DDES and IDDES Formulations to the
Shear-Stress Transport Model. Flow Turbulence and Combustion. 2012.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
227
228
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.
229
230
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.
231
Objects and parameters may be placed in any order, provided that the information is set prior to being
used further down the file. If data is set in one place and modified in another, the latter definition
overrides the first.
In CFD-Post, all object definitions are only one object level deep (that is, objects contain parameters,
but not other objects).
232
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13.1.3.3. Indentation
Nothing in the file is sensitive to indentation, but indentation can be used for easier reading.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
233
13.1.3.8. Parameters
A parameter consists of a parameter name at the start of a line followed by an = character followed by
a parameter value. A parameter may belong to many different object types. For example, U Velocity
= 1.0 [m/s] may belong to an initial value object and U Velocity = 2.0 [m/s] may belong
to a boundary condition object. Both refer to the same definition of U velocity in the rules file.
13.1.3.9. Lists
Lists are used within the context of parameter values and are comma separated.
13.1.3.10.1. String
Any characters can be used in a parameter value.
String values or other parameter type values are normally unquoted. If any quotes are present, they are
considered part of the value. Leading and trailing spaces are ignored. Internal spaces in parameter values
are preserved as given, although a given application is free to subsequently assume a space condensation
rule when using the data.
The characters $ and # have a special meaning. A string beginning with $ is evaluated as a Power Syntax
variable, even if it occurs within a simple syntax statement. This is useful for performing more complex
Power Syntax variable manipulation, and then using the result as part of a parameter or object definition.
The appearance of # anywhere in the CCL file denotes the start of a comment.
The characters such as [, ], {, and } are special only if used in conjunction with $. Following a $, such
characters terminate the preceding Perl variable name.
Other characters that might be special elsewhere in power syntax are escaped automatically when they
appear in parameter values. For example, @, % and & are escaped automatically (that is, you do not need to
precede these characters with the escape character \ when using them in parameter values).
Parameter values can contain commas, but if the string is processed as a List or part of a List then the commas
may be interpreted as separators (see below under List data types).
Some examples of valid parameter values using special characters in power syntax are:
Estimated cost = \$500
Title = Run\#1
Sys Command = "echo Starting up Stress solver ; fred.exe &"
234
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameter values for data types other than String will additionally conform to one of the following
definitions.
13.1.3.10.3. Integer
Sequence of digits containing no spaces or commas. If a real is specified when an integer is needed,
the real is rounded to the nearest integer.
13.1.3.10.5. Real
A single-precision real number that may be specified in integer, floating point, or scientific format, followed optionally by a dimension. Units use the same syntax as CEL.
Expressions are allowed to include commas inside function call argument lists.
Example usage:
a = 12.24
a = 1.224E01
a = 12.24 [m s^-1]
The list syntax 5*2.0 to represent 5 entries of the value 2.0 is not supported within CCL and hence
within CFD-Post.
13.1.3.10.7. Logical
Several forms are acceptable: YES, TRUE, 1 or ON are all equivalent; NO or FALSE or 0 or OFF are all
equivalent; initial letter variants Y, T, N, F are accepted (O is not accepted for On/Off); all case variants
are accepted. Logical strings are also case insensitive (YeS, nO).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
235
236
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
CFX-Pre and CFD-Post evaluate CEL expressions with single (not double) precision.
Important
There is some CEL that works elsewhere in ANSYS CFX, but not in CFD-Post. Any expression
created in CFX-Pre and used as a Design Exploration output parameter could potentially
cause fatal errors during the Design Exploration run, so you should create all expressions for
Design Exploration output parameters in CFD-Post.
This chapter describes:
14.1. CEL Fundamentals
14.2. CEL Operators, Constants, and Expressions
14.3. CEL Examples
14.4. CEL Technical Details
237
In this example, you may want to predefine <Value_1> and <Value_2>, but this is not required.
However, in order to add two quantities together, they must have the same dimension; that is, it is
meaningful to add a quantity in inches to one expressed in meters, but it is not meaningful to add one
expressed in kilograms to one in square feet.
Expressions can also be functions of other (predefined) expressions:
<Expr_2> = <Expr_1> + <Value_3>
Units follow the conventions in the rest of CFX, in that a calculation has a set of solution units (by default,
SI units), and that any quantity can be defined either in terms of the solution units, or any other set of
units with the correct form.
An expression does not have its own units string, but if it references quantities that have dimensions,
these will determine the resulting units for the expression. For example, if an expression depends inversely
on the square of the x coordinate, then it has implied dimensions of length to the power -2.
Note that if <locator> does not appear as a physics name or a mesh name, the expression fails.
238
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CEL Fundamentals
The statement must consist of the following:
a number, optionally with associated units. This defines a constant. Constants without units are termed dimensionless.
for mathematical expressions, one or more references to mathematical constants, system variables, or existing
user variables, separated by + (addition), - (subtraction), * (multiplication), / (division) and ^ (exponentiation),
with optional grouping of these by parentheses. The syntax rules for these expressions are the same as
those for conventional arithmetic.
for logical expressions involving relational operators, one or more references to mathematical constants or
results from mathematical expressions, separated by <= (is less than or equal to), < (is less than), == (is equal
to), != (is not equal to), > (is greater than) and >= (is greater than or equal to) with optional grouping of
these by parentheses.
for logical expressions involving logical operators, one or more references to logical constants or results
from relational operations separated by ! (negation), && (logical AND) and || (logical OR), with optional
grouping by parentheses.
239
Note that the operator may be used at the end of a line (A +) or at the beginning of a line (/ C). You
do not need to enter the operator twice.
Once the expression has been created, it will appear in the Existing Definitions list box as if it were
generated on a single line (A + B/C).
First
Operands
Dimensions
[x]
-x
Any
x+y
Any
x-y
Second
Operands
Dimensions
[y]
Operands
Values
Results
Dimensions
(Approx)a
Any
[x]
[x]
Any
[x]
Any
[x]
Any
[x]
x*y
Any
Any
Any
[x]*[y]
x/y
Any
Any
[x]/[y]
x^y (if y is a
simple,
constant,
Any
Dimensionless
240
Anyb
[x]^y
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
First
Operands
Dimensions
[x]
Second
Operands
Dimensions
[y]
Operands
Values
Results
Dimensions
x^y (if y is
any simple,
constant,
expression)
Any
Dimensionless
x>0
[x]^y
x^y (if y is
not simple
and
constant)
Dimensionless
Dimensionless
x>0
Dimensionless
!x
Dimensionless
false or
true
Dimensionless
x <= y
Any
[x]
false or
true
Dimensionless
x<y
Any
[x]
false or
true
Dimensionless
x>y
Any
[x]
false or
true
Dimensionless
x >= y
Any
[x]
false or
true
Dimensionless
x == y
Any
[x]
false or
true
Dimensionless
x != y
Any
[x]
false or
true
Dimensionless
x && y
Dimensionless
Dimensionless
false or
true
Dimensionless
x || y
Dimensionless
Dimensionless
false or
true
Dimensionless
(Approx)a
integer
expression)
The logical constants true and false are represented by "1" and "0" when a numerical representation is required.
For y < 0, x must be non-zero.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
241
Note
The expressions true_expr and false_expr are always evaluated independent of
whether the evaluation of cond_expr is true or false. As a consequence, a conditional
statement cannot be used to avoid division by zero as in if( x>0, 1/x, 1.0). In this
case, when x=0.0, a division by zero will still occur because the expression 1/x is evaluated
independent of whether x>0 is satisfied or not.
Units
Description
J K^-1 mol^-1
avogadro
mol^-1
6.02214199E+23
boltzmann
J K^-1
1.3806503E-23
clight
m s^-1
2.99792458E+08
Dimensionless
Constant: 2.7182817
echarge
As
Constant: 1.60217653E-19
epspermo
1./(clight*clight*mupermo)
m s^-2
mupermo
N A^-2
4*pi*1.E-07
pi
Dimensionless
Constant: 3.141592654
planck
Js
6.62606876E-34
stefan
W m^-2 K^-4
5.670400E-08
242
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CEL Examples
have temperature to the power of unity, any unit conversion will include the offset between temperature
scales. However, in all other cases the offset is ignored because this is usually the most appropriate
behavior. You should therefore take care when specifying an expression involving non-unit powers of
temperature. For example, each of the expressions below is equivalent:
Temperature
Temperature
Temperature
Temperature
=
=
=
=
30 [C]
303.15 [K]
0 [C] + 30 [K]
273.15 [K] + 30 [K]
These are only equivalent because all units are to the power of unity and units other than [K] appear
no more than once in each expression. The following expression will not produce the expected result:
Temperature = 0 [C] + 30 [C]
This is equivalent to 576.30 [K] because each value is converted to [K] and then summed. The two
expression below are equivalent (as expected) because the offset in scales is ignored for non-unit powers
of temperature:
Specific Heat = 4200 [J kg^-1 C^-1]
Specific Heat = 4200 [J kg^-1 K^-1]
where is density, U a velocity scale, L a length scale and the dynamic viscosity. The velocity scale
is taken as the inlet velocity, the length scale as the inlet width and the density is calculated as the average density over the inlet area.
The LIBRARY section of the CCL (CFX Command Language) file appears as follows:
LIBRARY :
CEL :
EXPRESSIONS :
Re = 4.29E6 [ ]
Vel = 60 [m s^-1]
L=1.044[m]
Visc=areaAve(density)@in*Vel*L/Re
END
END
MATERIAL : Air Ideal Gas
Option = Pure Substance
PROPERTIES :
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
243
This shows that four CEL expressions have been created. The first three expressions define constant
values that are used in the Visc expression. The Visc expression calculates the dynamic viscosity
based on the equation for Reynolds number given above. Within the expression the function
areaAve(density)@in is used to evaluate the average density at the inlet.
The Visc expression can now be used to replace the value of Dynamic Viscosity in the MATER
IAL > PROPERTIES section.
Fluid from a main and a side inlet enter at temperatures of 275 K and 375 K respectively. The temperature
of the fluid entering from the third inlet depends on the outlet temperature. When the outlet temperature is greater than 325 K, the fluid from the third inlet is set to 275 K. When the outlet temperature
is less than 325 K, the fluid from the third inlet is set to 375 K. In addition an expression is used to set
the dynamic viscosity to be a linear function of temperature.
The LIBRARY section of the .ccl (CFX Command Language) file appears as follows. Note that the \
character indicates a line continuation in CCL.
LIBRARY:
MATERIAL: Water at STP Modified
Option = Pure Substance
PROPERTIES:
Option = General Fluid
Density = 9.999E2 [kg m^-3]
Dynamic Viscosity = VisT
Specific Heat Capacity = 4.21E3 [J kg^-1 K^-1]
Thermal Conductivity = 5.69E-1 [W m^-1 K^-1]
END # PROPERTIES
END # MATERIAL Water at STP Modified
CEL:
EXPRESSIONS:
Tupper = 375.0 [ K ] # Upper temp.
Tlower = 275.0 [ K ] # Lower temp.
Visupper = 0.000545 [ N s m^-2 ] # Vis. at Tupper
Vislower = 0.0018 [ N s m^-2 ] # Vis. at Tlower
VisT = Vislower+(Visupper-Vislower)*(T-Tlower)/ \
(Tupper-Tlower)
244
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CEL Examples
# Vis.-Temp. relationship
Tm=(Tupper+Tlower)/2
Tout=areaAve(Water at STP Modified.T)@outlet
Tcontrol=Tlower*step((Tout-Tm)/1[K]) \
+Tupper*step((Tm-Tout)/1[K])
END # EXPRESSIONS
END # CEL
END # LIBRARY
The first four expressions, Tupper, Tlower, Visupper and Vislower are simply constant values to
define temperature and viscosity values. The expression VisT produces a linear function for the dynamic
viscosity taking a value of Visupper at Tupper and a value of Vislower at Tlower. The expression
Tm sets the desired value of the outlet temperature. In this case it is set to a mean value of the two
inlet temperatures.
Tout calculates the outlet temperature using the areaAve function.
Finally the expression Tcontrol is used to set the temperature of the third inlet. Two step functions
are used so that the temperature is equal to Tlower when Tout-Tm is positive (that is, the outlet
temperature is greater than Tm), and is equal to Tupper when Tout-Tm is positive.
When you click Apply, the value is shown below the editor.
Tip
Alternatively, type the expression in a table cell and prefix with = sign. The cell displays the
result when you click outside of the cell.
The second example is a variable expression that plots the pressure coefficient variation on a surface
or a line:
1.
Click the Expressions tab, then right-click in the Expressions area and select New.
2.
3.
4.
5.
Select Insert > Location > Line and use the details view to position the line in the simulation.
From the details view Color tab, plot the user variable on a surface or a line (just as you would
with any other variable).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
245
246
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
In the Function column in the table below, [a] denotes any dimension of the first operand.
Table 15.1: Standard Mathematical CEL Functions
Function
Operands Values
Results Dimensions
abs( [a] )
Any
[a]
acos( [ ] )
Radians
asin( [ ] )
Radians
atan( [ ] )a
Any
Radians
Any
Radians
besselJ( [ ], [ ] )b
Dimensionless
besselY( [ ], [ ] )b
Dimensionless
cos( [radians] )
Any
Dimensionless
cosh( [ ] )
Any
Dimensionless
exp( [ ] )
Any
Dimensionless
int([ ])c
Dimensionless
Dimensionless
loge( [ ] )d
Dimensionless
log10( [ ] )e
Dimensionless
Any
[a]
Any
[a]
Any
[a]
nint([ ])g
Dimensionless
Dimensionless
sin( [radians] )
Any
Dimensionless
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
247
Operands Values
Results Dimensions
sinh( [ ] )
Any
Dimensionless
sqrt( [a] )
[a]^0.5
Any
Dimensionless
tan( [radians] )i
Any
Dimensionless
tanh( [ ] )
Any
Dimensionless
step( [ ] )
atan does not determine the quadrant of the result, but atan2 does.
The value of the first dimensionless operand n, also referred to as the order of the Bessel function, must be an integer (n=0, 1, 2,
....). The second argument is a dimensionless real number.
c
The int() function truncates the dimensionless argument to its integer part.
b
Examples:
int(1) = 1
int(2.5) = 2
int(-3.1) = -3
int(-4.8) = -4
The int() function requires a dimensionless argument but will not report an error if the argument of the function has a dimension
of radians or degrees.
d
ln(x) is valid as an alias for loge(x)
e
log(x) is valid as an alias for log10(x)
f
mod(x, y) returns the remainder on dividing x by y; the function is not defined for y = 0.
g
The nint function requires a dimensionless argument and is defined as:
int(x + 0.5) if x >= 0
int(x - 0.5) if x < 0
See the implementation of int( ) function in the table above.
Examples:
nint(2.6) = 3
nint(2.5) = 3
nint(2.4) = 2
nint(1) = 1
nint(-1) = -1
nint(-2.4) = -2
nint(-2.5) = -3
nint(-2.6) = -3
Note that the nint() function will not report an error if the argument of the function has a dimension of radians or degrees.
h
step(x) is 0 for negative x, 1 for positive x and 0.5 for x=0. x must be dimensionless.
i
tan(x) is undefined for x=n /2, where n=1, 3, 5, ...
248
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
You must use consistent units when adding, subtracting, or comparing values.
There are some differences between CEL functions in CFX-Pre and CFX-Solver and those in
CFD-Post. For details, see below.
The syntax used for calling these functions when used within CEL expressions is:
[<Phase_Name>.][<Component_Name>.]<Function>([<Operand>])@<Location>
where:
Terms enclosed in square brackets [ ] are optional and terms in angle brackets < > should be replaced
with the required entry.
<Phase_Name>: specifies a valid name of a phase. The phase can be fluid, particle, solid, fluid pair, or
polydispersed fluid. For multi-phase cases in CFX-Pre, if the phase name is not specified in the <Operand>,
then the phase name associated with the domain, subdomain, domain boundary, initialization or function
in which the operand is being evaluated will be used. For multi-phase cases in CFX-Pre, a discussion of the
handling of the phase name when it is not used to qualify (prepended to) <Function> and/or <Operand>
can be found in CEL Functions with Multiphase Flow (p. 252). For multi-phase cases in CFD-Post, if the phase
name is not specified then the bulk quantity (if available for the CFX-Solver Results file) is used.
<Component_Name>: specifies a valid name of a component material, size group, or reaction
<Function>: specifies the CEL function to evaluate. See Quantitative Function List (p. 253). The function
can be further qualified by appending _Coordinate_Direction. In CFX-Pre, if the coordinate frame is
not specified (in _Coordinate_Direction ) then the function will use the coordinate frame associated
with the object (such as for a material, domain, subdomain, domain boundary, source point, monitor point,
initialization, reference location or spark ignition object) in which it is being invoked.
<Coordinate_Direction>: specifies a particular coordinate direction. The syntax of the coordinate
direction is [x|y|z][_<Coordinate_Frame>] where the coordinate frame can be the global coordinate
frame or any user defined coordinate frame. In CFD-Post, if the coordinate frame is not specified then the
global frame is used. See Coordinate Frame Command in the CFD-Post User's Guide, for discussion of creating
a coordinate frame in CFD-Post.
<Operand>: specifies the argument of the function (if required). The operand can be either a valid mathematical CEL expression (only in CFD-Post) or specified using the following general variable syntax:
[<Phase_Name>.][<Comp_Name>.]<Var_Name>[.<Var_Operator>][.Difference]
249
Short Name
Magnitude
magnitude
Gradient
grad
Curl
curl
Laplacian
laplacian
Time Derivative
dt
Transient Minimum
Trnmin
Transient Maximum
Trnmax
Trnsdv
Transient RMS
Trnrms
Transient Average
Trnavg
Boundcon
hybrid
All but the <Derived> operator are available in CFX-Pre and the CFX-Solver. See Data Acquisition
Routines in the CFX-Solver Modeling Guide. The <Derived> variable operator is available only in
CFD-Post, for example Absolute Helicity derived for use with Vortex Cores, see Vortex Core
Region in the CFD-Post User's Guide. In CFX-Pre the variable operator can be further qualified by appending _<Coordinate_Direction>.
The Magnitude and Curl operators may only be applied to vector variables. All other operators
may be applied to scalar variables and vector components.
<Location>: specifies the location over which the function is to be applied. The syntax of location is:
[Case:<Case_Name>.][REGION:]<Location_Name>
The case syntax [Case:<Case_Name>.] is only available in CFD-Post. When multiple cases are
loaded, this syntax is used to narrow down the locator to the desired case.
250
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
You cannot use a composite region that consists of a mixture of 2D and 3D regions.
area()@REGION:myCompositeMeshRegion
area_x()@inlet
Water at RTP.force_z()@Default
area()@CASE:newcase.myplane
probe(Pressure)@CASE:1.Point 1
probe(Pressure)@CASE:2.Point 1
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
251
Behavior
massFlow()@inlet
Air.massFlow()@inlet
massFlowAve(Pressure)@inlet
Air.massFlowAve(Pressure)@in
let
massFlowAve(Air.Volume Frac
tion)@inlet
Air.massFlowAve(Air.Volume
Fraction)@inlet
Air.massFlowAve(Volume Frac
tion)@inlet
Same as Air.massFlowAve(Air.Volume
Fraction)@ inlet
massInt(Air.Volume Frac
tion)@domain1
Same as Air.massInt(Air.Volume
Fraction)@ domain1
Air.massInt(Volume Frac
tion)@domain1
Same as Air.massInt(Air.Volume
Fraction)@ domain1
252
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Behavior
10
massFlowAve(Volume Frac
tion)@inlet
Operation
Availability
area( )
All
Supports @<Location>.
See area (p. 257).
area_x[_<Coord Frame>]( )
area_y[_<Coord Frame>]( )
area_z[_<Coord Frame>]( )
Alla
Supports @<Location>.
areaAve(<Variable|Expression>)
Area-weighted average of
<Variable|Expression> on a boundary.
All
Supports @<Location>.
See areaAve (p. 258).
areaAve_x[_<Coord
Frame>]( )
areaAve_y[_<Coord
Frame>]( )
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CFD-Post
253
Operation
areaAve_z[_<Coord
Frame>]( )
Availability
Supports @<Location>.
areaInt(<Variable|Expression>)
Area-weighted integral of
<Variable|Expression> on a boundary.
All
All
Supports @<Location>.
ave(<Variable|Expression>)
All
Supports @<Location>.
See ave (p. 260).
count( )
All
All
Supports @<Location>.
See countTrue (p. 262).
force( )
254
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
All
Operation
Availability
CFD-Post
Alla
force_y[_<Coord Frame>]( )
Supports [<Phase>.] and @<Location>.
force_z[_<Coord Frame>]( )
inside()
CFX-Pre,
CFX-Solver
Supports @<Location>.
See inside (p. 264).
length()
Length of a curve.
CFD-Post
Supports @<Location>.
See length (p. 264).
lengthAve(<Variable|Expression>) Length-weighted average.
CFD-Post
Supports @<Location>.
See lengthAve (p. 265).
lengthInt(<Variable|Expression>)
Length-weighted integration.
CFD-Post
Supports @<Location>.
See lengthInt (p. 266).
mass()
CFX-Pre,
CFX-Solver
Supports @<Location>.
See mass (p. 266).
massAve(<Variable|Expression>)
Mass-weighted average of
<Variable|Expression> on a domain or
subdomain.
CFX-Pre,
CFX-Solver
Supports @<Location>.
See massAve (p. 266).
massFlow()
All
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
255
Operation
Availability
All
All
All
CFX-Pre,
CFX-Solver
Supports @<Location>.
See massInt (p. 270).
maxVal(<Variable|Expression>)
All
Supports @<Location>.
See maxVal (p. 271).
minVal(<Variable|Expression>)
All
Supports @<Location>.
See minVal (p. 271).
probe(<Variable|Expression>)
All
Supports @<Location>.
See probe (p. 272).
rbstate(<rbvar>[<axis>])
256
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CFX-Pre,
CFX-Solver
Operation
Availability
CFX-Pre,
CFX-Solver
Supports @<Location>.
See rmsAve (p. 273).
sum(<Variable|Expression>)
All
Supports @<Location>.
See sum (p. 273).
torque( )
All
Alla
torque_y[_<Coord Frame>]()
Supports [<Phase>.] and @<Location>.
torque_z[_<Coord Frame>]()
volume( )
All
Supports @<Location>.
See volume (p. 274).
volumeAve(<Variable|Expression>) Volume-weighted average of
<Variable|Expression> on a domain.
All
Supports @<Location>.
See volumeAve (p. 275).
volumeInt(<Variable|Expression>) Volume-weighted integration of
<Variable|Expression> within a domain or
subdomain.
All
Supports @<Location>.
See volumeInt (p. 275).
a
See the definition for [_<Coordinate_ Direction>]] in Quantitative CEL Functions in ANSYS CFX (p. 249)
15.5.1. area
The area function is used to calculate the area of a 2D locator.
area[_<Axis>[_<Coord Frame>] ]()@<Location>
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
257
The specification of an axis is optional. If an axis is not specified, the value held in the object will be
used. To calculate the total area of the location, the axis specification should be left blank (that is, type
a comma after the location specification).
>calculate area, myplane calculates the area of the locator myplane projected onto a plane
normal to the axis specification in the CALCULATOR object.
>calculate area, myplane, calculates the area of the locator myplane. Note that adding the
comma after myplane removes the axis specification.
15.5.2. areaAve
The areaAve function calculates the area-weighted average of a variable or expression on a 2D location.
The area-weighted average of a variable or expression is the average value of the variable or expression
on a location with the mesh element sizes taken into account. Without the area weighting function,
the average of all the nodal variable or expression values would be biased towards values in regions
of high mesh density.
areaAve[_<Axis>[_<Coord Frame>] ](<Variable|Expression>)@<Location>
where:
<Axis> is x, y, or z.
<Coord Frame> is available in CFD-Post only.
<Variable|Expression> is a variable or expression.
<Location> is any 2D region (such as a boundary or interface). An error is raised if the location specified
is not a 2D object.
258
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can create an expression using this, and then create a user variable using the expression. The user
variable can then be plotted on objects like any other variable.
Note
Projected areaAve (for example, areaAve_x) works as expected only for surfaces that do not
fold in the selected direction. In extreme case, if the surface is fully closed, the projected
average will result in a randomly large number, as the projected area will be zero.
15.5.3. areaInt
The areaInt function integrates a variable over the specified 2D location. To perform the integration
over the total face area, select the None option from the Axis drop-down menu. If a direction is selected,
the result is an integration over the projected area of each face onto a plane normal to that direction.
Each point on a location has an associated area that is stored as a vector and therefore has direction.
By selecting a direction in the function calculator, you are using only a single component of the vector
in the area-weighting function. Because these components can be positive or negative, depending on
the direction of the normal on the location, it is possible for areas to cancel out. An example of this
would be on a closed surface where the projected area will always be zero (the results returned will
not in general be exactly zero because the variable values differ over the closed surface). On a flat surface,
the normal vectors always point in the same direction and never cancel out.
areaInt[_<Axis>[_<Coord Frame>] ](<Variable|Expression>)@<Location>
where:
<Axis> is x, y, or z.
Axis is optional; if not specified the integration is performed over the total face area. If axis is specified,
then the integration is performed over the projected face area. A function description is available.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
259
Axis is optional. If it is not specified, the value held in the object will be used. To perform the integration
over the total face area, the axis specification should be blank (that is, type a comma after the location
name). A function description is available in areaInt (p. 259).
15.5.4. ave
The ave function calculates the arithmetic average of a variable or expression on the specified location.
Note
CFD-Post and CFX-Solver may compute slightly different average values due to differences
in how the average is computed:
CFD-Post computes the arithmetically averaged vertex value for the location. Specifically, the
average is computed by summing the vertex values and then dividing by the number of vertices.
CFX-Solver computes the arithmetically averaged face value for the location. Specifically, the
average is computed by summing the face values and then dividing by the number of faces. The
value for a particular face is computed by arithmetically averaging the vertex values of the face.
Computation in CFX-Solver and CFD-Post can be made more consistent by using expert parameter
bcp arithmetic aver sum option. For details, see Discretization Parameters in the CFXSolver Modeling Guide.
260
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
where:
<Variable|Expression> is a variable or expression.
<Location> is any 3D region (such as a domain or subdomain).
The ave function can be used on point, 1D, 2D, and 3D locations.
ave(Yplus)@Default calculates the mean Yplus values from each node on the default walls.
Note
To obtain a mesh-independent result, you should use the lengthAve, areaAve, volumeAve
or massFlowAve functions.
The average of a vector value is calculated as an average of its magnitudes, not the magnitude of
component averages. As an example, for velocity:
(15.1)
where
(15.2)
15.5.5. count
The count function returns the number of nodes on the specified location.
count()@<Location>
where:
<Location> is valid for point, 1D, 2D, and 3D locations.
count()@Polyline1 returns the number of points on the specified polyline locator.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
261
15.5.6. countTrue
The countTrue function returns the number of mesh nodes on the specified region that evaluate to
true, where true means greater than or equal to 0.5. The countTrue function is valid for 1D, 2D, and
3D locations.
countTrue(<Expression>)@<Location>
In CFX-Solver:
>calculate countTrue(TemperatureLE), Domain1
15.5.7. force
This function returns the force exerted by the fluid on the specified 2D locator in the specified direction.
[<Phase>.]force[_<Axis>[_<Coord Frame>] ]()@<Location>
where:
[<Phase>.] is an optional prefix that is not required for single-phase flows. For details, see CEL Functions
with Multiphase Flow (p. 252).
<Axis> is x, y, or z
<Coord Frame> is the coordinate frame
<Location> is any 2D region (such as a boundary or interface).
262
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15.5.8. forceNorm
Returns the per unit width force on a line in the direction of the specified axis. It is available only for a
polyline created by intersecting a locator on a boundary. Momentum data must also be available. The
magnitude of the value returned can be thought of as the force in the specified direction on a polyline,
if the polyline were 2D with a width of one unit.
[<Phase>.]forceNorm[_<Axis>[_<Coord Frame>] ]()@<Location>
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
263
15.5.9. inside
The inside CEL function is essentially a step function variable, defined to be unity within a subdomain
and zero elsewhere. This is useful for describing different initial values or fluid properties in different
regions of the domain. It is similar to the CEL subdomain variable, but allows a specific 2D or 3D location
to be given. For example, 273 [K] * inside()@Subdomain 1 has a value of 273 [K] at points
in Subdomain 1 and 0 [K] elsewhere. The location does not need to be a subdomain, but can be any
2D or 3D named sub-region of the physical location on which the expression is evaluated. For immersed
solids simulations, the location can also be a specific immersed solid domain, and the inside function
will be updated automatically at the beginning of each time step.
inside()@<Location>
where:
<Location> is any 2D or 3D named sub-region of the physical location on which the expression is evaluated.
<Location> can also be an immersed solid domain on which the expression is evaluated dynamically.
Note
The inside CEL function is not available in CFD-Post.
15.5.10. length
Computes the length of the specified line as the sum of the distances between the points making up
the line.
264
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
where:
<Location> is any 1D location. Specifying a 2D location will not produce an error; the sum of the edge
lengths from the elements in the locator will be returned.
length()@Polyline1 returns the length of the polyline.
Note
While using this function in Power Syntax, the leading character is capitalized to avoid confusion with the Perl internal command length.
15.5.11. lengthAve
Computes the length-based average of the variable or expression on the specified line. This is the 1D
equivalent of the areaAve function. The results is independent of the nodal distribution along the
line because a weighting function assigns a higher weighting to areas of sparse nodal density.
lengthAve(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is any 1D or 2D location.
lengthAve(T)@Polyline1 calculates the average temperature on Polyline1 weighted by the
distance between each point (T is the system variable for temperature).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
265
15.5.12. lengthInt
Computes the length-based integral of the variable or expression on the specified line. This is the 1D
equivalent of the areaInt function.
lengthInt(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is any 1D location.
15.5.13. mass
mass()@<Location>
where:
<Location> is any 3D region (such as a domain or subdomain).
15.5.14. massAve
massAve(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is any 3D region (such as a domain or subdomain).
15.5.15. massFlow
Computes the mass flow through the specified 2D location.
[<Phase>.]massFlow()@<Location>
where:
[<Phase>.] is an optional prefix that is not required for single-phase flows. For details, see CEL Functions
with Multiphase Flow (p. 252).
<Location> is any fluid surfaces (such as Inlets, Outlets, Openings and fluid-fluid interfaces).
Air at STP.massFlow()@DegassingOutlet calculates the mass flow of Air at STP through
the selected location.
For boundary locators:
266
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The availability depends on the setting for Output Boundary Flows for the file (see Output Boundary Flows Check Box in the CFX-Pre
User's Guide for details).
In addition to this, mass flow information written to a backup file at time zero is not accurate. To calculate accurate mass flow
from a backup file, use information from the backup file written after the first timestep/iteration of the run.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
267
15.5.16. massFlowAve
Computes the average of a variable or expression on the specified 2D location. The massFlowAve
function enables you to select the fluids to use for the calculation. The returned result is the average
variable or expression value, evaluated according to the formula:
(15.3)
where represents the variable or expression being averaged and represents the local mass flow
(net local mass flow if more than one fluid is selected). Each summation term is evaluated on, and corresponds to, a node on the 2D locator. The mass flow for each term is derived from summing contributions from the surrounding solver integration points. As a result, the denominator evaluates to the net
mass flow through the 2D locator.
In cases where there is significant flow, but little or no net flow through the 2D locator (as can happen
with recirculation), the denominator of the averaging formula becomes small, and the resulting average
value may become adversely affected. In such cases, the massFlowAveAbs (see massFlowAveAbs (p. 268)) function is a viable alternative to the massFlowAve function.
[<Phase>.]massFlowAve(<Variable|Expression>)@<Location>
where:
[<Phase>.] is an optional prefix that is not required for single-phase flows. For details, see CEL Functions
with Multiphase Flow (p. 252).
<Variable|Expression> is a variable or expression.
<Location> is any fluid surfaces (such as Inlets, Outlets, Openings and fluid-fluid interfaces). An error is
raised if the location specified is not 2D.
massFlowAve(Density)@Plane1 calculates the average density on Plane1 weighted by the mass
flow at each point on the location.
Examples:
Tools > Function Calculator Example
This example calculates the average velocity on Plane1 weighted by the mass flow for all fluids assigned to each point on Plane1:
Function: massFlowAve, Location: Plane1, Variable: Velocity, Phase: All Fluids
Tools > Command Editor Example
>calculate massFlowAve, <Variable|Expression>, <Location>, [<Phase>]
15.5.17. massFlowAveAbs
This function is similar to the massFlowAve function (see massFlowAve (p. 268)), except that each
local mass flow value used in the averaging formula has the absolute function applied. That is:
268
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(15.4)
[<Phase>.]massFlowAveAbs(<Variable|Expression>)@<Location>
where:
[<Phase>.] is an optional prefix that is not required for single-phase flows. For details, see CEL Functions
with Multiphase Flow (p. 252).
<Variable|Expression> is a variable or expression.
<Location> is any fluid surfaces (such as Inlets, Outlets, Openings and fluid-fluid interfaces). An error is
raised if the location specified is not 2D.
massFlowAve(Density)@Plane1 calculates the average density on Plane1 weighted by the mass
flow at each point on the location.
In cases where there is significant flow, but little or no net flow through the 2D locator (as can happen
with recirculation), the massFlowAveAbs function is a viable alternative to the massFlowAve function
(see massFlowAve (p. 268)).
See Details on Mass Flow Related Functions (p. 269).
Note
The values of variables other than mass flow are stored at the mesh nodes and are applied
to the locator nodes by linear interpolation. For the mass flow variable, CFD-Post uses either:
Integration point mass flow data, or
Approximate mass flow values based on mesh nodal values of velocity (and density, if available)
according to Table 15.5: Source of mass flow data (p. 269).
Table 15.5: Source of mass flow data
Flow condition
MassFlowAve
MassFlowAveAbs
No recirculation
(backflow) present
Integration point
data if available (CFX
results only),
otherwise
approximate mass
flow values
Integration point
data if available (CFX
results only),
otherwise
approximate mass
flow values
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
269
Flow condition
MassFlowAve
MassFlowAveAbs
recirculation
(backflow) present
Integration point
data if available (CFX
results only),
otherwise
approximate mass
flow values
Approximate mass
flow values
Note
The massFlow, massFlowAve, and massFlowAveAbs functions in CFD-Post can be inaccurate when evaluated on a physical locator (cut plane, isosurface, etc.) that cuts through a
GGI interface, due to inaccuracies in evaluating the conserved mass flow (from integration
point data) along the intersection of the physical locator and the GGI interface. In this situation,
calculating the approximate mass flow would be more accurate. The approximate mass flow
can be calculated with an expression of the form: sum(Approximated Mass
Flow)@[locator]. For example, sum(Approximated Mass Flow)@Plane 1.
15.5.19. massFlowInt
Integrates a variable or expression over the specified 2D location. A weighting function is applied to
the variable or expression value at each point based on the mass flow assigned to that point. You can
also specify the fluid(s) used to calculate the mass flow at each locator point.
[<Phase>.]massFlowInt(<Variable|Expression>)@<Location>
where:
[<Phase>.] is an optional prefix that is not required for single-phase flows. For details, see CEL Functions
with Multiphase Flow (p. 252).
<Variable|Expression> is a variable or expression.
<Location> is any fluid surfaces (such as Inlets, Outlets, Openings and fluid-fluid interfaces). An error is
raised if the location specified is not 2D.
15.5.20. massInt
The mass-weighted integration of a variable or expression within a domain or subdomain.
massInt(<Variable|Expression>)@<Location>
270
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15.5.21. maxVal
Returns the maximum value of the specified variable or expression on the specified locator. You should
create a user variable if you want to find the maximum value of an expression.
maxVal(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is, in the context of CFX-Solver, a 2D region or 3D region (such as a domain or subdomain)
or, in the context of CFD-Post, a Point object or a 1D, 2D, or 3D locator.
15.5.22. minVal
Returns the minimum value of the specified variable or expression on the specified locator. You should
create a user variable if you want to find the minimum value of an expression.
minVal(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is, in the context of CFX-Solver, a 2D region or 3D region (such as a domain or subdomain)
or, in the context of CFD-Post, a Point object or a 1D, 2D, or 3D locator.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
271
15.5.23. probe
Returns the value of the specified variable or expression on the specified Point object.
probe(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is any point object (such as a Source Point or Cartesian Monitor Point).
Important
This calculation should be performed only for point locators described by single points. Incorrect solutions will be produced for multiple point locators.
15.5.24. rbstate
Returns the value of the specified rigid body state variable, or axis component thereof, on the specified:
Rigid Body object (for a standard rigid body definition), or
Immersed Solid domain that is governed by a rigid body solution.
The rigid body state variables are:
Position
Linear Velocity
Linear Acceleration
Euler Angle
Angular Velocity
Angular Acceleration
Syntax:
rbstate(<rbvar>[<Axis>])@<Location>
where:
<rbvar> is a rigid body state variable.
272
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15.5.25. rmsAve
The rmsAve function calculates the RMS average of a variable or expression on the specified location.
CFX-Solver computes the RMS average of the vertex values for a 3D location.
CFX-Solver computes the RMS average of the face values for a 2D location. The value for a particular face is
computed by arithmetically averaging the vertex values of the face.
rmsAve(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is a 2D region or 3D region (such as a domain or subdomain).
15.5.26. sum
The sum function calculates the sum of a variable or expression on the specified location.
Note
CFD-Post and CFX-Solver compute the sum in different ways:
CFD-Post computes the sum of the vertex values for the location.
CFX-Solver computes the sum of the vertex values for a 3D location.
CFX-Solver computes the sum of the face values for a 2D location. The value for a particular face
is computed by arithmetically averaging the vertex values of the face.
sum(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
273
15.5.27. torque
Returns the torque on a 2D locator about the specified axis. The force calculated during evaluation of
the torque function has the same behavior as the force function. For details, see force (p. 262). You can
select the fluids involved in the calculation.
[<Phase>.]torque_[<Axis>[_<Coord Frame>] ]()@<Location>
where:
[<Phase>.] is an optional prefix that is not required for single-phase flows. For details, see CEL Functions
with Multiphase Flow (p. 252).
<Axis> is x, y, or z
<Coord Frame>
<Location> is any 2D region (such as a wall). If the location specified is not 2D, an error is raised.
15.5.28. volume
Calculates the volume of a 3D location.
volume()@<Location>
where:
<Location> is any 3D region (such as a domain or subdomain). An error is raised if the location specified
is not a 3D object. For details, see volume (p. 274).
274
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15.5.29. volumeAve
Calculates the volume-weighted average of a variable or expression on a 3D location. This is the 3D
equivalent of the areaAve function. The volume-weighted average is the average value on a location
weighted by the volume assigned to each vertex on a location. Without the volume weighting function,
the average of all the nodal values would be biased towards values in regions of high mesh density.
The following example demonstrates use of the function.
volumeAve(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is any 3D region (such as a domain or subdomain).
15.5.30. volumeInt
Integrates the specified variable or expression over the volume location. This is the 3D equivalent of
the areaInt function.
volumeInt(<Variable|Expression>)@<Location>
where:
<Variable|Expression> is a variable or expression.
<Location> is any 3D region (such as a domain or subdomain). An error is raised if the location specified
is not a 3D object.
For example, volumeInt(Density)@StaticMixer will calculate the total fluid mass in the domain
StaticMixer.
Note
Because the Density variable represents the average density during the timestep rather than
the density at the end of the timestep, the volumeInt(Density) does not accurately
give the mass of fluid at the end of a timestep. Use the mass() function instead.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
275
276
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.
277
Using velocity as an example, the velocity value calculated at a mesh node is based upon the average
in the control volume surrounding that node. For calculation purposes, the entire control volume is
then assumed to possess that velocity. At a boundary node, its surrounding control volume includes
an area in the bulk of the fluid (this area is highlighted around the boundary node marked 1). Hence,
the conservative velocity calculated at the wall node is not zero, but an average over the control
volume adjacent to the boundary. At a wall boundary node the difference between conservative and
hybrid values can be illustrated by considering the case of the mass flow rate through the wall-adjacent
control volume. If a zero velocity was enforced at the boundary node, then this would produce zero
mass flow through the control volume, which is clearly not correct.
278
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The entries in the Units columns are SI but could as easily be any other system of units.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
279
Note
Variables with names shown in bold text are not output to CFD-Post. However, some of
these variables can be output to CFD-Post by selecting them from the Extra Output Variables
List on the Results tab of the Solver > Output Control details view of CFX-Pre.
Long
Variable
Name
Short
Variable
Name
Units
Availability
Definition
Density
density
[kg m^-3]
A, C, M,
P, R, TS
Dynamic
Viscosity
viscosity
A, C, M,
P, R, TS
280
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
vel
[m s^-1]
Velocity vector.
A, C, M,
P, R, TS
Velocity
u
[m s^-1]
v
Velocity
v
Components of velocity.
A, C, M,
P, R, TS
Velocity
w
Pressure
1
A, C, M,
P, R, TS
Static
Pressure
pstat
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
281
Short
Variable
Name
Units
Availability
Definition
Total
Pressure
ptot
A, C, M,
P, R, TS
Wall
Shear
wall
shear
Pa
Volume
of Finite
Volume
X
coordinate
3,B
C, DT, R,
TS
x
[m]
Cartesian coordinate
components.
C
Y
coordinate
[m]
2
C
Z
coordinate
[m]
2
C
Kinematic
Diffusivity
visckin
2
C, M, P,
R, TS
282
Kinematic diffusivity
describes how rapidly a
scalar quantity would
move through the fluid in
the absence of convection.
For convection-dominated
flows, the kinematic
diffusivity can have little
effect because convection
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
sstrnr
Specific
Heat
Capacity
at
Constant
Pressure
Cp
Specific
Heat
Capacity
at
Constant
Volume
Cv
Thermal
Conductivity
cond
[s^-1]
2
A, C, M,
R, TS
[m^2 s^-2
K^-1]
2
A, C, M,
R, TS
[m^2 s^-2
K^-1]
2
A, C, M,
P, R, TS
[kg m s^-3
K^-1]
2
A, C, M,
R, TS
Thermal conductivity, , is
the property of a fluid that
characterizes its ability to
transfer heat by
conduction.
For details, see Thermal
Conductivity in the
CFX-Solver Modeling Guide.
Temperature
[K]
1
A, C, DT,
M, P, R,
TS
Total
Temperature
Ttot
[K]
1
A, C, M,
P, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
283
Short
Variable
Name
Units
Availability
Definition
Qwall
Wall
Heat
Transfer
Coefficient
htc
Total
Enthalpy
htot
Static
Enthalpy
[W m^-2]
2,B
C, DT, R,
TS
[W m^-2
K^-1]
2,B
C, R, TS
[m^2 s^-2]
enthalpy
[m^2 s^-2]
A, C, M,
R, TS
A, C, M,
P, R, TS
a
When a rotating frame of reference is used, all variables in the CFX-5 results file are relative to the rotating frame, unless specified
as a Stn Frame variable.
284
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
Blending
Function
for DES
model
desbf
[]
Turbulence
Kinetic
Energy
ke
Turbulence
Eddy
Dissipation
ed
Turbulent
Eddy
Frequency
tef
Eddy
Viscosity
eddy
viscosity
Reynolds
Stress
C, M, R,
TS
[m^2
s^-2]
1
A, C, M,
P, R, TS
[m^2
s^-3]
1
A, C, M,
P, R, TS
[s^-1]
1
A, C, M,
P, R, TS
rs
[kg
m^-1
s-1]
[m^2
s^-2]
A, C, M,
P, R, TS
A, C, M,
P, R, TS
Statistical
Reynolds
Stress uu
rsstat
uu
Statistical
Reynolds
Stress vv
rsstat
vv
[m^2
s^-2]
3
M, R
[m^2
s^-2]
3
M, R
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
285
Short
Variable
Name
Units
Availability
Definition
Statistical
Reynolds
Stress
ww
rsstat
ww
[m^2
s^-2]
Statistical
Reynolds
Stress uv
rsstat
uv
Statistical
Reynolds
Stress
uw
rsstat
uw
Statistical
Reynolds
Stress
vw
rsstat
vw
Velocity
Correlation
uu
uu
Velocity
Correlation
vv
vv
Velocity
Correlation
ww
ww
Velocity
Correlation
uv
uv
Velocity
Correlation
uw
uw
Velocity
Correlation
vw
vw
Yplus
yplusstd
M, R
[m^2
s^-2]
3
M, R
[m^2
s^-2]
3
M, R
[m^2
s^-2]
3
M, R
[m^2
s^-2]
3
C, M, R
[m^2
s^-2]
3
C, M, R
[m^2
s^-2]
3
C, M, R
[m^2
s^-2]
3
C, M, R
[m^2
s^-2]
3
C, M, R
[m^2
s^-2]
3
C, M, R
[]
2,B
C, R, TS
Solver
Yplus
yplus
[]
2,B
C, R, TS
286
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
Thermal
Expansivity
beta
[K^ -1]
Note
Variables with names shown in bold text are not output to CFD-Post. However, some of
these variables can be output to CFD-Post by selecting them from the Extra Output Variables
List on the Results tab of the Solver > Output Control details view of CFX-Pre.
Long
Variable
Name
Short
Variable
Name
Units
Availability
Isobaric
Compressibility
compisoP
[K^-1]
Isothermal
Compressibility
compisoT
Mach
Number
Mach
C, M, R
[m s^2 kg^-1]
2
C, M, R
[]
1
A, C, M,
R, TS
Shock
Indicator
shock
indicator
[]
2
A, C, M,
R, TS
Isentropic
Compressibility
Definition
compisoS
[m s^2 kg^-1]
2
C, M, R
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
287
Short
Variable
Name
Units
Availability
Definition
Note
Variables with names shown in bold text are not output to CFD-Post. However, some of
these variables can be output to CFD-Post by selecting them from the Extra Output Variables
List on the Results tab of the Solver > Output Control details view of CFX-Pre.
Long
Variable
Name
Short
Variable
Name
Units
User
Level
Definition
Latent
Heat
lheat
[]
C, R, M
Particle
Momentum
Source
ptmomsrc
Particle
Diameter
particle
diameter
[]
2
A, C, M,
P, R
[]
A, C, M,
R
Short
Variable
Name
Units
Availability
Definition
Total
Pressure
in Stn
Frame
ptotstn
Total
Temperature
Ttotstn
288
A, C, M,
P, R, TS
[K]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
in Stn
Frame
Total
Enthalpy
in Stn
Frame
htotstn
Mach
Number
in Stn
Frame
Machstn
Velocity
in Stn
Frame
velstn
Availability
Definition
A, C, DT,
M, P, R,
TS
2
A, C, M,
R, TS
[]
1
A, C, M,
R, TS
[m s^-1]
1
A, C, M,
R, TS
Short
Variable
Name
Real
Partition
Number
Units
Availability
Definition
[]
C, M, R
Short
Variable
Name
Units
Availability Definition
Mass
Fraction
mf
[]
A, C,
M, P,
R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
289
Short
Variable
Name
Units
Availability Definition
Mass
Concentration
mconc
[kg
m^-3]
The concentration of a
component.
A, C,
M, P,
R, TS
Note
Variables with names shown in bold text are not output to CFD-Post. However, some of
these variables can be output to CFD-Post by selecting them from the Extra Output Variables
List on the Results tab of the Solver > Output Control details view of CFX-Pre.
Long
Variable
Name
Short
Variable
Name
Units
Availability Definition
Interfacial
Area
Density
area
density
[m^-1]
Interphase
Mass
Transfer
Rate
ipmt
rate
Mean
Particle
Diameter
mean
particle
diameter
[m]
Volume
Fraction
vf
[]
C
[]
C
3
A, C,
M
1
A, C,
M, P,
R, TS
Conservative
Volume
Fraction
vfc
[]
Drift
Velocity
drift
velocity
2
A, C,
M, R,
TS
[]
2
C, M,
R, TS
290
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability Definition
Slip
Reynolds
Number
slip
Re
[]
Slip
Velocity
slipvel
C
[]
1
C, M,
R, TS
Surface
Tension
Coefficient
surface
tension
coefficient
[N
m^-1]
Unclipped
Interfacial Area
Density
unclipped
area
density
[m^-1]
Superficial
Velocity
volflx
[m
s^-1]
C
3
C
A, C,
M, R,
TS
Short
Variable
Name
Units
Availability Definition
Wall
Radiative
Heat
Flux
Qrad
[W
m^-2]
2,B
Wall
Heat
Flux
Qwall
DT, R,
TS
[W
m^-2]
2,B
C, DT,
R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
291
Short
Variable
Name
Units
Availability Definition
Wall
Irradiation
Flux
irrad
[W
m^-2]
2,B
Radiation
Intensity
radint
C, DT,
R, TS
[W
m^-2
sr^-1]
RA, R,
A, M,
C, P,
TS
Note
This quantity should not
be used for quantitative
calculations when
computed using
surface-to-surface models,
since it has been
agglomerated and it
represents an average
value over the whole
domain.
Wall
Absorbed
Radiation
Flux
sabsor
Incident
Radiation
radinc
[W
m^-2]
2,B
DT, R,
TS
[kg
s^-3]
1
C, DT,
M, R,
TS
Absorption
Coefficient
absorp
[m^-1]
1
C, M,
R, TS
Scattering
Coefficient
292
scatter
[m^-1]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability Definition
C, M,
R, TS
Refractive
Index
refrac
[
]
1
C, R,
TS
Radiative
Emission
rademis
[kg
s^-3]
1
RA
Extinction
Coefficient
extinct
[m^-1]
1
C
Emissivity
emis
[
]
1
C
Short
Variable
Name
Units
Availability Definition
Total
Enthalpy
htot
[m^2
s^-2]
A, C,
M, R,
TS
Rothalpy
rothalpy
[m^2
s^-2]
A, C,
M, R,
TS
Total
Enthalpy in
Stn Frame
htotstn
[m^2
s^-2]
A, C,
M, R,
TS
Total
Temperature
in Rel
Frame
Ttotrel
[K]
A, C,
DT,
M, P,
R, TS
Total
Temperature
Ttot
[K]
A, C,
DT,
M, P,
R, TS
Total
Temperature
Ttotstn
[K]
A, C,
DT,
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
293
Short
Variable
Name
Units
Availability Definition
in Stn
Frame
M, P,
R, TS
Total
Pressure in
Rel Frame
ptotrel
Total
Pressure
ptot
Total
Pressure in
Stn Frame
ptotstn
Short
Variable
Name
Units
Availability
Definition
Accumulated
Coupling
Step
acplgstep
[]
Accumulated
Iteration
Number
aitern
Accumulated
Time Step
atstep
C
[]
2
C
[]
2
C
Current
Iteration
Number
citern
Current
Stagger
Iteration
cstagger
Current
Time Step
ctstep
[]
2
C
[]
2
C
[]
2
C
294
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Sequence
Step
sstep
[]
Definition
C
Time Step
Size
dtstep
[s]
2
C
Time
[s]
2
C
Note
Variables with names shown in bold text in the tables that follow are not output to CFDPost. However, some of these variables can be output to CFD-Post by selecting them from
the Extra Output Variables List on the Results tab of the Solver > Output Control details
view in CFX-Pre.
Table 16.2: Common CEL Field Variables and Predefined Expressions
Long Variable
Name
Short
Variable
Name
Units
Availability
Definition
Axial
Distance
aaxis
[m]
Absorption
Coefficient
absorp
[m^-1]
1
C, M, R,
TS
The property of a
medium that describes
the amount of
absorption of thermal
radiation per unit path
length within the
medium. It can be
interpreted as the
inverse of the mean
free path that a
photon will travel
before being absorbed
(if the absorption
coefficient does not
vary along the path).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
295
Short
Variable
Name
Units
Availability
Boundary
Distance
bnd
distance
[m]
Definition
A, C, M,
R, TS
Boundary
Scale
bnd
scale
[m^-2]
3
C, M, R,
TS
Contact
Area Fraction
af
[]
[AV name]
[AV
name]
Thermal
Expansivity
beta
3
M
Additional Variable
name
[K^-1]
2
C
Effective
Density
deneff
[kg m^-3]
3
A, C, M,
R, TS
Density
density
[kg m^-3]
2
A, C, M,
P, R, TS
Turbulence
Eddy
Dissipation
ed
[m^2 s^-3]
Eddy
Viscosity
eddy
viscosity
1
A, C, M,
P, R, TS
[kg m^-1
s^-1]
1
A, C, M,
P, R, TS
Emissivity
emis
[]
1
C
Extinction
Coefficient
296
extinct
[m^-1]
1
C
A characteristic of a
surface that describes
the fraction of emitted
radiation with respect
to the blackbody
emission at the same
temperature.
The property of a
medium that describes
the amount of
absorption and
scattering of thermal
radiation per unit path
length for propagation
in the medium.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
Initial
Cartesian
Coordinates
initcartcrd
[m]
Turbulence
Kinetic
Energy
ke
Mach
Number
Mach
[m^2 s^-2]
1
A, C, M,
P, R, TS
[]
1
A, C, M,
R, TS
Mach
Number in
Stn Frame
Machstn
Mass
Concentration
mconc
[]
Mach Number in
Stationary Frame
A, C, M,
R, TS
[m^-3 kg]
Mass concentration of
a component
A, C, M,
P, R, TS
Mass
Fraction
mf
[]
1
A, C, M,
P, R, TS
Conservative Mass
Fraction
mfc
[]
Mean
Particle
Diameter
mean
particle
diameter
[m]
Mesh
Displacement
meshdisp
[m]
2
A, C, M,
R, TS
3
C, P
3
C, M, R,
TS
Mesh
Expansion
Factor
mesh
exp fact
[]
2
C, M, R,
TS
The displacement
relative to the previous
mesh
Ratio of largest to
smallest sector
volumes for each
control volume.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
297
Short
Variable
Name
Units
Availability
Definition
Mesh
Initialisation
Time
meshinittime
[s]
Simulation time at
which the mesh was
last re-initialized (most
often due to
interpolation that
occurs as part of
remeshing)
Mixture
Fraction
mixfrc
[]
A, C, M,
R, TS
Mixture
Model
Length
Scale
mixture
length
scale
[m]
Mixture
Fraction
Variance
mixvar
[]
Molar
Concentration
molconc
3
M
1
A, C, M,
R, TS
[m^-3 mol]
2
A, C, M,
P, R, TS
Molar
Fraction
molf
[]
2
A, C, M,
P, R, TS
Molar
Mass
mw
[kg
mol^-1]
3
C, P
Orthogonality
Angle
orthangle
[rad]
2
C, M, R,
TS
Orthogonality
Angle
Minimum
orthanglemin
Orthogonality
Factor
orthfact
[rad]
2
C, M, R,
TS
2
C, M, R,
TS
Orthogonality
Factor
Minimum
298
orthfactmin
2
C, M, R,
TS
A measure of the
average mesh
orthogonality angle
A measure of the worst
mesh orthogonality
angle
A non-dimensional
measure of the
average mesh
orthogonality
A measure of the worst
mesh orthogonality
angle
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Pressure
Definition
A, C, M,
P, R, TS
Absolute
Pressure
pabs
2
A, C, M,
R, TS
Reference
Pressure
pref
2
C
Distance
from local
Z axis
[m]
Radius
raxis
[m]
. For details,
see CEL Variables r and
theta (p. 304).
Radiative
Emission
rademis
[kg s^-3]
1
RA
Incident
Radiation
radinc
[kg s^-3]
The Reference
Pressure is the
absolute pressure
datum from which all
other pressure values
are taken. All relative
pressure specifications
in CFX are relative to
the Reference
Pressure. For details,
see Setting a Reference
Pressure in the
CFX-Solver Modeling
Guide.
1
C, DT, M,
R, TS
Blackbody radiative
emission is defined as
* Refractive Index^2
* Temperature^4,
where represents the
Stefan-Boltzmann
constant.
This is a volumetric
quantity and has no
relevance at
boundaries. For
relevant radiation
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
299
Short
Variable
Name
Units
Availability
Definition
quantities at
boundaries, see the
definitions for Wall
Radiative Heat
Flux and Wall Ir
radiation Flux in
Variables Relevant for
Radiation
Calculations (p. 291).
Radiation
Intensity
radint
[kg s^-3]
1
A, C, M,
P, R, TS
Refractive
Index
refrac
[]
1
C, R, TS
rNoDim
Reynolds
Stress
rs
rs
rs
rs
rs
rs
Statistical
Reynolds
Stress
300
[]
2
C
uu,
vv,
ww,
uv,
uw,
vw
rsstat
rsstat
rsstat
rsstat
rsstat
rsstat
uu,
vv,
ww,
uv,
uw,
vw
[m^2 s^-2]
A, C, M,
P, R, TS
[m^2 s^-2]
3
M, R
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
Scattering
Coefficient
scatter
[m^-1]
The property of a
medium that describes
the amount of
scattering of thermal
radiation per unit path
length for propagation
in the medium. It can
be interpreted as the
inverse of the mean
free path that a
photon will travel
before undergoing
scattering (if the
scattering coefficient
does not vary along
the path).
C, M, R,
TS
Soot Mass
Fraction
sootmf
[]
1
A, C, M,
R, TS
Soot
Nuclei
Specific
Concentration
sootncl
Specific
Volume
specvol
[m^-3]
1
A, C, M,
R, TS
[m^3
kg^-1]
3
A, C, M,
R, TS
Local
Speed of
Sound
speedofsound
Subdomain
subdomain
[m s^-1]
2
C, M, R,
TS
[]
2
C
inside()
@<Locations>
inside()
@<Locations>
Subdomain variable
(1.0 in subdomain, 0.0
elsewhere). For details,
see CEL Variable
"subdomain" and CEL
Function
"inside" (p. 305).
inside variable (1.0 in
subdomain, 0.0
elsewhere). For details,
see CEL Variable
"subdomain" and CEL
Function
"inside" (p. 305).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
301
Short
Variable
Name
Units
Availability
Definition
Theta
taxis
[rad]
Turbulence
Eddy
Frequency
tef
[s^-1]
Angle
around
local Z axis
theta
Total
Mesh
Displacement
meshdisptot
Velocity u
Velocity v
Velocity w
Velocity in
Stn Frame
u
velstn u
Velocity in
Stn Frame
v
velstn w
1
A, C, M,
P, R, TS
[rad]
2
C
[m]
1
C, DT, M,
R, TS
[m s^-1]
A, C, M,
P, R, TS
[m s^-1]
velstn v
1
A, C, M,
R, TS
Velocity in Stationary
Frame in the x, y, and
z coordinate directions
Velocity in
Stn Frame
w
Volume
Fraction
vf
[]
1
A, C, M,
P, R, TS
302
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Short
Variable
Name
Units
Availability
Definition
Conservative
Volume
Fraction
vfc
[]
Kinematic
Viscosity
visckin
A, C, M,
R, TS
[m^2 s^-1]
2
A, C, M,
P, R, TS
Wall
Distance
wall
distance
[m]
2
A, C, M,
P, R, TS
Wall
Power
Density
wall
powerdens
[W m^-2]
2
C, DT, R,
TS
Power done by a
moving wall onto the
fluid per unit area
This variable is 0 at
stationary walls.
Wall Work
Density
wall
workdens
[J m^-2]
2
C, DT, R,
TS
Work done by a
moving wall onto the
fluid per unit area
This variable is 0 at
stationary walls.
Wall Scale
wall
scale
[m^2]
3
M, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
303
Note
theta is expressed in radians and will have values between
and .
r and theta are particularly useful for describing radial distributions, for instance the velocity profile
at the inlet to a pipe.
Figure 16.1: r and theta with Respect to the Reference Coordinate Frame
where R is the radius of any point in the domain from the axis of rotation. rNoDim is only available for
domains defined with a rotating frame of reference.
304
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
305
306
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The entries in the Units columns are SI but could as easily be any other system of units.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
307
Short
Variable
Name
Units
Description
Availability
<Particle
Type>.Mean Particle
Diameter
mean
particle
diameter
[m]
Particle diameter
<Particle
Type>.<Particle
Component>.Mass
Fraction
PR
[-]
<Particle
Type>.Particle
Number Rate
particle
number
rate
[s^-1]
<Particle
Type>.Particle Time
pttime
[s]
3
PR
Simulation time
2
PR
<Particle
Type>.Particle
Traveling Distance
ptdist
[m]
<Particle
Type>.Particle
Traveling Time
[s]
<Particle
Type>.Particle Weber
Number
[-]
308
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
PR
PR
Short
Variable
Name
Units
Description
Availability
where
<Particle
Type>.Temperature
[K]
Particle temperature
1
PR
<Particle Type>.Total
Particle Mass
ptmasst
[kg]
2
PR
<Particle
Type>.Velocity
[m
s^-1]
Particle velocity
1
PR
<Particle
Type>.Velocity u
[m
s^-1]
v
<Particle
Type>.Velocity v
1
PR
<Particle
Type>.Velocity w
For Particle User Fortran, these additional track variables, which are not available in CFD-Post, can be
specified in the argument list for the user routine:
Long Variable Name
Short
Variable
Name
Units
pteo
[]
Definition
Availability
2
PR
ptmo
[]
2
PR
ptnu
[]
2
PR
pton
[]
2
PR
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
309
Short
Variable
Name
Units
ptre
[]
Definition
Availability
2
PR
ptslipvel
[m
s^-1]
2
PR
Particle Position
ptpos
[m]
Cartesian coordinates of
current particle position
2
PR
particle
impact
angle
[radian]
3
PR
Short
Variable
Name
Units
Description
Availability
<Particle
Type>.Particle Mass
Flow Rate
[kg
s^-1]
<Particle
Type>.Velocity
Magnitude
[m
s^-1]
PR
Particle Speed
2
PR
Units
Availability
ptenysrc
[W m^-3]
310
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Units
Availability
A, C, M, P,
R
ptenysrcc
[W m^-3 K^-1] 2
A, C, M, P,
R
ptmomsrc
ptmomsrcc
ptmassrctot
ptmassrcctot
For multi-component mass transfer, the following Additional Variables are available a:
Particle Mass Source
ptmassrc
ptmassrcc
The variables for multi-component take the following form: <Particle Type>.<Particle Component>.<Variable Name>
Particle source terms are accumulated along the path of a particle through a control volume and stored
at the corresponding vertex. A smoothing procedure can be applied to the particle source terms, which
may help with convergence or grid independence. For details, see Particle Source Smoothing in the
CFX-Solver Modeling Guide.
Short Variable
Name
Units
Availability
ptremiss
[W m^-3]
2
A, C, M,
P, R
ptabscoef
[m^-1]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
311
Short Variable
Name
Units
Availability
A, C, M,
P, R
Particles can also interact with the radiation field and either emit or absorb radiation.
Short Variable
Name
Units
Availability
Averaged Velocity
averaged vel
[m s^-1]
1
A, C, M,
P, PR, R
vfpt
[]
1
A, C, M,
P, PR, R
Averaged Temperature
averaged
temperature
[K]
1
A, C, M,
P, PR, R
averaged mf
[]
1
A, C, M,
P, PR, R
averaged
pttime
[s]
2
A, C, M,
P, PR, R
312
averaged
mean particle
diameter
[m]
averaged
arithmetic
mean particle
diameter
[m]
averaged
surface mean
particle
diameter
[m]
2
A, C, M,
P, PR, R
2
A, C, M,
P, PR, R
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2
A, C, M,
P, PR, R
Short Variable
Name
Units
Availability
averaged
volume mean
particle
diameter
[m]
averaged
sauter mean
particle
diameter
[m]
averaged mass
mean particle
diameter
[m]
averaged
particle
number rate
[s^-1]
A, C, M,
P, PR, R
2
A, C, M,
P, PR, R
2
A, C, M,
P, PR, R
2
A, C, M,
P, PR, R
For simulations with the particle wall film model activated, the following additional vertex variables
are available:
Averaged Volume Fraction Wall
vfptw
[]
1
A, C, M,
P, PR, R
averaged film
temperature
[K]
1
A, C, M,
P, PR, R
This variable takes the following form: <Particle Type>.<Particle Component>.<Variable Name>
The following are the formulae for particle vertex fields' size distributions:
Arithmetic Mean Diameter
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
313
With:
: Particle mass
: Particle quantity
Slightly different averaging procedures apply to particle temperature and particle mass fractions:
Averaged Particle Temperature
(16.2)
With:
Averaged Mass Fraction
(16.3)
With:
Due to the discrete nature of particles, vertex variables may show an unsmooth spatial distribution,
which may lead to robustness problems. To reduce possible problems a smoothing option is available.
For details, see Vertex Variable Smoothing in the CFX-Solver Modeling Guide.
314
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Units
Availability
B, R
Momentum Flow Density
2
B, R
[kg s^-3]
2
B, R
2
B, R
[kg s^-3]
2
B, R
2
B, R
2
B, R
[kg m^-2]
2
B, R
[kg s^-2]
2
B, R
[kg s^-2]
2
B, R
[kg m^-2]
2
B, R
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
315
Units
Availability
[kg m^-2]
2
B, R
Short Variable
Name
Units
Availability
RMS Velocity
rms velocity
[m s^-1]
1
A, C, M, P,
PR, R
RMS Temperature
rms
temperature
[K]
1
A, C, M, P,
PR, R
rms mean
particle
diameter
[m]
rms particle
number rate
[s^-1]
3
A, C, M, P,
PR, R
3
A, C, M, P,
PR, R
With:
316
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Miscellaneous Variables
A smoothing option, as available for particle vertex variables, is available for particle RMS variables. For
details, see Vertex Variable Smoothing in the CFX-Solver Modeling Guide.
Short
Variable
Name
Units
Availability
Aspect Ratio
aspect ratio
[]
Definition
C, M, R, TS
Autoignition
autoignition
[]
1
A, C, M, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
317
Short
Variable
Name
Units
Availability
Definition
Boundary
Scale
bnd scale
[]
Similar to wall
scale, this
variable is used
for controlling
mesh stiffness
near boundaries
for moving
mesh problems.
C, M, R, TS
Burnt
Absolute
Temperature
burnt Tabs
Burnt Density
burnt density
[K]
2
A, C, M, R, TS
[kg
m^-3]
2
A, C, M, R, TS
Clipped
Pressure
pclip
[Pa]
1
M, R, TS
Conservative
Size Fraction
sfc
[]
Negative
absolute values
clipped for
cavitation
2
A, C, M, R, TS
Courant
Number
courant
[]
2
C, M, R, TS
Cumulative
Size Fraction
csf
[]
2
A, C, M, R, TS
Current
Density
jcur
1
C, M, R, TS
Dynamic Diffusivity
diffdyn
2
C, M, P, R, TS
Electric Field
elec
1
C, M, R, TS
Electric
Potential
epot
1
C, M, R, TS
Electrical
Conductivity
conelec
3
C, M, R, TS
Electrical
Permittivity
permelec
3
C, M, R, TS
318
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Miscellaneous Variables
Long
Variable
Name
Short
Variable
Name
Electromagnetic
Force Density
bfemag
Units
Availability
Definition
3
R
Equivalence
Ratio
equivratio
[]
2
A, C, M, R, TS
External
Magnetic
Induction
bmagext
First Blending
Function for
BSL and SST
model
sstbf1
Second
Blending
Function for
SST model
sstbf2
Flame
Surface
Density
fsd
Specific
Flame
Surface
Density
spfsd
Frequency
freq
[]
1
M, R, TS
[]
External
magnetic
induction field
specified by the
user.
3
C, M, R, TS
[]
3
C, M, R, TS
[m^-1]
1
A, C, M, R, TS
2
A, C, M, R, TS
Combustion
with flame
surface density
models.
Combustion
with flame
surface density
models.
3
C
Fuel Tracer
trfuel
[]
1
A, C, M, R, TS
Granular
Temperature
grantemp
[m^2
s^-2]
Residual
material model
or exhaust gas
recirculation
(EGR)
1
A, C, M, R, TS
Group I Index
groupi
[]
2
C
Group J Index
groupj
[]
2
C
Group I Diameter
diami
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
319
Short
Variable
Name
Units
Availability
Definition
C
Group J Diameter
diamj
2
C
Group I
Mass
massi
2
C
Group J
Mass
massj
2
C
Group I
Lower Mass
massi lower
2
C
Group J
Lower Mass
massj lower
2
C
massi upper
2
C
massj upper
2
C
Ignition
Delay
Elapsed
Fraction
ignfrc
Ignition
Delay Time
tigndelay
[]
2
A, C, M, R, TS
[s]
2
A, C, M, R, TS
Particle
Integration
Timestep
particle
integration
timestep
[s]
Isentropic
Compressibility
compisoS
[m s^2 kg^-1]
3
P
2
C, M, R
Isentropic
Compression
Efficiency
icompeff
Isentropic
Expansion
Efficiency
iexpeff
Isentropic
Total
Enthalpy
htotisen
320
[]
2
C, M, R, TS
[]
2
C, M, R, TS
2
C, M, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Miscellaneous Variables
Long
Variable
Name
Short
Variable
Name
Isentropic
Static
Enthalpy
enthisen
Isobaric
Compressibility
compisoP
Isothermal
Compressibility
compisoT
LES Dynamic
Model
Coefficient
dynmc
Laminar
Burning
Velocity
velburnlam
Lighthill
Stress
lighthill stress
tensor
Units
Availability
Definition
2
C, M, R, TS
[K^-1]
2
C, M, R
[m s^2 kg^-1]
2
C, M, R
[]
1
A, C, M, P, R, TS
[m s^-1]
2
A, C, R, TS
2
A, C, M, R, TS
Magnetic
Induction
bmag
1
C, M, R, TS
Magnetic
Field
hmag
2
C, M, R, TS
Magnetic
Vector
Potential
bpot
Magnetic
Permeability
permmag
1
C, M, R, TS
3
C, M, R, TS
External
Magnetic
Induction
bmagext
Mass Flux
mfflux
1
C, M, R, TS
2
R
Mesh
Diffusivity
diffmesh
[m^2
s^-1]
2
C, M, R, TS
Normal Area
normarea
[]
Normal area
vectors.
C
Total Force
Density
forcetden
3
DT
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
321
Short
Variable
Name
Total
Pressure in
Rel Frame
ptotrel
Turbulent
Burning
Velocity
velburnturb
Mesh Velocity
meshvel
Units
Availability
Definition
Based on
relative frame
total enthalpy.
A, C, M, P, R, TS
[m s^-1]
2
A, C, R, TS
1
C, M, R, TS
Mixture
Fraction
Scalar
Dissipation
Rate
mixsclds
Molar
Reaction Rate
reacrate
[s^-1]
3
A, C, M, R, TS
2
C, R, TS
Nonclipped
Absolute
Pressure
pabsnc
Nonclipped
Density
densitync
3
A, C, M, R, TS
[kg
m^-3]
2
C
Normal Vector
normal
[]
Nonclipped
absolute
pressure for
cavitation
source. This is
written to the
.res file for all
cases that have
cavitation.
Nonclipped
density for
cavitation source
2
C
Orthogonality Factor
Minimum
orthfactmin
Orthogonality Factor
orthfact
[]
2
C, M, R, TS
[]
2
C, M, R, TS
Orthogonality Angle
Minimum
orthanglemin
Orthogonality
Angle
orthangle
2
C, M, R, TS
2
C, M, R, TS
322
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Miscellaneous Variables
Long
Variable
Name
Short
Variable
Name
Units
Availability
Particle
Laplace
Number
ptla
[]
Particle
Turbulent
Stokes
Number
ptstt
Polytropic
Compression
Efficiency
pcompeff
Polytropic
Expansion
Efficiency
pexpeff
Polytropic
Total
Enthalpy
htotpoly
Polytropic
Static
Enthalpy
enthpoly
Reaction
Progress
reacprog
Definition
P
[]
2
P
[]
2
C, M, R, TS
[]
2
C, M, R, TS
2
C, M, R, TS
2
C, M, R, TS
[]
1
A, C, M, R, TS
Weighted
Reaction
Progress
wreacprog
Weighted
Reaction
Progress
Source
wreacprogsrc
Residual
Products
Mass Fraction
mfresid
Residual
Products
Molar
Fraction
molfresid
Restitution
Coefficient
restitution
coefficient
[]
2
A, C, M, R, TS
3
A, C, R, TS
[]
1
A, C, M, R, TS
[]
2
A, C, M, R, TS
[]
For premixed or
partially
premixed
combustion.
For premixed or
partially
premixed
combustion.
For premixed or
partially
premixed
combustion.
Residual
material model
or exhaust gas
recirculation
(EGR)
Residual
material model
or exhaust gas
recirculation
(EGR)
3
C, M, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
323
Short
Variable
Name
Rotation
Velocity
rotvel
Units
Availability
Definition
2
C, R, TS
Rotational
Energy
rotenergy
2
C, R, TS
Shear Velocity
ustar
2
C
Size Fraction
sf
[]
1
A, C, M, R, TS
Solid Bulk
Viscosity
solid bulk
viscosity
Solid
Pressure
solid pressure
[Pa]
3
A, C, M, R, TS
Solid
Pressure
Gradient
solid pressure
gradient
Solid Shear
Viscosity
solid shear
viscosity
[]
3
C, M, R, TS
Spinodal Pressure
pspin
[Pa]
RG
Metastable
condition
boundary
Spinodal
Temperature
tspin
[K]
RG
Metastable
condition
boundary
Static
Entropy
entropy
3
A, C, M, P, R, TS
Temperature
Variance
Tvar
1
A, C, M, R, TS
Time This
Run
trun
2
C
Total
Boundary
Displacement
bnddisptot
Total Density
dentot
1
C, DT, M, R, TS
[kg m^-3]
2
A, C, M, R
324
Total Density is
the density
evaluated at the
Total
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Miscellaneous Variables
Long
Variable
Name
Short
Variable
Name
Units
Availability
Definition
Temperature
and Total
Pressure.
Total Density
in Stn Frame
dentotstn
[kg m^-3]
2
A, C, M, R
Total Density
in Rel Frame
dentotrel
[kg
m^-3]
2
A, C, M, R
Total Force
forcet
3
DT
Unburnt
Absolute
Temperature
unburnt Tabs
Unburnt
Density
unburnt
density
[K]
2
A, C, M, R, TS
[kg m^-3]
2
A, C, M, R, TS
Unburnt
Thermal
Conductivity
unburnt cond
Unburnt
Specific Heat
Capacity at
Constant
Pressure
unburnt Cp
Volume
Porosity
volpor
[W m^-1 K^-1] 2
A, C, M, R, TS
[J kg^-1 K^-1]
2
A, C, M, R, TS
[]
2
C, M, R, TS
Volume of
Finite
Volumes
volcvol
Vorticity
vorticity
3
C, R, TS
2
A, C, M, R, TS
Vorticity in
Stn Frame
vortstn
Note that
Vorticity is the
same as
Velocity.Curl.
2
A, C, M, R, TS
Wall External
Heat Transfer
Coefficient
htco
Wall Adjacent
Temperature
tnw
2
R, TS
[K]
2
C, DT, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
325
Short
Variable
Name
Units
Availability
Wall Distance
wall distance
[m]
Definition
A, C, M, P, R, TS
Wall External
Temperature
tnwo
[K]
2
DT, R, TS
Wall Film
Thickness
film thickness
[m]
User-specified
external wall
temperature for
heat transfer
coefficient
boundary
conditions.
2
C, R
Wall Heat
Transfer
Coefficient
htc
Wall Heat
Flow
QwallFlow
2
C, R, TS
3
C, DT, R, TS
Wall Normal
Velocity
nwallvel
2
C, R, TS
Wall Scale
wall scale
3
R, M, TS
Wavelength
in Vacuum
wavelo
3
C
Wavenumber
in Vacuum
waveno
3
C
Normalized
Droplet
Number
spdropn
Droplet
Number
spdrop
[m^-3]
2
C, M, R, TS
1
C, M, R, TS
Dynamic Bulk
Viscosity
dynamic bulk
viscosity
1
A, C, M, R, TS
Total MUSIG
Volume
Fraction
vft
Smoothed
Volume
Fraction
vfs
326
[]
2
A, C, M, R, TS
[]
2
A, C, M, R, TS
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Miscellaneous Variables
Long
Variable
Name
Short
Variable
Name
Temperature
Superheating
Tsuperheat
Units
Availability
Definition
Temperature
above saturation
C
Temperature
Subcooling
Tsubcool
Temperature
below saturation
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
327
328
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
You should be wary when entering certain expressions because Power Syntax uses Perl
mathematical operators. For example, in CEL, is represented as 2^2, but in Perl, it would
be written 2**2. If you are unsure about the validity of an operator, you should check a Perl
reference guide.
There are many good reference books on Perl. Two examples are Learning Perl (ISBN 1-56592042-2) and Programming Perl (ISBN 1-56592-149-6) from the OReilly series.
This chapter describes:
17.1. Examples of Power Syntax
17.2. Predefined Power Syntax Subroutines
329
These subroutines are loaded when CFD-Post is launched, so you do not need to execute the session
files before using the functions.
Additional information on these macro functions is available in Gas Compressor Performance Macro
and Cp Polar Plot Macro.
All arguments passed to subroutines should be enclosed in quotations, for example Plane 1 must be
passed as Plane 1 and Eddy Viscosity should be entered as Eddy Viscosity. Any legal
CFX Command Language characters that are illegal in Perl need to be enclosed in quotation marks.
17.1.1. Example 1: Print the Value of the Pressure Drop Through a Pipe
!
!
!
!
$Pin = massFlowAve("Pressure","inlet");
$Pout = massFlowAve("Pressure","outlet");
$dp = $Pin-$Pout;
print "The pressure drop is $dp\n";
Note
Function-specific Perl subroutines do not allow phase-specific evaluations; that is, you can
get only bulk results (such as mass flow for all phases). A workaround is to use "evaluate"
subroutine, which evaluates any CEL expression.
For example instead of
! $val = massFlow("Inlet", "Water")
330
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The first line of Power Syntax simply defines a scalar variable called numsteps. Scalar variables (that
is, simple single-valued variables) begin with a $ symbol in Perl. The next line defines a for loop that
increments the variable i up to numsteps. Next, you determine the fraction you are along in the loop
and assign it to the variable trans. The object definitions then use trans to set their transparency
and then repeat. Note how Perl variables can be directly embedded into the object definitions. The final
line of Power Syntax (!}) closes the for loop.
Note
Function-specific Perl subroutines do not allow phase-specific evaluations; that is, you can
get only bulk results (such as mass flow for all phases). A workaround is to use "evaluate"
subroutine, which evaluates any CEL expression.
For example instead of
! $val = massFlow("Inlet", "Water")
331
Although this subroutine is designed for use with the next example, you can execute it on its own by
typing !makePlanes(); in the Command Editor dialog box.
! sub manifoldCalcs{
# call the previously defined subroutine (Example 3) make the
# upstream and downstream cutting planes
! makePlanes();
#
# Bound the two planes so they each just cut one side of the branch.
PLANE:plane1
Plane Bound = Circular
Bound Radius = 0.025
END
PLANE:plane2
Plane Bound = Circular
Bound Radius = 0.025
END
# Calculate mass flow through each using the predefined
# 'evaluate' Power Syntax subroutine and output the results
! ($mass1, $mfunits) = evaluate( "massFlow()\@plane1" );
! ($mass2) = evaluate( "massFlow()\@plane2" );
! $sum = $mass1+$mass2;
! print "Mass flow through branch 1 = $mass1 [$mfunits]\n";
! print "Mass flow through branch 2 = $mass2 [$mfunits]\n";
! print "Total = $sum [$mfunits]\n";
# Now calculate pressure drops and mass flows through the exits
# calculate the average pressure at the inlet
!($Pin, $punits) = evaluate( "massFlowAve(Pressure)\@in1" );
332
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
After processing these commands to define the subroutine, you can execute it, in the same way as any
other subroutine, by typing !manifoldCalcs(); in the Command Editor dialog box.
Each of the subroutines contains an argument list (in brackets, separated by commas). If any argument
contains more than one word (for example, Plane 1), it must be within quotes. You should enclose
all arguments within quotes to avoid making possible syntax errors.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
333
Some subroutines return more than one value. To store return values for a subroutine that returns two
variables (such as the evaluate function), you could use the following:
! ($value, $units) = evaluate('area()@Plane 1');
! print "The area of Plane 1 is $value in units of $units \n";
Note
In this case, if single quotes are not used around the expression, area()@Plane 1, when
calling the function, evaluate(), the @ symbol must be escaped (made literal) using the
following power syntax instead:
! ($value, $units) = evaluate("area()\@Plane 1");
! print "The area of Plane 1 is $value in units of $units \n";
This is used to avoid Perl treating the @ symbol as a special character. See evaluate(Expression) (p. 336) for details.
Returns the area of a 2D locator. For details, see area (p. 257).
Returns the area-weighted average of the variable at a 2D locator. For details, see areaAve (p. 258).
Returns the result of the variable integrated over the 2D location. For details, see areaInt (p. 259).
334
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Returns the arithmetic average of the variable at a location. For details, see ave (p. 260).
17.2.3.5. calcTurboVariables()
void calcTurboVariables()
17.2.3.6. calculate(function,...)
real calculate(function,...)
Evaluates the named function with the supplied argument list, and returns the float result. The function
name is a required argument, which can be followed by a variable length list of arguments.
17.2.3.7. calculateUnits(function,...)
string,string calculateUnits(function,...)
Evaluates the named function with the supplied argument list, and returns the value and units.
17.2.3.8. collectTurboInfo()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.9. comfortFactors()
This is an internal subroutine that is used only to initialize report templates.
For details, see Comfort Factors Macro.
17.2.3.11. compressorPerformTurbo()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.13. count(Location)
real count("Location")
Returns the number of nodes on the location. For details, see count (p. 261).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
335
Returns the number of mesh nodes on the specified region that evaluate to true, where true means
greater than or equal to 0.5. "Expression" should contain one of the logical operators =, >, <, <=,
or >=. The countTrue function is valid for 1D, 2D, and 3D locations. For details, see countTrue (p. 262).
17.2.3.16. evaluate(Expression)
real,string evaluate("Expression")
Returns the value of the expression and the units. Only one expression can be evaluated each time the
subroutine is executed. The main advantage of using evaluate is that it takes any CEL expression.
This means that you do not have to learn any other quantitative power syntax routines described in
this section. Also, evaluate will return the result units in addition to the value.
An example is:
evaluate("areaAve(Velocity v)\@Location 1")
In this case, another subroutine is evaluated. The evaluate command takes an any expression as the
argument, or more precisely, any expression that resolves to a quantity. This means that you cannot
use:
"2*Pressure"
or
"100 [m]"
The reason that the @ is escaped calling evaluate() is to avoid Perl treating it as a special character.
17.2.3.17. evaluateInPreferred(Expression)
real,string evaluateInPreferred("Expression")
Returns the value of the expression in your preferred units. Preferred units are the units of the data that
CFD-Post uses when information is displayed to you and are the default units when you enter information
(as contrasted with units of the data that are stored in results files). Use the Edit > Options > Common
> Units dialog box to set your preferred units.
17.2.3.18. exprExists(Expression)
bool exprExists("Expression")
336
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17.2.3.19. fanNoiseDefault()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.20. fanNoise()
This is an internal subroutine that is used only to initialize report templates.
Returns the force on a 2D locator. For details, see force (p. 262).
Returns the per unit width force on a line in the direction of the specified axis. It is available only for a
polyline created by intersecting a locator on a boundary. For details, see forceNorm (p. 263).
17.2.3.23. getBladeForceExpr()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.24. getBladeTorqueExpr()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.25. getCCLState()
This is an internal debugging call.
17.2.3.26. getChildrenByCategory(Category)
string getChildrenByCategory("Category")
Returns the children of an object that belong to the specified category in a comma-separated list. Each
object type (for example, a PLANE) can have multiple categories associated with it such as "geometry",
"surface", and so on). Categories are specified in <CFXROOT>/etc/CFXPostRules.ccl.
For example, to get a comma-separated list of all surfaces in a state at the top level (that is, not subobjects of other objects):
! $surfaces = getChildrenByCategory("/", "surface" );
Returns the children of an object in a comma-separated list. If Child Type is not an empty string,
this subroutine return only children of the specified type.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
337
17.2.3.28. getExprOnLocators()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.29. getExprString(Expression)
string getExprString("Expression")
Returns the value and the units of the expression in the form value units. For example: 100 m.
17.2.3.30. getExprVal(Expression)
real getExprVal("Expression")
Returns only the "value" portion of the expression (units are not included).
Extracts the name of an object from its full path. For example:
!string = getObjectName("/USER SURFACE:User Surface 1")
returns "User Surface 1". This is the form needed for evaluating a CEL expression.
Returns the requested information for a parameter of an object. Object Name returns the name or
path of an object; "/" or an empty string specifies the root.Parameter Name returns the name of the
parameter. Info Type returns the type of data requested; this can be one of "type", "value", "default
value", or "allowed values". For example:
! $info = getParameterInfo("/USER DEFINED/POINT:Point 1", "Symbol Size", "default value");
! print "getParameterInfo returned=$info\n";
prints:
getParameterInfo returned=2.5
Returns the parameters of an object in a comma-separated list. Use 'split ","' to convert the string
into an array of strings.
17.2.3.34. getTempDirectory()
string getTempDirectory()
338
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Takes a CCL object and parameter name and returns the value of the parameter.
Returns the value stored in Parameter Name.
17.2.3.36.1. Example
1.
2.
3.
4.
5.
Click Process, and the string will be printed to your terminal window.
17.2.3.37. getViewArea()
string,string getViewArea()
Calculates the area of the scene projected in the view direction. Returns the area and the units in an
array of strings.
A return of 1 indicates that the object matches the passed category; 0 otherwise. Categories are specified
in <CFXROOT>/etc/CFXPostRules.ccl.
For example, the following prints "Plane 1 is a surface":
! if( isCategory( "Plane 1", "surface" )) {
!
print "Plane 1 is a surface\n";
! }
17.2.3.39. Length(Location)
real Length("Location")
Returns the length of a line locator. For details, see length (p. 264).
Note
While using this function in Power Syntax the leading character is capitalized to avoid confusion with the Perl internal command length.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
339
Returns the length-based average of the variable on the line locator. For details, see lengthAve (p. 265).
Returns the length-based integral of the variable on the line locator. For details, see lengthInt (p. 266).
17.2.3.42. liquidTurbPerformTurbo()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.43. liquidTurbPerform()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.44. massFlow(Location)
real massFlow("Location")
Returns the mass flow through the 2D locator. For details, see massFlow (p. 266).
Returns the average value of the variable, weighted by mass flow, through the 2D locator. For details,
see massFlowAve (p. 268).
Returns the average value of the variable, weighted by absolute mass flow, through the 2D locator. For
details, see massFlowAveAbs (p. 268).
Returns the integral of the variable, weighted by mass flow, over the 2D locator. For details, see massFlowInt (p. 270).
Returns the maximum value of the variable at the location. For details, see maxVal (p. 271).
Returns the minimum value of the variable at the location. For details, see minVal (p. 271).
340
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
This calculation should only be performed for point locators described by single points. Incorrect solutions will be produced for multiple point locators.
Returns the value of the variable at the point locator. For details, see probe (p. 272).
17.2.3.52. pumpPerform()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.53. pumpPerformTurbo()
This is an internal subroutine that is used only to initialize report templates.
Returns the minimum and maximum values of the variable at the location.
17.2.3.55. reportError(String)
void reportError("String")
17.2.3.56. reportWarning(String)
void reportWarning("String")
17.2.3.57. showPkgs()
void showPkgs()
Prints to the console a list of packages available that may contain other variables or subroutines in
Power Syntax.
17.2.3.58. showSubs(packageName)
void showSubs("packageName")
Prints to the console a list of the subroutines available in the specified package. If no package is specified,
CFD-Post is used by default.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
341
17.2.3.59. showVars(packageName)
void showVars("packageName")
Prints to the console a list of the Power Syntax variables and their current value defined in the specified
package. If no package is specified, CFD-Post is used by default.
Returns the sum of the variable values at each point on the locator. For details, see sum (p. 273).
Returns the computed value of torque at the 2D locator about the specified axis. For details, see
torque (p. 274).
17.2.3.63. turbinePerform()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.64. turbinePerformTurbo()
This is an internal subroutine that is used only to initialize report templates.
17.2.3.65. verboseOn()
bool verboseOn()
17.2.3.66. volume(Location)
real volume("Location")
Returns the volume of a 3D locator. For details, see volume (p. 274).
Returns the average value of a variable over the 3D locator. For details, see volumeAve (p. 275).
342
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.
343
344
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.
345
Bibliography
10th GAMM Seminar, Kiel, 1994.
4
Launder, B.E., Reece, G.J. and Rodi, W.,
Progress in the developments of a Reynolds-stress turbulence closure,
J. Fluid Mechanics, Vol. 68, pp.537-566, 1975.
5
Speziale, C.G., Sarkar, S. and Gatski, T.B.,
Modelling the pressure-strain correlation of turbulence: an invariant dynamical systems
approach,
J. Fluid Mechanics, Vol. 277, pp. 245-272, 1991.
6
Schiller, L. and Naumann, A.,
VDI Zeits, 77, p. 318, 1933.
7
Hughmark, G.A.,
AIChE J., 13 p. 1219, 1967.
8
Modest, M.,
Radiative Heat Transfer, Second Edition
Academic Press, 2003.
9
Menter, F.R.,
Two-equation eddy-viscosity turbulence models for engineering applications,
AIAA-Journal., 32(8), pp. 1598 - 1605, 1994.
10
Grotjans, H. and Menter, F.R.,
Wall functions for general application CFD codes,
In K.D.Papailiou et al., editor, ECCOMAS 98 Proceedings of the Fourth European Computational Fluid Dynamics Conference, pp. 1112-1117. John Wiley & Sons, 1998.
11
346
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 1-20
Wilcox, D.C.,
Multiscale model for turbulent flows,
In AIAA 24th Aerospace Sciences Meeting. American Institute of Aeronautics and Astronautics, 1986.
12
Menter, F.R.,
Multiscale model for turbulent flows,
In 24th Fluid Dynamics Conference. American Institute of Aeronautics and Astronautics,
1993.
13
Launder, B.E. and Spalding, D.B.,
The numerical computation of turbulent flows,
Comp Meth Appl Mech Eng, 3:269-289, 1974.
14
White, F.M.,
Viscous Fluid Flow, Second Edition,
McGraw-Hill, 1991.
15
Kader, B.A.,
Temperature and concentration profiles in fully turbulent boundary layers,
International Journal of Heat and Mass Transfer, 24(9):1541-1544, 1981.
16
Huang, P.G., Bradshaw, P. and Coakley, T.J.,
Skin friction and velocity profile family for compressible turbulent boundary layers,
American Institute of Aeronautics and Astronautics Journal, 31(9):1600-1604, 1993.
17
Bouillard, J.X, Lyczkowski, R.W.and Gidaspow, D.,
Porosity Distribution in a Fluidised Bed with an Immersed Obstacle,
AIChE J., 35, 908-922, 1989.
18
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
347
Bibliography
Gidaspow, D.,
Multiphase Flow and Fluidisation, Academic Press, 1994.
19
Ishii, M. and Zuber, N.,
Drag Coefficient and Relative Velocity in Bubbly, Droplet or Particulate Flows,
AIChE J., 25, 843-855, 1979.
20
Lopez de Bertodano, M.,
Turbulent Bubbly Flow in a Triangular Duct,
Ph.D. Thesis, Rensselaer Polytechnic Institute, Troy New York, 1991.
348
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 21-40
Raw, M.J.,
Robustness of Coupled Algebraic Multigrid for the Navier-Stokes Equations,
AIAA 96-0297, 34th Aerospace and Sciences Meeting & Exhibit, January 15-18 1996,
Reno, NV.
26
Kee, R. J., Rupley, F. M. and Miller, J. A.,
Chemkin -II: A Fortran Chemical Kinetics Package for the Analysis of Gas-Phase Chemical
Kinetics",
Sandia National Laboratories Report, SAND89-8009,(1991).
27
Brackbill, J.U, Kothe, D.B. and Zemach, C.,
A Continuum Method for Modelling Surface Tension,
Journal of Computational Physics 100:335-354, 1992.
28
Barth, T.J., and Jesperson, D.C,
The Design and Application of Upwind Schemes on Unstructured Meshes,
AIAA Paper 89-0366, 1989.
29
Bird, R.B., Stewart, W.E. and Lightfoot, E.N.,
Transport Phenomena,
John Wiley & Sons, Inc., 1960.
30
Wilcox, D.C.,
Turbulence Modelling for CFD,
DCW Industries, 2000, La Canada, CA 91011, p. 314.
31
Launder, B.E., Tselepidakis, D. P., Younis, B. A.,
A second-moment closure study of rotating channel flow,
J. Fluid Mech., Vol. 183, pp. 63-75, 1987.
32
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
349
Bibliography
Menter, F. R.,
Eddy Viscosity Transport Equations and their Relation to the
Model,
Model,
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 41-60
Hinze, J. O.,
Turbulence,
McGraw-Hill, New York, U.S.A., 1975.
40
Zimont, V.L.,
Gas Premixed Combustion at High Turbulence. Turbulent Flame Closure Combustion
Model,
Proceedings of the Mediterranean Combustion Symposium, Instituto di Richerche sulla
Combustione - CNR, Italy, pp. 1155-1165, 1999.
351
Bibliography
Kinetics of Dispersed Carbon Formation,
Combustion and Flame, Vol. 17, pp. 253-260, 1971.
46
Magnussen, B. F., and Hjertager, B. H.,
On Mathematical Modeling of Turbulent Combustion with Special Emphasis on Soot
Formation and Combustion,
Sixteenth Symp. (Int.) on Combustion, The Combustion Institute, p 719, 1976.
47
Vukalovich, M. P.,
Thermodynamic Properties of Water and Steam,
Mashgis, Moscow, 6th ed., 1958.
48
Hottel, H.C. and Sarofim, A.F.,
Radiative transfer,
McGraw-Hill, New York 1967.
49
Hadvig, S.,
Gas emissivity and absorptivity,
J. Inst. Fuel, 43, pp. 129-135., 1970.
50
Leckner, B.,
Spectral and total emissivity of water vapour and carbon dioxide,
Comb. Flame, 19, pp. 33-48., 1972.
51
Taylor, P.B. and Foster, P.J.,
The total emissivities of luminous and non-luminous flames,
Int. J. Heat Mass Transfer, 17, pp. 1591-1605., 1974.
52
Beer, J.M., Foster, P.J. and Siddall, R.G.,
352
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 41-60
Calculation methods of radiative heat transfer,
HTFS Design Report No. 22, AEA Technology (Commercial)., 1971.
53
Prakash, C.,
Two phase model for binary liquid-solid phase change,
Parts I and II, Numerical Heat Transfer, B 15, p. 171.
54
CFX Limited, Waterloo, Ontario, Canada,
CFX-TASCflow Theory Documentation,
Section 4.1.2, Version 2.12, 2002.
55
Menter, F. R. and Kuntz, M.,
Development and Application of a Zonal DES Turbulence Model for CFX-5,
CFX-Validation Report, CFX-VAL17/0503.
56
Menter, F.R., Kuntz, M.,
Adaptation of Eddy-Viscosity Turbulence Models to Unsteady Separated Flow Behind
Vehicles,
Proc. Conf. The Aerodynamics of Heavy Vehicles: Trucks, Busses and Trains, Asilomar, Ca,
2002.
57
Spalart, P.R, Jou, W.-H., Strelets, M. and Allmaras, S.R.,
Comments on the feasibility of LES for wings, and on a hybrid RANS/LES approach,
1st AFOSR Int. Conf. On DNS/LES, Aug.4-8, 1997, Ruston, LA. In Advances in DNS/LES, C.
Liu & Z. Liu Eds., Greyden Press, Colombus, OH.
58
Strelets, M.,
Detached Eddy Simulation of Massively Separated Flows,
AIAA Paper 2001-0879, 39th Aerospace Sciences Meeting and Exhibit, Reno, NV, 2001.
59
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
353
Bibliography
Ishii, M.,
One-dimensional drift-flux model and constitutive equations for relative motion between
phases in various two-phase flow regimes,
Argonne National Laboratory ANL-77-47, 1977.
60
Manninen, M. and Tavassalo, V.,
On the Mixture Models for Multiphase Flow,
VTT Publications, 1996.
354
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 61-80
66
Westbrook, C.K., Dryer, F.L.,
Simplified Reaction Mechanisms for the Oxidation of Hydrocarbon Fuels in Flames,
Combustion Science and Technology Vol. 27, pp. 31-43, 1981.
67
Faeth, G. M.,
Mixing, transport and combustion in sprays,
Process Energy Combustion Science, Vol. 13, pp. 293-345, 1987.
68
Mijnbeek, G.,
Bubble column, airlift reactors and other reactor designs, Operational Modes of Bioreactors, Chapter 4,
Butterworth and Heinemann, 1992.
69
Bello, R. A., Robinson, C. W., and Moo-Young, M.,
Canadian Journal of Chemical Engineering, Vol. 62, pp. 573. Chemical Institute of Canada
and Canadian Society for Chemical Engineering, 1984.
70
Garca-Calvo, E. and Letn, P.,
Prediction of gas hold-up and liquid velocity in airlift reactors using two-phase flow
friction coefficients,
Journal of Chemical Technology & Biotechnology, Vol. 67, pp. 388-396,
Wiley Interscience, 1996.
71
Maneri, C. C. and Mendelson, H. D.,
American Institute of Chemical Engineers Journal, Vol. 14, p. 295. American Institute of
Chemical Engineers, 1968.
72
Baker, J. L. L. and Chao, B. T.,
American Institute of Chemical Engineers Journal, Vol. 11, p. 268. American Institute of
Chemical Engineers, 1965.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
355
Bibliography
73
Hughmark, G. A.,
Industrial Engineering and Chemical Process Design and Development, Vol. 6, p. 218.
1967.
74
S. Lo, R. Bagatin and M. Masi.,
The Development of a CFD Analysis and Design Tool for Air-lift Reactors,
Proceedings of the SAIChE 2000 Conference, Secunda, South Africa, 2000.
75
Ranz, W.E. and Marshall, W.R.,
Chem. Eng. Prog. 48(3), p. 141, 1952.
76
Bardina, J.E., Huang, P.G. and Coakley, T.J.,
Turbulence Modeling Validation Testing and Development,
NASA Technical Memorandum 110446, 1997. (See also Bardina, J.E., Huang, P.G. and
Coakley, T.J., Turbulence Modeling Validation, AIAA Paper 97-2121.)
77
H. Schlichting.,
Boundary Layer Theory,
McGraw-Hill, 1979.
78
Badzioch, S., and Hawksley, P.G.W.,
Kinetics of thermal decomposition of pulverised coal particles, Industrial Engineering
Chemistry Process Design and Development, 9 p. 521, 1997.
79
S.J. Ubhayakar, D.B. Stickler, C.W. Von Rosenburg, and R.E. Gannon;
Rapid devolatilization of pulverised coal in hot combustion gases,
16th Symposium (International) on Combustion, The Combustion Institute, p. 426, 1976.
80
Wall, T.F., Phelan, W.J., and Bartz, S.,
356
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 81-100
The prediction of scaling of burnout in swirled pulverised coal flames,
InternationalFlame Research Foundation Report F388/a/3 IJmuiden, The Netherlands,
1976.
357
Bibliography
J. Fluid Mech., 22, p. 385, 1965.
87
Mei, R. and Klausner, J. F.,
Shear lift force on spherical bubbles,
Int. J. Heat and Fluid Flow, 15, p. 62, 1994.
88
Antal, S. P., Lahey, R. T., and Flaherty, J. E.,
Analysis of phase distribution in fully developed laminar bubbly two-phase flow,
Int. J. Multiphase Flow, 7, pp. 635-652, 1991.
89
Krepper, E., and Prasser, H-M.,
Measurements and CFX Simulations of a bubbly flow in a vertical pipe,
in AMIFESF Workshop, Computing Methods in Two-Phase Flow, 2000.
90
Burns, A.D.B., Frank, Th., Hamill, I., and Shi, J-M.,
The Favre Averaged Drag Model for Turbulent Dispersion in Eulerian Multi-Phase Flows,
5th International Conference on Multiphase Flow, ICMF-2004, Yokohama, Japan.
91
Moraga, J.F., Larreteguy, A.E., Drew, D.A., and Lahey, R.T.,
Assessment of turbulent dispersion models for bubbly flows in the low Stokes number
limit,
Int. J. Multiphase Flow, 29, p. 655, 2003.
92
CIBSE Guide A: Environmental Design
CIBSE, U.K., 1999.
93
ISO 7730-1984(E), Moderate thermal environments - Determination of the PMV and PPD
indices and specification of the conditions for thermal comfort
1984.
94
358
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 101-120
Yamada, T. and R.D. Gunn,
J. Chem Eng. Data, 18, p. 234, 1973.
95
Pitzer, K.S., D.Z. Lippmann, R.F. Curl, C.M. Huggins, and D.E. Petersen,
J. Am. Chem. Soc., 77: 3433 (1955).
96
Aungier, R.H.,
A Fast, Accurate Real Gas Equation of State for Fluid Dynamic Analysis Applications,
Journal of Fluids Engineering, Vol. 117, pp. 277-281, 1995.
97
H. Enwald, E. Peirano and A. E. Almstedt,
Eulerian Two-Phase Flow Theory Applied to Fluidisation,
Int. J. Multiphase Flow, 22 Suppl., pp. 21-66,1996.
98
J. Ding and D. Gidaspow,
A Bubbling Fluidisation Model using Theory of Granular Flow,
AIChEJ. 36, pp. 523-538, 1990.
99
C.K.K. Lun, S.B. Savage, D.J. Jeffery, and N. Chepurniy,
Kinetic Theories for Granular Flow: Inelastic Particles in Couette Flow and Slightly Inelastic
Particles in a General Flow Field,
J. Fluid Mech., 140, pp. 223-256, 1984.
100
C.K.K. Lun, and S.B. Savage,
The Effects of an Impact Velocity Dependent Coefficient of Restitution on Stresses Developed by Sheared Granular Materials,
Acta Mechanica., 63, pp. 15-44, 1986.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
359
Bibliography
Menter, F.R., Langtry, R.B., Likki, S.R., Suzen, Y.B., Huang, P.G., and Vlker, S.,
A Correlation based Transition Model using Local Variables Part 1- Model Formulation,
ASME-GT2004-53452, ASME TURBO EXPO 2004, Vienna, Austria.
102
Langtry, R.B., Menter, F.R., Likki, S.R., Suzen, Y.B., Huang, P.G., and Vlker, S.,
A Correlation based Transition Model using Local Variables Part 2 - Test Cases and Industrial Applications,
ASME-GT2004-53454, ASME TURBO EXPO 2004, Vienna, Austria.
103
Langtry, R.B., Menter, F.R.,
Transition Modeling for General CFD Applications in Aeronautics,
AIAA paper 2005-522, 2005.
104
Mayle, R.E.,
The Role of Laminar-Turbulent Transition in Gas Turbine Engines,
ASME Journal of Turbomachinery, Vol. 113, pp. 509-537, 1991.
105
R. Schmehl,
Advanced Modelling of Droplet Deformation and Breakup for CFD Analysis of Mixture
Preparation,
ILASS-Europe 2002, 2002.
106
Miller A. and Gidaspow D,
AIChE Journal, Vol. 38, No. 11, p. 1811, 1992.
107
F.X. Tanner,
Liquid Jet Atomization and Droplet Breakup Modeling of Non-Evaporating Diesel Fuel
Sprays,
SAE Technical Paper Series, 970050, 1997.
108
360
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 101-120
B. Liu, D. Mather and R.D. Reitz,
Effects of Drop Drag and Breakup on Fuel Sprays,
SAE Technical Paper 930072, 1993.
109
L.P. Hsiang and G.M. Faeth,
Near-Limit Drop Deformation and Secondary Breakup,
International Journal of Multiphase Flow, Vol. 18, No. 5, pp. 635-652, 1992.
110
S. C. Kuensberg, S.-C., Kong and R. D. Reitz,
Modelling the Effects of Injector Nozzle Geometry on Diesel Sprays,
SAE Paper 1999-01-0912, 1999.
111
H. Hiroyasu and T. Kadota,
Fuel droplet size distribution in diesel combustion chamber,
SAE Technical Paper, 740715, 1974.
112
R. Schmehl, G. Maier and S. Wittig,
CFD Analysis of Fuel Atomization, Secondary Droplet Breakup and Spray Dispersion in
the Premix Duct of a LPP Combustor,
Proc. of 8th Int. Conf. on Liquid Atomization and Spray Systems, Pasadena, CA, USA,
2000.
113
Schlichting, H., and Gersten, K.,
Grenzschicht-Theorie.
9. Auflage, Springer-Verlag Berlin, Heidelberg, New York, 1997
114
W.H. Nurick,
Orifice Cavitation and Its Effect on Spray Mixing,
Journal of Fluids Engineering, Vol. 98, pp. 681-687, 1976.
115
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
361
Bibliography
R.D. Reitz and R. Diwakar,
Structure of High-Pressure Fuel Sprays,
SAE Technical Paper, 870598, 1987.
116
P.J.O'Rourke and A.A. Amsden,
The TAB Method for Numerical Calculation of Spray Droplet Breakup,
SAE Technical Paper 872089, 1987.
117
M. Pilch and C.A. Erdman,
Use of Breakup Time Data and Velocity History Data to Predict the Maximum Size of
Stable Fragments for Acceleration-Induced Breakup of a Liquid Drop,
Int. J. Multiphase Flow, Vol. 13, No. 6, pp. 741-757, 1987.
118
S.V. Patankar,
Numerical Heat Transfer and Fluid Flow,
Hemisphere Publishing Corp., 1980.
119
S. Majumdar,
Role of Underrelaxation in Momentum Interpolation for Calculation of Flow with Nonstaggered Grids,
Numerical Heat Transfer 13:125-132.
120
C. Baumgarten, H. Lettmann and G.P. Merker,
Modelling of Primary and Secondary Break-Up Processes in High Pressure Diesel Sprays,
Paper No. 7, CIMAC Congress, Kyoto 2004.
362
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 121-140
Combust. Flame, Vol. 65, pp. 35-43, 1986.
122
B. Lewis and G. v. Elbe,
Combustion, Flames and Explosions of Gases,
3rd Edition, Academic Press, London, 1987.
123
B. E. Milton and J.C. Keck,
Laminar burning velocities in stoichiometric hydrogen and hydrogen-hydrocarbon gas
mixtures,
Combust. Flame, Vol. 58, pp. 13-22, 1984.
124
M. Metghalchi and J.C. Keck,
Burning Velocities of Mixtures of Air with Methanol, iso-octane and indolene at High
Pressure and Temperature,
Combust. Flame, Vol. 48, pp. 191-210, 1982.
125
W. Wagner, and A. Kruse,
The Industrial Standard IAPWS-IF97: Properties of Water and Steam,
Springer, Berlin, 1998.
126
Senecal, P.K., Schmidt, D.P., Nouar, I., Rutland, C.J., Reitz, R.D. and Corradin, M.L.,
"Modeling High-Speed Viscous Liquid Sheet Atomization",
International Journal of Multiphase Flow, 25, pp. 1073-1097, 1999.
127
Han, Z., Perrish, S., Farrell, P.V. and Reitz R.D.,
"Modeling Atomization Processes of Pressure-Swirl Hollow-Cone Fuel Sprays",
Atomization and Sprays, Vol. 7, pp. 663-684, Nov.-Dec. 1997.
128
Kato, M., Launder, B.E.,
"The modelling of turbulent flow around stationary and vibrating square cylinders",
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
363
Bibliography
Ninth Symposium on "Turbulent Shear Flows", Kyoto, Japan, August 16-18, 1993.
129
Menter, F. R.,
"Zonal two equation
364
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 141-160
NASA/CR-2001-211032, 2001.
136
Wilcox, D. C.,
"Turbulence Modelling for CFD",
DWC Industries, La Caada, 1993.
137
Squires, K.,
"Detached eddy simulation: Current status and future perspectives",
Proc. DLES-5 Conference, Mnchen, 2004.
138
Jovic, S., Driver, D. M.,
"Backward-facing step measurement at low Reynolds number, Reh=5000",
NASA TM 108807, 1994.
139
Roache, P. J.,
Verification and Validation in Computational Science and Engineering,
Hermosa publishers, Albuquerque, New Mexico, 1998.
140
Casey, M. and Wintergerste W.,
Best Practice Guidelines,
ERCOFTAC Special Interest Group on Quality and Trust in Industrial CFD, Report, 2000.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
365
Bibliography
Elements of Industrial Heat Transfer Predictions,
16th Brazilian Congress of Mechanical Engineering (COBEM), Nov. 2001, Uberlandia, Brazil.
143
Menter, F.,
CFD Best Practice Guidelines for CFD Code Validation for Reactor Safety Applications,
Evaluation of Computational Fluid Dynamic Methods for Reactor Safety Analysis (ECORA),
European Commission, 5th EURATOM FRAMEWORK PROGRAMME, 1998-2002.
144
Menter F. R. and Egorov, Y.,
Turbulence Models based on the Length-Scale Equation,
Fourth International Symposium on Turbulent Shear Flow Phenomena, Williamsburg,
2005 - Paper TSFP4-268, 2005.
145
Menter F. R. and Egorov, Y.,
SAS Turbulence Modelling of Technical Flows,
DLES 6 - 6th ERCOFTAC Workshop on Direct and Large Eddy Simulation September,
Poitiers, 2005.
146
Spalart P. R.,
Strategies for turbulence modelling and simulations,
Int. J. Heat Fluid Flow, 21, pp. 252-263, 2000.
147
A. D. Gosman and E. Ioannides,
Aspects of computer simulation of liquid fuelled combustors,
AIAA Paper, No. 81-0323,1981.
148
F. Bakir, R. Rey, A.G. Gerber, T. Belamri and B. Hutchinson,
Numerical and Experimental Investigations of the Cavitating Behavior of an Inducer,
Int J Rotating Machinery, Vol. 10, pp. 15-25, 2004.
149
366
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 141-160
Frank, Th.,
Parallele Algorithmen fr die numerische Simulation dreidimensionaler, disperser
Mehrphasenstrmungen und deren Anwendung in der Verfahrenstechnik,
Habilitationsschrift, Shaker Verlag Aachen, pp. 1-329, 2002.
150
Hussmann, B. et al.,
A stochastic particle-particle collision model for dense gas-particle flows implemented
in the Lagrangian solver of ANSYS CFX and its validation,
6th International Conference on Multiphase Flows, ICMF 2007, Leipzig, Germany, 2007.
151
Oesterl, B., Petitjean, A.,
Simulations of particle-to-particle interactions in gas-solid flows,
Int. J. Multiphase Flow, Vol. 19(1), pp. 199-211, 1993.
152
Sommerfeld, M.,
Modellierung und numerische Berechnung von partikelbeladenen Strmungen mit
Hilfe des Euler-Lagrange-Verfahrens,
Habilitationsschrift, Shaker Verlag Aachen, 1996.
153
Lavieville, J., Deutsch, E. and Simonin, O.,
Large eddy simulations of interactions between colliding particles and a homogeneous
isotropic turbulence field,
ASME FED Vol. 228, pp. 359-369, 1995.
154
Sommerfeld, M.,
Validation of a stochastic Lagrangian modeling approach for inter-particle collision in
homogeneous isotropic turbulence,
Int. J. Multiphase Flow, Vol. 27, pp. 1829 1858, 2001.
155
Huh, K.Y., Lee, E.,
Diesel Spray Atomization Models Considering Nozzle Exit Turbulence Conditions,
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
367
Bibliography
Atomization and Sprays, Vol. 8, pp. 453-469, 1998.
156
Chryssakis, C.A., Assanis, D.N.,
A Secondary atomization Model for Liquid Droplet Deformations and Breakup under
High Weber Number Conditions,
ILASS Americas, 18th Annual Conference on Liquid Atomization and Spray Systems,
Irvine, CA, 2005.
157
Peng, D.Y. and Robinson, D.B.,
A New Two-Constant Equation of State,
Ind. Eng. Chem. Fundam., Vol. 15, No. 1, pp. 59 64, 1976.
158
Chung, T.H., M. Ajlan, L.L. Lee and K.E. Starling,
Generalized Multiparameter Correlation for Nonpolar and Polar Fluid Transport Properties,
Ind. Eng. Chem. Res., Vol. 27, pp. 671 679, 1988.
159
Kurul, N. and Podowski, M. Z.,
On the modeling of multidimensional effects in boiling channels,
ANS Proc. 27th National Heat Transfer Conference, Minneapolis, MN, July 28-31, 1991.
160
Kocamustafaogullari, G. and Ishii, M.,
Interfacial area and nucleation site density in boiling systems,
Int. J. Heat Mass Transfer, 26 p. 1377, 1983.
368
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 161-180
Podowski, R. M., Drew, D.A., Lahey, R. T. and Podowski, M. Z.,
A mechanistic model of the ebullition cycle in forced-convection sub-cooled boiling,
NURETH-8, Kyoto, Japan, 1997b.
163
Egorov, Y. and Menter, F.,
Experimental implementation of the RPI boiling model in CFX-5.6,
Technical Report ANSYS / TR-04-10., 2004.
164
Lemmert, M. and Chawla, J. M.,
Influence of flow velocity on surface boiling heat transfer coefficient,
Heat Transfer and Boiling (Eds. E. Hahne and U. Grigull), Academic Press, 1977.
165
Tolubinski, V. I. and Kostanchuk, D. M.,
Vapour bubbles growth rate and heat transfer intensity at subcooled water boiling,
4th. International Heat Transfer Conference, Paris, France, 1970.
166
Cole, R.,
A photographic study of pool boiling in the region of CHF,
AIChEJ, 6 pp. 533-542, 1960.
167
Mikic, B. B. and Rohsenow, W. M.,
A new correlation of pool boiling data including the fact of heating surface characteristics,
ASME J. Heat Transfer, 91 pp. 245-250, 1969.
168
Del Valle, V. H. and Kenning, D. B. R.,
Subcooled flow boiling at high heat flux,
Int. J. Heat Mass Transfer, 28 p. 1907, 1985.
169
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
369
Bibliography
Ceumern-Lindenstjerna, W. C.,
Bubble Departure and Release Frequencies During Nucleate Pool Boiling of Water and
Aqueous NaCl Solutions,
Heat Transfer in Boiling, Academic Press and Hemisphere, 1977.
170
Saffman, P. G.,
Corrigendum to: The lift on a small sphere in a slow shear flow,
J. Fluid Mech., 31, p. 624, 1968
171
Legendre, D. and Magnaudet, J.,
The lift force on a spherical bubble in a viscous linear shear flow,
J. Fluid Mech., 368, pp. 81126, 1998.
172
Tomiyama, A.,
Struggle with computational bubble dynamics,
ICMF'98, 3rd Int. Conf. Multiphase Flow, Lyon, France, pp. 1-18, June 8-12, 1998.
173
Frank, Th., Shi, J. M. and Burns, A. D.,
Validation of Eulerian Multiphase Flow Models for Nuclear Safety Applications,
3rd International Symposium on Two-Phase Flow Modelling and Experimentation, Pisa,
Italy, 22-24, Sept. 2004.
174
Wellek, R. M., Agrawal, A. K. and Skelland, A. H. P.,
Shapes of liquid drops moving in liquid media,
AIChE J, 12, pp. 854-862, 1966.
175
G. Elssser,
Experimentelle Untersuchung und numerische Modellierung der freien Kraftstoffstrahlausbreitung und Wandinteraktion unter motorischen Randbedingungen,
Dissertation, Logos Verlag, Berlin, 2001
370
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 181-200
176
C. Bai and A.D. Gosman,
Prediction of spray wall impingement in reciprocating engines,
ILASS-Europe, July 1999
177
Frank, Th., Zwart, P. J., Krepper, E., Prasser, H. -M. and Lucas,
Validation of CFD models for mono- and polydisperse air-water two-phase flows in
pipes
J. Nuclear Engineering & Design, Vol. 238, pp. 647659, March 2008.
178
Lighthill, M. J.,
On sound generated aerodynamically. I. General theory
Proc. R. Soc. Series A, Vol. 211, p. 564, 1952.
179
Lighthill, M. J.,
On sound generated aerodynamically. II. Turbulence as a source of sound
Proc. R. Soc. Series A, Vol. 222, 1954.
180
Ffowcs-Williams, J. E. and Hawkings, D. L.,
Theory relating to the noise of rotating machinery
J. Sound Vib., Vol. 10, pp. 10-21, 1969.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
371
Bibliography
"Development and validation of a coherent flamelet model for a spark-ignited turbulent
premixed flame in a closed vessel,"
Combustion & Flame Vol. 114, No. 3-4, 336-348, 1998.
183
A. M. Douaud, P.Eyzat,
Four-Octane-Number Method for Predicting the Anti-Knock Behavior of Fuels and Engines,
SAE Technical Paper 780080, SAE, 1978.
184
M. P. Halstead, L. J. Kirsch, C. P. Quinn,
The Autoignition of Hydrocarbon Fuels at High Temperatures and Pressures Fitting
of a Mathematical Model,
Combustion and Flame, Vol. 30, pp. 45-60, 1977.
185
H. O. Hardenberg, F.W. Hase,
An Empirical Formula for Computing the Pressure Rise Delay of a Fuel from Its Cetane
Number and from the Relevant Parameters of Direct-Injection Diesel Engines,
SAE Technical Paper 790493, SAE, 1979.
186
Meneveau, C., and Poinsot, T.,
Stretching and quenching of flamelets in premixed turbulent combustion,
Combustion and Flame, 86:311-332, 1991.
187
T. Poinsot, D. Veynante,
Theoretical and Numerical Combustion,
Edwards, 2001.
188
Wallin, S. and Johansson A.,
A complete explicit algebraic Reynolds stress model for incompressible and compressible
flows,
Journal of Fluid Mechanics, 403, pp. 89-132, 2000.
372
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 181-200
189
Wallin, S., and Johansson A.,
Modelling streamline curvature effects in explicit algebraic Reynolds stress turbulence
models,
International journal of Heat and Fluid Flow, 23(5), pp. 721-730, 2002.
190
Hellsten, A.,
New advanced
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
373
Bibliography
Interim Report Stanford University, CA, 1975.
196
Launder, B.E.,
Second-moment closure: present and future.
Int. J. Heat and Fluid Flow, Vol. 10, No. 4, pp. 282-300, 1989.
197
Egorov, Y., and Menter, F.,
Development and Application of SST-SAS Turbulence Model in the DESIDER Project,
Second Symposium on Hybrid RANS-LES Methods, Corfu, Greece, 2007.
198
Germano, M., Piomelli, U., Moin, P., Cabot, W.H.,
A Dynamic Subgrid-Scale Eddy Viscosity Model,
Phys. Fluids A 3 (7), pp. 1760-1765, 1991.
199
Lilly, D.K.,
A Proposed Modification of the Germano Subgrid-Scale Closure Method,
Phys. Fluids A 4 (3), pp. 633-635, 1992.
200
Nicoud, F., Ducros, F.,
Subgrid-Scale Stress Modelling Based on the Square of the Velocity Gradient Tensor,
Flow, Turbulence and Combustion, 62, pp. 183-200, 1999.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 201-220
Progress in Energy and Combustion Science, 32, pp. 162214, 2006.
203
Hughes, T.J.R.,
The Finite Element Method
Prentice-Hall, Englewood Cliffs, N.J., 1987.
204
Simo, J.C. and Wong, K.K.,
Unconditionally Stable Algorithms for Rigid Body Dynamics that exactly Preserves Energy
and Momentum
Int. J. Num. Methods in Eng., 31, pp. 19-52, 1991.
205
Hughes, Peter C.,
Spacecraft Attitude Dynamic
Dover, 2004.
206
Etkin, Bernard.,
The Dynamics of Atmospheric Flight
John Wiley & Sons, 1972.
207
Conaire, Marcus , Curran, Henry J., Simmie, John M., Pitz, William J., Westbrook, Charles
K.,
A Comprehensive Modeling Study of Hydrogen Oxidation,
International Journal of Chemical Kinetics,
Volume 36, Issue 11, pp. 603-622, 2004.
208
Frank, Th.
"Numerische Simulation der feststoffbeladenen Gasstrmung im horizontalen Kanal unter
Bercksichtigung von Wandrauhigkeiten"
Ph.D. Thesis, Techn. University Bergakademie Freiberg, Germany, 1992
209
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
375
Bibliography
Matsumoto, S., Saito, S., Maeda, S.
"Simulation of Gas-Solid Two-Phase Flow in Horizontal Pipe"
Journal of Chemical Engineering of Japan
Vol. 9, No. 1, pp. 2328, 1976
210
Tsuji, Y., Oshima, T., Morikawa, Y.
"Numerical Simulation of Pneumatic Conveying in a Horizontal Pipe"
KONA Powder Science and Technology in Japan
No. 3, pp. 3851, 1985
211
Frank, Th.
"Parallele Algorithmen fr die numerische Simulation dreidimensionaler, disperser
Mehrphasenstrmungen und deren Anwendung in der Verfahrenstechnik"
Doctorial Dissertation, Shaker Verlag, 2002
212
Sommerfeld, M.
"Numerical Simulation of the Particle Dispersion in Turbulent Flow: the Importance of
Particle Lift Forces and Particle/Wall Collision Models"
ASME Symposium on Numerical Methods for Multiphase Flows, Toronto, Canada
pp. 18, 1990
213
B. P. Leonard,
The ULTIMATE conservative difference scheme applied to unsteady one-dimensional
advection,
Comp. Methods Appl. Mech. Eng.,
88:1774, 1991
214
Jasak, H.; Weller, H.G., Gosman, A.D.
High resolution NVD differencing scheme for arbitrarily unstructured meshes,
Int. J. Numer. Meth. Fluids, 1999,
376
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
References 201-220
pp. 413 449.
215
Erdos, J.A.
Numerical Solution of Periodic Transonic Flow through a Fan Stage
AIAA Journal, 1977.
pp. 1559-1568.
216
Gerolymos G.A.
Analysis and Application of Chorochronic Periodicity in Turbomachinery Rotor/Stator
Interaction Computations
Journal of Propulsion and Power, 2002.
pp. 1139-1152.
217
Giles, M.
Calculation of Unsteady Wake/Rotor Interaction
J. Propulsion, 1988.
pp. 356-362.
218
He, L.
An Euler Solution for Unsteady Flows Around Oscillating Blades
Transactions of the ASME, 1990.
pp. 714-722.
219
Apsley, D.D. and Leschziner, M.A.
A new low-reynolds-number nonlinear two-equation turbulence model for complex
flows
International Journal of Heat and Fluid Flow, 19, pp. 209-222, 1998.
220
Coffee, T. P.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
377
Bibliography
Comment on Simplified Reaction Mechanisms for the Oxidation of Hydrocarbon Fuels in
Flames by C. K. Westbrook and F. T. Dryer
Combustion Science and Technology, 43, pp. 333339, 1985.
378
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary
Symbols
<CFDPOSTROOT>
<CFXROOT>
A
absolute pressure
absorption coefficient
adaption criteria
The criteria that are used to determine where mesh adaption takes place.
adaption level
The degree that a mesh element has been refined during adaption. Each
mesh element has an adaption level. Each time an element is split into
smaller elements, the new elements have an adaption level that is one
greater than the "parent" element. The maximum number of adaption
levels is controlled to prevent over-refinement.
adaption step
Additional Variable
adiabatic
The default meshing mode in CFX. The AFI mesher consists of a triangular
surface/tetrahedral volume mesh generator that uses the advancing front
method to discretize first the surface and then the volume into an unstructured (irregular) mesh. Inflation can be applied to selected surfaces
to produce prismatic elements from the triangular surface mesh, which
combine with the tetrahedra to form a hybrid mesh.
all domains
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
379
Glossary
Generally speaking, only the wireframe needs to keep track of both
"all domains" and the immersed solid.
ASM (Algebraic Slip Model)
aspect ratio
B
backup file
batch mode
blend factor
A setting that controls the degree of first/second order blending for the
advection terms in discrete finite volume equations.
body
boundary
boundary condition
buoyant flow
C
CEL (CFX Expression Language)
380
A high level language used within CFX to develop expressions for use in
your simulations. CEL can be used to apply user-defined fluid property
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The science of predicting fluid flow, heat transfer, mass transfer (as in
perspiration or dissolution), phase change (as in freezing or boiling),
chemical reaction (as in combustion), mechanical movement (as in fan
rotation), stress or deformation of related solid structures (such as a mast
bending in the wind), and related phenomena by solving the mathematical equations that govern these processes using a numerical algorithm
on a computer.
A file that contains the specification for the whole simulation, including
the geometry, surface mesh, boundary conditions, fluid properties, solver
parameters and any initial values. It is created by CFX and used as input
to CFX-Solver.
clipping plane
command actions
component
compressible flow
computational mesh
control volume
convergence
A state of a solution that occurs when the change in residual values from
one iteration to the next are below defined limits.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
381
Glossary
corrected boundary node
values
coupled solver
A solver in which all of the hydrodynamic equations are solved simultaneously as a single system. The advantages of a coupled solver are that
it is faster than a traditional solver and fewer iterations are required to
obtain a converged solution. CFX-Solver is an example of a coupled
solver.
curve
D
default boundary condition
A model that covers the boundary layer by a RANS model and switches
to a LES model in detached regions.
discretization
domain
Regions of fluid flow and/or heat transfer in CFX are called domains.
Fluid domains define a region of fluid flow, while solid domains are regions occupied by conducting solids in which volumetric sources of energy can be specified. The domain requires three specifications:
382
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dynamic viscosity, also called absolute viscosity, is a measure of the resistance of a fluid to shearing forces.
dynamical time
E
eddy viscosity model
edge
The edge entity describes the topological relationships for a curve. Adjacent faces share at least one edge.
emissivity
expansion factor
The rate of growth of volume elements away from curved surfaces and
the rate of growth of surface elements away from curved boundaries.
Expansion factor is also used to specify the rate of mesh coarsening from
a mesh control.
expression editor
external flow
F
face
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
383
Glossary
A boundary face is an element face that exists on the exterior boundary
of the domain.
Surfaces composed of edges that are connected to each other.
FLEXlm
flow boundaries
flow region
A volumetric space containing a fluid. Depending on the flow characteristics, you may have a single, uninterrupted flow region, or several flow
regions, each exhibiting different characteristics.
flow symmetry
Flow where the conditions of the flow entering and leaving one half of
a geometry are the same as the conditions of the flow entering and
leaving the other half of the geometry.
fluid
A substance that tends to flow and assumes the shape of its domain,
such as a gas in a duct or a liquid in a container.
free edges
G
gas or liquid surface
general fluid
The minimum distance between two geometry entities below which CFX
considers them to be coincident. The default setting of global model
tolerance, defined in the template database, is normally .005 in whichever
geometry units you are working.
geometric symmetry
group
384
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
H
hexahedral element
A mesh element with the same topology as a hexahedron, with six faces
and eight vertices.
home directory
The directory on all Linux systems and some Windows NT systems where
each user stores all of their files, and where various set-up files are stored.
However, on some Windows NT systems, users do not have an
equivalent to the Linux home directory. In this case, the ANSYS CFX
set-up file cfx5rc can be placed in c:\winnt\profiles\<user>\Application Data\ANSYS CFX\<release>,
where <user> is the user name on the machine. Other files can be
put into a directory set by the variable HOME.
I
ideal gas
A fluid whose properties obey the ideal gas law. The density is automatically computed using this relationship and a specified molecular weight.
implicit geometry
Geometry that exists as part of some other entity. For example, the edges
of a surface are implicit curves.
import mesh
inactive region
A fluid or porous region where flow and (if relevant) temperatures are
not being calculated, or a solid region where temperatures are not being
calculated. By default, inactive regions are hidden from view in the
graphics window.
incompressible flow
incremental adaption
initial guess
initial values
The values of dependent variables at the initial time of a transient simulation. These can be either set explicitly, or read from an existing solution.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
385
Glossary
inlet boundary condition
A boundary condition (p. 380) for which the quantity of fluid flowing into
the flow domain is specified, for example, by setting the fluid velocity or
mass flow rate.
instancing
interior boundary
A boundary that enables flow to enter and exit. These types of boundaries
are useful to separate two distinct fluid regions from each other, or to
separate a porous region from a fluid region, when you still want flow
to occur between the two regions.
internal flow
Flow through the interior of your geometry, such as flow through a pipe.
interpolation
isentropic
isosurface
Isovolume
J
JPEG file
K
k-epsilon turbulence model
A turbulence model (p. 394) based on the concept that turbulence consists
of small eddies that are continuously forming and dissipating. The k-epsilon turbulence model solves two additional transport equations: one
for turbulence generation (k), and one for turbulence dissipation (epsilon).
kinematic diffusivity
L
laminar flow
386
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Large Eddy Simulation model decomposes flow variables into large
and small scale parts. This model solves for large-scale fluctuating motions
and uses sub-grid scale turbulence models for the small-scale motion.
legend
A mode in which you type the commands that would otherwise be issued
by the user interface. A viewer is provided that shows the geometry and
the objects created on the command line. Line interface mode differs
from entering commands in the Command Editor dialog box in that line
interface action commands are not preceded by a > symbol. Aside from
that difference, all commands that work for the Command Editor dialog
box will also work in line interface mode, providing the correct syntax is
used.
locator
A place or object upon which a plot can be drawn. Examples are planes
and points.
M
MAlt key (Meta key)
The MAlt key (or Meta key) is used to keyboard select menu items with
the use of mnemonics (the underscored letter in each menu label). By
simultaneously pressing the MAlt key and a mnemonic is an alternative
to using the mouse to click a menu title. The MAlt key is different for
different brands of keyboards. Some examples of MAlt keys include the
"" key for Sun Model Type 4 keyboards, the "Compose Character" key
for Tektronix keyboards, and the Alt key on most keyboards for most
Windows-based systems.
mass fraction
The ratio of the mass of a fluid component to the total mass of the fluid.
Values for mass fraction range from 0 to 1.
material
meridional
mesh
mesh adaption
The process by which, once or more during a run, the mesh is selectively
refined at various locations, depending on criteria that you can specify.
As the solution is calculated, the mesh can automatically be refined in
locations where solution variables are changed rapidly, in order to resolve
the features of the flow in these regions.
There are two general methods for performing mesh adaption. Incremental adaption takes an existing mesh and modifies it to meet the
adaption criteria. The alternative is remeshing, in which the whole
geometry is remeshed at every adaption step according to the adaption criteria. In CFX, incremental adaption is used because this is
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
387
Glossary
much faster; however, this imposes the limitation that the resulting
mesh quality is limited by the quality of the initial mesh.
mesh control
meshing mode
The method you use to create your mesh of nodes and elements required
for analysis. There are two main meshing modes:
Advancing Front and Inflation (AFI) (p. 379)
import mesh (p. 385)
A file that contains only the results for selected variables, and no mesh.
It can be created only for transient calculations. It is useful when you are
only interested in particular variables and want to minimize the size of
the results for the transient calculation.
multicomponent fluid
N
Navier-Stokes equations
Preferential settings for your model that define the meshing mode (p. 388),
the geometry units, and the global model tolerance (p. 384).
non-Newtonian fluid
A fluid that does not follow a simple linear relationship between shear
stress and shear strain.
normal
O
open area
OpenGL
388
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
outlet
outline plot
A plot showing the outline of the geometry. By setting the edge angle
to 0, the surface mesh can be displayed over the whole geometry.
output file
P
parallel runs
parametric equation
Any set of equations that express the coordinates of the points of a curve
as functions of one parameter, or express the coordinates of the points
of a surface as functions of two parameters, or express the coordinates
of the points of a solid as functions of three parameters.
parametric solids
parametric surfaces
Four sided surfaces parameterized in two normalized directions. Parametric surfaces are colored green ANSYS CFX.
Particle-Particle Collision
Model (LPTM-PPCM)
A model in ANSYS CFX that takes inter-particle collisions and their effects
on the particle and gas phase into consideration.
A boundary condition where the values on the first surface specified are
mapped to the second surface. The mapping can be done either by a
translation or a rotation (if a rotating frame of reference is used).
pick list
The list processor interprets the contents of all selected data boxes. All
selected data boxes in CFX expect character strings as input. The character
strings may be supplied by the graphics system when you select an entity
from a viewport, or you can type or paste in the string directly. The
character strings are called "pick lists."
plot
point
point probes
polyline
postprocessor
The component used to analyze and present the results of the simulation.
For ANSYS CFX, the postprocessor is CFD-Post.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
389
Glossary
Power Syntax
preprocessor
The component used to create the input for the solver. For ANSYS CFX,
the preprocessor is CFX-Pre.
pressure
pyramid element
R
reference coordinate frame
region
residuals
The change in the value of certain variables from one iteration to the
next.
The discretized Navier-Stokes equations (p. 388) are solved iteratively.
The residual for each equation gives a measure of how far the latest
solution is from the solution in the previous iteration. A solution is
considered to be converged when the residuals are below a certain
value.
CFX-Solver writes the residuals to the output file (p. 389) so that they
can be reviewed. Fluent allows residuals to be plotted during the
solution process.
390
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reynolds stress
The stress added to fluid flow due to the random fluctuations in fluid
momentum in turbulent flows. When the Navier-Stokes equations (p. 388)
are derived for time averaged turbulent flow to take into account the
effect of these fluctuations in velocity, the resulting equations have six
stress terms that do not appear in the laminar flow equations. These are
known as Reynolds stresses.
A model that solves transport equations for the individual Reynolds stress
components. It is particularly appropriate where strong flow curvature,
swirl, and separation are present. Reynolds stress models in general tend
to be less numerically robust than eddy viscosity models such as the kepsilon turbulence model (p. 386).
A coordinate system that rotates. ANSYS CFX and Fluent can solve for
fluid flow in a geometry that is rotating around an axis at a fixed angular
velocity.
run
A process that requires the specification of the CFX-Solver input file (and
an initial values file, if necessary), and produces an output file and a results
file (if successful).
S
Sampling Plane
scalar variable
A variable that has only magnitude and not direction. Examples are
temperature, pressure, speed (the magnitude of the velocity vector), and
any component of a vector quantity.
A shear stress transport model used primarily for unsteady CFD simulations, where steady-state simulations are not of sufficient accuracy and
do not properly describe the true nature of the physical phenomena.
Cases that may benefit from using the SAS-SST model include:
Unsteady flow behind a car or in the strong mixing behind blades and
baffles inside stirred chemical reactors
Unsteady cavitation inside a vortex core (fuel injection system) or a fluidstructure interaction (unsteady forces on bridges, wings, and so on).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
391
Glossary
For these problems and others, the SAS-SST model provides a more
accurate solution than URANS models, where steady-state simulations
are not of sufficient accuracy and do not properly describe the true
nature of the physical phenomena.
Second Moment Closure
models
Models that use seven transport equations for the independent Reynolds
stresses and one length (or related) scale; other models use two equations
for the two main turbulent scales.
A file that contains the records of all the actions in each interactive CFX
session. It has the extension .ses.
A
based SST model that accounts for the transport of the turbulent
shear stress and gives highly accurate predictions of the onset and the
amount of flow separation under adverse pressure gradients.
A locator that is planar, and that consists of all the points that intersect
the plane and the mesh edges.
solid
A material that does not flow when a force or stress is applied to it.
The general class of vector valued functions of three parametric
variables.
solid sub-domain
solver
The component that solves the CFD problem, producing the required
results.
solver pressure
spanwise coordinate
specific heat
392
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
speed of sound
sphere volume
A locator that consists of a collection of volume elements that are contained in or intersect a user-defined sphere.
state files
Files produced by CFD-Post that contain CCL commands. They differ from
session files in that only a snapshot of the current state is saved to a file.
You can also write your own state files using any text editor.
steady-state simulation
A simulation that is carried out to determine the flow after it has settled
to a steady state. Note that, even with time constant boundary conditions,
some flows do not have a steady-state solution.
stream plot
A plot that shows the streamlines of a flow. Stream plots can be shown
as lines, tubes, or ribbons.
streamline
The path that a small, neutrally-buoyant particle would take through the
flow domain, assuming the displayed solution to be steady-state.
subdomains
subsonic flow
surface plot
A plot that colors a surface according to the values of a variable. Additionally, you can choose to display contours.
symmetry-plane boundary
condition
A boundary condition where all variables except velocity are mathematically symmetric and there can be no diffusion or flow across the
boundary. Velocity parallel to the boundary is also symmetric and velocity
normal to the boundary is zero.
T
template fluid
One of a list of standard fluids with predefined properties that you can
use 'as is', or use as a template to create a fluid with your own 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.
393
Glossary
thermal expansivity
The property of a fluid that describes how a fluid expands as the result
of an increase in temperature. Also known as the coefficient of thermal
expansion, .
theta
topology
tracers
Particles that follow a flow pathline. Used in viewing CFD results in order
to visualize the mechanics of the fluid flow.
transitions
Portions of a mesh that are the result of meshing geometry with two
opposing edges that have different mesh seeds. This produces an irregular mesh.
turbulence intensity
A physical quantity related to the size of the large eddies that contain
the energy in turbulent flows.
In fully-developed duct flows, the turbulence length scale is restricted
by the size of the duct because the turbulent eddies cannot be larger
than the duct. An approximate relationship can be made between
the turbulence length scale and the physical size of the duct that,
while not ideal, can be applied to most situations.
If the turbulence derives its characteristic length from an obstacle
in the flow, such as a perforated plate, it is more appropriate to base
the turbulence length scale on the characteristic length of the
obstacle rather than on the duct size.
turbulence model
394
A model that predicts turbulent flow (p. 395). The available turbulence
models in ANSYS CFX are:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A flow field that is irregular and chaotic look. In turbulent flow, a fluid
particle's velocity changes dramatically at any given point in the flow
field, in time, direction, and magnitude, making computational analysis
of the flow more challenging.
turbulent flow
V
variable
vector plot
A plot that shows the direction of the flow at points in space, using arrows. Optionally, the size of the arrows may show the magnitude of the
velocity of the flow at that point. The vectors may also be colored according to the value of any variable.
verification
viewer area
The area of ANSYS CFX that contains the 3D Viewer, Table Viewer, Chart
Viewer, Comment Viewer, and Report Viewer, which you access from
tabs at the bottom of the area.
viewport (CFX)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
395
Glossary
A graphics environment accessed from Display, Preference, and Group
menus that is common to all viewports.
There are the following types of CFX viewports:
current viewport
The viewport currently being displayed. The following actions can be
performed only on the current viewport:
Changing the view by using the View menu or mouse.
Posting titles and annotations by using the Display menu.
posted viewport
A viewport that has been selected for display.
target viewport
A viewport selected for a viewport modify action. Any viewport (including the current viewport) can be selected as the target viewport.
viscosity
The ratio of the tangential frictional force per unit area to the velocity
gradient perpendicular to the flow direction.
W
wall
workspace area
The area of CFX-Pre and CFD-Post that contains the Outline, Variables,
Expressions, Calculators, and Turbo workspaces, which you access from
the tabs at the top of the area. Each workspace has a tree view at the
top and an editor at the bottom (which is often called the details view).
See also CFD-Post Graphical Interface.
Y
y+ (YPLUS)
Z
zero equation turbulence
model
396
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ing quick, robust solutions for use as initial fields for simulations using
more sophisticated turbulence models.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
397
398
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.