ANSYS CFX tutorials.pdf - [PDF Document] (2023)

  • ANSYS CFXTutorials

    ANSYS CFX Release 11.0

    December 2006

  • ANSYS, Inc.

    Southpointe

    275 Technology Drive

    Canonsburg, PA 15317

    [emailprotected]

    http://www.ansys.com

    (T) 724-746-3304

    (F) 724-514-9494

  • Copyright and Trademark Information 1996-2006 ANSYS Europe, Ltd.All rights reserved. Unauthorized use, distribution, or duplicationis

    prohibited.ANSYS, ANSYS Workbench, AUTODYN, CFX, FLUENT and anyand all ANSYS, Inc. brand, product, service

    and feature names, logos and slogans are registered trademarksor trademarks of ANSYS, Inc. or its subsidiaries located in theUnited States or other countries. ICEM CFD is a trademark used byANSYS, Inc.

    under license. CFX is a trademark of Sony Corporation in Japan.All other brand, product, service and feature names or trademarksare the property of their respective owners.

    Disclaimer NoticeTHIS ANSYS SOFTWARE PRODUCT AND PROGRAMDOCUMENTATION INCLUDE TRADE SECRETS AND ARE

    CONFIDENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITSSUBSIDIARIES, OR LICENSORS. The software products and documentationare furnished by ANSYS, Inc., its subsidiaries, or affiliates undera

    software license agreement that contains provisions concerningnon-disclosure, copying, length and nature of use, compliance withexporting laws, warranties, disclaimers, limitations of liability,and

    remedies, and other provisions. The software products anddocumentation may be used, disclosed, transferred, or copied onlyin accordance with the terms and conditions of that softwarelicense

    agreement.ANSYS, Inc. and ANSYS Europe, Ltd. are UL registeredISO 9001:2000 companies.

    For U.Sthe use

    Seepro

    availabU.S. Government Rights. Government users, except asspecifically granted by the ANSYS, Inc. software license agreement,, duplication, or disclosure by the United States Government issubject to restrictions stated in the

    ANSYS, Inc. software license agreement and FAR 12.212 (for nonDOD licenses).

    Third-Party Software the online documentation in the producthelp files for the complete Legal Notice for ANSYS

    prietary software and third-party software. The ANSYSthird-party software information is also le via download from theCustomer Portal on the ANSYS web page. If you are unable to accessthe

    third-party legal notices, please contact ANSYS, Inc.

    Published in the U.S.A.

  • Page vANSYS CFX Tutorials

    Table of Contents

    Copyright and Trademark Information

    Disclaimer Notice

    U.S. Government Rights

    Third-Party Software

    Introduction to theANSYS CFX Tutorials

    Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

    Setting the Working Directory . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . 1

    Changing the Display Colors . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . 2

    Tutorial 1:Simulating Flow in a Static Mixer Using CFX inStandalone Mode

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

    Before You Begin . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

    Tutorial 1 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . 5

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . 6

    Obtaining a Solution Using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . .12

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . .15

    Tutorial 1a:Simulating Flow in a Static Mixer UsingWorkbench

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31

    Before You Begin . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . .32

    Tutorial 1a Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . .32

  • Table of Contents: Tutorial 2: Flow in a Static Mixer (RefinedMesh)

    Page vi ANSYS CFX Tutorials

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . .33

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . .34

    Obtaining a Solution Using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . .41

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . .43

    Tutorial 2:Flow in a Static Mixer(Refined Mesh)

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59

    Tutorial 2 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . .60

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . .60

    Defining a Simulation using General Mode in ANSYS CFX-Pre . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . .61

    Obtaining a Solution Using Interpolation with ANSYS CFX-Solver .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .66

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . .68

    Tutorial 3:Flow in a Process Injection Mixing Pipe

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77

    Tutorial 3 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . .78

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . .78

    Defining a Simulation using General Mode in ANSYS CFX-Pre . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . .79

    Obtaining a Solution Using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . .87

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . .88

    Tutorial 4:Flow from a Circular Vent

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93

    Tutorial 4 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . .94

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . .95

    Defining a Steady-State Simulation in ANSYS CFX-Pre . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . .95

    Obtaining a Solution to the Steady-State Problem . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . .99

    Defining a Transient Simulation in ANSYS CFX-Pre. . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . 100

    Obtaining a Solution to the Transient Problem . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 104

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 105

    Tutorial 5:Flow Around a Blunt Body

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

    Tutorial 5 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . 109

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 111

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 111

  • Table of Contents: Tutorial 6: Buoyant Flow in a PartitionedCavity

    ANSYS CFX Tutorials Page vii

    Obtaining a Solution Using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 116

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 119

    Tutorial 6:Buoyant Flow in a Partitioned Cavity

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

    Tutorial 6 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . 128

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 128

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 129

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 134

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 135

    Tutorial 7:Free Surface Flow Over a Bump

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

    Tutorial 7 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . 139

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 140

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 141

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 148

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 149

    Using a Supercritical Outlet Condition . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . 154

    Tutorial 8:Supersonic Flow Over a Wing

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

    Tutorial 8 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . 155

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 157

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 157

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 162

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 162

    Tutorial 9:Flow Through a Butterfly Valve

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

    Tutorial 9 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . 165

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 166

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 167

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 180

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 180

    Tutorial 10:

  • Table of Contents: Tutorial 11: Non-Newtonian Fluid Flow in anAnnulus

    Page viii ANSYS CFX Tutorials

    Flow in a Catalytic Converter

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

    Tutorial 10 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 185

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 186

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 187

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 193

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 194

    Tutorial 11:Non-Newtonian Fluid Flow in an Annulus

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 199

    Tutorial 11 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 200

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 201

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 201

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 205

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 206

    Tutorial 12:Flow in an Axial Rotor/Stator

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

    Tutorial 12 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 208

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 209

    Defining a Frozen Rotor Simulation in ANSYS CFX-Pre . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . 210

    Obtaining a Solution to the Frozen Rotor Model . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . 214

    Viewing the Frozen Rotor Results in ANSYS CFX-Post . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . 215

    Setting up a Transient Rotor-Stator Calculation. . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 216

    Obtaining a Solution to the Transient Rotor-Stator Model. . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . 219

    Viewing the Transient Rotor-Stator Results in ANSYS CFX-Post . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . 220

    Tutorial 13:Reacting Flow in a Mixing Tube

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

    Tutorial 13 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 223

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 224

    Outline of the Process . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . 224

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 225

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 237

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 237

    Tutorial 14:

  • Table of Contents: Tutorial 15: Multiphase Flow in MixingVessel

    ANSYS CFX Tutorials Page ix

    Conjugate Heat Transfer in a Heating Coil

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

    Tutorial 14 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 240

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 241

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 241

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 246

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 246

    Exporting the Results to ANSYS . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . 247

    Tutorial 15:Multiphase Flow in Mixing Vessel

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

    Tutorial 15 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 252

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 253

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 253

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 265

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 265

    Tutorial 16:Gas-Liquid Flow in an Airlift Reactor

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

    Tutorial 16 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 270

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 270

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 271

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 277

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 278

    Additional Fine Mesh Simulation Results . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 280

    Tutorial 17:Air Conditioning Simulation

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

    Tutorial 17 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 284

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 285

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 285

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 295

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 295

    Tutorial 18:Combustion and Radiation in a Can Combustor

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 299

  • Table of Contents: Tutorial 19: Cavitation Around aHydrofoil

    Page x ANSYS CFX Tutorials

    Tutorial 18 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 300

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 301

    Using Eddy Dissipation and P1 Models . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 301

    Defining a Simulation in ANSYS CFX-Pre . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 302

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 307

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 308

    Laminar Flamelet and Discrete Transfer Models . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . 311

    Further Postprocessing . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . 316

    Tutorial 19:Cavitation Around a Hydrofoil

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 317

    (Video) Ansys CFX Tutorial

    Tutorial 19 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 318

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 319

    Creating an Initial Simulation . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . 319

    Obtaining an Initial Solution using ANSYS CFX-Solver Manager . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . 323

    Viewing the Results of the Initial Simulation . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 324

    Preparing a Simulation with Cavitation. . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . 326

    Obtaining a Cavitation Solution using ANSYS CFX-Solver Manager .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 328

    Viewing the Results of the Cavitation Simulation . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . 328

    Tutorial 20:Fluid Structure Interaction and Mesh Deformation

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 331

    Tutorial 20 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 332

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 333

    Using CEL Expressions to Govern Mesh Deformation . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . 334

    Using a Junction Box Routine to Govern Mesh Deformation . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . 343

    Tutorial 21:Oscillating Plate with Two-Way Fluid-StructureInteraction

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 353

    Tutorial 21 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 354

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 354

    Setting up the Solid Physics in Simulation (ANSYS Workbench) . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . 355

    Setting up the Fluid Physics and ANSYS Multi-field Settings inANSYS CFX-Pre. . . . . . . . . . . . . . . . . . . . . . . . .358

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 364

    Viewing Results in ANSYS CFX-Post . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . 365

    Tutorial 22:

  • Table of Contents: Tutorial 23: Aerodynamic & StructuralPerformance of a Centrifugal Compressor

    ANSYS CFX Tutorials Page xi

    Optimizing Flow in a Static Mixer

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 369

    Tutorial 22 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 370

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 370

    Creating the Project . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 371

    Creating the Geometry . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . 372

    Creating the Mesh. . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 377

    Overview of ANSYS CFX-Pre . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . 380

    Setting the Output Parameter in ANSYS CFX-Post . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . 386

    Running Design Studies in DesignXplorer . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 387

    Tutorial 23:Aerodynamic & Structural Performance of aCentrifugal Compressor

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . 395

    Tutorial 23 Features . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 396

    Overview of the Problem to Solve. . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 397

    Reviewing the Centrifugal Compressor Design . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . 397

    Creating the Mesh in ANSYS TurboGrid . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 398

    Defining the Aerodynamic Simulation in ANSYS CFX-Pre . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . 401

    Obtaining a Solution using ANSYS CFX-Solver Manager . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . 403

    Viewing the Results in ANSYS CFX-Post . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . 404

    Importing Geometry into DesignModeler . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . 405

    Simulating Structural Stresses Due to Pressure Loads . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . 406

    Simulating Structural Stresses Due to Rotation . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 407

  • Table of Contents: Tutorial 23: Aerodynamic & StructuralPerformance of a Centrifugal Compressor

    Page xii ANSYS CFX Tutorials

  • Page 1ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. Allrights reserved.Contains proprietary and confidential informationof ANSYS, Inc. and its subsidiaries and affiliates.

    ANSYS CFX Tutorials

    Introduction to theANSYS CFX Tutorials

    Overview

    These tutorials are designed to introduce general techniquesused in ANSYS CFX and

    provide tips on advanced modeling.

    Earlier tutorials introduce general principles used in ANSYSCFX, including setting up the

    physical models, running ANSYS CFX-Solver and visualizing theresults. The remaining

    tutorials highlight specialized features of ANSYS CFX.

    Files required to complete each tutorial is listed in theintroduction to the tutorial, and

    located in /examples, where is the installation directory.

    Setting the Working Directory

    One of the first things you must do when using ANSYS CFX is toset a working directory. The

    working directory is the default location for loading and savingfiles for a particular session

    or project.

    The working directory is set according to how you run ANSYSCFX:

    Workbench

    Set the working directory by saving a project file.

    Standalone

    Set the working directory by entering it in CFX Launcher.

  • Introduction to the ANSYS CFX Tutorials: Changing the DisplayColors

    Page 2 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Changing the Display Colors

    If viewing objects in ANSYS CFX becomes difficult due tocontrast with the background, the

    colors can be altered for improved viewing. The color optionsare set in different places,

    depending on how you run ANSYS CFX, as follows:

    In standalone mode (i.e., after using CFX Launcher to launchANSYS CFX-Pre or ANSYSCFX-Post):

    a. Select Edit > Options.

    The Options dialog box appears.

    b. Adjust the color settings under CFX-Pre> Viewer (for ANSYSCFX-Pre) or CFX-Post> Viewer (for ANSYS CFX-Post).

    c. Click OK.

    In ANSYS Workbench:

    a. Select Tools > Options from the Project page.

    b. Adjust the color settings under Common Settings > GraphicsStyle.

    c. Click OK.

  • Page 3ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. Allrights reserved.Contains proprietary and confidential informationof ANSYS, Inc. and its subsidiaries and affiliates.

    ANSYS CFX Tutorials

    Tutorial 1:Simulating Flow in a StaticMixer Using CFX inStandaloneMode

    Introduction

    This tutorial simulates a static mixer consisting of two inletpipes delivering water into a

    mixing vessel; the water exits through an outlet pipe. A generalworkflow is established for

    analyzing the flow of fluid into and out of a mixer.

    This tutorial includes:

    Before You Begin (p. 4)

    Tutorial 1 Features (p. 4)

    Overview of the Problem to Solve (p. 5)

    Defining a Simulation in ANSYS CFX-Pre (p. 6)

    Obtaining a Solution Using ANSYS CFX-Solver Manager (p. 12)

    Viewing the Results in ANSYS CFX-Post (p. 15)

    If this is the first tutorial you are working with, it isimportant to review the following topics

    before beginning:

    Setting the Working Directory (p. 1)

    Changing the Display Colors (p. 2)

    To learn how to perform these tasks in Workbench, see Tutorial1a: Simulating Flow in a

    Static Mixer Using Workbench (p. 31 in "ANSYS CFXTutorials").

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Before You Begin

    Page 4 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Before You Begin

    Create a working directory for your files. Once this is done,copy the sample files used in this

    tutorial to your working directory from the installation folderfor your software

    (/examples/ (for example, C:\ProgramFiles\ANSYSInc\v110\CFX\examples)) to avoid overwriting sourcefiles provided with yourinstallation. If you plan to use a sessionfile, please refer to Playing a Session File (p. 7).

    Sample files used by this tutorial are:

    StaticMixerMesh.gtm

    StaticMixer.pre

    Tutorial 1 Features

    This tutorial addresses the following features of ANSYS CFX.

    In this tutorial you will learn about:

    Using Quick Setup mode in ANSYS CFX-Pre to set up a problem.

    Modifying the outline plot in ANSYS CFX-Post.

    Using streamlines in ANSYS CFX-Post to trace the flow field froma point.

    Viewing temperature using colored planes and contours in ANSYSCFX-Post.

    Creating an animation and saving it to an MPEG file.

    Component Feature Details

    ANSYS CFX-Pre User Mode Quick Setup Wizard

    Simulation Type Steady State

    Fluid Type General Fluid

    Domain Type Single Domain

    Turbulence Model k-Epsilon

    Heat Transfer Thermal Energy

    Boundary Conditions Inlet (Subsonic)

    Outlet (Subsonic)

    Wall: No-Slip

    Wall: Adiabatic

    Timestep Physical Time Scale

    ANSYS CFX-Post Plots Animation

    Contour

    Outline Plot (Wireframe)

    Point

    Slice Plane

    Streamline

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Overview of the Problem to Solve

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 5Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Overview of the Problem to Solve

    This tutorial simulates a static mixer consisting of two inletpipes delivering water into a

    mixing vessel; the water exits through an outlet pipe. A generalworkflow is established for

    analyzing the flow of fluid into and out of a mixer.

    Water enters through both pipes at the same rate but atdifferent temperatures. The first

    entry is at a rate of 2 m/s and a temperature of 315 K and thesecond entry is at a rate of 2

    m/s at a temperature of 285 K. The radius of the mixer is 2m.

    Your goal in this tutorial is to understand how to use ANSYS CFXto determine the speed and

    temperature of the water when it exits the static mixer.

    Figure 1 Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe

    2 m/s285 K

    2 m/s315 K

    r=2m

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Defining a Simulation in ANSYS CFX-Pre

    Page 6 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Defining a Simulation in ANSYS CFX-Pre

    Because you are starting with an existing mesh, you canimmediately use ANSYS CFX-Pre to

    define the simulation. This is how ANSYS CFX-Pre will look withthe imported mesh:

    In the image above, the left pane of ANSYS CFX-Pre displays theOutline . When you

    double-click on items in the Outline, the Outline editor opensand can be used to create,

    modify, and view objects.

    Note: In this documentation, the details view can also bereferenced by the name of theobject being edited, followed by theword details view (for example, if you double-clickthe Wireframeobject, the Wireframe details view appears).

    Synopsis of Quick Setup Mode

    Quick Setup mode provides a simple wizardlike interface forsetting up simple cases. This

    is useful for getting familiar with the basic elements of a CFDproblem setup. This section

    describes using Quick Setup mode to develop a simulation inANSYS CFX-Pre.

    Workflow Overview

    This tutorial follows the general workflow for Quick Setupmode:

    1. Creating a New Simulation (p. 7)

    2. Setting the Physics Definition (p. 7)

    3. Importing a Mesh (p. 7)

    4. Defining Model Data (p. 9)

    5. Defining Boundaries (p. 9)

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Defining a Simulation in ANSYS CFX-Pre

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 7Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    6. Setting Boundary Data (p. 9)

    7. Setting Flow Specification (p. 9)

    8. Setting Temperature Specification (p. 10)

    9. Reviewing the Boundary Condition Definitions (p. 10)

    10. Creating the Second Inlet Boundary Definition (p. 10)

    11. Creating the Outlet Boundary Definition (p. 10)

    12. Moving to General Mode (p. 11)

    13. Writing the Solver (.def) File (p. 11)

    Playing aSession File

    If you want to skip past these instructions and have ANSYSCFX-Pre set up the simulation

    automatically, you can select Session > Play Tutorial fromthe menu in ANSYS CFX-Pre,

    then run the appropriate session file. For details, see Playingthe Session File and Starting

    ANSYS CFX-Solver Manager (p. 12). After you have played thesession file, proceed to

    Obtaining a Solution Using ANSYS CFX-Solver Manager (p. 12).

    Creating a New Simulation

    Before importing and working with a mesh, a simulation needs tobe started using Quick

    Setup mode.

    Procedure 1. If required, launch ANSYS CFX-Pre.

    2. Select File > New Simulation.

    The New Simulation File dialog box is displayed.

    3. Select Quick Setup and click OK.

    Note: If this is the first time you are running this software, amessage box will appearnotifying you that automatic generation ofthe default domain is active. To avoid seeing thismessage againuncheck Show This Message Again.

    4. Select File > Save Simulation As.

    (Video) Tutorial Ansys - How to Make Simulation Fluid Flow by CFX ( Simple for Beginner)

    5. Under File name, type: StaticMixer

    6. Click Save.

    Setting the Physics Definition

    You need to specify the fluids used in a simulation. A varietyof fluids are already defined as

    library materials. For this tutorial you will use a preparedfluid, Water, which is defined to be

    water at 25C.

    Procedure 1. Ensure that Simulation Definition is displayed atthe top of the details view.

    2. Under Fluid select Water.

    Importing a Mesh

    At least one mesh must be imported before physics areapplied.

    Procedure 1. In Simulation Definition, under Mesh File, clickBrowse .

    The Import Mesh dialog box appears.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Defining a Simulation in ANSYS CFX-Pre

    Page 8 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    2. Under File type, select CFX Mesh (*gtm *cfx).3. From yourworking directory, select StaticMixerMesh.gtm.

    4. Click Open.

    The mesh loads.

    5. Click Next.

    Using the Viewer

    Now that the mesh is loaded, take a moment to explore how youcan use the viewer toolbar

    to zoom in or out and to rotate the object in the viewer.

    Using the ZoomTools

    There are several icons available for controlling the level ofzoom in the viewer.

    1. Click Zoom Box

    2. Click and drag a rectangular box over the geometry.

    3. Release the mouse button to zoom in on the selection.

    The geometry zoom changes to display the selection at a greaterresolution.

    4. Click Fit View to re-center and re-scale the geometry.

    Rotating thegeometry

    If you need to rotate an object or to view it from a new angle,you can use the viewer toolbar.

    1. Click Rotate on the viewer toolbar.

    2. Click and drag within the geometry repeatedly to test therotation of the geometry.

    The geometry rotates based on the direction of movement.

    Notice how the mouse cursor changes depending on where you arein the viewer:

    3. Right-click a blank area in the viewer and select PredefinedCamera > ViewTowards-X).

    4. Right-click a blank area in the viewer and select PredefinedCamera > Isometric View(Z Up).

    A clearer view of the mesh is displayed.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Defining a Simulation in ANSYS CFX-Pre

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 9Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Defining Model Data

    You need to define the type of flow and the physical models touse in the fluid domain.

    You will specify the flow as steady state with turbulence andheat transfer. Turbulence is

    modeled using the - turbulence model and heat transfer using thethermal energy

    model. The - turbulence model is a commonly used model and issuitable for a wide

    range of applications. The thermal energy model neglects highspeed energy effects and is

    therefore suitable for low speed flow applications.

    Procedure 1. Ensure that Physics Definition is displayed.

    2. Under Model Data, set Reference Pressure to 1 [atm].All otherpressure settings are relative to this reference pressure.

    3. Set Heat Transfer to Thermal Energy.

    4. Set Turbulence to k-Epsilon.

    5. Click Next.

    Defining Boundaries

    The CFD model requires the definition of conditions on theboundaries of the domain.

    Procedure 1. Ensure that Boundary Definition is displayed.

    2. Delete Inlet and Outlet from the list by right-clicking eachand selecting Delete.

    3. Right-click in the blank area where Inlet and Outlet werelisted, then select New.

    4. Set Name to in1.

    5. Click OK.

    The boundary is created and, when selected, properties relatedto the boundary are

    displayed.

    Setting Boundary Data

    Once boundaries are created, you need to create associated data.Based on Figure 1, you will

    define the first inlet boundary conditions velocity andtemperature.

    Procedure 1. Ensure that Boundary Data is displayed.

    2. Set Boundary Type to Inlet.

    3. Set Location to in1.

    Setting Flow Specification

    Once boundary data is defined, the boundary needs to have theflow specification assigned.

    Procedure 1. Ensure that Flow Specification is displayed.

    2. Set Option to Normal Speed.

    3. Set Normal Speed to 2 [m s^-1].

    k

    k

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Defining a Simulation in ANSYS CFX-Pre

    Page 10 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Setting Temperature Specification

    Once flow specification is defined, the boundary needs to havetemperature assigned.

    Procedure 1. Ensure that Temperature Specification isdisplayed.

    2. Set Static Temperature to 315 [K].

    Reviewing the Boundary Condition Definitions

    Defining the boundary condition for in1 required several steps.Here the settings are

    reviewed for accuracy.

    Based on Figure 1, the first inlet boundary condition consistsof a velocity of 2 m/s and a

    temperature of 315 K at one of the side inlets.

    Procedure 1. Review the boundary in1 settings for accuracy. Theyshould be as follows:

    Creating the Second Inlet Boundary Definition

    Based on Figure 1, you know the second inlet boundary conditionconsists of a velocity of 2

    m/s and a temperature of 285 K at one of the side inlets. Youwill define that now.

    Procedure 1. Under Boundary Definition, right-click in theselector area and select New.

    2. Create a new boundary named in2 with these settings:

    Creating the Outlet Boundary Definition

    Now that the second inlet boundary has been created, the sameconcepts can be applied to

    building the outlet boundary.

    1. Create a new boundary named out with these settings:

    Tab Setting Value

    Boundary Data Boundary Type Inlet

    Location in1

    Flow Specification Option Normal Speed

    Normal Speed 2 [m s^-1]

    Temperature Specification Static Temperature 315 [K]

    Tab Setting Value

    Boundary Data Boundary Type Inlet

    Location in2

    Flow Specification Option Normal Speed

    Normal Speed 2 [m s^-1]

    Temperature Specification Static Temperature 285 [K]

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Defining a Simulation in ANSYS CFX-Pre

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 11Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    2. Click Next.

    Moving to General Mode

    There are no further boundary conditions that need to be set.All 2D exterior regions that

    have not been assigned to a boundary condition are automaticallyassigned to the default

    boundary condition.

    Procedure 1. Set Operation to Enter General Mode and clickFinish.

    The three boundary conditions are displayed in the viewer assets of arrows at the

    boundary surfaces. Inlet boundary arrows are directed into thedomain. Outlet

    boundary arrows are directed out of the domain.

    Setting Solver Control

    Solver Control parameters control aspects of the numericalsolution generation process.

    While an upwind advection scheme is less accurate than otheradvection schemes, it is also

    more robust. This advection scheme is suitable for obtaining aninitial set of results, but in

    general should not be used to obtain final accurate results.

    The time scale can be calculated automatically by the solver orset manually. TheAutomatic

    option tends to be conservative, leading to reliable, but oftenslow, convergence. It is often

    possible to accelerate convergence by applying a time scalefactor or by choosing a manual

    value that is more aggressive than the Automatic option. In thistutorial, you will select a

    physical time scale, leading to convergence that is twice asfast as the Automatic option.

    Procedure 1. Click Solver Control .

    2. On the Basic Settings tab, set Advection Scheme > Optionto Upwind.

    3. Set Convergence Control > Fluid Timescale Control >Timescale Control toPhysical Timescale and set the physicaltimescale value to 2 [s].

    4. Click OK.

    Writing the Solver (.def) File

    The simulation file, StaticMixer.cfx, contains the simulationdefinition in a format that

    can be loaded by ANSYS CFX-Pre, allowing you to complete (ifapplicable), restore, and

    modify the simulation definition. The simulation file differsfrom the definition file in that it

    can be saved at any time while defining the simulation.

    Procedure 1. Click Write Solver File .

    Tab Setting Value

    Boundary Data Boundary Type Outlet

    Location out

    Flow Specification Option Average Static Pressure

    Relative Pressure 0 [Pa]

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Obtaining a Solution Using ANSYS

    Page 12 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    The Write Solver File dialog box is displayed.

    2. Set File name to StaticMixer.def.

    3. Ensure that Start Solver Manager is selected from the dropdown menu located inthe top-right corner of the dialog box.

    4. Select Quit ANSYS CFX-Pre.

    This forces standalone ANSYS CFX-Pre to close after thedefinition file has been written.

    5. Click Save.

    6. If you are notified the file already exists, clickOverwrite.

    This file is provided in the tutorial directory and may exist inyour tutorial folder if youhave copied it there.

    7. If prompted, click Yes or Save & Quit to saveStaticMixer.cfx.

    The definition file (StaticMixer.def) and the simulation file(StaticMixer.cfx) arecreated. ANSYS CFX-Solver Managerautomatically starts and the definition file is set inthe DefineRun dialog box.

    8. Proceed to Obtaining a Solution Using ANSYS CFX-SolverManager (p. 12).

    Playing the Session File and Starting ANSYS CFX-SolverManager

    Note: This task is required only if you are starting here withthe session file that was providedin the examples directory. If youhave performed all the tasks in the previous steps, proceeddirectlyto Obtaining a Solution Using ANSYS CFX-Solver Manager (p. 12).

    Events in ANSYS CFX-Pre can be recorded to a session file andthen played back at a later

    date to drive ANSYS CFX-Pre. Session files have been created foreach tutorial so that the

    problems can be set up rapidly in ANSYS CFX-Pre, if desired.

    Procedure 1. If required, launch ANSYS CFX-Pre.

    2. Select Session > Play Tutorial.

    3. Select StaticMixer.pre.

    4. Click Open.

    A definition file is written.

    5. Select File > Quit.

    6. Launch the ANSYS CFX-Solver Manager from CFX Launcher.

    7. After the ANSYS CFX-Solver starts, select File > DefineRun.

    8. Under Definition File, click Browse .

    9. Select StaticMixer.def, located in the working directory.

    10. Proceed to Obtaining a Solution Using ANSYS CFX-SolverManager (p. 12).

    Obtaining a Solution Using ANSYS CFX-Solver Manager

    ANSYS CFX-Solver Manager has a visual interface that displays avariety of results and should

    be used when plotted data needs to be viewed during problemsolving.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Obtaining a Solution Using ANSYS

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 13Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Two windows are displayed when ANSYS CFX-Solver Manager runs.There is an adjustable

    split between the windows, which is oriented either horizontallyor vertically depending on

    the aspect ratio of the entire ANSYS CFX-Solver Manager window(also adjustable).

    One window shows the convergence history plots and the otherdisplays text output from

    ANSYS CFX-Solver.

    The text lists physical properties, boundary conditions andvarious other parameters used

    or calculated in creating the model. All the text is written tothe output file automatically (in

    this case, StaticMixer_001.out).

    Start the Run

    The Define Run dialog box allows configuration of a run forprocessing by ANSYS

    CFX-Solver.

    When ANSYS CFX-Solver Manager is launched automatically fromANSYS CFX-Pre, all of the

    information required to perform a new serial run (on a singleprocessor) is entered

    automatically. You do not need to alter the information in theDefine Run dialog box. This

    is a very quick way to launch into ANSYS CFX-Solver withouthaving to define settings and

    values.

    Procedure 1. Ensure that the Define Run dialog box isdisplayed.

    2. Click Start Run.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Obtaining a Solution Using ANSYS

    Page 14 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    ANSYS CFX-Solver launches and a split screen appears anddisplays the results of the rungraphically and as text. The panescontinue to build as ANSYS CFX-Solver Manageroperates.

    Note: Once the second iteration appears, data begins to plot.Plotting may take a long time

    depending on the amount of data to process. Let the processrun.

    (Video) Ansys CFX: Domain Interfaces | Fluid Fill | Named Selection | Boolean Subtract | Complete Tutorial

    Move from ANSYS CFX-Solver to ANSYS CFX-Post

    Once ANSYS CFX-Solver has finished, you can use ANSYS CFX-Postto review the finished

    results.

    Procedure 1. When ANSYS CFX-Solver is finished, click Yes topost-process the results.

    After a short pause, ANSYS CFX-Post starts and ANSYS CFX-SolverManager closes.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 15Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Viewing the Results in ANSYS CFX-Post

    When ANSYS CFX-Post starts, the viewer and Outline workspace aredisplayed.

    The viewer displays an outline of the geometry and other graphicobjects. You can use the

    mouse or the toolbar icons to manipulate the view, exactly as inANSYS CFX-Pre.

    Workflow Overview

    This tutorial describes the following workflow for viewingresults in ANSYS CFX-Post:

    1. Setting the Edge Angle for a Wireframe Object (p. 16)

    2. Creating a Point for the Origin of the Streamline (p. 17)

    3. Creating a Streamline Originating from a Point (p. 18)

    4. Rearranging the Point (p. 19)

    5. Configuring a Default Legend (p. 19)

    6. Creating a Slice Plane (p. 20)

    7. Defining Slice Plane Geometry (p. 21)

    8. Configuring Slice Plane Views (p. 21)

    9. Rendering Slice Planes (p. 22)

    10. Coloring the Slice Plane (p. 23)

    11. Moving the Slice Plane (p. 23)

    12. Adding Contours (p. 24)

    13. Working with Animations (p. 25)

    14. Showing the Animation Dialog Box (p. 25)

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 16 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    15. Creating the First Keyframe (p. 26)

    16. Creating the Second Keyframe (p. 26)

    17. Viewing the Animation (p. 27)

    18. Modifying the Animation (p. 28)

    19. Saving to MPEG (p. 29)

    Setting the Edge Angle for a Wireframe Object

    The outline of the geometry is called the wireframe or outlineplot.

    By default, ANSYS CFX-Post displays only some of the surfacemesh. This sometimes means

    that when you first load your results file, the geometry outlineis not displayed clearly. You

    can control the amount of the surface mesh shown by editing theWireframe object listed

    in the Outline.

    The check boxes next to each object name in the Outline controlthe visibility of each

    object. Currently only the Wireframe and Default Legend objectshave visibility selected.

    The edge angle determines how much of the surface mesh isvisible. If the angle between

    two adjacent faces is greater than the edge angle, then thatedge is drawn. If the edge angle

    is set to 0, the entire surface mesh is drawn. If the edge angleis large, then only the most

    significant corner edges of the geometry are drawn.

    For this geometry, a setting of approximately 15 lets you viewthe model location without

    displaying an excessive amount of the surface mesh.

    In this module you can also modify the zoom settings and view ofthe wireframe.

    Procedure 1. In the Outline, under User Locations and Plots,double-click Wireframe.

    Tip: While it is not necessary to change the view to set theangle, do so to explore thepractical uses of this feature.

    2. Right-click on a blank area anywhere in the viewer, selectPredefined Camera from theshortcut menu and select Isometric View(Z up).

    3. In the Wireframe details view, under Definition, click in theEdge Angle box.

    An embedded slider is displayed.

    4. Type a value of 10 [degree].5. Click Apply to update theobject with the new setting.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 17Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Notice that more surface mesh is displayed.

    6. Drag the embedded slider to set the Edge Angle value toapproximately 45 [degree].7. Click Apply to update the object withthe new setting.

    Less of the outline of the geometry is displayed.

    8. Type a value of 15 [degree].9. Click Apply to update theobject with the new setting.

    10. Right-click on a blank area anywhere in the viewer, selectPredefined Camera from the

    shortcut menu and select View Towards -X.

    Creating a Point for the Origin of the Streamline

    A streamline is the path that a particle of zero mass wouldfollow through the domain.

    Procedure 1. Select Insert > Location > Point from themain menu.

    You can also use the toolbars to create a variety of objects.Later modules and tutorialsexplore this further.

    2. Click OK.

    This accepts the default name.

    3. Under Definition, ensure that Method is set to XYZ.

    4. Under Point, enter the following coordinates: -1, -1, 1.

    This is a point near the first inlet.

    5. Click Apply.

    The point appears as a symbol in the viewer as a crosshairsymbol.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 18 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Creating a Streamline Originating from a Point

    Where applicable, streamlines can trace the flow directionforwards (downstream) and/or

    backwards (upstream).

    Procedure 1. From the main menu, select Insert >Streamline.

    You can also use the toolbars to create a variety of objects.Later modules and tutorialswill explore this further.

    2. Click OK.

    This accepts the default name.

    3. Under Definition, in Start From, ensure that Point 1 isset.

    Tip: To create streamlines originating from more than onelocation, click the ellipsis iconto the right of the Start Frombox. This displays the Location Selector dialog box,where you canuse the and keys to pick multiple locators.

    4. Click the Color tab.

    5. Set Mode to Variable.

    6. Set Variable to Total Temperature.

    7. Set Range to Local.

    8. Click Apply.

    The streamline shows the path of a zero mass particle from Point1. The temperatureis initially high near the hot inlet, but as thefluid mixes the temperature drops.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 19Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Rearranging the Point

    Once created, a point can be rearranged manually or by settingspecific coordinates.

    Tip: In this module, you may choose to display various views andzooms from thePredefined Camera option in the shortcut menu (suchas Isometric View (Z up) or

    View Towards -X) and by using Zoom Box if you prefer to changethe display.

    Procedure 1. In Outline, under User Locations and Plotsdouble-click Point 1.

    Properties for the selected user location are displayed.

    2. Under Point, set these coordinates: -1, -2.9, 1.

    3. Click Apply.

    The point is moved and the streamline redrawn.

    4. In the selection tools, click Single Select.

    While in this mode, the normal behavior of the left mouse buttonis disabled.

    5. In the viewer, drag Point 1 (appears as a yellow additionsign) to a new location withinthe mixer.

    The point position is updated in the details view and thestreamline is redrawn at thenew location. The point moves normal inrelation to the viewing direction.

    6. Click Rotate .

    Tip: You can also click in the viewer area, and press the spacebar to toggle betweenSelect and Viewing Mode. A way to pick objectsfrom Viewing Mode is to hold down + while clicking on an objectwith the left mouse button.

    7. Under Point, reset these coordinates: -1, -1, 1.

    8. Click Apply.

    The point appears at its original location.

    9. Right-click a blank area in the viewer and select PredefinedCamera > View Towards

    -X.

    Configuring a Default Legend

    You can modify the appearance of the default legend.

    The default legend appears whenever a plot is created that iscolored by a variable. The

    streamline color is based on temperature; therefore, the legendshows the temperature

    range. The color pattern on the legends color bar is banded inaccordance with the bands

    in the plot1.

    1. An exception occurs when one or more bands in a contour plotrepresent values beyond thelegends range. In this case, such bandsare colored using a color that is extrapolated slightlypast therange of colors shown in the legend. This can happen only when auser-specifiedrange is used for the legend.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 20 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    The default legend displays values for the last eligible plotthat was opened in the details

    view. To maintain a legend definition during an ANSYS CFX-Postsession, you can create a

    new legend by clicking Legend .

    Because there are many settings that can be customized for thelegend, this module allows

    you the freedom to experiment with them. In the last steps youwill set up a legend, based

    on the default legend, with a minor modification to theposition.

    Tip: When editing values, you can restore the values that werepresent when you beganediting by clicking Reset. To restore thefactory-default values, click Default.

    Procedure 1. Double click Default Legend View 1.

    The Definition tab of the default legend is displayed.

    2. Apply the following settings

    3. Click Apply.

    The appearance and position of the legend changes based on thesettings specified.

    4. Modify various settings in Definition and click Apply aftereach change.

    5. Select Appearance.

    6. Modify a variety of settings in the Appearance and clickApply after each change.

    7. Click Defaults.

    8. Click Apply.

    9. Under Outline, in User Locations and Plots, clear the checkboxes for Point 1 andStreamline 1.

    Since both are no longer visible, the associated legend nolonger appears.

    Creating a Slice Plane

    Defining a slice plane allows you to obtain a crosssection ofthe geometry.

    In ANSYS CFX-Post you often view results by coloring a graphicobject. The graphic object

    could be an isosurface, a vector plot, or in this case, a plane.The object can be a fixed color

    or it can vary based on the value of a variable.

    You already have some objects defined by default (listed in theOutline). You can view

    results on the boundaries of the static mixer by coloring eachboundary object by a variable.

    To view results within the geometry (that is, on non-defaultlocators), you will create new

    objects.

    You can use the following methods to define a plane:

    Three Points: creates a plane from three specified points.

    Tab Setting Value

    Definition Title Mode User Specified

    Title Streamline Temp.

    Horizontal (Selected)

    Location > Y Justification Bottom

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 21Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Point and Normal: defines a plane from one point on the planeand a normal vectorto the plane.

    YZ Plane, ZX Plane, and XY Plane: similar to Point and Normal,except that the

    normal is defined to be normal to the indicated plane.

    Procedure 1. From the main menu, select Insert > Location> Plane or click Location > Plane.

    2. In the New Plane window, type: Slice

    3. Click OK.

    The Geometry, Color, Render and View tabs let you switch betweensettings.

    4. Click the Geometry tab.

    Defining Slice Plane Geometry

    You need to choose the vector normal to the plane. You want theplane to lie in the x-y

    plane, hence its normal vector points along the z-axis. You canspecify any vector that points

    in the z-direction, but you will choose the most obvious(0,0,1).

    Procedure 1. If required, under Geometry, expand Definition.

    2. Under Method select Point and Normal.

    3. Under Point enter 0,0,1.

    4. Under Normal enter 0, 0,1.

    5. Click Apply.

    Slice appears under User Locations and Plots. Rotate the view tosee the plane.

    Configuring Slice Plane Views

    Depending on the view of the geometry, various objects may notappear because they fall

    in a 2D space that cannot be seen.

    Procedure 1. Right-click a blank area in the viewer and selectPredefined Camera > Isometric View(Z up).

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 22 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    The slice is now visible in the viewer.

    2. Click Zoom Box .

    3. Click and drag a rectangular selection over the geometry.

    4. Release the mouse button to zoom in on the selection.

    5. Click Rotate .

    6. Click and drag the mouse pointer down slightly to rotate thegeometry towards you.

    7. Select Isometric View (Z up) as described earlier.

    Rendering Slice Planes

    Render settings determine how the plane is drawn.

    Procedure 1. Select the Render tab.

    2. Clear Draw Faces.

    3. Select Draw Lines.

    4. Under Draw Lines change Color Mode to User Specified.

    5. Click the current color in Line Color to change to adifferent color.

    For a greater selection of colors, click the ellipsis to use theSelect color dialog box.

    6. Click Apply.

    (Video) ✅ #Ansys CFX Tutorial | Flow Through Porous Media

    7. Click Zoom Box .

    8. Zoom in on the geometry to view it in greater detail.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 23Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    The line segments show where the slice plane intersects withmesh element faces. Theend points of each line segment are locatedwhere the plane intersects mesh elementedges.

    9. Right-click a blank area in the viewer and select PredefinedCamera > View Towards-Z.

    The image shown below can be used for comparison with tutorial 2(in the sectionCreating a Slice Plane (p. 68)), where a refinedmesh is used.

    Coloring the Slice Plane

    The Color panel is used to determine how the object faces arecolored.

    Procedure 1. Apply the following settings to Slice

    2. Click Apply.

    Hot water (red) enters from one inlet and cold water (blue) fromthe other.

    Moving the Slice Plane

    The plane can be moved to different locations.

    Tab Setting Value

    Color Mode Variable*

    *. You can specify the variable (in this case, temperature) usedto color the graphicelement. The Constant mode allows you to colorthe plane with a fixed color.

    Variable Temperature

    Render Draw Faces (Selected)

    Draw Lines (Cleared)

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 24 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Procedure 1. Right-click a blank area in the viewer and selectPredefined Camera > Isometric View(Z up) from the shortcutmenu.

    2. Click the Geometry tab.

    Review the settings in Definition under Point and underNormal.

    3. Click Single Select .

    4. Click and drag the plane to a new location that intersectsthe domain.

    As you drag the mouse, the viewer updates automatically. Notethat Point updates withnew settings.

    5. Set Point settings to 0,0,1.

    6. Click Apply.

    7. Click Rotate .

    8. Turn off visibility for Slice by clearing the check box nextto Slice in the Outline.

    Adding Contours

    Contours connect all points of equal value for a scalar variable(for example, Temperature)

    and help to visualize variable values and gradients. Coloredbands fill the spaces between

    contour lines. Each band is colored by the average color of itstwo bounding contour lines

    (even if the latter are not displayed).

    Procedure 1. Select Insert > Contour from the main menu orclick Contour .

    The New Contour dialog box is displayed.

    2. Set Name to Slice Contour.

    3. Click OK.

    4. Apply the following settings

    5. Click Apply.

    Important: The colors of 3D graphics object faces are slightlyaltered when lighting is on. Toview colors with highest accuracy,clear Lighting under Draw Faces on the Render tab andclickApply.

    Tab Setting Value

    Geometry Locations Slice

    Variable Temperature

    Render Draw Faces (Selected)

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 25Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    The graphic element faces are visible, producing a contour plotas shown.

    Note: Make sure that the checkbox next to Slice in the Outlineis cleared.

    Working with Animations

    Animations build transitions between views for development ofvideo files.

    WorkflowOverview

    This tutorial follows the general workflow for creating akeyframe animation:

    1. Showing the Animation Dialog Box (p. 25)

    2. Creating the First Keyframe (p. 26)

    3. Creating the Second Keyframe (p. 26)

    4. Viewing the Animation (p. 27)

    5. Modifying the Animation (p. 28)

    6. Saving to MPEG (p. 29)

    Showing the Animation Dialog Box

    The Animation dialog box is used to define keyframes and toexport to a video file.

    Procedure 1. Select Tools > Animation or click Animation.

    The Animation dialog box can be repositioned as required.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 26 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Creating the First Keyframe

    Keyframes are required in order to produce an animation. Youneed to define the first viewer

    state, a second (and final) viewer state, and set the number ofinterpolated intermediate

    frames.

    Procedure 1. Right-click a blank area in the viewer and selectPredefined Camera > Isometric View(Z up).

    2. In the Outline, under User Locations and Plots, clear thevisibility of SliceContour and select the visibility of Slice.

    3. In the Animation dialog box, click New .

    A new keyframe named KeyframeNo1 is created. This represents thecurrent imagedisplayed in the viewer.

    Creating the Second Keyframe

    Keyframes are required in order to produce an animation.

    Procedure 1. In the Outline, under User Locations and Plots,double-click Slice.

    2. On the Geometry tab, set Point coordinate values to(0,0,-1.99).3. Click Apply.

    The slice plane moves to the bottom of the mixer.

    4. In the Animation dialog box, click New .

    KeyframeNo2 is created and represents the image displayed in theViewer.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 27Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    5. Select KeyframeNo1.

    6. Set # of Frames (located below the list of keyframes) to20.

    This is the number of intermediate frames used when going fromKeyframeNo1 toKeyframeNo2. This number is displayed in the Framescolumn for KeyframeNo1.

    7. Press Enter.

    The Frame # column shows the frame in which each keyframeappears. KeyframeNo1appears at frame 1 since it defines the startof the animation. KeyframeNo2 is at frame22 since you have 20intermediate frames (frames 2 to 21) in between KeyframeNo1andKeyframeNo2.

    Viewing the Animation

    More keyframes could be added, but this animation has only twokeyframes (which is the

    minimum possible).

    Synopsis The controls previously greyed-out in the Animationdialog box are now available. The

    number of intermediate frames between keyframes is listed besidethe keyframe having the

    lowest number of the pair. The number of keyframes listed besidethe last keyframe is

    ignored.

    Procedure 1. Click Play the animation .

    The animation plays from frame 1 to frame 22. It playsrelatively slowly because the slice

    plane must be updated for each frame.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 28 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Modifying the Animation

    To make the plane sweep through the whole geometry, you will setthe starting position of

    the plane to be at the top of the mixer. You will also modifythe Range properties of the

    plane so that it shows the temperature variation better. As theanimation is played, you can

    see the hot and cold water entering the mixer. Near the bottomof the mixer (where the

    water flows out) you can see that the temperature is quiteuniform. The new temperature

    range lets you view the mixing process more accurately than theglobal range used in the

    first animation.

    Procedure 1. Apply the following settings to Slice

    2. Click Apply.

    The slice plane moves to the top of the static mixer.

    Note: Do not double click in the next step.

    3. In the Animation dialog box, single click (do notdouble-click) KeyframeNo1 to select it.

    If you had double-clicked KeyFrameNo1, the plane and viewerstates would have beenredefined according to the stored settingsfor KeyFrameNo1. If this happens, click

    Undo and try again to select the keyframe.

    4. Click Set Keyframe .

    The image in the Viewer replaces the one previously associatedwith KeyframeNo1.

    5. Double-click KeyframeNo2.

    The object properties for the slice plane are updated accordingto the settings inKeyFrameNo2.

    6. Apply the following settings to Slice

    7. Click Apply.

    8. In the Animation dialog box, single-click KeyframeNo2.

    9. Click Set Keyframe to save the new settings toKeyframeNo2.

    Tab Setting Value

    Geometry Point 0, 0, 1.99

    Color Variable Temperature

    Range User Specified

    Min 295 [K]

    Max 305 [K]

    Tab Setting Value

    Color Variable Temperature

    Range User Specified

    Min 295 [K]

    Max 305 [K]

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYSEurope, Ltd. All rights reserved. Page 29Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Saving to MPEG

    By defining the geometry and then saving to MPEG, the resultscan be saved to a video file.

    Procedure 1. Click More Animation Options to view the additionaloptions.

    The Loop and Bounce radio buttons determine what happens whenthe animationreaches the last keyframe. When Loop is selected, theanimation repeats itself thenumber of times defined by Repeat. WhenBounce is selected, every other cycle isplayed in reverse order,starting with the second.

    2. Click Save MPEG.

    3. Click Browse next to Save MPEG.

    4. Under File name type: StaticMixer.mpg

    5. If required, set the path location to a different folder.

    6. Click Save.

    The MPEG file name (including path) is set. At this point, theanimation has not yet beenproduced.

    7. Click Previous Keyframe .

    Wait a moment as the display updates the keyframe display.

    8. Click Play the animation .

    9. If prompted to overwrite an existing movie clickOverwrite.

    The animation plays and builds an MPEG file.

    10. Click the Options button at the bottom of the Animationdialog box.

    In Advanced, you can see that a Frame Rate of 24 frames persecond was used to createthe animation. The animation you producedcontains a total of 22 frames, so it takes justunder 1 second toplay in a media player.

    11. Click Cancel to close the dialog box.

    12. Close the Animation dialog box.

    13. Review the animation in thirdparty software as required.

    Exiting ANSYS CFX-Post

    When finished with ANSYS CFX-Post exit the current window:

    1. When you are finished, select File > Quit to exit ANSYSCFX-Post.

    2. Click Quit if prompted to save.

  • Tutorial 1: Simulating Flow in a Static Mixer Using CFX inStandalone Mode: Viewing the Results in ANSYS CFX-Post

    Page 30 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

  • Page 31ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. Allrights reserved.Contains proprietary and confidential informationof ANSYS, Inc. and its subsidiaries and affiliates.

    ANSYS CFX Tutorials

    Tutorial 1a:Simulating Flow in a StaticMixer Using Workbench

    Introduction

    This tutorial simulates a static mixer consisting of two inletpipes delivering water into a

    mixing vessel; the water exits through an outlet pipe. A generalworkflow is established for

    analyzing the flow of fluid into and out of a mixer.

    This tutorial comprises:

    Before You Begin (p. 32)

    Tutorial 1a Features (p. 32)

    Overview of the Problem to Solve (p. 33)

    Defining a Simulation in ANSYS CFX-Pre (p. 34)

    Obtaining a Solution Using ANSYS CFX-Solver Manager (p. 41)

    Viewing the Results in ANSYS CFX-Post (p. 43)

    If this is the first tutorial you are working with, it isimportant to review the following topics

    before beginning:

    Setting the Working Directory (p. 1)

    Changing the Display Colors (p. 2)

    To learn how to perform these tasks using CFX in Standalonemode, see Tutorial 1:

    Simulating Flow in a Static Mixer Using CFX in Standalone Mode(p. 3 in "ANSYS CFX

    Tutorials").

  • Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench:Before You Begin

    Page 32 ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006ANSYS Europe, Ltd. All rights reserved.Contains proprietary andconfidential information of ANSYS, Inc. and its subsidiaries andaffiliates.

    Before You Begin

    Create a working directory for your files. Once this is done,copy the sample files used in this

    tutorial to your working directory from the installation folderfor your software

    (/examples/ (for example, C:\ProgramFiles\ANSYSInc\v110\CFX\examples)) to avoid overwriting sourcefiles provided with yourinstallation. If you plan to use a sessionfile, please refer to Playing a Session File (p. 35).

    Sample files used by this tutorial are:

    StaticMixerMesh.gtm

    StaticMixer.pre

    Tutorial 1a Features

    This tutorial addresses the following features of ANSYS CFX.

    In this tutorial you will learn about:

    Using Quick Setup mode in ANSYS CFX-Pre to set up a problem.

    Modifying the outline plot in ANSYS CFX-Post.

    (Video) Save Project

    Using streamlines in ANSYS CFX-

Videos

1. ANSYS CFX - Vehicle Dynamics - Simple Tutorial
(EngineeringMathematics)
2. ANSYS CHEMKIN TUTORIAL | EASY CHEMKIN FILE CREATION IN ANSYS
(Ritwik Bhattacharyya)
3. Interpreting UDF file in Ansys Fluent
(Ansys-Fluent For Beginners)
4. Recording an Ansys Fluent Journal File
(Craig Hill)
5. ANSYS CFX-CFD ICEM | Fluid Mixing Analysis in Static Mixer | CFX Pre & Post | Flow parameters | GRS
(CAE Worldwide)
6. ANSYS Workbench Fluid Flow (CFX) || Basic Tutorial Video
(Ashok Reddy)
Top Articles
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated: 19/05/2023

Views: 5430

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.