ANSYS Fluent Tutorial Guide r170
ANSYS Fluent Tutorial Guide r170
ANSYS Fluent Tutorial Guide r170
2015 SAS IP, Inc. All rights reserved. Unauthorized use, distribution or duplication is prohibited.
ANSYS, ANSYS Workbench, Ansoft, AUTODYN, EKM, Engineering Knowledge Manager, CFX, FLUENT, HFSS, AIM
and any and all ANSYS, Inc. brand, product, service and feature names, logos and slogans are registered trademarks
or trademarks of ANSYS, Inc. or its subsidiaries in the United States or other countries. ICEM CFD is a trademark
used by ANSYS, Inc. under license. CFX is a trademark of Sony Corporation in Japan. All other brand, product,
service and feature names or trademarks are the property of their respective owners.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFID-
ENTIAL 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.
For U.S. Government users, except as specifically granted by the ANSYS, Inc. software license agreement, the use,
duplication, or disclosure by the United States Government is subject to restrictions stated in the ANSYS, Inc.
software license agreement and FAR 12.212 (for non-DOD licenses).
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.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. vii
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
viii of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. ix
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
x of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xi
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
xii of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xiii
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
xiv of ANSYS, Inc. and its subsidiaries and affiliates.
Using This Manual
This preface is divided into the following sections:
1. Whats In This Manual
2.The Contents of the Fluent Manuals
3. Where to Find the Files Used in the Tutorials
4. How To Use This Manual
5.Typographical Conventions Used In This Manual
The tutorials are written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent navigation pane and ribbon structure. Some steps in
the setup and solution procedure will not be shown explicitly.
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
All of the tutorials include some postprocessing instructions, but Postprocessing (p. 1051) is devoted entirely
to postprocessing.
Fluent Getting Started Guide contains general information about getting started with using
Fluent and provides details about starting, running, and exiting the program.
Fluent Migration Manual contains information about transitioning from the previous release of Fluent,
including details about new features, solution changes, and text command list changes.
Fluent User's Guide contains detailed information about running a simulation using the solution
mode of Fluent, including information about the user interface, reading and writing files, defining
boundary conditions, setting up physical models, calculating a solution, and analyzing your results.
Fluent Meshing User's Guide contains detailed information about creating 3D meshes using the
meshing mode of Fluent.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xv
Using This Manual
Fluent in Workbench User's Guide contains information about getting started with and using Fluent
within the Workbench environment.
Fluent Theory Guide contains reference information for how the physical models are implemented in
Fluent.
Fluent Customization Manual contains information about writing and using user-defined functions
(UDFs).
Fluent Tutorial Guide contains a number of examples of various flow problems with detailed instructions,
commentary, and postprocessing of results.
Tutorials for release 17.0 are available on the ANSYS Customer Portal. To access tutorials and
their input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
ANSYS Fluent Meshing Tutorial Guide contains a number of examples of general mesh-generation
techniques used in ANSYS Fluent Meshing.
Tutorials for release 17.0 are available on the ANSYS Customer Portal. To access tutorials and
their input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
Fluent Text Command List contains a brief description of each of the commands in Fluents solution
mode text interface.
Fluent Meshing Text Command List contains a brief description of each of the commands in Fluents
meshing mode text interface.
Fluent Advanced Add-On Modules contains information about the usage of the different advanced
Fluent add-on modules, which are applicable for specific modeling needs.
Part I: ANSYS Fluent Adjoint Solver contains information about the background and usage of Fluent's
Adjoint Solver Module that allows you to obtain detailed sensitivity data for the performance of a
fluid system.
Part II: ANSYS Fluent Battery Module contains information about the background and usage of Fluent's
Battery Module that allows you to analyze the behavior of electric batteries.
Part III: ANSYS Fluent Continuous Fiber Module contains information about the background and usage
of Fluent's Continuous Fiber Module that allows you to analyze the behavior of fiber flow, fiber
properties, and coupling between fibers and the surrounding fluid due to the strong interaction that
exists between the fibers and the surrounding gas.
Part IV: ANSYS Fluent Fuel Cell Modules contains information about the background and the usage
of two separate add-on fuel cell models for Fluent that allow you to model polymer electrolyte
membrane fuel cells (PEMFC), solid oxide fuel cells (SOFC), and electrolysis with Fluent.
Part V: ANSYS Fluent Magnetohydrodynamics (MHD) Module contains information about the back-
ground and usage of Fluent's Magnetohydrodynamics (MHD) Module that allows you to analyze the
behavior of electrically conducting fluid flow under the influence of constant (DC) or oscillating (AC)
electromagnetic fields.
Part VI: ANSYS Fluent Population Balance Module contains information about the background and
usage of Fluent's Population Balance Module that allows you to analyze multiphase flows involving
size distributions where particle population (as well as momentum, mass, and energy) require a balance
equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
xvi of ANSYS, Inc. and its subsidiaries and affiliates.
How To Use This Manual
Fluent as a Server User's Guide contains information about the usage of Fluent as a Server which allows
you to connect to a Fluent session and issue commands from a remote client application.
Running ANSYS Fluent Using a Load Manager contains information about using third-party load managers
with ANSYS Fluent.
Part I: Running ANSYS Fluent Under LSF contains information about using Fluent with Platform
Computings LSF software, a distributed computing resource management tool.
Part II: Running ANSYS Fluent Under PBS Professional contains information about using Fluent with
Altair PBS Professional, an open workload management tool for local and distributed environments.
Part III: Running ANSYS Fluent Under SGE contains information about using Fluent with Univa Grid
Engine (formerly Sun Grid Engine) software, a distributed computing resource management tool.
Some of the more complex tutorials may require a significant amount of computational time. If you
want to look at the results immediately, without waiting for the calculation to finish, final solution files
are provided in a solution_files folder that you can access after extracting the tutorial input
archive.
You may want to refer to other tutorials for instructions on using specific features, such as custom field
functions, mesh scaling, and so on, even if the problem solved in the tutorial is not of particular interest
to you. To learn about postprocessing, you can look at Postprocessing (p. 1051), which is devoted entirely
to postprocessing (although the other tutorials all contain some postprocessing as well).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xvii
Using This Manual
You may want to refer to other tutorials for instructions on using specific features, such as custom field
functions, mesh scaling, and so on, even if the problem solved in the tutorial is not of particular interest
to you. To learn about postprocessing, you can look at Postprocessing (p. 1051), which is devoted entirely
to postprocessing (although the other tutorials all contain some postprocessing as well).
Different type styles are used to indicate graphical user interface items and text interface items. For example:
The text interface type style is also used when illustrating exactly what appears on the screen to distinguish
it from the narrative text. In this context, user inputs are typically shown in boldface. For example,
solve/initialize/set-fmg-initialization
Mini flow charts are used to guide you through the ribbon or the tree, leading you to a specific option, dialog
box, or task page. The following tables list the meaning of each symbol in the mini flow charts.
For example,
Indicates selecting the Setting Up Domain ribbon tab, clicking Reorder (in the Mesh group box)
and selecting Domain, as indicated in the figure below:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
xviii of ANSYS, Inc. and its subsidiaries and affiliates.
Typographical Conventions Used In This Manual
Indicates expanding the Setup and Models branches, right-clicking Viscous, and selecting Realizable
k-epsilon from the Model sub-menu, as shown in the following figure:
And
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xix
Using This Manual
In this manual, mini flow charts usually accompany a description of a dialog box or command, or a
screen illustration showing how to use the dialog box or command. They show you how to quickly
access a command or dialog box without having to search the surrounding material.
In-text references to File ribbon tab selections can be indicated using a /. For example File/Write/Case...
indicates clicking the File ribbon tab and selecting Case... from the Write submenu (which opens the Select
File dialog box).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
xx of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction to Using ANSYS Fluent in ANSYS Workbench:
Fluid Flow and Heat Transfer in a Mixing Elbow
This tutorial is divided into the following sections:
1.1. Introduction
1.2. Prerequisites
1.3. Problem Description
1.4. Setup and Solution
1.5. Summary
1.1. Introduction
This tutorial illustrates using ANSYS Fluent fluid flow systems in ANSYS Workbench to set up and solve
a three-dimensional turbulent fluid-flow and heat-transfer problem in a mixing elbow. It is designed to
introduce you to the ANSYS Workbench tool set using a simple geometry. Guided by the steps that
follow, you will create the elbow geometry and the corresponding computational mesh using the
geometry and meshing tools within ANSYS Workbench. You will use ANSYS Fluent to set up and solve
the CFD problem, then visualize the results in both ANSYS Fluent and in the CFD-Post postprocessing
tool. Some capabilities of ANSYS Workbench (for example, duplicating fluid flow systems, connecting
systems, and comparing multiple data sets) are also examined in this tutorial.
Create the computational mesh for the geometry using ANSYS Meshing.
Setting material properties and boundary conditions for a turbulent forced-convection problem.
Examining the flow and temperature fields using ANSYS Fluent and CFD-Post.
Create a copy of the original Fluent fluid flow analysis system in ANSYS Workbench.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Compare the results of the two calculations in CFD-Post.
1.2. Prerequisites
This tutorial assumes that you have little to no experience with ANSYS Workbench, ANSYS DesignModeler,
ANSYS Meshing, ANSYS Fluent, or CFD-Post, and so each step will be explicitly described.
Note
Because the geometry of the mixing elbow is symmetric, only half of the elbow must be
modeled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
The functionality to create named selections exists in both ANSYS DesignModeler and ANSYS
Meshing. For the purposes of this tutorial, named selections are created in ANSYS Meshing
since the meshing application provides more comprehensive and extensive named selection
functionality.
The following sections describe the setup and solution steps for this tutorial:
1.4.1. Preparation
1.4.2. Creating a Fluent Fluid Flow Analysis System in ANSYS Workbench
1.4.3. Creating the Geometry in ANSYS DesignModeler
1.4.4. Meshing the Geometry in the ANSYS Meshing Application
1.4.5. Setting Up the CFD Simulation in ANSYS Fluent
1.4.6. Solving
1.4.7. Displaying Results in ANSYS Fluent and CFD-Post
1.4.8. Duplicating the Fluent-Based Fluid Flow Analysis System
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
1.4.9. Changing the Geometry in ANSYS DesignModeler
1.4.10. Updating the Mesh in the ANSYS Meshing Application
1.4.11. Calculating a New Solution in ANSYS Fluent
1.4.12. Comparing the Results of Both Systems in CFD-Post
1.4.1. Preparation
1. Set up a working folder on the computer you will be using.
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the elbow-workbench_R170.zip link to download the input and solution files.
7. Unzip elbow-workbench_R170.zip to your working folder. This file contains a folder, elbow-
workbench, that holds the following items:
Tip
The Workbench project archive contains the project as it will be once you have
completed all of the steps of the tutorial and is included for reference. If you want to
extract the project archive, start Workbench and select the File Restore Archive...
menu item. You will be prompted with a dialog box to specify a location in which to
extract the project and its supporting files. You may choose any convenient location.
Note
ANSYS Fluent tutorials are prepared using ANSYS Fluent on a Windows system. The screen
shots and graphic images in the tutorials may be slightly different than the appearance on
your system, depending on the operating system or graphics card.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. From the Windows Start menu, select Start > All Programs > ANSYS 17.0 > Workbench 17.0 to start a
new ANSYS Workbench session.
This displays the ANSYS Workbench application window, which has the Toolbox on the left and the
Project Schematic to its right. Various supported applications are listed in the Toolbox and the
components of the analysis system will be displayed in the Project Schematic.
Note
Depending on which other products you have installed, the analysis systems that appear
may differ from those in the figures that follow in this tutorial.
Note
When you first start ANSYS Workbench, the Getting Started pop-up window is displayed,
offering assistance through the online help for using the application. You can keep the
window open, or close it by clicking the X icon in the upper right-hand corner. If you
need to access the online help at any time, use the Help menu, or press the F1 key.
2. Create a new Fluent fluid flow analysis system by double-clicking the Fluid Flow (Fluent) option under
Analysis Systems in the Toolbox.
Tip
You can also drag-and-drop the analysis system into the Project Schematic. A green
dotted outline indicating a potential location for the new system initially appears in the
Project Schematic. When you drag the system to one of the outlines, it turns into a red
box to indicate the chosen location of the new system.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.2: Selecting the Fluid Flow (Fluent) Analysis System in ANSYS Workbench
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.3: ANSYS Workbench with a New Fluent-Based Fluid Flow Analysis System
a. Double-click the Fluid Flow (Fluent) label underneath the analysis system (if it is not already highlighted).
File Save
This displays the Save As dialog box, where you can browse to your working folder and enter
a specific name for the ANSYS Workbench project.
b. In your working directory, enter elbow-workbench as the project File name and click the Save
button to save the project. ANSYS Workbench saves the project with a .wbpj extension and also saves
supporting files for the project.
Note that the fluid flow analysis system is composed of various cells (Geometry, Mesh, etc.) that
represent the workflow for performing the analysis. ANSYS Workbench is composed of multiple
data-integrated and native applications in a single, seamless project flow, where individual cells
can obtain data from other cells and provide data to other cells. As a result of this constant flow
of data, a cells state can quickly change. ANSYS Workbench provides a visual indication of a
cells state at any given time via icons on the right side of each cell. Brief descriptions of the
various states are provided below:
Unfulfilled ( ) indicates that required upstream data does not exist. For example, when you first
create a new Fluid Flow (Fluent) analysis system, all cells downstream of the Geometry cell appear
as Unfulfilled because you have not yet specified a geometry for the system.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Refresh Required ( ) indicates that upstream data has changed since the last refresh or update.
For example, after you assign a geometry to the geometry cell in your new Fluid Flow (Fluent)
analysis system, the Mesh cell appears as Refresh Required since the geometry data has not yet
been passed from the Geometry cell to the Mesh cell.
Attention Required ( ) indicates that the current upstream data has been passed to the cell, however,
you must take some action to proceed. For example, after you launch ANSYS Fluent from the Setup
cell in a Fluid Flow (Fluent) analysis system that has a valid mesh, the Setup cell appears as Attention
Required because additional data must be entered in ANSYS Fluent before you can calculate a
solution.
Update Required ( ) indicates that local data has changed and the output of the cell must be re-
generated. For example, after you launch ANSYS Meshing from the Mesh cell in a Fluid Flow (Fluent)
analysis system that has a valid geometry, the Mesh cell appears as Update Required because the
Mesh cell has all the data it must generate an ANSYS Fluent mesh file, but the ANSYS Fluent mesh
file has not yet been generated.
Up To Date ( ) indicates that an update has been performed on the cell and no failures have occurred
or that an interactive calculation has been completed successfully. For example, after ANSYS Flu-
ent finishes performing the number of iterations that you request, the Solution cell appears as Up-
to-Date.
Interrupted, Update Required ( ) indicates that you have interrupted an update (or canceled an
interactive calculation that is in progress). For example, if you select the Cancel button in ANSYS
Fluent while it is iterating, ANSYS Fluent completes the current iteration and then the Solution cell
appears as Interrupted, Update Required.
Input Changes Pending ( ) indicates that the cell is locally up-to-date, but may change when
next updated as a result of changes made to upstream cells. For example, if you change the Mesh
in an Up-to-Date Fluid Flow (Fluent) analysis system, the Setup cell appears as Refresh Required,
and the Solution and Results cells appear as Input Changes Pending.
Pending ( ) indicates that a batch or asynchronous solution is in progress. When a cell enters the
Pending state, you can interact with the project to exit Workbench or work with other parts of the
project. If you make changes to the project that are upstream of the updating cell, then the cell will
not be in an up-to-date state when the solution completes.
For more information about cell states, see the Workbench Users Guide.
ANSYS Workbench allows you to easily view the files associated with your project using the Files
view. To open the Files view, select the Files option under the View menu at the top of the ANSYS
Workbench window.
View Files
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.4: ANSYS Workbench Files View for the Project After Adding a Fluent-Based Fluid
Flow Analysis System
In the Files view, you will be able to see the name and type of file, the ID of the cell that the file is
associated with, the size of the file, the location of the file, and other information. For more inform-
ation about the Files view, see the Workbench Users Guide.
Note
The sizes of the files listed may differ slightly from those portrayed in Figure 1.4: ANSYS
Workbench Files View for the Project After Adding a Fluent-Based Fluid Flow Analysis
System (p. 9).
From here, you will create the geometry described in Figure 1.1: Problem Specification (p. 3), and
later create a mesh and set up a fluid flow analysis for the geometry.
Important
Note the Attention Required icon ( ) within the Geometry cell for the system. This
indicates that the cell requires data (for example, a geometry). Once the geometry is
defined, the state of the cell will change accordingly. Likewise, the state of some of the
remaining cells in the system will change.
Note
If you would rather not create the geometry in ANSYS DesignModeler, you can import a pre-
existing geometry by right-clicking the Geometry cell and selecting the Import Geometry
option from the context menu. From there, you can browse your file system to locate the
elbow_geometry.agdb geometry file that is provided for this tutorial. If you do not have
access to ANSYS DesignModeler, you can use the elbow_geometry.stp file instead.
To learn how to create a mesh from the geometry you imported, go to Meshing the Geometry
in the ANSYS Meshing Application (p. 20).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
In the ANSYS Workbench Project Schematic, double-click the Geometry cell in the elbow fluid
flow analysis system. This displays the ANSYS DesignModeler application.
Tip
You can also right-click the Geometry cell to display the context menu, then select New
DesignModeler Geometry...
When ANSYS DesignModeler first appears, you should select desired system of length units to work
from. For the purposes of this tutorial (where you will create the geometry in millimeters and perform
the CFD analysis using SI units) set the units to Millimeter.
Units Millimeter
The geometry for this tutorial (Figure 1.1: Problem Specification (p. 3)) consists of a large curved
pipe accompanied by a smaller side pipe. ANSYS DesignModeler provides various geometry primitives
that can be combined to rapidly create geometries such as this one. You will perform the following
tasks to create the geometry:
Extrude the faces of the torus segment to form the straight inlet and outlet lengths.
Use the symmetry tool to reduce the model to half of the pipe assembly, thus reducing computa-
tional cost.
i. Create a new torus for the pipe bend by choosing the Create Primitives Torus menu item
from the menubar.
A preview of the torus geometry will appear in the graphics window. Note that this is a preview
and the geometry has not been created yet. First you must specify the parameters of the torus
primitive in the next step.
ii. In the Details View for the new torus (Torus1), set Base Y Component to -1 by clicking the 1 to
the right of FD10, Base Y Component, entering -1, and pressing Enter. This specifies the direction
vector from the origin to the center of the circular cross-section at the start of the torus. In the same
manner, specify Angle; Inner Radius; and Outer Radius as shown below.
Note
Enter only the value without the units of mm. They will be appended automatically
because you specified the units previously.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iii. To create the torus segment, click the Generate button that is located in the ANSYS
DesignModeler toolbar.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
The Torus1 item appears in the Tree Outline view. If you want to delete this item, you can
right-click it and select Delete from the context menu that opens.
iv. Ensure that the selection filter is set to Faces. This is indicated by the Faces button appearing
depressed in the toolbar and the appearance of the Face selection cursor, when you mouse
over the geometry.
v. Select the top face (in the positive Y direction) of the elbow and click the Extrude button
from the 3D Features toolbar.
vi. In the Details View for the new extrusion (Extrude1), click Apply to the right of Geometry. This
accepts the face you selected as the base geometry of the extrusion.
vii. Click None (Normal) to the right of Direction Vector. Again, ensure that the selection filter is set
to Faces, select the same face on the elbow to specify that the extrusion will be normal to the face
and click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
ix. In a similar manner, create an extrusion of the other face of the torus segment to create the 200
mm inlet extension. You will probably find it helpful to rotate the view so that you can easily select
the other face of the bend.
You can use the mouse buttons to change your view of the 3D image. The following table
describes mouse actions that are available:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Clicking the Zoom to Fit icon, , will cause the object to fit exactly and be centered in the
window.
After entering the extrusion parameters and clicking Generate, the geometry should appear
as in Figure 1.5: Elbow Main Pipe Geometry (p. 15).
b. Next you will use a cylinder primitive to create the side pipe.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
i. Choose Create Primitives Cylinder from the menubar.
ii. In the Details View, set the parameters for the cylinder as follows and click Generate:
The Origin Coordinates determine the starting point for the cylinder and the Axis Components determine
the length and orientation of the cylinder body.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. The final step in creating the geometry is to split the body on its symmetry plane which will halve the
computational domain.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
The new surface created with this operation will be assigned a symmetry boundary condition
in Fluent so that the model will accurately reflect the physics of the complete elbow geometry
even though only half of it is meshed.
i. In the Tree Outline, open the 1 Part, 1 Body branch and select Solid.
ii. In the Details View of the body, change the name of the Body from Solid to Fluid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Tip
In addition to the primitives you used in this tutorial, ANSYS DesignModeler offers a full
suite of 2D sketching and 3D solid modeling tools for creating arbitrary geometry. Refer
to the DesignModeler Users Guide for more information.
4. Close ANSYS DesignModeler by selecting File Close DesignModeler or by clicking the X icon in the
upper right-hand corner. ANSYS Workbench automatically saves the geometry and updates the Project
Schematic accordingly. The question mark in the Geometry cell is replaced by a check mark, indicating
that there is a geometry now associated with the fluid flow analysis system.
5. View the list of files generated by ANSYS Workbench by selecting View Files.
Figure 1.6: ANSYS Workbench Files View for the Project After Creating the Geometry
Note the addition of the geometry file (FFF.agdb, where FFF indicates a Fluent-based fluid flow
system) to the list of files. If you had imported the geometry file provided for this tutorial rather
than creating the geometry yourself, the elbow_geometry.agdb (or the elbow_geometry.stp)
file would be listed instead.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
1.4.4. Meshing the Geometry in the ANSYS Meshing Application
Now that you have created the mixing elbow geometry, you must generate a computational mesh
throughout the flow volume. For this section of the tutorial, you will use the ANSYS Meshing application
to create a mesh for your CFD analysis, then review the list of files generated by ANSYS Workbench.
Important
Note the Refresh Required icon ( ) within the Mesh cell for the system. This indicates
that the state of the cell requires a refresh and that upstream data has changed since
the last refresh or update (such as an update to the geometry). Once the mesh is defined,
the state of the Mesh cell will change accordingly, as will the state of the next cell in
the system, in this case the Setup cell.
In the ANSYS Workbench Project Schematic, double-click the Mesh cell in the elbow fluid flow
analysis system (cell A3). This displays the ANSYS Meshing application with the elbow geometry
already loaded. You can also right-click the Mesh cell to display the context menu where you can
select the Edit... option.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.7: The ANSYS Meshing Application with the Elbow Geometry Loaded
In order to simplify your work later on in ANSYS Fluent, you should label each boundary in the
geometry by creating named selections for the pipe inlets, the outlet, and the symmetry surface
(the outer wall boundaries are automatically detected by ANSYS Fluent).
a. Select the large inlet in the geometry that is displayed in the ANSYS Meshing application.
Tip
Use the Graphics Toolbar buttons and the mouse to manipulate the image until you can
easily see the pipe openings and surfaces.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.8: Selecting a Face to Name
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. In the Selection Name dialog box, enter velocity-inlet-large for the name and click OK.
The named selections that you have created appear under the Named Selections item in the
Outline view.
Important
It is important to note that by using the strings velocity inlet and pressure outlet
in the named selections (with or without hyphens or underscore characters), ANSYS
Fluent automatically detects and assigns the corresponding boundary types accordingly.
c. Right-click, select the Create Named Selection option and name the body Fluid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
By creating a named selection called Fluid for the fluid body you will ensure that ANSYS Fluent
automatically detects that the volume is a fluid zone and treats it accordingly.
For this analysis, you will adjust several meshing parameters to obtain a finer mesh.
a. In the Outline view, select Mesh under Project/Model to display the Details of Mesh view below
the Outline view.
Important
Note that because the ANSYS Meshing application automatically detects that you
are going to perform a CFD fluid flow analysis using ANSYS Fluent, the Physics
Preference is already set to CFD and the Solver Preference is already set to
Fluent.
b. Expand the Sizing node by clicking the + sign to the left of the word Sizing to reveal additional sizing
parameters.
i. Change Relevance Center to Fine by clicking the default value, Coarse, and selecting Fine from
the drop-down list.
i. With Mesh still selected in the Outline tree, click the elbow in the graphics display to select it.
ii. Right click in the graphics area and select Insert Sizing from the context menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
A new Body Sizing entry appears under Mesh in the project Outline tree
iii. In the Outline tree, click the new Body Sizing control.
d. Click again Mesh in the Outline view and in the Details of Mesh view, expand the Inflation node
to reveal additional inflation parameters. Change Use Automatic Inflation to Program Controlled.
Right-click Mesh in the project Outline tree, and select Update in the context menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.10: The Computational Mesh for the Elbow Geometry in the ANSYS Meshing Application
Important
Using the Generate Mesh option creates the mesh, but does not actually create the
relevant mesh files for the project and is optional if you already know that the mesh
is acceptable. Using the Update option automatically generates the mesh, creates
the relevant mesh files for your project, and updates the ANSYS Workbench cell that
references this mesh.
Note
Once the mesh is generated, you can view the mesh statistics by opening the Statistics
node in the Details of Mesh view. This will display information such as the number of
nodes and the number of elements.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You can close the ANSYS Meshing application without saving it because ANSYS Workbench automat-
ically saves the mesh and updates the Project Schematic accordingly. The Refresh Required icon
in the Mesh cell has been replaced by a check mark, indicating that there is a mesh now associated
with the fluid flow analysis system.
View Files
Figure 1.11: ANSYS Workbench Files View for the Project After Mesh Creation
Note the addition of the mesh files (FFF.msh and FFF.mshdb) to the list of files. The FFF.msh
file is created when you update the mesh, and the FFF.mshdb file is generated when you close
the ANSYS Meshing application.
When ANSYS Fluent is first started, the Fluent Launcher is displayed, enabling you to view and/or
set certain ANSYS Fluent start-up options.
Note
The Fluent Launcher allows you to decide which version of ANSYS Fluent you will use,
based on your geometry and on your processing capabilities.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.12: Fluent Launcher
Important
Note that the Dimension setting is already filled in and cannot be changed, since
ANSYS Fluent automatically sets it based on the mesh or geometry for the current
system.
c. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Note
An option is enabled when there is a check mark in the check box, and disabled when
the check box is empty. To change an option from disabled to enabled (or vice versa),
click the check box or the text.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
The ANSYS Fluent settings file (FFF.set) is written as soon as ANSYS Fluent opens.
Note
These controls are also available in the General task page that can be accessed by clicking
the Setup/General tree item.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
1. Change the units for length.
Because you want to specify and view values based on a unit of length in millimeters from within
ANSYS Fluent, change the units of length within ANSYS Fluent from meters (the default) to millimeters.
Important
Note that the ANSYS Meshing application automatically converts and exports meshes
for ANSYS Fluent using meters (m) as the unit of length regardless of what units
were used to create them. This is so you do not have to scale the mesh in ANSYS
Fluent under ANSYS Workbench.
Note
Now, all subsequent inputs that require a value based on a unit of length can be specified
in millimeters rather than meters.
Note
ANSYS Fluent will report the results of the mesh check in the console.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Domain Extents:
x-coordinate: min (m) = -2.000000e-01, max (m) = 2.000000e-01
y-coordinate: min (m) = -2.250000e-01, max (m) = 2.000000e-01
z-coordinate: min (m) = 0.000000e+00, max (m) = 5.000000e-02
Volume statistics:
minimum volume (m3): 1.144763e-10
maximum volume (m3): 5.871098e-08
total volume (m3): 2.511309e-03
Face area statistics:
minimum face area (m2): 2.051494e-07
maximum face area (m2): 3.429518e-05
Checking mesh..........................
Done.
Note
The minimum and maximum values may vary slightly when running on different platforms.
The mesh check will list the minimum and maximum x and y values from the mesh in
the default SI unit of meters. It will also report a number of other mesh features that are
checked. Any errors in the mesh will be reported at this time. Ensure that the minimum
volume is not negative as ANSYS Fluent cannot begin a calculation when this is the case.
Note
ANSYS Fluent will report the results of the mesh quality below the results of the mesh
check in the console.
Mesh Quality:
Minimum Orthogonal Quality = 1.98483e-01
(Orthogonal Quality ranges from 0 to 1, where values close to 0 correspond to low quality.)
Maximum Ortho Skew = 7.19694e-01
(Ortho Skew ranges from 0 to 1, where values close to 1 correspond to low quality.)
Maximum Aspect Ratio = 2.05643e+01
Note
The quality of the mesh plays a significant role in the accuracy and stability of the numer-
ical computation. Checking the quality of your mesh is, therefore, an important step in
performing a robust simulation. Minimum cell orthogonality is an important indicator of
mesh quality. Values for orthogonality can vary between 0 and 1 with lower values indic-
ating poorer quality cells. In general, the minimum orthogonality should not be below
0.01 with the average value significantly larger. The high aspect ratio cells in this mesh
are near the walls and are a result of the boundary layer inflation applied in the meshing
step. For more information about the importance of mesh quality refer to the Fluent
Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
1. In the Solver group of the Setting Up Physics ribbon tab, retain the default selection of the steady pressure-
based solver.
2. Set up your models for the CFD simulation using the Models group of the Setting Up Physics ribbon tab.
Note
You can also use the Models task page that can be accessed by clicking the
Setup/Models tree item.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. In the Viscous Model dialog box, select k-epsilon from the Model list.
Note
iii. Use the default Standard from the k-epsilon Model group.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
iv. Select Enhanced Wall Treatment for the Near-Wall Treatment.
Note
The default Standard Wall Functions are generally applicable if the first cell center
adjacent to the wall has a y+ larger than 30. In contrast, the Enhanced Wall
Treatment option provides consistent solutions for all y+ values. Enhanced Wall
Treatment is recommended when using the k-epsilon model for general single-
phase fluid flow problems. For more information about Near Wall Treatments in
the k-epsilon model refer to the Fluent Users Guide.
v. Click OK to accept the model and close the Viscous Model dialog box.
Note that the Viscous... label in the ribbon is displayed in blue to indicate that the Viscous
model is enabled.
3. Set up the materials for your CFD simulation using the Materials group of the Setting Up Physics ribbon
tab.
Create a new material called water using the Create/Edit Materials dialog box (Figure 1.14: The
Create/Edit Materials Dialog Box (p. 35)).
Property Value
Density 1000 [kg/m3]
(Specific Heat) 4216 [J/kg-K]
Thermal Conductivity 0.677 [W/m-K]
Viscosity 8e-04 [kg/m-s]
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Change/Create.
Note
A Question dialog box will open, asking if you want to overwrite air. Click No so that
the new material water is added to the Fluent Fluid Materials list of materials that
originally contained only air.
Extra
You could have copied the material water-liquid (h2o < l >) from the materials
database (accessed by clicking the ANSYS Fluent Database... button). If the properties
in the database are different from those you want to use, you can edit the values in
the Properties group in the Create/Edit Materials dialog box and click
Change/Create to update your local copy. The original copy will not be affected.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
e. Ensure that there are now two materials (water and air) defined locally by examining the Fluent Fluid
Materials drop-down list.
Note
Both the materials will also be listed under Fluid in the Materials task page and under
the Materials tree branch.
4. Set up the cell zone conditions for the CFD simulation using the Zones group of the Setting Up Physics
ribbon tab.
a. In the Setting Up Physics tab, click Cell Zones (Zones group) and select All.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. In the Cell Zone Conditions task page, in the Zone list, select fluid and click Edit... to open the
Fluid dialog box.
Note
You can also double-click fluid in the Cell Zones Conditions task page or under
the Setup/Cell Zone Conditions tree branch in order to open the corresponding
dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
ii. In the Fluid dialog box, select water from the Material Name drop-down list.
5. Set up the boundary conditions for the CFD analysis using the Zones group of the Setting Up Physics
ribbon tab.
a. In the Setting Up Physics tab, click Boundaries (Zones group) and select Inlets from the drop-down
list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
This opens the Boundary Conditions task page where only inlet boundaries defined in your
simulation are displayed under the Zone selection list.
Tip
If you are unsure of which inlet zone corresponds to the cold inlet, you can use the
mouse to probe for mesh information in the graphics window. If you click the right
mouse button with the pointer on any node in the mesh, information about the asso-
ciated zone will be displayed in the ANSYS Fluent console, including the name of the
zone. The zone you probed will be automatically selected from the Zone selection
list in the Boundary Conditions task page.
Alternatively, you can click the probe button ( ) in the graphics toolbar and click
the left mouse button on any node. This feature is especially useful when you have
several zones of the same type and you want to distinguish between them quickly.
The information will be displayed in the console.
i. From the Zone selection list, select velocity-inlet-large and click Edit....
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
ii. In the Velocity Inlet dialog box, ensure that Magnitude, Normal to Boundary are selected for
Velocity Specification Method.
iv. In the Turbulence group, from the Specification Method drop-down list, select Intensity and
Hydraulic Diameter.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. In a similar manner, set the boundary conditions at the hot inlet (velocity-inlet-small), using the values
in the following table:
e. Double-click pressure-outlet and set the boundary conditions at the outlet, as shown in the Pressure
Outlet dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Note
ANSYS Fluent will use the backflow conditions only if the fluid is flowing into the
computational domain through the outlet. Since backflow might occur at some point
during the solution procedure, you should set reasonable backflow conditions to
prevent convergence from being adversely affected.
1.4.6. Solving
In the steps that follow, you will set up and run the calculation using the Solving ribbon tab.
Note
You can also use the task pages listed under the Solution branch in the tree to perform
solution-related activities.
Solving Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. In the Spatial Discretization group of the Solution Methods task page, change the Gradient to
Green-Gauss Node Based. This gradient method is suggested for tetrahedral meshes.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
In the Residual Monitors dialog box, ensure that Plot is enabled in the Options group.
ii. Keep the default values for the Absolute Criteria of the Residuals, as shown in the Residual
Monitors dialog box.
Note
By default, all variables will be monitored and checked by ANSYS Fluent as a means
to determine the convergence of the solution.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. In the Surface Report Definition dialog box, enter temp-outlet-0 for the Name.
ii. Under the Create group, enable Report File and Report Plot.
During a solution run, ANSYS Fluent will write solution convergence data in a report file and
plot the solution convergence history in a graphics window.
It is good practice to monitor physical solution quantities in addition to equation residuals when
assessing convergence.
This setting instructs ANSYS Fluent to update the plot of the surface report and write data to a
file after every 3 iterations during the solution.
iv. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
vi. Click OK to save the surface report definition and close the Surface Report Definition dialog box.
The new surface report definition temp-outlet-0 appears under the Solution/Report
Definitions tree item. ANSYS Fluent also automatically creates the following items:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
temp-outlet-0-rfile (under the Solution/Report Files tree branch)
d. Double click the Solution/Report Files/temp-outlet-0-rfile tree item and examine the report file settings
in the Edit Report File dialog box.
The dialog box is automatically populated with data from the temp-outlet-0 report definition.
The report that will be written in a report file during a solution is listed under Selected Report
Definitions.
e. Double click the Solution/Report Plots/temp-outlet-0-rplot tree item and examine the report plot
settings in the Edit Report Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The dialog box is automatically populated with data from the temp-outlet-0 report definition.
As the solution progresses, the report that is listed under Selected Report Definitions will be
plotted in a graphics tab window with the title specified in Plot Title.
Retain the default names for Plot Title and Y-Axis Label and click OK.
Note
You can create report definitions for different boundaries and plot them in the same
graphics window. However, report definitions in the same Report Plot must have the
same units.
f. Initialize the flow field using the Initialization group of the Solving ribbon tab.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 47
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
i. Click the Models and Solver tabs and examine the Recommendation in each. These recommend-
ations can be ignored for this tutorial. The issues they raise will be addressed in later tutorials.
2. Calculate a solution using the Run Calculation group of the Solving tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
48 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note that while the program is calculating the solution, the states of the Setup and Solution
cells in the fluid flow ANSYS Fluent analysis system in ANSYS Workbench are changing. For ex-
ample:
The state of the Setup cell becomes Up-to-Date and the state of the Solution cell becomes Refresh
Required after the Run Calculation task page is visited and the number of iterations is specified.
The state of the Solution cell is Update Required while iterations are taking place.
The state of the Solution cell is Up-to-Date when the specified number of iterations are complete
(or if convergence is reached).
As the calculation progresses, the surface report plot will be plotted in the graphics window
(temp-outlet-0rplot tab window) (Figure 1.15: Convergence History of the Maximum Temper-
ature at Pressure Outlet (p. 49)).
The residuals history will be plotted in the Scaled Residuals tab window (Figure 1.16: Residuals
for the Converged Solution (p. 50)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.16: Residuals for the Converged Solution
Note
The solution will be stopped by ANSYS Fluent when the residuals reach their specified
values or after 300 iterations. The exact number of iterations will vary depending on
the platform being used. An Information dialog box will open to alert you that the
calculation is complete. Click OK in the Information dialog box to proceed.
Because the residual values vary slightly by platform, the plot that appears on your
screen may not be exactly the same as the one shown here.
Note that the ANSYS Fluent settings file (FFF.set) is updated in the Files view of the ANSYS
Workbench before the calculation begins.
b. Examine the plots for convergence (Figure 1.16: Residuals for the Converged Solution (p. 50) and Fig-
ure 1.15: Convergence History of the Maximum Temperature at Pressure Outlet (p. 49)).
Note
There are no universal metrics for judging convergence. Residual definitions that are
useful for one class of problem are sometimes misleading for other classes of problems.
Therefore it is a good idea to judge convergence not only by examining residual
levels, but also by monitoring relevant integrated quantities and checking for mass
and energy balances.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The solution has converged when the Convergence Criterion for each variable
has been reached. The default criterion is that each residual will be reduced to a
value of less than , except the energy residual, for which the default criterion
is .
Sometimes the residuals may not fall below the convergence criterion set in the
case setup. However, monitoring the representative flow variables through iterations
may show that the residuals have stagnated and do not change with further itera-
tions. This could also be considered as convergence.
The overall mass, momentum, energy, and scalar balances are obtained.
You can examine the overall mass, momentum, energy and scalar balances in the
Flux Reports dialog box. The net imbalance should be less than 0.2 of the net
flux through the domain when the solution has converged. In the next step you
will check to see if the mass balance indicates convergence.
3. With ANSYS Fluent still running, go back to ANSYS Workbench and view the list of generated files.
View Files
Note the addition of the surface report definition file temp-outlet-0.out to the list of files.
In ANSYS Fluent, you can perform a simple evaluation of the velocity and temperature contours on
the symmetry plane. Later, you will use CFD-Post (from within ANSYS Workbench) to perform the
same evaluation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
a. Display filled contours of velocity magnitude on the symmetry plane (Figure 1.17: Velocity Distribution
Along Symmetry Plane (p. 53)).
Note
iii. From the Contours of drop-down lists, select Velocity... and Velocity Magnitude.
iv. From the Surfaces selection list, deselect all items by clicking and then select symmetry.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Display filled contours of temperature on the symmetry plane (Figure 1.18: Temperature Distribution
Along Symmetry Plane (p. 55)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
i. Select Temperature... and Static Temperature from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Important
Note that the ANSYS Fluent case and data files are automatically saved when you exit
ANSYS Fluent and return to ANSYS Workbench.
View Files
Note the addition of the compressed ANSYS Fluent case and data files to the list of files. These
will have names like FFF-1.cas.gz and FFF-1-00222.dat.gz. Note that the digit(s) fol-
lowing FFF may be different if you have had to restart the meshing or calculation steps for any
reason and that the name of the data file is based on the number of iterations. Thus your file
names may be slightly different than those shown here.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
2. Display results in CFD-Post.
a. Start CFD-Post.
In the ANSYS Workbench Project Schematic, double-click the Results cell in the elbow fluid
flow analysis system (cell A6). This displays the CFD-Post application. You can also right-click the
Results cell to display the context menu where you can select the Edit... option.
Note
The elbow geometry is already loaded and is displayed in outline mode. ANSYS Fluent
case and data files are also automatically loaded into CFD-Post.
Click the blue Z axis on the axis triad in the bottom right hand corner of the graphics display to
orient the display so that the view is of the front of the elbow geometry.
d. Display contours of velocity magnitude on the symmetry plane (Figure 1.20: Velocity Distribution Along
Symmetry Plane (p. 58)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Insert a contour object using the Insert menu item at the top of the CFD-Post window.
Insert Contour
ii. Keep the default name of the contour (Contour 1) and click OK to close the dialog box. This dis-
plays the Details of Contour 1 view below the Outline view in CFD-Post. This view contains all of
the settings for a contour object.
iii. In the Geometry tab, from the Domains drop-down list, select fluid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.20: Velocity Distribution Along Symmetry Plane
e. Display contours of temperature on the symmetry plane (Figure 1.21: Temperature Distribution Along
Symmetry Plane (p. 59)).
i. In the Outline tree view, under User Locations and Plots, clear the check box beside the Contour
1 object to disable the Contour 1 object and hide the first contour display.
Insert Contour
iii. Keep the default name of the contour (Contour 2) and click OK to close the dialog box. This dis-
plays the Details of Contour 2 view below the Outline view.
iv. In the Geometry tab, from the Domains drop-down list, select fluid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Close the CFD-Post application by selecting File Close CFD-Post or by clicking the X in the top right
corner of the window.
Important
Note that the CFD-Post state files are automatically saved when you exit CFD-Post
and return to ANSYS Workbench.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
4. Save the elbow-workbench project in ANSYS Workbench.
View Files
Note the addition of the CFD-Post state file (elbow.cst) to the list of files. For more information
about CFD-Post (and the files associated with it), see the CFD-Post documentation.
In this step, you will create a duplicate of the original Fluent-based fluid flow system, then review the
list of files generated by ANSYS Workbench.
1. In the Project Schematic, right-click the title cell of the Fluid Flow (Fluent) system and select Duplicate
from the context menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.23: The Original Fluid Flow System and Its Duplicate
Note
Notice that in the duplicated system, the state of the Solution cell indicates that the cell
requires an update while the state of the Results cell indicates that the cell requires at-
tention. This is because when a system is duplicated, the case and data files are not
copied to the new system, therefore, the new system does not yet have solution data
associated with it.
Double-click the Geometry cell of the new-elbow system (cell B2) to display the geometry in
ANSYS DesignModeler.
a. In the Tree Outline, select Cylinder1 to open the Details View of the small inlet pipe.
b. In the Details View, change the FD10, Radius (>0) value from 12.5 millimeters to 19 millimeters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
c. Click the Generate button to generate the geometry with your new values.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.24: Changing the Diameter of the Small Inlet in ANSYS DesignModeler
View Files
Note the addition of the geometry, mesh, and ANSYS Fluent settings files now associated with the
new, duplicated system.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
In the Project Schematic, right-click the Mesh cell of the new-elbow system (cell B3) and select Update
from the context menu. This will update the mesh for the new geometry based on the mesh settings
you specified earlier in the ANSYS Meshing application without having to open the ANSYS Meshing
editor to regenerate the mesh.
It will take a few moments to update the mesh. Once the update is complete, the state of the Mesh
cell is changed to up-to-date, symbolized by a green check mark.
For illustrative purposes of the tutorial, the new geometry and the new mesh are displayed below.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.26: The Updated Geometry and Mesh in the ANSYS Meshing Application
Inspecting the files generated by ANSYS Workbench reveals the updated mesh file for the duplicated
system.
View Files
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
In the Project Schematic, right-click the Setup cell of the new-elbow system (cell B4) and select
Edit... from the context menu. Since the mesh has been changed, you are prompted as to whether
you want to load the new mesh into ANSYS Fluent or not.
Click Yes to continue, and click OK when Fluent Launcher is displayed in order to open ANSYS Fluent.
In the Velocity Inlet dialog box for velocity-inlet-small, you must set the hydraulic diameter to
38 mm based on the new dimensions of the small inlet.
Solving Initialization
Double-click the Results cell of the new-elbow fluid flow system to re-open CFD-Post where you
can review the results of the new solution.
9. Close CFD-Post.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
View Files
Note the addition of the solution and state files now associated with new duplicated system.
In ANSYS Workbench, drag a Results system from the Component Systems section of the Toolbox
and drop it into the Project Schematic, next to the fluid flow systems.
a. Select the Solution cell in the first Fluid Flow analysis system (cell A5) and drag it over the Results cell
in the Results system (cell C2). This creates a transfer data connection between the two systems.
Figure 1.28: Connecting the First Fluid Flow System to the New Results System
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
b. Select the Solution cell in the second Fluid Flow analysis system (cell B5) and drag it over the Results
cell in the Results system (cell C2). This creates a transfer data connection between the two systems.
Figure 1.29: Connecting the Second Fluid Flow System to the New Results System
3. Open CFD-Post to compare the results of the two fluid flow systems.
Now that the two fluid flow systems are connected to the Results system, double-click the Results
cell in the Results system (cell C2) to open CFD-Post. Within CFD-Post, both geometries are displayed
side by side.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
In each view, click the blue Z axis on the axis triad in the bottom right hand corner of the
graphics display to orient the display so that the view is of the front of the elbow geometry.
Important
Insert Contour
ii. Keep the default name of the contour (Contour 1) and click OK to close the dialog box. This dis-
plays the Details of Contour 1 view below the Outline view in CFD-Post. This view contains all of
the settings for a contour object.
iii. In the Geometry tab, from the Domains list, select fluid.
vi. Click Apply. The velocity contours are displayed in each view.
Note
To better visualize the velocity display, you can clear the Wireframe view option under
User Locations and Plots in the Outline tree view.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Figure 1.31: CFD-Post Displaying Velocity Contours for Both Geometries
i. In the Outline tree view, under User Locations and Plots, deselect the Contour 1 object to hide
the first contour display in CFD-Post.
Insert Contour
iii. Keep the default name of the contour (Contour 2) and click OK to close the dialog box. This dis-
plays the Details of Contour 2 view below the Outline view in CFD-Post.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
vii. Click Apply. The temperature contours are displayed in each view.
6. View the list of files associated with your project using the Files view.
View Files
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat
Transfer in a Mixing Elbow
Note the addition of the Results system and its corresponding files.
1.5. Summary
In this tutorial, portions of ANSYS Workbench were used to compare the fluid flow through two slightly
different geometries. ANSYS DesignModeler was used to create a mixing elbow geometry, ANSYS
Meshing was used to create a computational mesh, ANSYS Fluent was used to calculate the fluid flow
throughout the geometry using the computational mesh, and CFD-Post was used to analyze the results.
In addition, the geometry was altered, a new mesh was generated, and a new solution was calculated.
Finally, ANSYS Workbench was set up so that CFD-Post could directly compare the results of both cal-
culations at the same time.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 2: Parametric Analysis in ANSYS Workbench Using ANSYS
Fluent
This tutorial is divided into the following sections:
2.1. Introduction
2.2. Prerequisites
2.3. Problem Description
2.4. Setup and Solution
2.1. Introduction
This tutorial illustrates using an ANSYS Fluent fluid flow system in ANSYS Workbench to set up and
solve a three-dimensional turbulent fluid flow and heat transfer problem in an automotive heating,
ventilation, and air conditioning (HVAC) duct system. ANSYS Workbench uses parameters and design
points to allow you to run optimization and what-if scenarios. You can define both input and output
parameters in ANSYS Fluent that can be used in your ANSYS Workbench project. You can also define
parameters in other applications including ANSYS DesignModeler and ANSYS CFD-Post. Once you have
defined parameters for your system, a Parameters cell is added to the system and the Parameter Set
bus bar is added to your project. This tutorial is designed to introduce you to the parametric analysis
utility available in ANSYS Workbench.
The tutorial starts with a Fluid Flow (Fluent) analysis system with pre-defined geometry and mesh
components. Within this tutorial, you will redefine the geometry parameters created in ANSYS Design-
Modeler by adding constraints to the input parameters. You will use ANSYS Fluent to set up and solve
the CFD problem. While defining the problem set-up, you will also learn to define input parameters in
ANSYS Fluent. The tutorial will also provide information on how to create output parameters in ANSYS
CFD-Post.
Setting material properties and boundary conditions for a turbulent forced convection problem.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
Analyze the results of each design point project in ANSYS CFD-Post and ANSYS Workbench.
Important
The mesh and solution settings for this tutorial are designed to demonstrate a basic paramet-
erization simulation within a reasonable solution time-frame. Ordinarily, you would use addi-
tional mesh and solution settings to obtain a more accurate solution.
2.2. Prerequisites
This tutorial assumes that you are already familiar with the ANSYS Workbench interface and its project
workflow (for example, ANSYS DesignModeler, ANSYS Meshing, ANSYS Fluent, and ANSYS CFD-Post).
This tutorial also assumes that you have completed Introduction to Using ANSYS Fluent in ANSYS
Workbench: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1), and that you are familiar with the
ANSYS Fluent graphical user interface. Some steps in the setup and solution procedure will not be
shown explicitly.
As part of the analysis, a designer can change the geometry of the system or the boundary conditions
such as the inlet velocity, flow rate, and so on, and view the effect on fluid flow patterns. This tutorial
illustrates the AC design process on a representative automotive HVAC system consisting of both an
evaporator for cooling and a heat exchanger for heating requirements. This HVAC system is symmetric,
so the geometry has been simplified using a plane of symmetry to reduce computation time.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
Problem Description
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
Figure 2.1: Automotive HVAC System (p. 75) shows a representative automotive HVAC system. The system
has three valves (as shown in Figure 2.2: HVAC System Valve Location Details (p. 76)), which control the
flow in the HVAC system. The three valves control:
Flow towards the duct controlling the flow through the floor vents
Air enters the HVAC system at 310 K with a velocity of 0.5 m/sec through the air inlet and passes to
the evaporator and then, depending on the position of the valve controlling flow to the heat exchanger,
flows over or bypasses the heat exchanger. Depending on the cooling and heating requirements, either
the evaporator or the heat exchanger would be operational, but not both at the same time. The position
of the other two valves controls the flow towards the front panel, the windshield, or towards the floor
ducts.
The motion of the valves is constrained. The valve controlling flow over the heat exchanger varies
between 25 and 90. The valve controlling the floor flow varies between 20 and 60. The valve con-
trolling flow towards front panel or windshield varies between 15 and 175.
The evaporator load is about 200 W in the cooling cycle. The heat exchanger load is about 150 W.
This tutorial illustrates the easiest way to analyze the effects of the above parameters on the flow pat-
tern/distribution and the outlet temperature of air (entering the passenger cabin). Using the parametric
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
analysis capability in ANSYS Workbench, a designer can check the performance of the system at various
design points.
The following sections describe the setup and solution steps for this tutorial:
2.4.1. Preparation
2.4.2. Adding Constraints to ANSYS DesignModeler Parameters in ANSYS Workbench
2.4.3. Setting Up the CFD Simulation in ANSYS Fluent
2.4.4. Defining Input Parameters in ANSYS Fluent
2.4.5. Solving
2.4.6. Postprocessing and Setting the Output Parameters in ANSYS CFD-Post
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
2.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the workbench-parameter-tutorial_R170.zip link to download the input and solution files.
Note
ANSYS Fluent tutorials are prepared using ANSYS Fluent on a Windows system. The screen
shots and graphic images in the tutorials may be slightly different than the appearance on
your system, depending on the operating system or graphics card.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. From the Windows Start menu, select Start > All Programs > ANSYS 17.0 > Workbench 17.0 to start
ANSYS Workbench.
This displays the ANSYS Workbench application window, which has the Toolbox on the left and the
Project Schematic to its right. Various supported applications are listed in the Toolbox, and the
components of the analysis system are displayed in the Project Schematic.
Note
When you first start ANSYS Workbench, the Getting Started message window is displayed,
offering assistance through the online help for using the application. You can keep the
window open, or close it by clicking OK. If you need to access the online help at any
time, use the Help menu, or press the F1 key.
2. Restore the archive of the starting ANSYS Workbench project to your working directory.
a. Browse to your working directory, select the project archive file fluent-workbench-param.wbpz,
and click Open.
b. Browse, if necessary, to your working folder and click Save to restore the project file, fluent-work-
bench-param.wbpj, and a corresponding project folder, fluent-workbench-param_files,
for this tutorial.
Now that the project archive has been restored, the project will automatically open in ANSYS
Workbench.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
3. Open the Files view in ANSYS Workbench so you can view the files associated with the current project and
are written during the session.
View Files
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 2.5: The Project Loaded into ANSYS Workbench Displaying Properties and Files View
Note the types of files that have been created for this project. Also note the states of the cells for the
Fluid Flow (Fluent) analysis system. Since the geometry has already been defined, the status of the Geo-
metry cell is Up-to-Date ( ). Since the mesh is not complete, the Mesh cells state is Refresh Required
( ), and since the ANSYS Fluent setup is incomplete and the simulation has yet to be performed, with
no corresponding results, the state for the Setup, Solution, and Results cells is Unfulfilled ( ). For more
information about cell states, see the Workbench Users Guide.
4. Review the input parameters that have already been defined in ANSYS DesignModeler.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 81
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
a. Double-click the Parameter Set bus bar in the ANSYS Workbench Project Schematic to open the
Parameters Set tab.
Note
b. In the Outline of All Parameters view (Figure 2.6: Parameters Defined in ANSYS DesignModeler (p. 82)),
review the following existing parameters:
The parameter hcpos represents the valve position that controls the flow over the heat exchanger.
When the valve is at an angle of 25, it allows the flow to pass over the heat exchanger. When the
angle is 90, it completely blocks the flow towards the heat exchanger. Any value in between allows
some flow to pass over the heat exchanger giving a mixed flow condition.
The parameter ftpos represents the valve position that controls flow towards the floor duct. When
the valve is at an angle of 20, it blocks the flow towards the floor duct and when the valve angle is
60, it unblocks the flow.
The parameter wsfpos represents the valve position that controls flow towards the windshield and
the front panel. When the valve is at an angle of 15, it allows the entire flow to go towards the
windshield. When the angle is 90, it completely blocks the flow towards windshield as well as the
front panel. When the angle is 175, it allows the flow to go towards the windshield and the front
panel.
5. In the Outline of All Parameters view, create three new input parameters.
In the row that contains New input parameter, click the parameter table cell under the Parameter
Name column (the cell with New name) to create a new named input parameter. Create three new
parameters named input_hcpos, input_ftpos, and input_wsfpos. Note the ID of the
parameter that appears in column A of the table. For the new input parameters, the parameter IDs
would be P4, P5, and P6, respectively. In the Values column, enter values for each new parameter
of 15, 25, and 90, respectively.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Select the row or any cell in the row that corresponds to the hcpos parameter. In the Properties of Outline
view, change the value of the hcpos parameter in the Expression field from 90 to the expression
min(max(25,P4),90). This puts a constraint on the value of hcpos, so that the value always remains
between 25 and 90. The redefined parameter hcpos is automatically passed to ANSYS DesignModeler.
Alternatively the same constraint can also be set using the expression max(25, min(P4,90)). After
defining this expression, the parameter becomes a derived parameter that is dependent on the value of
the parameter input_hcpos with ID P4. The derived parameters are unavailable for editing in the Outline
of All Parameters view and could be redefined only in the Properties of Outline view.
Important
When entering expressions, you must use the list and decimal delimiters associated with
your selected language in the Workbench regional and language settings, which corres-
pond to the regional settings on your machine. The instructions in this tutorial assume
that your systems uses . as a decimal separator and , as a list separator.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 83
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
7. Select the row or any cell in the row that corresponds to the ftpos parameter and create a similar expression
for ftpos: min(max(20,P5),60).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 85
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
9. Click the X on the right side of the Parameters Set tab to close it and return to the Project Schematic.
Note the new status of the cells in the Fluid Flow (Fluent) analysis system. Since we have changed
the values of hcpos, ftpos, and wsfpos to their new expressions, the Geometry and Mesh cells
now indicates Refresh Required ( ).
a. Right-click the Geometry cell and select the Update option from the context menu.
b. Likewise, right-click the Mesh cell and select the Refresh option from the context menu. Once the cell
is refreshed, then right-click the Mesh cell again and select the Update option from the context menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
When ANSYS Fluent is first started, Fluent Launcher is displayed, allowing you to view and/or set certain
ANSYS Fluent start-up options.
Fluent Launcher allows you to decide which version of ANSYS Fluent you will use, based on your geometry
and on your processing capabilities.
Important
Note that the Dimension setting is already filled in and cannot be changed, since ANSYS
Fluent automatically sets it based on the mesh or geometry for the current system.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 87
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
a. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Note
An option is enabled when there is a check mark in the check box, and disabled when
the check box is empty. To change an option from disabled to enabled (or vice versa),
click the check box or the text.
Note
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
This is done to reduce the bandwidth of the cell neighbor number and to speed up the computations. This
is especially important for large cases involving 1 million or more cells. The method used to reorder the domain
is the Reverse Cuthill-McKee method.
2. Set up your models for the CFD simulation using the Models group of the Setting Up Physics ribbon tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 89
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
ii. Select Enhanced Wall Treatment from the Near-Wall Treatment group box.
The default Standard Wall Functions are generally applicable when the cell layer adjacent
to the wall has a y+ larger than 30. In contrast, the Enhanced Wall Treatment option provides
consistent solutions for all y+ values. Enhanced Wall Treatment is recommended when using
the k-epsilon model for general single-phase fluid flow problems. For more information
about Near Wall Treatments in the k-epsilon model refer to the Fluent Users Guide.
iii. Click OK to retain the other default settings, enable the model, and close the Viscous Model dialog
box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note that the Viscous... label in the ribbon is displayed in blue to indicate that the Viscous
model is enabled.
3. Define a heat source cell zone condition for the evaporator volume.
Note
All cell zones defined in your simulation are listed in the Cell Zone Conditions task page
and under the Setup/Cell Zone Conditions tree branch.
a. In the Cell Zone Conditions task page, under the Zone list, select fluid-evaporator and click Edit...
to open the Fluid dialog box.
c. In the Source Terms tab, scroll down to Energy, and click the Edit... button.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 91
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
d. In the Energy sources dialog box, change the Number of Energy sources to 1.
e. For the new energy source, select constant from the drop-down list, and enter -787401.6 W/m3
based on the evaporator load (200 W) divided by the evaporator volume (0.000254 m3) that was com-
puted earlier.
1. Define an input parameter called in_velocity for the velocity at the inlet boundary.
a. In the Setting Up Physics tab, click Boundaries (Zones group) and select Inlets from the drop-down
list.
This opens the Boundary Conditions task page where only inlet boundaries defined in your
simulation are displayed under the Zone selection list.
Note
All boundaries defined in the case are displayed under the Setup/Boundary Condi-
tions tree branch.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. In the Velocity Inlet dialog box, from the Velocity Magnitude drop-down list, select New Input
Parameter....
d. Enter in_velocity for the Name, and enter 0.5 m/s for the Current Value.
f. Under the Turbulence group box, from the Specification Method drop-down list, select Intensity
and Hydraulic Diameter.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 93
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
2. Define an input parameter called in_temp for the temperature at the inlet boundary.
a. In the Thermal tab of the Velocity Inlet dialog box, select New Input Parameter... from the
Temperature drop-down list.
b. Enter in_temp for the Name and enter 310 K for the Current Value in the Input Parameter
Properties dialog box.
3. Review all of the input parameters that you have defined in ANSYS Fluent under the Parameters & Cus-
tomization/Parameters tree branch.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
These parameters are passed to ANSYS Fluent component system in ANSYS Workbench and are
available for editing in ANSYS Workbench (see Figure 2.14: The Parameters View in ANSYS Work-
bench (p. 95)).
4. Set the turbulence parameters for backflow at the front outlets and foot outlets.
a. In the Boundary Conditions task page, from the Filter drop-down list, select Outlets.
Your model outlet boundaries are displayed in the Zone selection list.
b. Double-click outlet-front-mid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 95
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
c. In the Pressure Outlet dialog box, under the Turbulence group box, select Intensity and Hydraulic
Diameter from the Specification Method drop-down list.
These values will only be used if reversed flow occurs at the outlets. It is a good idea to set reasonable
values to prevent adverse convergence behavior if backflow occurs during the calculation.
g. Copy the boundary conditions from outlet-front-mid to the other front outlet.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Confirm that outlet-front-mid is selected in the From Boundary Zone selection list.
Fluent will display a dialog box asking you to confirm that you want to copy the boundary con-
ditions.
h. In a similar manner, set the backflow turbulence conditions for outlet-foot-left using the values in the
following table:
Parameter Value
Specification Method Intensity and Hydraulic Diameter
Backflow Turbulent Intensity (%) 5
Backflow Hydraulic Diameter (m) 0.052
2.4.5. Solving
In the steps that follow, you will set up and run the calculation using the Solving ribbon tab.
Note
You can also use the task pages listed under the Solution branch in the tree to perform
solution-related activities.
Solving Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 97
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
The pressure-based coupled solver is the recommended choice for general fluid flow simulations.
Setting Value
Pressure PRESTO!
Momentum First Order Upwind
Energy First Order Upwind
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
98 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
This tutorial is primarily intended to demonstrate the use of parameterization and design points
when running Fluent from Workbench. Therefore, you will run a simplified analysis using first
order discretization, which will yield faster convergence. These settings were chosen to speed up
solution time for this tutorial. Usually, for cases like this, we would recommend higher order
discretization settings to be set for all flow equations to ensure improved results accuracy.
2. Initialize the flow field using the Initialization group of the Solving ribbon tab.
Solving Initialization
3. Run the simulation in ANSYS Fluent from the Run Calculation group of the Solving tab.
Throughout the calculation, Fluent displays a warning in the console regarding reversed flow at the
outlets. This behavior is expected in this case since air is redirected to the outlets, creating small regions
of recirculation.
Note
4. Close Fluent.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 99
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
File Save
In the ANSYS Workbench Project Schematic, double-click the Results cell in the ANSYS Fluent fluid
flow analysis system to start CFD-Post. You can also right-click the Results cell to display the context
menu where you can select the Edit... option.
The CFD-Post application appears with the automotive HVAC geometry already loaded and displayed
in outline mode. Note that ANSYS Fluent results (that is, the case and data files) are also automatically
loaded into CFD-Post.
1. Edit some basic settings in CFD-Post (for example, changing the background color to white).
Edit Options...
a. In the Options dialog box, select Viewer under CFD-Post in the tree view.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Click the Color sample bar to cycle through common color swatches until it displays white.
Tip
You can also click the ellipsis icon to bring up a color selector dialog box from
which you can choose an arbitrary color.
d. Click OK to set the white background color for the display and close the Options dialog box.
a. In the Outline tree view, double-click Default Legend View 1 to display the Details view for
the default legend to be used for your plots.
b. In the Definition tab of the Details view, from the Title Mode drop-down list, select Variable.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 101
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
a. From the main menu, select Insert Vector or click in the ANSYS CFD-Post toolbar.
c. In the Details view for Vector 1, under the Geometry tab, configure the following settings.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. From the Locations drop-down list, select symmetry central unit.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 103
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
f. Click Apply.
Vector 1 appears under User Locations and Plots in the Outline tree view.
In the graphics display window, note that symmetry-central-unit shows the vectors colored by
pressure. Use the controls in CFD-Post to rotate the geometry (for example, clicking the dark blue
axis in the axis triad of the graphics window). Zoom into the view as shown in Figure 2.16: Vectors
Colored by Pressure (p. 105).
Note
To better visualize the vector display, you can deselect the Wireframe view option
under User Locations and Plots in the Outline tree view.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Details view for Vector 1, under the Color tab, configure the following settings.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 105
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
a. In the Details view for Vector 1, under the Color tab, configure the following settings.
v. Click Apply.
The user-specified range is selected much narrower than the Global and Local ranges in order
to better show the variation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note the orientation of the various valves and how they impact the flow field. Later in this tutorial, you
will change these valve angles to see how the flow field changes.
Surface groups are collections of surface locations in CFD-Post. In this tutorial, two surface groups
are created in CFD-Post that will represent all of the outlets and all of the front outlets. Once created,
specific commands (or expressions) will be applied to these groups in order to calculate a particular
numerical value at that surface.
i. With the Outline tree view open in the CFD-Post tree view, open the Insert Surface Group dialog
box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 107
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
ii. Enter alloutlets for the Name of the surface group, and close the Insert Surface Group dialog
box.
iii. In the Details view for the alloutlets surface group, in the Geometry tab, click the ellipsis icon
iv. Select all of the outlet surfaces (outlet foot left, outlet front mid, outlet front
side left, and outlet windshield) in the Location Selector dialog box (hold Ctrl for
multiple selection) and click OK.
v. Click Apply in the Details view for the new surface group.
alloutlets appears under User Locations and Plots in the Outline tree view.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
108 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Perform the same steps as described above to create a surface group called frontoutlets
with locations for the front outlets (outlet front mid and outlet front side left).
7. Create expressions in CFD-Post and mark them as ANSYS Workbench output parameters.
In this tutorial, programmatic commands or expressions are written to obtain numerical values for
the mass flow rate from all outlets, as well as at the front outlets, windshield, and foot outlets. The
surface groups you defined earlier are used to write the expressions.
i. With the Expressions tab open in the CFD-Post tree view, open the Insert Expression dialog box.
Insert Expression
ii. Enter floutfront for the Name of the expression and click OK to close the Insert Expression
dialog box.
iii. In the Details view for the new expression, enter the following in the Definition tab.
-(massFlow()@frontoutlets)*2
The sign convention for massFlow() is such that a positive value represents flow into the domain
and a negative value represents flow out of the domain. Since you are defining an expression for
outflow from the ducts, you use the negative of the massFlow() result in the definition of the
expression.
Note the new addition in the list of expressions in the Expressions tab in CFD-Post.
In this case, there is a small net backflow into the front ducts.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 109
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
v. Right-click the new expression and select Use as Workbench Output Parameter from the context
menu. A small P with a right-pointing arrow appears on the expressions icon.
b. Create an expression for the mass flow from the wind shield.
Perform the same steps as described above to create an expression called floutwindshield
with the following definition:
-(massFlow()@outlet windshield)*2
Right-click the new expression and select Use as Workbench Output Parameter from the context
menu.
c. Create an expression for the mass flow from the foot outlets.
Perform the same steps as described above to create an expression called floutfoot with the
following definition:
-(massFlow()@outlet foot left)*2
Right-click the new expression and select Use as Workbench Output Parameter from the context
menu.
Perform the same steps as described above to create an expression called outlettemp with
the following definition:
massFlowAveAbs(Temperature)@alloutlets
Right-click the new expression and select Use as Workbench Output Parameter from the context
menu.
In the main menu, select File Close CFD-POST to return to ANSYS Workbench.
9. In the Outline of All Parameters view of the Parameter Set tab (double-click Parameter Set), review the
newly-added output parameters that you specified in ANSYS CFD-Post and when finished, click the Project
tab to return to the Project Schematic.
10. If any of the cells in the analysis system require attention, update the project by clicking the Update Project
button in the ANSYS Workbench toolbar.
11. Optionally, review the list of files generated by ANSYS Workbench. If the Files view is not open, select View
Files from the main menu.
You will notice additional files associated with the latest solution as well as those generated by CFD-
Post.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
110 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 2.19: The Updated Project Loaded into ANSYS Workbench Displaying the Files View
Note
You can also select the Save Project option from the CFD-Post File ribbon tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
a. In the Project Schematic, double-click the Parameter Set bus bar to open the Table of Design
Points view. If the table is not visible, select Table from the View menu in ANSYS Workbench.
View Table
The table of design points initially contains the current project as a design point (DP0),
along with its corresponding input and output parameter values.
From this table, you can create new design points (or duplicate existing design points) and
edit them (by varying one or more input parameters) to create separate analyses for future
comparison of data.
2. Create a design point (DP1) by duplicating the current design point (DP0).
a. Right-click the Current design point and select Duplicate Design Point from the context menu.
The cells autofill with the values from the Current row.
b. Scroll over to the far right to expose the Retain column in the table of design points, and ensure
the check box in the row for the duplicated design point DP 1 (cell N4) is selected.
This allows the data from this new design point to be saved before it is exported for future
analysis.
3. Create another design point (DP2) by duplicating the DP1 design point.
a. Right-click the DP1 design point and select Duplicate Design Point from the context menu.
Since this is a duplicate of DP1, this design point will also have its data retained.
4. Edit values for the input parameters for DP1 and DP2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For DP1 and DP2, edit the values for your input parameters within the Table of Design Points
as follows:
Figure 2.21: Table of Design Points (with DP0, DP1, and DP2 Defined)
For demonstration purposes of this tutorial, in each design point, you are slightly changing the
angles of each of the valves, and increasing the inlet velocity and the inlet temperature. Later,
you will see how the results in each case vary.
Click the Update all Design Points button in the ANSYS Workbench toolbar. Alternatively, you
can also select one or more design points, right-click, and select Update Selected Design
Points from the context menu. Click OK to acknowledge the information message notifying
you that some open editors may close during the update process. By updating the design
points, ANSYS Workbench takes the new values of the input parameters for each design point
and updates the components of the associated system (for example, the geometry, mesh, set-
tings, solution, and results), as well as any output parameters that have been defined.
Note
It may take significant time and/or computing resources to re-run the simulations
for each design point.
This will allow you to work with calculated data for each design point.
a. Select the three design points, DP0, DP1, and DP2 (hold Shift for multiple selection).
b. Right-click the selected design points and select Export Selected Design Points.
Note the addition of three more ANSYS Workbench project files (and their corresponding
folders) in your current working directory (fluent-workbench-param_dp0.wbpj,
fluent-workbench-param_dp1.wbpj and fluent-workbench-param_dp2.wbpj).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
You can open each of these projects up separately and examine the results of each para-
meterized simulation.
Tip
You can easily access files in your project directory directly from the Files view by
right-clicking any cell in the corresponding row and selecting Open Containing
Folder from the menu that opens.
Once all design points have been updated, you can use the table of design points to inspect
the values of the output parameters you created in CFD-Post (for example, the mass flow
parameters at the various outlets: floutfront, floutfoot, floutwindshield, and
outlettemp). These, and the rest of the output parameters are listed to the far right in the
table of design points.
Figure 2.22: Table of Design Points (Showing Output Parameters for DP0, DP1, and
DP2)
8. Click the Project tab, just above the ANSYS Workbench toolbar to return to the Project Schematic.
View Files
The additional files for the new design points are stored with their respective project files since
you exported them.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Open the ANSYS Workbench project for the first design point (DP1).
b. Open CFD-Post by double-clicking the Results cell in the Project Schematic for the Fluid Flow
(Fluent) analysis system.
c. View the vector plot colored by temperature. Ensure that Range in the Color tab is set to User
Specified and the Min and Max temperature values are set to 273 K and 310 K, respectively.
d. View the vector plot colored by pressure. Ensure that Range in the Color tab is set to Global.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
e. View the vector plot colored by velocity. Ensure that Range in the Color tab is set to Global.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
f. When you are finished viewing results of the design point DP1 in ANSYS CFD-Post, select File
Close CFD-Post to quit ANSYS CFD-Post and return to the ANSYS Workbench Project Schematic,
and then select File Exit to exit from ANSYS Workbench.
a. Open the ANSYS Workbench project for the second design point (DP2).
b. Open CFD-Post by double-clicking the Results cell in the Project Schematic for the Fluid Flow
(Fluent) analysis system.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
c. View the vector plot colored by temperature. Ensure that Range in the Color tab is set to User
Specified and the Min and Max temperature values are set and the Min and Max temperature
values are set to 273 K and 310 K, respectively.
d. View the vector plot colored by pressure. Ensure that Range in the Color tab is set to Global.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. View the vector plot colored by velocity. Ensure that Range in the Color tab is set to Global.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Parametric Analysis in ANSYS Workbench Using ANSYS Fluent
3. When you are finished viewing results in ANSYS CFD-Post, select File Close CFD-Post to quit ANSYS
CFD-Post and return to the ANSYS Workbench Project Schematic, and then select File Exit to exit
from ANSYS Workbench.
2.4.9. Summary
In this tutorial, input and output parameters were created within ANSYS Workbench, ANSYS Fluent, and
ANSYS CFD-Post in order to study the airflow in an automotive HVAC system. ANSYS Fluent was used
to calculate the fluid flow throughout the geometry using the computational mesh, and ANSYS CFD-
Post was used to analyze the results. ANSYS Workbench was used to create additional design points
based on the original settings, and the corresponding simulations were run to create separate projects
where parameterized analysis could be performed to study the effects of variable angles of the inlet
valves, velocities, and temperatures. Also, note that simplified solution settings were used in this tutorial
to speed up the solution time. For more improved solution accuracy, you would typically use denser
mesh and higher order discretization for all flow equations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 3: Introduction to Using ANSYS Fluent: Fluid Flow and Heat
Transfer in a Mixing Elbow
This tutorial is divided into the following sections:
3.1. Introduction
3.2. Prerequisites
3.3. Problem Description
3.4. Setup and Solution
3.5. Summary
3.1. Introduction
This tutorial illustrates the setup and solution of a three-dimensional turbulent fluid flow and heat
transfer problem in a mixing elbow. The mixing elbow configuration is encountered in piping systems
in power plants and process industries. It is often important to predict the flow field and temperature
field in the area of the mixing region in order to properly design the junction.
Set material properties and boundary conditions for a turbulent forced-convection problem.
Visually examine the flow and temperature fields using the postprocessing tools available in ANSYS Fluent.
Change the solver method to coupled in order to increase the convergence speed.
Adapt the mesh based on the temperature gradient to further improve the prediction of the temperature
field.
3.2. Prerequisites
This tutorial assumes that you have little or no experience with ANSYS Fluent, and so each step will be
explicitly described.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
enters through a smaller inlet located at the elbow. The pipe dimensions are in inches and the fluid
properties and boundary conditions are given in SI units. The Reynolds number for the flow at the larger
inlet is 50,800, so a turbulent flow model will be required.
Note
Since the geometry of the mixing elbow is symmetric, only half of the elbow must be modeled
in ANSYS Fluent.
The following sections describe the setup and solution steps for this tutorial:
3.4.1. Preparation
3.4.2. Launching ANSYS Fluent
3.4.3. Reading the Mesh
3.4.4. Setting Up Domain
3.4.5. Setting Up Physics
3.4.6. Solving
3.4.7. Displaying the Preliminary Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3.4.1. Preparation
1. Set up a working folder on the computer you will be using.
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the introduction_R170.zip link to download the input and solution files.
7. Unzip the introduction_R170.zip file you downloaded to your working directory. This file contains
a folder, introduction, that holds the file elbow.msh that you will use in this tutorial. The intro-
duction directory also contains a solution_files sub-folder that contains the solution files created
during the preparation of this tutorial.
Note
ANSYS Fluent tutorials are prepared using ANSYS Fluent on a Windows system. The screen
shots and graphic images in the tutorials may be slightly different than the appearance on
your system, depending on the operating system or graphics card.
The Fluent Launcher allows you to decide which version of ANSYS Fluent you will use, based on
your geometry and on your processing capabilities.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
a. Select 3D from the Dimension list by clicking the radio button or the text.
c. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Note
An option is enabled when there is a check mark in the check box, and disabled when
the check box is empty. To change an option from disabled to enabled (or vice versa),
click the check box or the text.
Note
Extra
You can also restore the default settings by clicking the Default button.
3. Set the working path to the directory created when you unzipped introduction_R170.zip.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Enter the path to your working directory for Working Directory by double-clicking the text box and
typing.
Alternatively, you can click the browse button ( ) next to the Working Directory text box
and browse to the directory, using the Browse For Folder dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Click the File ribbon tab, then click Read and Mesh... in the menus that open in order to open the
Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select the mesh file by clicking elbow.msh in the introduction directory created when you unzipped
the original file.
b. Click OK to read the file and close the Select File dialog box.
As the mesh file is read by ANSYS Fluent, messages will appear in the console reporting the progress
of the conversion. ANSYS Fluent will report that 13,852 hexahedral fluid cells have been read, along
with a number of boundary faces with different zone identifiers.
After having completed reading mesh, ANSYS Fluent displays the mesh in the graphics window.
Extra
You can use the mouse to probe for mesh information in the graphics window. If you
click the right mouse button with the pointer on any node in the mesh, information
about the associated zone will be displayed in the console, including the name of the
zone.
Alternatively, you can click the probe button ( ) in the graphics toolbar and click the
left mouse button on any node. This feature is especially useful when you have several
zones of the same type and you want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 127
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
For this 3D problem, you can make it easier to probe particular nodes by changing the
view. The following table describes how to manipulate objects in the graphics window:
Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered
in the window.
After you have clicked a button in the graphics toolbar, you can return to the default
mouse button settings by clicking .
To judge the scale of your 3D geometry, you can click the Orthographic Projection icon,
. This will display the length scale ruler near the bottom of the graphics window.
Note that you can change the default mouse button actions in the Viewing tab (in the
Mouse group box). For more information, see the Fluent Users Guide.
2. Manipulate the mesh display using the Views dialog box to obtain a front view as shown in Figure 3.2: The
Hexahedral Mesh for the Mixing Elbow (p. 130).
In the Viewing ribbon tab, click the Views... button (in the Display group box).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
128 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You can also open the Views dialog box from the Results/Graphics/View... tree item.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 129
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Extra
You can also change the orientation of the objects in the graphics window using the
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
130 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
To perform free rotations in any direction, click and holdin the vicinity of the triadand
use the mouse. Release the left mouse button to stop rotating.
ANSYS Fluent will report the results of the mesh check in the console.
Domain Extents:
x-coordinate: min (m) = -8.000000e+000, max (m) = 8.000000e+000
y-coordinate: min (m) = -9.134633e+000, max (m) = 8.000000e+000
z-coordinate: min (m) = 0.000000e+000, max (m) = 2.000000e+000
Volume statistics:
minimum volume (m3): 5.098270e-004
maximum volume (m3): 2.330737e-002
total volume (m3): 1.607154e+002
Face area statistics:
minimum face area (m2): 4.865882e-003
maximum face area (m2): 1.017924e-001
Checking mesh.......................
Done.
The mesh check will list the minimum and maximum and values from the mesh in the default
SI unit of meters. It will also report a number of other mesh features that are checked. Any errors
in the mesh will be reported at this time. Ensure that the minimum volume is not negative, since
ANSYS Fluent cannot begin a calculation when this is the case.
Note
The minimum and maximum values may vary slightly when running on different platforms.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 131
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
b. From the Mesh Was Created In drop-down list, select in by first clicking the down-arrow button and
then clicking the in item from the list that appears.
Warning
d. Select in from the View Length Unit In drop-down list to set inches as the working unit for length.
e. Confirm that the domain extents are as shown in the dialog box above.
The mesh is now sized correctly and the working unit for length has been set to inches.
Note
Because the default SI units will be used for everything except length, there is no need
to change any other units in this problem. The choice of inches for the unit of length has
been made by the actions you have just taken. If you want a different working unit for
length, other than inches (for example, millimeters), click Units... in the General task
page and make the appropriate change, in the Set Units dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
132 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap). This will ensure that
the quality of the mesh has not been compromised.
4. Retain the default settings of pressure-based steady-state solver in the Solver group box of the General
task page.
1. In the Solver group box of the Setting Up Physics ribbon tab, retain the default selection of the steady
pressure-based solver.
2. Set up your models for the CFD simulation using the Models group box of the Setting Up Physics ribbon
tab.
Note
You can also use the Models task page that can be accessed by clicking the
Setup/Models tree item.
In the Setting Up Physics ribbon tab, select Energy (Models group box).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 133
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Note
You can also double-click the Setup/Models/Energy tree item and enable the energy
equation in the Energy dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
134 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. Retain the default selection of Standard in the k-epsilon Model group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 135
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
iii. Select Enhanced Wall Treatment in the Near-Wall Treatment group box.
Note
The default Standard Wall Functions are generally applicable if the first cell center
adjacent to the wall has a y+ larger than 30. In contrast, the Enhanced Wall
Treatment option provides consistent solutions for all y+ values. Enhanced Wall
Treatment is recommended when using the k-epsilon model for general single-
phase fluid flow problems. For more information about Near Wall Treatments in
the k-epsilon model refer to the Fluent Users Guide.
iv. Click OK to accept all the other default settings and close the Viscous Model dialog box.
Note that the Viscous... label in the ribbon is displayed in blue to indicate that the Viscous
model is enabled. Also Energy and Viscous appear as enabled under the Setup/Models tree
branch.
Note
While the ribbon is the primary tool for setting up and solving your problem, the
tree is a dynamic representation of your case. The models, materials, conditions,
and other settings that you have specified in your problem will appear in the tree.
Many of the frequently used ribbon items are also available via the right-click
functionality of the tree.
3. Set up the materials for the CFD simulation using the Materials group box of the Setting Up Physics ribbon
tab.
Create a new material called water using the Create/Edit Materials dialog box (Figure 1.14: The
Create/Edit Materials Dialog Box (p. 35)).
a. In the Setting Up Physics ribbon tab, click Create/Edit... (Materials group box).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
136 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Property Value
Density 1000 [kg/m3]
(Specific Heat) 4216 [J/kg-K]
Thermal Conductivity 0.677 [W/m-K]
Viscosity 8e-04 [kg/m-s]
d. Click Change/Create.
A Question dialog box will open, asking if you want to overwrite air. Click No so that the new mater-
ial water is added to the Fluent Fluid Materials list of materials that originally contained only air.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 137
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Extra
You could have copied the material water-liquid (h2o < l >) from the materials
database (accessed by clicking the ANSYS Fluent Database... button). If the properties
in the database are different from those you want to use, you can edit the values in
the Properties group box in the Create/Edit Materials dialog box and click
Change/Create to update your local copy. The original copy will not be affected.
e. Ensure that there are now two materials (water and air) defined locally by examining the Fluent Fluid
Materials drop-down list.
Both the materials will also be listed under Fluid in the Materials task page and under the Materials
tree branch.
4. Set up the cell zone conditions for the fluid zone (fluid) using the Zones group box of the Setting Up
Physics ribbon tab.
a. In the Setting Up Physics tab, click Cell Zones (Zones group box) and select All.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
138 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Double-click fluid in the Zone list to open the Fluid dialog box.
Note
You can also double-click the Setup/Cell Zone Conditions/fluid tree item in order
to open the corresponding dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 139
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
5. Set up the boundary conditions for the inlets, outlet, and walls for your CFD analysis using the Zones group
box of the Setting Up Physics ribbon tab.
a. In the Setting Up Physics tab, click Boundaries (Zones group box) and select Inlets from the drop-
down list.
This opens the Boundary Conditions task page where only inlet boundaries defined in your
simulation are displayed under the Zone selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
140 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
Here the inlets have names with numerical identifying tags. It is good practice to give
boundaries meaningful names in a meshing application to help in model set up. You
can also change boundary labels in Fluent by simply editing the boundary and alter
the label in the Zone Name text box.
Tip
If you are unsure of which inlet zone corresponds to the cold inlet, you can probe
the mesh display using the right mouse button or the probe toolbar button ( )
as described previously in this tutorial. The information will be displayed in the
ANSYS Fluent console, and the zone you probed will be automatically selected
from the Zone selection list in the Boundary Conditions task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 141
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
ii. In the Velocity Inlet dialog box, select Magnitude, Normal to Boundary from the Velocity Specific-
ation Method drop-down list.
iv. In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification
Method drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
142 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You can also access the Velocity Inlet dialog box by double-clicking the
Setup/Boundary Conditions/velocity-inlet-5 tree item.
c. In a similar manner, set the boundary conditions at the hot inlet (velocity-inlet-6), using the values in
the following table:
Setting Value
Velocity Specification Method Magnitude, Normal to Boundary
Velocity Magnitude 1.2 [m/s]
Specification Method Intensity and Hydraulic Diameter
Turbulent Intensity 5 [%]
Hydraulic Diameter 1 [inch]
Temperature 313.15 [K]
e. Double-click pressure-outlet-7 in the Zone selection list and set the boundary conditions at the outlet,
as shown in the Pressure Outlet dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 143
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Note
You do not need to set a backflow temperature in this case because the material properties
are not functions of temperature. If they were, a flow weighted average of the inlet con-
ditions would be a good starting value.
ANSYS Fluent will use the backflow conditions only if the fluid is flowing into the compu-
tational domain through the outlet. Since backflow might occur at some point during the
solution procedure, you should set reasonable backflow conditions to prevent convergence
from being adversely affected.
g. For the wall of the pipe (wall), retain the default value of 0 W/m2 for Heat Flux in the Thermal tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
144 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You can also access the boundary conditions dialog boxes by double-clicking the
boundary name under the Setup/Boundary Conditions tree branch.
3.4.6. Solving
In the steps that follow, you will set up and run the calculation using the Solving ribbon tab.
Note
You can also use the task pages listed under the Solution tree branch to perform solution-
related activities.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 145
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
b. In the Solution Methods task page, leave the Scheme and Spatial Discretisation at the default values
for this calculation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
146 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You can also access the Residual Monitors dialog box by double-clicking the Solu-
tion/Monitors/Residual tree item.
c. Leave the Absolute Criteria of continuity at the default level of 0.001 as shown in the Residual
Monitors dialog box.
Note
By default, all variables will be monitored and checked by ANSYS Fluent as a means to
determine the convergence of the solution. It is a good practice to also create and plot
a surface report definition that can help evaluate whether the solution is truly converged.
You will do this in the next step.
Click the Solution/Monitors tree item, and from the Monitors task page that opens, click Create...
under the Surface Monitors list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 147
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Note
You can also access the Surface Monitors dialog box by double-clicking Surface under
the Solution/Monitors tree branch.
This setting instructs ANSYS Fluent to update the plot of the surface monitor and write data to
a file after every 3 iterations during the solution.
f. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
148 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
h. Click OK to save the surface monitor settings and close the Surface Monitor dialog box.
The name and report type of the surface monitor you created will be displayed in the Surface
Monitors selection list in the Monitors task page and under the Surface tree item.
4. Set a convergence monitor for outlet-temp-avg. In the Monitors task page, click Convergence Manager...
(under the Convergence Monitor list).
a. Activate the convergence criterion on outlet temperature by selecting the Active check box next to
outlet-temp-avg.
d. Enable Print.
f. Click OK to save the convergence monitor settings and close the Convergence Manager dialog box.
These settings will cause Fluent to consider the solution converged when the monitor value for
each of the previous 15 iterations is within 0.001% of the current value. Convergence of the monitor
values will be checked every 3 iterations. The first 20 iterations will be ignored allowing for any initial
solution dynamics to settle out. Note that the value printed to the console is the deviation between
the current and previous iteration values only.
5. Initialize the flow field using the Initialization group box of the Solving ribbon tab.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 149
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
b. Click Initialize.
a. (optional) Indicate the directory in which you would like the file to be saved.
By default, the file will be saved in the directory from which you read in elbow.msh (that is,
the introduction directory). You can indicate a different directory by browsing to it or by
creating a new directory.
Adding the extension .gz to the end of the file name extension instructs ANSYS Fluent to save
the file in a compressed format. You do not have to include .cas in the extension (for example,
if you enter elbow1.gz, ANSYS Fluent will automatically save the file as elbow1.cas.gz).
The .gz extension can also be used to save data files in a compressed format.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
150 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Ensure that the default Write Binary Files option is enabled, so that a binary file will be written.
d. Click OK to save the case file and close the Select File dialog box.
7. Start the calculation by requesting 150 iterations in the Solving ribbon tab (Run Calculation group box).
b. Click Calculate.
Note
By starting the calculation, you are also starting to save the surface monitor data at
the rate specified in the Surface monitors dialog box. If a file already exists in your
working directory with the name you specified in the Define Surface Monitor dialog
box, then a Question dialog box will open, asking if you would like to append the
new data to the existing file. Click No in the Question dialog box, and then click OK
in the Warning dialog box that follows to overwrite the existing file.
As the calculation progresses, the surface monitor history will be plotted in the Convergence
history of Static Temperature on pressure-outelet-7 tab in the graphics window (Figure 3.3: Con-
vergence History of the Mass-Weighted Average Temperature (p. 152)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 151
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Similarly, the residuals history will be plotted in the Scaled Residuals tab in the graphics window
(Figure 3.4: Residuals (p. 153)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
152 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You can monitor the two convergence plots simultaneously by right-clicking a tab in
the graphics window and selecting SubWindow View from the menu that opens. To
return to a tabbed graphics window view, right-click a graphics window title area and
select Tabbed View.
Since the residual values vary slightly by platform, the plot that appears on your screen may not
be exactly the same as the one shown here.
The solution will be stopped by ANSYS Fluent when any of the following occur:
the surface monitor converges to within the tolerance specified in the Convergence Manager
dialog box
the residual monitors converge to within the tolerances specified in the Residual Monitors
dialog box
the number of iterations you requested in the Run Calculation task page has been reached
In this case, the solution is stopped when the convergence criterion on outlet temperature is
satisfied, after approximately 75 iterations. The exact number of iterations for convergence will
vary, depending on the platform being used. An Information dialog box will open to alert you
that the calculation is complete. Click OK in the Information dialog box to proceed.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 153
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
8. Examine the plots for convergence (Figure 3.3: Convergence History of the Mass-Weighted Average Tem-
perature (p. 152) and Figure 3.4: Residuals (p. 153)).
Note
There are no universal metrics for judging convergence. Residual definitions that are
useful for one class of problem are sometimes misleading for other classes of problems.
Therefore it is a good idea to judge convergence not only by examining residual levels,
but also by monitoring relevant integrated quantities and checking for mass and energy
balances.
The solution has converged when the Convergence Criterion for each variable has
been reached. The default criterion is that each residual will be reduced to a value of
less than 103, except the energy residual, for which the default criterion is 106.
Sometimes the residuals may not fall below the convergence criterion set in the case
setup. However, monitoring the representative flow variables through iterations may
show that the residuals have stagnated and do not change with further iterations. This
could also be considered as convergence.
The overall mass, momentum, energy, and scalar balances are obtained.
You can examine the overall mass, momentum, energy and scalar balances in the Flux
Reports dialog box. The net imbalance should be less than 0.2 % of the net flux through
the domain when the solution has converged. In the next step you will check to see
if the mass balance indicates convergence.
9. Examine the mass flux report for convergence using the Postprocessing ribbon tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
154 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Ensure that Mass Flow Rate is selected from the Options list.
c. Click Compute.
The individual and net results of the computation will be displayed in the Results and Net Results
boxes, respectively, in the Flux Reports dialog box, as well as in the console.
The sum of the flux for the inlets should be very close to the sum of the flux for the outlets. The net
results show that the imbalance in this case is well below the 0.2 criterion suggested previously.
In later steps of this tutorial you will save additional case and data files with different suffixes.
1. Display filled contours of velocity magnitude on the symmetry plane (Figure 3.5: Predicted Velocity Distri-
bution after the Initial Calculation (p. 157)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 155
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
c. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
e. Click Display to display the contours in the active graphics window. Clicking the Fit to Window icon,
, will cause the object to fit exactly and be centered in the window.
Note
If you cannot see the velocity contour display, select the appropriate tab in the graphics
window.
Extra
When you probe a point in the displayed domain with the right mouse button or the
probe tool, the level of the corresponding contour is highlighted in the colormap in the
graphics window, and is also reported in the console.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
156 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Create and display a definition for temperature contours on the symmetry plane (Figure 3.6: Predicted
Temperature Distribution after the Initial Calculation (p. 159)).
You can create contour definitions and save them for later use.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 157
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
b. Select Temperature... and Static Temperature from the Contours of drop-down lists.
The new contour-temp definition appears under the Results/Graphics/Contours tree branch.
To edit your contour definition, right-click it and select Edit... from the menu that opens.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
158 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Display velocity vectors on the symmetry plane (Figure 3.9: Magnified View of Resized Velocity Vec-
tors (p. 163)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 159
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
160 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Auto Scale option is enabled by default in the Options group box. This scaling sometimes
creates vectors that are too small or too large in the majority of the domain. You can improve
the clarity by adjusting the Scale and Skip settings, thereby changing the size and number of
the vectors when they are displayed.
d. Set Skip to 2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 161
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
To manipulate the image, refer to Table 3.1: View Manipulation Instructions (p. 128). The image will
be redisplayed at a higher magnification (Figure 3.9: Magnified View of Resized Velocity Vectors (p. 163)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
162 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You also have the option of selecting the original view in the Views dialog box:
Select front from the Views selection list and click Apply, then close the Views dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 163
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
4. Create a line at the centerline of the outlet. For this task, you will use the Surface group box of the Post-
processing tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
164 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.
The range of values in the direction is displayed in the Min and Max boxes.
f. Click Create.
The new line surface representing the intersection of the plane z=0 and the surface pressure-
outlet-7 is created, and its name z=0_outlet appears in the From Surface selection list.
Note
After the line surface z=0_outlet is created, a new entry will automatically be generated
for New Surface Name, in case you would like to create another surface.
If you want to delete or otherwise manipulate any surfaces, click Manage... to open the
Surfaces dialog box.
5. Display and save an XY plot of the temperature profile across the centerline of the outlet for the initial
solution (Figure 3.10: Outlet Temperature Profile for the Initial Solution (p. 167)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 165
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
a. Select Temperature... and Static Temperature from the Y Axis Function drop-down lists.
b. Select the z=0_outlet surface you just created from the Surfaces selection list.
c. Click Plot.
The button that was originally labeled Plot will change to Write....
e. Click Write....
ii. Click OK to save the temperature data and close the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
166 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For this task, you will use the Parameters & Customization tree branch.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 167
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
a. Select Density... and Density from the Field Functions drop-down lists, and click the Select button
to add density to the Definition field.
b. Click the X button on the dialog box to add the multiplication symbol to the Definition field.
c. Select Velocity... and Velocity Magnitude from the Field Functions drop-down lists, and click the
Select button to add |V| to the Definition field.
d. Click y^x to raise the last entry in the Definition field to a power, and click 2 for the power.
e. Click the / button to add the division symbol to the Definition field, and then click 2.
g. Click Define and close the Custom Field Function Calculator dialog box.
The dynamic-head tree item appears under the Parameters & Customization/Custom Field
Functions tree branch.
7. Display filled contours of the custom field function (Figure 3.11: Contours of the Dynamic Head Custom
Field Function (p. 170)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
168 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Custom Field Functions... and dynamic-head from the Contours of drop-down lists.
Tip
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 169
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Note
You may need to change the view by zooming out after the last vector display, if you
have not already done so.
8. Save the settings for the custom field function by writing the case and data files (elbow1.cas.gz and
elbow1.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
170 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
When you write the case and data file at the same time, it does not matter whether
you specify the file name with a .cas or .dat extension, as both will be saved.
b. Click OK to save the files and close the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 171
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
b. Click Initialize.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
172 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click Calculate.
A dialog box will appear asking if you want to append data to outlet-temp-avg.out. Click
No. Another dialog box will appear asking whether to Overwrite outlet-temp-avg.out.
Click OK.
The solution will converge in approximately 35 iterations (Figure 3.12: Residuals for the Coupled
Solver Calculation (p. 173)). Note that this is faster than the convergence rate using the SIMPLE
pressure-velocity coupling. The convergence history is shown in Figure 3.13: Convergence History
of Mass-Weighted Average Temperature (p. 174).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 173
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
1. Adapt the mesh in the regions of high temperature gradient. For this task, you will use the Adapt command
that is at the top of the ANSYS Fluent window.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
174 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ANSYS Fluent will not coarsen beyond the original mesh for a 3D mesh. Hence, it is not necessary to
deselect Coarsen in this instance.
b. Select Temperature... and Static Temperature from the Gradients of drop-down lists.
c. Click Compute.
ANSYS Fluent will update the Min and Max values to show the minimum and maximum temperature
gradient.
A general rule is to use 10 of the maximum gradient when setting the value for Refine Threshold.
e. Click Mark.
ANSYS Fluent will report in the console that approximately 1367 cells were marked for refinement.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 175
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
i. Click Display.
ANSYS Fluent will display the cells marked for adaption in the graphics window (Figure 3.14: Cells
Marked for Adaption (p. 177)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
176 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Extra You can change the way ANSYS Fluent displays cells marked for adaption (Fig-
ure 3.15: Alternative Display of Cells Marked for Adaption (p. 179)) by performing the following
steps:
A. Click Options... in the Manage Adaption Registers dialog box to open the Adaption
Display Options dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 177
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
E. Ensure that only the Edges option is enabled in the Options group box.
G. Select all of the items except default-interior and z=0_outlet from the Surfaces selection
list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
178 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
K. Rotate the view and zoom in to get the display shown in Figure 3.15: Alternative Display
of Cells Marked for Adaption (p. 179).
L. After viewing the marked cells, rotate the view back and zoom out again.
ii. In the Manage Adaption Registers dialog box, ensure that gradient-r0 is selected from the Re-
gisters selection list.
A Question dialog box will open, confirming your intention to adapt the mesh. Click Yes to pro-
ceed.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 179
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
2. Display the adapted mesh (Figure 3.16: The Adapted Mesh (p. 181)).
b. Deselect all of the highlighted items from the Surfaces selection list except for symmetry.
Tip
To deselect all surfaces click the far-right unshaded button at the top of the Surfaces
selection list, and then select the desired surfaces from the Surfaces selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
180 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The solution will converge after approximately 35 additional iterations (Figure 3.17: The Complete Residual
History (p. 182) and Figure 3.18: Convergence History of Mass-Weighted Average Temperature (p. 182)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 181
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
182 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Save the case and data files for the Coupled solver solution with an adapted mesh (elbow2.cas.gz and
elbow2.dat.gz).
b. Click OK to save the files and close the Select File dialog box.
The files elbow2.cas.gz and elbow2.dat.gz will be saved in your default directory.
5. Display the filled temperature distribution (using node values) on the revised mesh using the temperature
contours definition that you created earlier (Figure 3.19: Filled Contours of Temperature Using the Adapted
Mesh (p. 184)).
Right-click the Results/Graphics/Contours/contour-temp tree item and select Display from the
menu that opens.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 183
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
6. Display and save an XY plot of the temperature profile across the centerline of the outlet for the adapted
solution (Figure 3.20: Outlet Temperature Profile for the Adapted Coupled Solver Solution (p. 186)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
184 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The button that was originally labeled Write... will change to Plot.
b. Ensure that Temperature... and Static Temperature are selected from the Y Axis Function drop-down
lists.
d. Click Plot.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 185
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Figure 3.20: Outlet Temperature Profile for the Adapted Coupled Solver Solution
The button that was originally labeled Plot will change to Write....
f. Click Write....
7. Display the outlet temperature profiles for both solutions on a single plot (Figure 3.21: Outlet Temperature
Profiles for the Two Solutions (p. 189)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
186 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Add... button to open the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 187
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Each of these files will be listed with their directory in the XY File(s) list to indicate that they have
been selected.
Tip
If you select a file by mistake, simply click the file in the XY File(s) list and
then click Remove.
ii. Click OK to save the files and close the Select File dialog box.
b. Select the directory path ending in outlet_temp1.xy from the Files selection list.
The item in the Legend Entries list for outlet_temp1.xy will be changed to Before Adaption. This
legend entry will be displayed in the upper-left corner of the XY plot generated in a later step.
e. In a similar manner, change the legend entry for the directory path ending in outlet_temp2.xy to be
Adapted Mesh.
Figure 3.21: Outlet Temperature Profiles for the Two Solutions (p. 189) shows the two temperature profiles
at the centerline of the outlet. It is apparent by comparing both the shape of the profiles and the predicted
outer wall temperature that the solution is highly dependent on the mesh and solution options. Specifically,
further mesh adaption should be used in order to obtain a solution that is independent of the mesh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
188 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
When reading and writing data values, Fluent always uses SI units. Therefore when you
read in the xy data files and plot them, the position and temperature values will be
plotted in SI units, regardless of the settings made in the Units... dialog box earlier in
the tutorial.
Extra
You can perform additional rounds of mesh adaption based on temperature gradient
and run the calculation to see how the temperature profile changes at the outlet. A case
and data file (elbow3.cas.gz and elbow3.dat.gz) have been provided in the
solution_files directory, in which the mesh has undergone three more levels of
adaption. The resulting temperature profiles have been plotted with outlet_temp1.xy
and outlet_temp2.xy in Figure 3.22: Outlet Temperature Profiles for Subsequent Mesh
Adaption Steps (p. 190).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 189
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow
Figure 3.22: Outlet Temperature Profiles for Subsequent Mesh Adaption Steps
It is evident from Figure 3.22: Outlet Temperature Profiles for Subsequent Mesh Adaption
Steps (p. 190) that as the mesh is adapted further, the profiles converge on a mesh-inde-
pendent profile. The resulting wall temperature at the outlet is predicted to be 300.6
after mesh independence is achieved. If the adaption steps had not been performed, the
wall temperature would have incorrectly been estimated at 299.1 .
3.5. Summary
A comparison of the convergence speed for the SIMPLE and Coupled pressure-velocity coupling schemes
indicates that the latter converges much faster. With more complex meshes, the difference in speed
between the two schemes can be significant.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
190 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 4: Modeling Periodic Flow and Heat Transfer
This tutorial is divided into the following sections:
4.1. Introduction
4.2. Prerequisites
4.3. Problem Description
4.4. Setup and Solution
4.5. Summary
4.6. Further Improvements
4.1. Introduction
Many industrial applications, such as steam generation in a boiler or air cooling in the coil of an air
conditioner, can be modeled as two-dimensional periodic heat flow. This tutorial illustrates how to set
up and solve a periodic heat transfer problem, given a pre-generated mesh.
The system that is modeled is a bank of tubes containing a flowing fluid at one temperature that is
immersed in a second fluid in cross flow at a different temperature. Both fluids are water, and the flow
is classified as laminar and steady, with a Reynolds number of approximately 100. The mass flow rate
of the cross flow is known and the model is used to predict the flow and temperature fields that result
from convective heat transfer.
Due to symmetry of the tube bank and the periodicity of the flow inherent in the tube bank geometry,
only a portion of the geometry will be modeled in ANSYS Fluent, with symmetry applied to the outer
boundaries. The resulting mesh consists of a periodic module with symmetry. In the tutorial, the inlet
boundary will be redefined as a periodic zone, and the outflow boundary defined as its shadow.
4.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 191
Modeling Periodic Flow and Heat Transfer
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Because of the symmetry of the tube bank geometry, only a portion of the domain must be modeled.
The computational domain is shown in outline in Figure 4.1: Schematic of the Problem (p. 192). A mass
flow rate of 0.05 kg/s is applied to the inlet boundary of the periodic module. The temperature of the
tube wall ( ) is 400 K and the bulk temperature of the cross flow water ( ) is 300 K. The properties
of water that are used in the model are shown in Figure 4.1: Schematic of the Problem (p. 192).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
192 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the periodic_flow_heat_R170.zip link to download the input and solution files.
The file tubebank.msh can be found in the periodic_flow_heat folder created after unzipping
the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
10. Ensure that you are running in single precision (disable Double Precision).
4.4.2. Mesh
1. Read the mesh file tubebank.msh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 193
Modeling Periodic Flow and Heat Transfer
ANSYS Fluent will perform various checks on the mesh and report the progress in the ANSYS Fluent
console window. Ensure that the minimum volume reported is a positive number.
a. Select cm (centimeters) from the Mesh Was Created In drop-down list in the Scaling group box.
Note
It is a good idea to check the mesh after you manipulate it (scale, convert to polyhedra,
merge, separate, fuse, add zones, or smooth and swap.) This will ensure that the quality
of the mesh has not been compromised.
5. Examine the mesh (Figure 4.2: Mesh for the Periodic Tube Bank (p. 195)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
194 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Quadrilateral cells are used in the regions surrounding the tube walls and triangular cells are used for
the rest of the domain, resulting in a hybrid mesh (see Figure 4.2: Mesh for the Periodic Tube Bank (p. 195)).
The quadrilateral cells provide better resolution of the viscous gradients near the tube walls. The remainder
of the computational domain is filled with triangular cells for the sake of convenience.
Tip
You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 195
Modeling Periodic Flow and Heat Transfer
The inlet (wall-9) and outflow (wall-12) boundaries currently defined as wall zones need to be redefined
as periodic using the text user interface. The wall-9 boundary will be redefined as a translationally peri-
odic zone and wall-12 as a periodic shadow of wall-9.
b. Enter the text command and input the responses to the prompts as shown. Press Enter after each entry.
> mesh/modify-zones/make-periodic Enter
You will be prompted to enter the zones corresponding to the periodic boundaries and specify
the configuration of the periodicity.
zone 12 deleted
4.4.4. Models
1. Enable heat transfer.
4.4.5. Materials
The default properties for water defined in ANSYS Fluent are suitable for this problem. In this step, you will
make sure that this material is available for selecting in future steps.
1. Add water to the list of fluid materials by copying it from the ANSYS Fluent materials database.
a. Click Fluent Database... in the Create/Edit Materials dialog box to open the Fluent Database Mater-
ials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
196 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Scroll down the list to find water-liquid (h2o<l>). Selecting this item will display the default
properties in the dialog box.
ii. Click Copy and close the Fluent Database Materials dialog box.
The Create/Edit Materials dialog box will now display the copied properties for water-liquid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 197
Modeling Periodic Flow and Heat Transfer
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
198 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 199
Modeling Periodic Flow and Heat Transfer
2. Set the boundary conditions for the top wall of the right tube (wall-3).
4.4.9. Solution
1. Set the solution parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
200 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Retain the default setting of Least Squares Cell Based for the Gradient in the Spatial Discretization
group box.
c. Retain the default setting of Second Order for the Pressure drop-down list.
d. Retain the default setting of Second Order Upwind in the Momentum and Energy drop-down lists.
The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 201
Modeling Periodic Flow and Heat Transfer
a. Retain the default values in the Pseudo Transient Explicit Relaxation Factors group box.
In some cases, the default Pseudo Transient Explicit Relaxation Factors may need to be reduced in
order to prevent oscillation of residual values or stabilization of residual values above the convergence
criteria. For additional information about setting Pseudo Transient Explicit Relaxation Factors, see
the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
202 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You will first use the default Hybrid initialization method and then patch the fluid zone with the upstream
temperature value.
b. Patch the fluid zone with the bulk upstream temperature value.
The Hybrid Initialization method computes the initial flow field based on inlet and outlet boundary
conditions. In this case we have periodic boundary conditions with a specified upstream bulk temper-
ature. You will patch the initialized solution with this temperature value in order to improve conver-
gence.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 203
Modeling Periodic Flow and Heat Transfer
b. Click Calculate.
4.4.10. Postprocessing
1. Display filled contours of static pressure (Figure 4.3: Contours of Static Pressure (p. 205)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
204 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down lists.
c. Click Display.
d. Change the view to mirror the display across the symmetry planes (Figure 4.4: Contours of Static Pressure
with Symmetry (p. 207)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 205
Modeling Periodic Flow and Heat Transfer
i. Select all of the symmetry zones (symmetry-18, symmetry-13, symmetry-11, and symmetry-24)
in the Mirror Planes selection list by clicking in the upper right corner.
Note
There are four symmetry zones in the Mirror Planes selection list because the top
and bottom symmetry planes in the domain are each composed of two symmetry
zones, one on each side of the tube centered on the plane. It is also possible to
generate the same display shown in Figure 4.4: Contours of Static Pressure with
Symmetry (p. 207) by selecting just one of the symmetry zones on the top symmetry
plane, and one on the bottom.
iii. Translate the display of symmetry contours so that it is centered in the graphics window by using
the left mouse button (Figure 4.4: Contours of Static Pressure with Symmetry (p. 207)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
206 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The pressure contours displayed in Figure 4.4: Contours of Static Pressure with Symmetry (p. 207) do
not include the linear pressure gradient computed by the solver. Thus, the contours are periodic at
the inlet and outflow boundaries.
2. Display filled contours of static temperature (Figure 4.5: Contours of Static Temperature (p. 209)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 207
Modeling Periodic Flow and Heat Transfer
a. Select Temperature... and Static Temperature from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
208 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The contours in Figure 4.5: Contours of Static Temperature (p. 209) reveal the temperature increase in the
fluid due to heat transfer from the tubes. The hotter fluid is confined to the near-wall and wake regions,
while a narrow stream of cooler fluid is convected through the tube bank.
3. Display the velocity vectors (Figure 4.6: Velocity Vectors (p. 211)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 209
Modeling Periodic Flow and Heat Transfer
This will increase the size of the displayed vectors, making it easier to view the flow patterns.
b. Retain the default selection of Velocity from the Vectors of drop-down list.
c. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down lists.
e. Zoom in on the upper right portion of one of the left tubes to get the display shown in (Figure 4.6: Ve-
locity Vectors (p. 211)), by using the middle mouse button in the graphics window.
The magnified view of the velocity vector plot in Figure 4.6: Velocity Vectors (p. 211) clearly shows the re-
circulating flow behind the tube and the boundary layer development along the tube surface.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
210 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Create an isosurface on the periodic tube bank at = 0.01 m (through the first column of tubes).
This isosurface and the ones created in the steps that follow will be used for the plotting of temperature
profiles.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 211
Modeling Periodic Flow and Heat Transfer
a. Select Mesh... and X-Coordinate from the Surface of Constant drop-down lists.
d. Click Create.
5. In a similar manner, create an isosurface on the periodic tube bank at = 0.02 m (halfway between the
two columns of tubes) named x=0.02m.
6. In a similar manner, create an isosurface on the periodic tube bank at = 0.03 m (through the middle of
the second column of tubes) named x=0.03m, and close the Iso-Surface dialog box.
7. Create an XY plot of static temperature on the three isosurfaces (Figure 4.7: Static Temperature at x=0.01,
0.02, and 0.03 m (p. 214)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
212 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
With a Plot Direction vector of (0,1), ANSYS Fluent will plot the selected variable as a function of
. Since you are plotting the temperature profile on cross sections of constant , the temperature
varies with the direction.
b. Select Temperature... and Static Temperature from the Y-Axis Function drop-down lists.
d. Click the Curves... button to open the Curves - Solution XY Plot dialog box.
This dialog box is used to define plot styles for the different plot curves.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 213
Modeling Periodic Flow and Heat Transfer
iii. Set the Curve # to 1 to define the style for the = 0.02 m curve.
vi. Click Apply and close the Curves - Solution XY Plot dialog box.
Since you did not change the curve style for the = 0.03 m curve, the default symbol will be used.
4.5. Summary
In this tutorial, periodic flow and heat transfer in a staggered tube bank were modeled in ANSYS Fluent.
The model was set up assuming a known mass flow through the tube bank and constant wall temper-
atures. Due to the periodic nature of the flow and symmetry of the geometry, only a small piece of the
full geometry was modeled. In addition, the tube bank configuration lent itself to the use of a hybrid
mesh with quadrilateral cells around the tubes and triangles elsewhere.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
214 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
The Periodic Conditions dialog box makes it easy to run this type of model with a variety of operating
conditions. For example, different flow rates (and hence different Reynolds numbers) can be studied,
or a different inlet bulk temperature can be imposed. The resulting solution can then be examined to
extract the pressure drop per tube row and overall Nusselt number for a range of Reynolds numbers.
For additional details about modeling periodic heat transfer, see the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 215
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
216 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 5: Modeling External Compressible Flow
This tutorial is divided into the following sections:
5.1. Introduction
5.2. Prerequisites
5.3. Problem Description
5.4. Setup and Solution
5.5. Summary
5.6. Further Improvements
5.1. Introduction
The purpose of this tutorial is to compute the turbulent flow past a transonic airfoil at a nonzero angle
of attack. You will use the Spalart-Allmaras turbulence model.
Model compressible flow (using the ideal gas law for density).
Use Full Multigrid (FMG) initialization to obtain better initial field values.
Calculate a solution using the pressure-based coupled solver with the pseudo transient option.
5.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 217
Modeling External Compressible Flow
5.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
218 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Click the external_compressible_R170.zip link to download the input and solution files.
The file airfoil.msh can be found in the external_compressible folder created after unzipping
the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
5.4.2. Mesh
1. Read the mesh file airfoil.msh.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the reported minimum volume is a positive number.
Note
ANSYS Fluent will issue a warning concerning the high aspect ratios of some cells
and possible impacts on calculation of Cell Wall Distance. The warning message in-
cludes recommendations for verifying and correcting the Cell Wall Distance calcula-
tion. In this particular case the cell aspect ratio does not cause problems so no further
action is required. As an optional activity, you can confirm this yourself after the
solution is generated by plotting Cell Wall Distance as noted in the warning message.
3. Examine the mesh (Figure 5.2: The Entire Mesh (p. 220) and Figure 5.3: Magnified View of the Mesh Around
the Airfoil (p. 221)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 219
Modeling External Compressible Flow
Quadrilateral cells were used for this simple geometry because they can be stretched easily to account
for different flow gradients in different directions. In the present case, the gradients normal to the airfoil
wall are much greater than those tangent to the airfoil. Consequently, the cells near the surface have
high aspect ratios. For geometries that are more difficult to mesh, it may be easier to create a hybrid
mesh composed of quadrilateral and triangular cells.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
220 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
A parabola was chosen to represent the far-field boundary because it has no discontinuities in slope,
enabling the construction of a smooth mesh in the interior of the domain.
Extra
You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 221
Modeling External Compressible Flow
This is done to reduce the bandwidth of the cell neighbor number and to speed up the computations.
This is especially important for large cases involving 1 million or more cells. The method used to reorder
the domain is the Reverse Cuthill-McKee method.
5.4.3. Solver
1. Set the solver settings.
The pressure-based solver with the Coupled option for the pressure-velocity coupling is a good altern-
ative to density-based solvers of ANSYS Fluent when dealing with applications involving high-speed
aerodynamics with shocks. Selection of the coupled algorithm is made in the Solution Methods task
page in the Solution step.
5.4.4. Models
1. Select the Spalart-Allmaras turbulence model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
222 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
The Spalart-Allmaras model is a relatively simple one-equation model that solves a modeled
transport equation for the kinematic eddy (turbulent) viscosity. This embodies a relatively
new class of one-equation models in which it is not necessary to calculate a length scale
related to the local shear layer thickness. The Spalart-Allmaras model was designed spe-
cifically for aerospace applications involving wall-bounded flows and has been shown to
give good results for boundary layers subjected to adverse pressure gradients.
5.4.5. Materials
The default Fluid Material is air, which is the working fluid in this problem. The default settings need to be
modified to account for compressibility and variations of the thermophysical properties with temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 223
Modeling External Compressible Flow
b. Select sutherland from the Viscosity drop-down list to open the Sutherland Law dialog box.
i. Retain the default selection of Three Coefficient Method in the Methods list.
The Sutherland law for viscosity is well suited for high-speed compressible flows.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
224 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
While Density and Viscosity have been made temperature-dependent, Cp (Specific Heat) and Thermal
Conductivity have been left constant. For high-speed compressible flows, thermal dependency of the
physical properties is generally recommended. For simplicity, Thermal Conductivity and Cp (Specific
Heat) are assumed to be constant in this tutorial.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 225
Modeling External Compressible Flow
Note
The gauge pressure in ANSYS Fluent is always relative to the operating pressure, which
is defined in a separate input (see below).
c. Enter 0.997564 and 0.069756 for the X-Component of Flow Direction and Y-Component of Flow
Direction, respectively.
d. Retain Turbulent Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.
f. Click the Thermal tab and retain the default value of 300 K for Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
226 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Operating Conditions dialog box can also be accessed from the Cell Zone Conditions task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 227
Modeling External Compressible Flow
The operating pressure should be set to a meaningful mean value in order to avoid round-off errors.
The absolute pressure must be greater than zero for compressible flows. If you want to specify
boundary conditions in terms of absolute pressure, you can make the operating pressure zero.
For information about setting the operating pressure, see the Fluent Users Guide.
5.4.8. Solution
1. Set the solution parameters.
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.
c. Retain the default selection of Second Order from the Pressure drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
228 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Select Second Order Upwind from the Modified Turbulent Viscosity drop-down list.
The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.
a. Enter 0.5 for Density in the Pseudo Transient Explicit Relaxation Factors group box.
Larger under-relaxation factors (that is, closer to 1) will generally result in faster convergence. However,
instability can arise that may need to be eliminated by decreasing the under-relaxation factors.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 229
Modeling External Compressible Flow
a. Ensure that Plot is enabled in the Options group box and click OK to close the Residual Monitors
dialog box.
a. Retain the default selection of Hybrid Initialization from the Initialization Methods group box.
FMG initialization often facilitates an easier start-up, where no CFL (Courant Friedrichs Lewy) ramping
is necessary, thereby reducing the number of iterations for convergence.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
230 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. Enter the text commands and input responses as shown in the boxes. Accept the default values by
pressing Enter when no input response is given:
solve/initialize/set-fmg-initialization
solve/initialize/fmg-initialization
Enable FMG initialization? [no] yes
Note
It is good practice to save the case and data files during several stages of your case setup.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 231
Modeling External Compressible Flow
b. Click Calculate.
By performing some iterations before setting up the force monitors, you will avoid large initial transients
in the monitor plots. This will reduce the axes range and make it easier to judge the convergence.
7. Set the reference values that are used to compute the lift, drag, and moment coefficients.
The reference values are used to non-dimensionalize the forces and moments acting on the airfoil. The
dimensionless forces and moments are the lift, drag, and moment coefficients.
ANSYS Fluent will update the Reference Values based on the boundary conditions at the far-field
boundary.
8. Define a force monitor to plot and write the drag coefficient for the walls of the airfoil.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
232 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not enable the Write option, the history information will be lost when you
exit ANSYS Fluent.
e. Enter 0.9976 for X and 0.06976 for Y in the Force Vector group box.
These X and Y values ensure that the drag coefficient is calculated parallel to the free-stream flow,
which is off of the global coordinates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 233
Modeling External Compressible Flow
Enter the values for X and Y shown in the Lift Monitor dialog box.
The X and Y values shown ensure that the lift coefficient is calculated normal to the free-stream flow,
which is off of the global coordinates.
10. In a similar manner, define a force monitor for the moment coefficient.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
234 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Enter the values for the Moment Center and Moment Axis shown in the Moment Monitor dialog
box.
11. Display filled contours of pressure overlaid with the mesh in preparation for defining a surface monitor
(Figure 5.4: Pressure Contours After 50 Iterations (p. 237) and Figure 5.5: Magnified View of Pressure Contours
Showing Wall-Adjacent Cells (p. 238)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 235
Modeling External Compressible Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
236 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The shock is clearly visible on the upper surface of the airfoil, where the pressure jumps to a higher
value downstream of the low pressure area.
Note
The color indicating a high pressure area near the leading edge of the airfoil is ob-
scured by the overlaid green mesh. To view this contour, simply disable the Draw
Mesh option in the Contours dialog box and click Display.
d. Zoom in on the shock wave, until individual cells adjacent to the upper surface (wall-top boundary)
are visible, as shown in Figure 5.5: Magnified View of Pressure Contours Showing Wall-Adjacent
Cells (p. 238).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 237
Modeling External Compressible Flow
The magnified region contains cells that are just downstream of the shock and adjacent to the upper
surface of the airfoil. In the following step, you will create a point surface inside a wall-adjacent cell,
which you will use to define a surface monitor.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
238 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enter 0.53 m for x0 and 0.051 m for y0 in the Coordinates group box.
Note
You have entered the exact coordinates of the point surface so that your convergence
history will match the plots and description in this tutorial. In general, however, you will
not know the exact coordinates in advance, so you will need to select the desired location
in the graphics window. You do not have to apply the following instructions at this point
in the tutorial; they are added here for your information:
a. In the Point Surface dialog box, click the Select Point with Mouse button. A Working
dialog box will open telling you to Click on a location in the graphics window with the
MOUSE-PROBE mouse button.
b. Position the mouse pointer at a point located inside one of the cells adjacent to the upper
surface (wall-top boundary), downstream of the shock (see Figure 5.6: Pressure Contours
after Creating a Point with the Mouse (p. 240)).
d. Click Create to create the point surface and then close the Point Surface dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 239
Modeling External Compressible Flow
Figure 5.6: Pressure Contours after Creating a Point with the Mouse
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
240 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select none from the Convergence Criterion drop-down list so that automatic convergence checking
does not occur.
14. Define a surface monitor for tracking the velocity magnitude value at the point created in the previous
step.
Since the drag, lift, and moment coefficients are global variables, indicating certain overall conditions,
they may converge while local conditions at specific points are still varying from one iteration to the
next. To account for this, define a monitor at a point (just downstream of the shock) where there is likely
to be significant variation, and monitor the value of the velocity magnitude.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 241
Modeling External Compressible Flow
Scroll down the Report Type drop-down list to find Vertex Average.
c. Select Velocity... and Velocity Magnitude from the Field Variable drop-down list.
15. Save the case and data files (airfoil-1.cas.gz and airfoil-1.dat.gz).
The force monitors (Figure 5.8: Drag Coefficient Convergence History (p. 244) and Figure 5.9: Lift Coefficient
Convergence History (p. 245)) show that the case is converged after approximately 200 iterations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
242 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 243
Modeling External Compressible Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
244 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 245
Modeling External Compressible Flow
17. Save the case and data files (airfoil-2.cas.gz and airfoil-2.dat.gz).
5.4.9. Postprocessing
1. Plot the distribution on the airfoil (Figure 5.11: XY Plot of y+ Distribution (p. 248)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
246 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Turbulence... and Wall Yplus from the Y Axis Function drop-down list.
Note
The values of are dependent on the resolution of the mesh and the Reynolds number
of the flow, and are defined only in wall-adjacent cells. The value of in the wall-adjacent
cells dictates how wall shear stress is calculated. When you use the Spalart-Allmaras
model, you should check that of the wall-adjacent cells is either very small (on the
order of ), or approximately 30 or greater. Otherwise, you should modify your mesh.
Figure 5.11: XY Plot of y+ Distribution (p. 248) indicates that, except for a few small regions
(notably at the shock and the trailing edge), and for much of these regions it does
not drop significantly below 30. Therefore, you can conclude that the near-wall mesh
resolution is acceptable.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 247
Modeling External Compressible Flow
2. Display filled contours of Mach number (Figure 5.12: Contour Plot of Mach Number (p. 249)).
b. Select Velocity... and Mach Number from the Contours of drop-down list.
d. Zoom in on the region around the airfoil, as shown in Figure 5.12: Contour Plot of Mach Number (p. 249).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
248 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note the discontinuity, in this case a shock, on the upper surface of the airfoil in Figure 5.12: Contour
Plot of Mach Number (p. 249) at about .
3. Plot the pressure distribution on the airfoil (Figure 5.13: XY Plot of Pressure (p. 250)).
b. Select Pressure... and Pressure Coefficient from the Y Axis Function drop-down lists.
c. Click Plot.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 249
Modeling External Compressible Flow
Notice the effect of the shock wave on the upper surface in Figure 5.13: XY Plot of Pressure (p. 250).
4. Plot the component of wall shear stress on the airfoil surface (Figure 5.14: XY Plot of x Wall Shear
Stress (p. 251)).
b. Select Wall Fluxes... and X-Wall Shear Stress from the Y Axis Function drop-down lists.
As shown in Figure 5.14: XY Plot of x Wall Shear Stress (p. 251), the large, adverse pressure gradient induced
by the shock causes the boundary layer to separate. The point of separation is where the wall shear stress
vanishes. Flow reversal is indicated here by negative values of the x component of the wall shear stress.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
250 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
5. Display filled contours of the component of velocity (Figure 5.15: Contour Plot of x Component of Velo-
city (p. 252)).
Note the flow reversal downstream of the shock in Figure 5.15: Contour Plot of x Component of Velo-
city (p. 252).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 251
Modeling External Compressible Flow
6. Plot velocity vectors (Figure 5.16: Plot of Velocity Vectors Downstream of the Shock (p. 253)).
c. Zoom in on the flow above the upper surface at a point downstream of the shock, as shown in Fig-
ure 5.16: Plot of Velocity Vectors Downstream of the Shock (p. 253).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
252 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
Flow reversal is clearly visible in Figure 5.16: Plot of Velocity Vectors Downstream of the Shock (p. 253).
5.5. Summary
This tutorial demonstrated how to set up and solve an external aerodynamics problem using the pressure-
based coupled solver with pseudo transient under-relaxation and the Spalart-Allmaras turbulence
model. It showed how to monitor convergence using force and surface monitors, and demonstrated
the use of several postprocessing tools to examine the flow phenomena associated with a shock wave.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 253
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
254 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 6: Modeling Transient Compressible Flow
This tutorial is divided into the following sections:
6.1. Introduction
6.2. Prerequisites
6.3. Problem Description
6.4. Setup and Solution
6.5. Summary
6.6. Further Improvements
6.1. Introduction
In this tutorial, ANSYS Fluents density-based implicit solver is used to predict the time-dependent flow
through a two-dimensional nozzle. As an initial condition for the transient problem, a steady-state
solution is generated to provide the initial values for the mass flow rate at the nozzle exit.
Calculate a steady-state solution (using the density-based implicit solver) as an initial condition for a transient
flow prediction.
Use dynamic mesh adaption for both steady-state and transient flows.
Calculate a transient solution using the second-order implicit transient formulation and the density-based
implicit solver.
Create an animation of the transient flow using ANSYS Fluents transient solution animation feature.
6.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 255
Modeling Transient Compressible Flow
6.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
256 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Click the unsteady_compressible_R170.zip link to download the input and solution files.
The files nozzle.msh and pexit.c can be found in the unsteady_compressible folder created
after unzipping the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
The mesh for the half of the geometry is displayed in the graphics window.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 257
Modeling Transient Compressible Flow
4. Mirror the mesh across the centerline (Figure 6.2: 2D Nozzle Mesh Display with Mirroring (p. 259)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
258 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Solver group of the Setting Up Physics tab, select Density-Based from the Type list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 259
Modeling Transient Compressible Flow
The density-based implicit solver is the solver of choice for compressible, transonic flows without
significant regions of low-speed flow. In cases with significant low-speed flow regions, the pressure-
based solver is preferred. Also, for transient cases with traveling shocks, the density-based explicit
solver with explicit time stepping may be the most efficient.
Note
You will solve for the steady flow through the nozzle initially. In later steps, you will
use these initial results as a starting point for a transient calculation.
The pressure for this problem is specified in atm, which is not the default unit in ANSYS Fluent. You must
redefine the pressure unit as atm.
6.4.4. Models
1. Enable the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
260 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6.4.5. Materials
1. Define the settings for air, the default fluid material.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 261
Modeling Transient Compressible Flow
a. Select ideal-gas from the Density drop-down list in the Properties group box, so that the ideal gas
law is used to calculate density.
Note
ANSYS Fluent automatically enables the solution of the energy equation when the
ideal gas law is used, in case you did not already enable it manually in the Energy
dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
262 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Since you have set the operating pressure to zero, you will specify the boundary condition inputs for
pressure in terms of absolute pressures when you define them in the next step. Boundary condition inputs
for pressure should always be relative to the value used for operating pressure.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 263
Modeling Transient Compressible Flow
The inlet static pressure estimate is the mean pressure at the nozzle exit. This value will be used during
the solution initialization phase to provide a guess for the nozzle velocity.
c. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
264 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.
If substantial backflow occurs at the outlet, you may need to adjust the backflow values to levels
close to the actual exit conditions.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 265
Modeling Transient Compressible Flow
a. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.
b. Select Second Order Upwind from the Turbulent Kinetic Energy and Specific Dissipation Rate drop-
down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
266 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
The default Courant number for the density-based implicit formulation is 5. For relat-
ively simple problems, setting the Courant number to 10, 20, 100, or even higher
value may be suitable and produce fast and stable convergence. However, if you en-
counter convergence difficulties at the startup of the simulation of a properly set up
problem, then you should consider setting the Courant number to its default value
of 5. As the solution progresses, you can start to gradually increase the Courant
number until the final convergence is reached.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 267
Modeling Transient Compressible Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
268 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
When Write is enabled in the Surface Monitor dialog box, the mass flow rate history
will be written to a file. If you do not enable the write option, the history information
will be lost when you exit ANSYS Fluent.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 269
Modeling Transient Compressible Flow
b. Click Initialize.
You will enable dynamic adaption so that the solver periodically refines the mesh in the vicinity of the
shocks as the iterations progress. The shocks are identified by their large pressure gradients.
The mesh adaption criterion can either be the gradient or the curvature (second gradient). Because
strong shocks occur inside the nozzle, the gradient is used as the adaption criterion.
Mesh adaption can be controlled by the raw (or standard) value of the gradient, the scaled value (by
its average in the domain), or the normalized value (by its maximum in the domain). For dynamic
mesh adaption, it is recommended that you use either the scaled or normalized value because the
raw values will probably change strongly during the computation, which would necessitate a read-
justment of the coarsen and refine thresholds. In this case, the scaled gradient is used.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
270 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For steady-state flows, it is sufficient to only seldomly adapt the meshin this case an interval of
100 iterations is chosen. For time-dependent flows, a considerably smaller interval must be used.
e. Retain the default selection of Pressure... and Static Pressure from the Gradients of drop-down lists.
As the refined regions of the mesh get larger, the coarsen and refine thresholds should get smaller.
A coarsen threshold of 0.3 and a refine threshold of 0.7 result in a medium to strong mesh refine-
ment in combination with the scaled gradient.
i. Click the Controls... button to open the Mesh Adaption Controls dialog box.
To restrict the mesh adaption, the maximum number of cells can be limited. If this limit is violated
during the adaption, the coarsen and refine thresholds are adjusted to respect the maximum
number of cells. Additional restrictions can be placed on the minimum cell volume, minimum
number of cells, and maximum level of refinement.
iii. Click OK to save your settings and close the Mesh Adaption Controls dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 271
Modeling Transient Compressible Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
272 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
When you write the case and data files at the same time, it does not matter whether you
specify the file name with a .cas or .dat extension, as both will be saved.
10. Click OK in the Question dialog box to overwrite the existing file.
11. Review a mesh that resulted from the dynamic adaption performed during the computation.
a. Ensure that only the Edges option is enabled in the Options group box.
c. Ensure that all of the items are selected from the Surfaces selection list.
The mesh after adaption is displayed in the graphics window (Figure 6.4: 2D Nozzle Mesh after
Adaption (p. 274))
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 273
Modeling Transient Compressible Flow
e. Zoom in using the middle mouse button to view aspects of your mesh.
Notice that the cells in the regions of high pressure gradients have been refined.
12. Display the steady flow contours of static pressure (Figure 6.5: Contours of Static Pressure (Steady
Flow) (p. 276)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
274 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 275
Modeling Transient Compressible Flow
The steady flow prediction in Figure 6.5: Contours of Static Pressure (Steady Flow) (p. 276) shows the ex-
pected pressure distribution, with low pressure near the nozzle throat.
13. Display the steady-flow velocity vectors (Figure 6.6: Velocity Vectors Showing Recirculation (Steady
Flow) (p. 278)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
276 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The steady flow prediction shows the expected form, with a peak velocity of approximately 300 m/s
through the nozzle.
You can zoom in on the wall in the expansion region of the nozzle to view the recirculation of the
flow as shown in Figure 6.6: Velocity Vectors Showing Recirculation (Steady Flow) (p. 278) .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 277
Modeling Transient Compressible Flow
Important
Although the mass flow rate history indicates that the solution is converged, you should
also check the mass flux throughout the domain to ensure that mass is being conserved.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
278 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Click Compute and examine the values displayed in the dialog box.
Important
The net mass imbalance should be a small fraction (for example, 0.1%) of the
total flux through the system. The imbalance is displayed in the lower right field
under Net Results. If a significant imbalance occurs, you should decrease your
residual tolerances by at least an order of magnitude and continue iterating.
2. Read the user-defined function (pexit.c), in preparation for defining the transient condition for the
nozzle exit.
The pressure at the outlet is defined as a wave-shaped profile, and is described by the following equation:
(6.1)
where
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 279
Modeling Transient Compressible Flow
A user-defined function (pexit.c) has been written to define the equation (Equation 6.1 (p. 279)) required
for the pressure profile.
Note
To input the value of Equation 6.1 (p. 279) in the correct units, the function pexit.c has
to be written in SI units.
More details about user-defined functions can be found in the Fluent Customization Manual.
If the UDF source file is not in your working directory, then you must enter the entire directory path
for Source File Name instead of just entering the file name.
b. Click Interpret.
The user-defined function has already been defined, but it must be compiled within ANSYS Fluent before
it can be used in the solver.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
280 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select udf transient_pressure (the user-defined function) from the Gauge Pressure drop-down list.
For the transient case, the mesh adaption will be done every 10 time steps.
The refine and coarsen thresholds have been changed during the steady-state computation to meet
the limit of 20000 cells. Therefore, you must reset these parameters to their original values.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 281
Modeling Transient Compressible Flow
You must increase the maximum number of cells to try to avoid readjustment of the coarsen and
refine thresholds. Additionally, you must limit the minimum number of cells to 8000, because you
should not have a coarse mesh during the computation (the current mesh has approximately
20000 cells).
Because each time step requires 10 iterations, a smoother plot will be generated by plotting at every time
step.
a. Set Window to 3.
d. Select Time Step from the Get Data Every drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
282 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The selection of the time step is critical for accurate time-dependent flow predictions. Using a time step
of 2.85596 x 10-5 seconds, 100 time steps are required for one pressure cycle. The pressure cycle begins
and ends with the initial pressure at the nozzle exit.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 283
Modeling Transient Compressible Flow
Warning
Calculating 600 time steps will require significant CPU resources. Instead of calculating
the solution, you can read the case and data files (noz_uns.cas.gz and
noz_uns.dat.gz) with the precalculated solution. These files can be found in the
solution_files sub-folder that was created when you extracted the archive for
this tutorial.
By requesting 600 time steps, you are asking ANSYS Fluent to compute six pressure cycles. The mass flow
rate history is shown in Figure 6.7: Mass Flow Rate History (Transient Flow) (p. 284).
5. Optionally, you can review the effect of dynamic mesh adaption performed during transient flow compu-
tation as you did in steady-state flow case.
6. Save the transient case and data files (noz_uns.cas.gz and noz_uns.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
284 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Request the saving of case and data files every 10 time steps.
c. Retain the default selection of time-step from the Append File Name with drop-down list.
When ANSYS Fluent saves a file, it will append the time step value to the file name prefix (noz_anim).
The standard extensions (.cas and .dat) will also be appended. By adding the optional extension
.gz to the end of the file name, you instruct ANSYS Fluent to save the case and data files in com-
pressed format. This will yield file names of the form noz_anim-1-00640.cas.gz and
noz_anim-1-00640.dat.gz, where 00640 is the time step number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 285
Modeling Transient Compressible Flow
Tip
If you have constraints on disk space, you can restrict the number of files saved by
ANSYS Fluent by enabling the Retain Only the Most Recent Files option and setting
the Maximum Number of Data Files to a nonzero number.
2. Create animation sequences for the nozzle pressure and Mach number contour plots.
b. Enter pressure for the Name of the first sequence and mach-number for the second sequence.
c. Select Time Step from the When drop-down lists for both sequences.
The default value of 1 in the Every integer number entry box instructs ANSYS Fluent to update the
animation sequence at every time step.
d. Click the Define... button for pressure to open the associated Animation Sequence dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
286 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The In Memory option is acceptable for a small 2D case such as this. For larger 2D or 3D cases,
saving animation files with either the Metafile or PPM Image option is preferable, to avoid using
too much of your machines memory.
iii. Select Contours from the Display Type group box to open the Contours dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 287
Modeling Transient Compressible Flow
A. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down
lists.
D. Enter 0.25 atm for Min and 1.25 atm for Max.
This will set a fixed range for the contour plot and subsequent animation.
Figure 6.8: Pressure Contours at t=0.017136 s (p. 288) shows the contours of static pressure in
the nozzle after 600 time steps.
iv. Click OK to close the Animation Sequence dialog box associated with the pressure sequence.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
288 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note that the Active option is automatically enabled in the Solution Animation dialog box after
you have defined the sequence.
e. Click the Define... button for mach-number to open the associated Animation Sequence dialog box.
iii. Select Contours in the Display Type group box to open the Contours dialog box.
A. Select Velocity... and Mach Number from the Contours of drop-down lists.
Figure 6.9: Mach Number Contours at t=0.017136 s (p. 290) shows the Mach number contours
in the nozzle after 600 time steps.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 289
Modeling Transient Compressible Flow
iv. Click OK to close the Animation Sequence dialog box associated with the mach-number sequence.
By requesting 100 time steps, you will march the solution through an additional 0.0028 seconds, or
roughly one pressure cycle.
With the autosave and animation features active (as defined previously), the case and data files will be
saved approximately every 0.00028 seconds of the solution time; animation files will be saved every
0.000028 seconds of the solution time.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
290 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
When the calculation finishes, you will have ten pairs of case and data files and there will be 100 pairs
of contour plots stored in memory. In the next few steps, you will play back the animation sequences
and examine the results at several time steps after reading in pairs of newly saved case and data files.
Double buffering will allow for a smoother transition between the frames of the animations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 291
Modeling Transient Compressible Flow
Note
Alternatively, you can change the active window using the drop-down list at the top
of the graphics window.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
292 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click the play button (the second from the right in the group of buttons in the Playback group box).
Examples of pressure contours at s (the 630th time step) and s (the 670th time
step) are shown in Figure 6.10: Pressure Contours at t=0.017993 s (p. 294) and Figure 6.11: Pressure Contours
at t=0.019135 s (p. 295).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 293
Modeling Transient Compressible Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
294 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. In a similar manner to steps 4 and 5, select the appropriate active window and animation sequence name
for the Mach number contours.
Examples of Mach number contours at s and s are shown in Figure 6.12: Mach
Number Contours at t=0.017993 s (p. 296) and Figure 6.13: Mach Number Contours at t=0.019135 s (p. 297).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 295
Modeling Transient Compressible Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
296 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Tip
ANSYS Fluent gives you the option of exporting an animation as an MPEG file or as a
series of files in any of the hardcopy formats available in the Save Picture dialog box
(including TIFF and PostScript).
To save an MPEG file, select MPEG from the Write/Record Format drop-down list in the
Playback dialog box and then click the Write button. The MPEG file will be saved in your
working folder. You can view the MPEG movie using an MPEG player (for example, Win-
dows Media Player or another MPEG movie player).
To save a series of TIFF, PostScript, or other hardcopy files, select Picture Frames in the
Write/Record Format drop-down list in the Playback dialog box. Click the Picture Op-
tions... button to open the Save Picture dialog box and set the appropriate parameters
for saving the hardcopy files. Click Apply in the Save Picture dialog box to save your
modified settings. Click Save... to select a directory in which to save the files. In the
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 297
Modeling Transient Compressible Flow
Playback dialog box, click the Write button. ANSYS Fluent will replay the animation,
saving each frame to a separate file in your working folder.
If you want to view the solution animation in a later ANSYS Fluent session, you can select
Animation Frames as the Write/Record Format and click Write.
Warning
Because the solution animation was stored in memory, it will be lost if you exit
ANSYS Fluent without saving it in one of the formats described previously. Note
that only the animation-frame format can be read back into the Playback dialog
box for display in a later ANSYS Fluent session.
7. Read the case and data files for the 660th time step (noz_anim100660.cas.gz and noz_an-
im100660.dat.gz) into ANSYS Fluent.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
298 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
The transient flow prediction in Figure 6.14: Velocity Vectors at t=0.018849 s (p. 299) shows the expected
form, with peak velocity of approximately 260 m/s through the nozzle at seconds.
9. In a similar manner to steps 7 and 8, read the case and data files saved for other time steps of interest and
display the vectors.
6.5. Summary
In this tutorial, you modeled the transient flow of air through a nozzle. In doing so, you learned how
to:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 299
Modeling Transient Compressible Flow
set solution parameters for implicit time-stepping and apply a user-defined transient pressure profile
at the outlet.
use mesh adaption to refine the mesh in areas with high pressure gradients to better capture the shocks.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
300 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 7: Modeling Radiation and Natural Convection
This tutorial is divided into the following sections:
7.1. Introduction
7.2. Prerequisites
7.3. Problem Description
7.4. Setup and Solution
7.5. Summary
7.6. Further Improvements
7.1. Introduction
In this tutorial, combined radiation and natural convection are solved in a three-dimensional square
box on a mesh consisting of hexahedral elements.
Set the boundary conditions for a heat transfer problem involving natural convection and radiation.
Display velocity vectors and contours of wall temperature, surface cluster ID, and radiation heat flux.
7.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 301
Modeling Radiation and Natural Convection
flow and temperature patterns in the box, as well as the wall heat flux, using the surface-to-surface
(S2S) model available in ANSYS Fluent.
The working fluid has a Prandtl number of approximately 0.71, and the Rayleigh number based on
(0.25) is . This means the flow is most likely laminar. The Planck number is 0.006,
and measures the relative importance of conduction to radiation.
7.4.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
302 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the radiation_natural_convection_R170.zip link to download the input and solution files.
The mesh file rad.msh.gz can be found in the radiation_natural_convection folder created
after unzipping the file.
8. Use Fluent Launcher to start the 3D, single precision (disable Double Precision) version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
As the mesh is read, messages will appear in the console reporting the progress of the reading and the
mesh statistics. The mesh size will be reported as 64,000 cells. Once reading is complete, the mesh will
be displayed in the graphics window.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 303
Modeling Radiation and Natural Convection
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
304 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default settings of pressure-based steady-state solver in the Solver group box.
7.4.4. Models
1. Enable the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 305
Modeling Radiation and Natural Convection
The surface-to-surface (S2S) radiation model can be used to account for the radiation exchange in an
enclosure of gray-diffuse surfaces. The energy exchange between two surfaces depends in part on their
size, separation distance, and orientation. These parameters are accounted for by a geometric function
called a view factor.
The S2S model assumes that all surfaces are gray and diffuse. Thus according to the gray-body model,
if a certain amount of radiation is incident on a surface, then a fraction is reflected, a fraction is absorbed,
and a fraction is transmitted. The main assumption of the S2S model is that any absorption, emission,
or scattering of radiation by the medium can be ignored. Therefore only surface-to-surface radiation
is considered for analysis.
For most applications the surfaces in question are opaque to thermal radiation (in the infrared spectrum),
so the surfaces can be considered opaque. For gray, diffuse, and opaque surfaces it is valid to assume
that the emissivity is equal to the absorptivity and that reflectivity is equal to 1 minus the emissivity.
When the S2S model is used, you also have the option to define a partial enclosure. This option allows
you to disable the view factor calculation for walls with negligible emission/absorption or walls that
have uniform temperature. The main advantage of this option is to speed up the view factor calculation
and the radiosity calculation.
a. Click the Settings... button to open the View Factors and Clustering dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
306 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Retain the value of 1 for Faces per Surface Cluster for Flow Boundary Zones in the Manual group
box.
The S2S radiation model is computationally very expensive when there are a large number of
radiating surfaces. The number of radiating surfaces is reduced by clustering surfaces into surface
clusters. The surface clusters are made by starting from a face and adding its neighbors and
their neighbors until a specified number of faces per surface cluster is collected.
For a small problem, the default value of 1 for Faces per Surface Cluster for Flow Boundary
Zones is acceptable. For a large problem you can increase this number to reduce the memory
requirement for the view factor file that is saved in a later step. This may also lead to some reduc-
tion in the computational expense. However, this is at the cost of some accuracy. This tutorial il-
lustrates the influence of clusters.
iii. Ensure Ray Tracing is selected from the Method list in the View Factors group box.
iv. Click OK to close the View Factors and Clustering dialog box.
b. Click the Compute/Write/Read... button in the View Factors and Clustering group box to open the
Select File dialog box and to compute the view factors.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 307
Modeling Radiation and Natural Convection
The file created in this step will store the cluster and view factor parameters.
Note
The size of the view factor file can be very large if not compressed. It is highly
recommended to compress the view factor file by providing .gz or .Z extension
after the name (that is, rad_1.gz or rad_1.Z). For small files, you can provide
the .s2s extension after the name.
ANSYS Fluent will print an informational message describing the progress of the view factor cal-
culation in the console.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
308 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
f. Click Change/Create.
g. Click No when the Question dialog box appears, asking if you want to overwrite aluminum.
The Create/Edit Materials dialog box will be updated to show the new material, insulation, in the
Fluent Solid Materials drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 309
Modeling Radiation and Natural Convection
1. In the Operating Conditions dialog box, select the Specified Operating Density check box.
2. Enter 0 for Operating Density and close the Operating Conditions dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
310 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Thermal tab and select Mixed from the Thermal Conditions list.
2. Copy boundary conditions to define the side walls w-high-z and w-low-z.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 311
Modeling Radiation and Natural Convection
b. Select w-high-z and w-low-z from the To Boundary Zones selection list.
c. Click Copy.
d. Click OK when the Question dialog box opens asking whether you want to copy the boundary conditions
of w-high-x to all the selected zones.
a. Click the Thermal tab and select Temperature from the Thermal Conditions list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
312 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of aluminum from the Material Name drop-down list.
a. Click the Thermal tab and select Mixed from the Thermal Conditions list.
5. Copy boundary conditions to define the bottom wall (w-low-y) as previously done in this tutorial.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 313
Modeling Radiation and Natural Convection
c. Click Copy.
d. Click OK when the Question dialog box opens asking whether you want to copy the boundary conditions
of w-high-y to all the selected zones.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
314 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Select Body Force Weighted from the Pressure drop-down list in the Spatial Discretization group
box.
c. Retain the default selection of Second Order Upwind from the Momentum and Energy drop-down
lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 315
Modeling Radiation and Natural Convection
b. Enter 0.0001 for the Absolute Criteria of continuity, x-, y-, and z-velocity.
Decreasing the criteria for these residuals will improve the accuracy of the solution.
Solving Initialization
a. Retain the default selection of Hybrid Initialization from the Initialization Methods list.
b. Click Initialize.
It is good practice to use monitors of physical solution quantities together with residual monitors when
determining whether a solution is converged. In this step you will set up a surface monitor of the average
temperature on the z=0 plane.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
316 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.
ii. Click Compute and retain the default value of 0 for Iso-Values.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 317
Modeling Radiation and Natural Convection
i. Retain the default entry of surf-mon-1 for the Name of the surface monitor.
Note
Unlike residual values, data from other monitors is not saved as part of the solution
set when the ANSYS Fluent data file is saved. If you want to access the surface
monitor data in future ANSYS Fluent sessions, you can enable the Write option
and enter a File Name for the monitor output.
iii. Select Area-Weighted Average from the Report Type drop-down list.
iv. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
vi. Click OK to save the surface monitor settings and close the Surface Monitor dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
318 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Calculate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 319
Modeling Radiation and Natural Convection
The surface monitor history shows that the average temperature on zz_center_z has stabilized, thus
confirming that the solution has indeed reached convergence. You can view the behavior of the residuals
(Figure 7.4: Scaled Residuals (p. 321)) in the Scaled Residuals graphics window tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
320 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
7.4.9. Postprocessing
1. Enable the postprocessing view by clicking in the objects toolbar and selecting Post Processing.
2. Disable lighting.
3. Create a new surface, zz_x_side, which will be used later to plot wall temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 321
Modeling Radiation and Natural Convection
Note
If you want to delete or otherwise manipulate any surfaces, click Manage... to open
the Surfaces dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
322 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Temperature... and Static Temperature from the Contours of drop-down lists.
d. Enable the Draw Mesh option in the Options group box to open the Mesh Display dialog box.
g. Click Display, rotate the view as shown in Figure 7.5: Contours of Static Temperature (p. 324), and close
the Contours dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 323
Modeling Radiation and Natural Convection
A regular check for most buoyant cases is to look for evidence of stratification in the temperature field.
This is observed as nearly horizontal bands of similar temperature. These may be broken or disturbed by
buoyant plumes. For this case you can expect reasonable stratification with some disturbance at the
vertical walls where the air is driven around. Inspection of the temperature contours in Figure 7.5: Contours
of Static Temperature (p. 324) reveals that the solution appears as expected.
5. Create and display a contour definition for wall temperature (surfaces in contact with the fluid).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
324 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Ensure that the Filled option is enabled in the Options group box.
d. Select Temperature... and Wall Temperature from the Contours of drop-down lists.
e. Select all surfaces except default-interior and zz_x_side in the Surfaces selection list.
g. Click Save/Display, and rotate the view as shown in Figure 7.6: Contours of Wall Temperature (p. 326).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 325
Modeling Radiation and Natural Convection
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
326 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Ensure that the Filled option is enabled in the Options group box.
c. Select Wall Fluxes... and Radiation Heat Flux from the Contours of drop-down list.
d. Make sure that all surfaces except default-interior and zz_x_side are selected in the Surfaces selection
list.
e. Click Display.
Figure 7.7: Contours of Radiation Heat Flux (p. 328) shows the radiating wall (w-low-x) with positive
heat flux and all other walls with negative heat flux.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 327
Modeling Radiation and Natural Convection
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
328 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default selection of Velocity from the Vectors of drop-down list.
b. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down lists.
d. Enable the Draw Mesh option in the Options group box to open the Mesh Display dialog box.
ii. Click Display and close the Mesh Display dialog box.
f. Click Display and rotate the view as shown in Figure 7.8: Vectors of Velocity Magnitude (p. 330).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 329
Modeling Radiation and Natural Convection
8. Compute view factors and radiation emitted from the front wall (w-high-x) to all other walls.
In the Postprocessing tab, click S2S Information... (Model Specific group box).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
330 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Ensure that the View Factors option is enabled in the Report Options group box.
The computed values of the view factors and incident radiation are displayed in the console. A view
factor of approximately 0.2 for each wall is a good value for the square box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 331
Modeling Radiation and Natural Convection
b. Select all boundary zones except default-interior from the Boundaries selection list.
c. Click Compute.
Note
a. Retain the selection of Total Heat Transfer Rate from the Options list.
b. Deselect all boundary zones and select w-low-x from the Boundaries selection list.
c. Click Compute.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
332 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select all boundary zones except default-interior from the Boundaries selection list.
c. Click Compute.
Note
a. Retain the selection of Radiation Heat Transfer Rate from the Options list.
b. Deselect all boundary zones and select w-low-x from the Boundaries selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 333
Modeling Radiation and Natural Convection
The net heat load is approximately 51 W. After comparing the total heat transfer rate and radiation heat
transfer rate, it can be concluded that radiation is the dominant mode of heat transfer.
a. Select Temperature... and Wall Temperature from the Y Axis Function drop-down lists.
b. Retain the default selection of Direction Vector from the X Axis Function drop-down list.
d. Click Plot (Figure 7.9: Temperature Profile Along the Outer Surface of the Box (p. 335)).
e. Enable the Write to File option and click the Write... button to open the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
334 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 7.9: Temperature Profile Along the Outer Surface of the Box
14. Save the case and data files (rad_b_1.cas.gz and rad_b_1.dat.gz).
a. Click the Settings... button to open the View Factors and Clustering dialog box.
i. Enter 10 for Faces per Surface Cluster for Flow Boundary Zones in the Manual group box.
iii. Click OK to close the View Factors and Clustering dialog box.
b. Click the Compute/Write/Read... button to open the Select File dialog box and to compute the view
factors.
Specify a name for the S2S file that will store the cluster and view factor parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 335
Modeling Radiation and Natural Convection
5. In a similar manner described in the steps 13.a 13.g of Postprocessing (p. 321), display the temperature
profile for the side wall and write it to a file named tp_10.xy.
6. Repeat the procedure, outlined in steps 1 5 of this section, for 100, 400, 800, and 1600 faces per surface
cluster and save the respective S2S files (for example, rad_100.s2s.gz), case and data files (for example,
rad_100.cas.gz), and temperature profile files (for example, tp_100.xy).
7. Display contours of wall temperature for all six cases using the wall-temperature definition you created
earlier.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
336 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 337
Modeling Radiation and Natural Convection
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
338 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 7.12: Contours of Wall Temperature: 100 Faces per Surface Cluster
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 339
Modeling Radiation and Natural Convection
Figure 7.13: Contours of Wall Temperature: 400 Faces per Surface Cluster
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
340 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 7.14: Contours of Wall Temperature: 800 Faces per Surface Cluster
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 341
Modeling Radiation and Natural Convection
Figure 7.15: Contours of Wall Temperature: 1600 Faces per Surface Cluster
8. Display contours of surface cluster ID for 1600 faces per surface cluster (Figure 7.16: Contours of Surface
Cluster ID1600 Faces per Surface Cluster (FPSC) (p. 344)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
342 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Ensure that the Filled option is enabled in the Options group box.
d. Select Radiation... and Surface Cluster ID from the Contours of drop-down lists.
e. Ensure that all surfaces except default-interior and zz_x_side are selected in the Surfaces selection
list.
f. Click Display and rotate the view as shown in Figure 7.16: Contours of Surface Cluster ID1600 Faces
per Surface Cluster (FPSC) (p. 344).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 343
Modeling Radiation and Natural Convection
Figure 7.16: Contours of Surface Cluster ID1600 Faces per Surface Cluster (FPSC)
9. Read rad_400.cas.gz and rad_400.dat.gz and, in a similar manner to the previous step, display
contours of surface cluster ID (Figure 7.17: Contours of Surface Cluster ID400 FPSC (p. 345)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
344 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 7.17: Contours of Surface Cluster ID400 FPSC (p. 345) shows contours of Surface Cluster ID for
400 FPSC. This case shows better clustering compared to all of the other cases.
10. Create a plot that compares the temperature profile plots for 1, 10, 100, 400, 800, and 1600 FPSC.
a. Click the Add... button to open the Select File dialog box.
i. Select the file tp_1.xy that you created in step 11 of Postprocessing (p. 321).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 345
Modeling Radiation and Natural Convection
ii. Enter 1 in the text box to the left of the Change Legend Entry button.
ANSYS Fluent will update the Legend Entry text for the file tp_1.xy.
c. Load the files tp_10.xy, tp_100.xy, tp_400.xy, tp_800.xy, and tp_1600.xy and change
their legend entries accordingly, in a manner similar to the previous two steps (a and b).
ii. Enter 3 for Precision in the Number Format group box and click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
346 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Click Plot (Figure 7.18: A Comparison of Temperature Profiles along the Outer Surface of the Box (p. 347))
and close the File XY Plot dialog box.
Figure 7.18: A Comparison of Temperature Profiles along the Outer Surface of the Box
In the steps that follow, you will specify the radiating wall (w-low-x) as a boundary zone that is not particip-
ating in the S2S radiation model. Consequently, you will specify the partial enclosure temperature for the
wall. Note that the partial enclosure option may not yield accurate results in cases that have multiple wall
boundaries that are not participating in S2S radiation and that each have different temperatures. This is
because a single partial enclosure temperature is applied to all of the non-participating walls.
1. Read the case file saved previously for the S2S model (rad_b_1.cas.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 347
Modeling Radiation and Natural Convection
b. Disable the Participates in View Factor Calculation option in the S2S Parameters group box.
Click OK to close the dialog box informing you that you must recompute viewfactors.
a. Click the Settings... button to open the View Factors and Clustering dialog box.
b. Click the Select... button to open the Participating Boundary Zones dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
348 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Click OK to close the dialog box informing you that you must recompute viewfactors.
d. Click the Compute/Write/Read... button to open the Select File dialog box and to compute the view
factors.
The view factor file will store the view factors for the radiating surfaces only. This may help you control
the size of the view factor file as well as the memory required to store view factors in ANSYS Fluent.
Furthermore, the time required to compute the view factors will be reduced, as only the view factors
for radiating surfaces will be calculated.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 349
Modeling Radiation and Natural Convection
a. Ensure that Radiation Heat Transfer Rate is selected from the Options list.
b. Select all boundary zones except default-interior from the Boundaries selection list.
The Flux Reports dialog box does not report any heat transfer rate for the radiating wall (w-low-x),
because you specified that it not participate in the view factor calculation. The remaining walls report
similar rates to those obtained in step 9 of Postprocessing (p. 321), indicating that in this case the use of
a partial enclosure saved computation time without significantly affecting the results.
8. Compare the temperature profile for the side wall to the profile saved in tp_1.xy.
a. Display the temperature profile for the side wall, zz_x_side, and write it to a file named tp_par-
tial.xy, in a manner similar to the instructions shown in step 13 of Postprocessing (p. 321).
i. Select tp_1.xy.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
350 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
c. Click Plot.
Figure 7.19: Wall Temperature Profile Comparison (p. 351) further confirms that the use of a partial enclosure
did not significantly affect the results.
7.5. Summary
In this tutorial you studied combined natural convection and radiation in a three-dimensional square
box and compared how varying the settings of the surface-to-surface (S2S) radiation model affected
the results. The S2S radiation model is appropriate for modeling the enclosure radiative transfer without
participating media, whereas the methods for participating radiation may not always be efficient.
For more information about the surface-to-surface (S2S) radiation model, see the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 351
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
352 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 8: Using the Discrete Ordinates Radiation Model
This tutorial is divided into the following sections:
8.1. Introduction
8.2. Prerequisites
8.3. Problem Description
8.4. Setup and Solution
8.5. Summary
8.6. Further Improvements
8.1. Introduction
This tutorial illustrates the setup and solution of flow and thermal modeling of a headlamp. The discrete
ordinates (DO) radiation model will be used to model the radiation.
Understand the effect of pixels and divisions on temperature predictions and solver speed.
8.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 353
Using the Discrete Ordinates Radiation Model
The ambient conditions to be considered are quiescent air at 20C. Heat exchange between the lamp
and the surroundings will occur by conduction, convection and radiation. The rear reflector is assumed
to be well insulated and heat losses will be ignored. The purpose of the baffle is to shield the lens from
direct radiation. Both the reflector and baffle are made from polished metal having a low emissivity
and mirror-like finish; their combined effect should distribute the light and heat from the bulb across
the lens. The lens is made from glass and has a refractive index of 1.5.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
354 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the do_rad_R170.zip link to download the input and solution files.
The mesh file do.msh.gz can be found in the do_rad folder created after unzipping the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
8.4.2. Mesh
1. Read the mesh file do.msh.gz.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 355
Using the Discrete Ordinates Radiation Model
As the mesh file is read, ANSYS Fluent will report the progress in the console.
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Reordering the mesh can improve computation speed and convergence, particularly for large cases.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
356 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
It is good practice to check the mesh after manipulating it (scale, convert to polyhedra,
merge, separate, fuse, add zones, or smooth and swap).
Tip
Because you have scaled the mesh, it may be helpful to click the Fit to Window icon
in the toolbar to resize the display of the mesh appropriately.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 357
Using the Discrete Ordinates Radiation Model
c. Enable Gravity.
8.4.4. Models
1. Enable the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
358 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Radiation Model dialog box expands to show the related inputs.
As radiation will be the dominant mode of heat transfer, it is beneficial to reduce the interval between
calculations. For this small 2D case we will reduce it to 1.
In later steps you will adjust the angular discretization settings and compare the results.
An Information dialog box will appear, indicating that material properties have changed.
8.4.5. Materials
1. Set the properties for air.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 359
Using the Discrete Ordinates Radiation Model
a. Ensure air is selected as the material in the Fluent Fluid Materials drop-down list.
Since pressure variations are insignificant compared to temperature variation, we choose incompress-
ible-ideal-gas law for density.
d. Click Change/Create.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
360 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Enter lens for Name and delete the entry in the Chemical Formula field.
h. Click Change/Create.
A Question dialog box will open, asking if you want to overwrite aluminum.
i. Click No in the Question dialog box to retain aluminum and add the new material (lens) to the mater-
ials list.
The Create/Edit Materials dialog box will be updated to show the new material, lens, in the ANSYS
Fluent Solid Materials drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 361
Using the Discrete Ordinates Radiation Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
362 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of air from the Material Name drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 363
Using the Discrete Ordinates Radiation Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
364 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 365
Using the Discrete Ordinates Radiation Model
a. Double-click baffle in the Zone list to open the Wall dialog box.
b. Click the Thermal tab and enter 0.1 for Internal Emissivity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
366 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Double-click baffle-shadow in the Zone list to open the Wall dialog box.
b. Click the Thermal tab and enter 0.1 for Internal Emissivity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 367
Using the Discrete Ordinates Radiation Model
a. Double-click bulb-outer in the Zone list to open the Wall dialog box.
b. Click the Thermal tab and enter 150000 W/m2 for Heat Flux.
The circumference of bulb-outer is approximately 0.004 m. Therefore the 600 W/m lineal heat flux
specified in the problem description corresponds to 150000 W/m2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
368 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Double-click housing in the Zone list to open the Wall dialog box.
b. Click the Thermal tab and select Mixed in the Thermal Conditions group box.
The inner and outer surface of the lens will be set to semi-transparent conditions. This allows radiation
to be transmitted through the wall between the two adjacent participating cell zones. It also calculates
the effects of reflection and refraction at the interface. These effects occur because of the change in re-
fractive index (set through the material properties) and are a function of the incident angle of the radiation
and the surface finish. In this case, the lens is assumed to have a very smooth surface so the diffuse
fraction will be set to 0.
On the internal walls (wall/wall-shadows) it is important to note the adjacent cell zone: this is the zone
the surface points into and may influence the settings on the diffuse fraction (these can be different on
both sides of the wall).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 369
Using the Discrete Ordinates Radiation Model
a. Double-click lens-inner in the Zone list to open the Wall dialog box.
a. Double-click lens-inner-shadow in the Zone list to open the Wall dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
370 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The surface of the lamp cools mainly by natural convection to the surroundings. As the outer lens is
transparent it must also lose radiation to the surroundings, while the surroundings will supply a small
source of background radiation associated with the temperature. For the lens, a semi-transparent condition
is used on the outside wall. A mixed thermal condition provides the source of background radiation as
well as calculating the convective cooling on the outer lens wall. For a semi-transparent wall, the source
of background radiation is added directly to the DO radiation rather than to the energy equation; an
external emissivity of 1 is used, in keeping with the assumption of a small object in a large enclosure. As
the background radiation is supplied from the thermal conditions, there is no need to supply this as a
source of irradiation under the Radiation tab for the wall boundary condition. The only other setting
required here is the surface finish of the outer surface of the lens; the diffuse fraction should be set to 0
as the lens is assumed to be smooth.
a. Double-click lens-outer in the Zone list to open the Wall dialog box.
b. Click the Thermal tab and select Mixed in the Thermal Conditions group box.
For a semi-transparent wall the internal emissivity has no effect as there is no absorption or emission
on the surface. So the set value is irrelevant.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 371
Using the Discrete Ordinates Radiation Model
Like the baffles, the reflector is made of highly polished aluminum, giving it highly reflective surface
property; about 90% of incident radiation reflects from this surface so only about 10% gets absorbed.
Based on Kirchhoffs law, we can assume emissivity equals absorptivity. Therefore, we apply internal
emissivity = 0.1. We also assume a clean reflector (diffuse fraction = 0).
a. Double-click reflector in the Zone list to open the Wall dialog box.
b. Click the Thermal tab and enter 0.1 for Internal Emissivity.
8.4.8. Solution
1. Set the solution parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
372 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Body Force Weighted from the Pressure drop-down list in the Spatial Discretization group
box.
The Body Force Weighted pressure scheme is recommended for all natural convection models.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 373
Using the Discrete Ordinates Radiation Model
Solving Initialization
b. Click Calculate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
374 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8.4.9. Postprocessing
1. Create a velocity vector plot.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 375
Using the Discrete Ordinates Radiation Model
c. Retain the default selection of Velocity from the Vectors of drop-down list.
d. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down list.
Tip
You may need to click the Fit to Window button to center the vector graphic in your
graphics window.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
376 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 377
Using the Discrete Ordinates Radiation Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
378 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Select Temperature... and Static Temperature from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 379
Using the Discrete Ordinates Radiation Model
a. Disable both Node Values and Position on X Axis in the Options group box.
c. Enter 0 and 1 for X and Y, respectively, in the Plot Direction group box.
d. Retain the default selection of Direction Vector from the Y Axis Function drop-down list.
e. Select Temperature... and Wall Temperature from the X Axis Function drop-down lists.
g. Click the Axes... button to open the Axes - Solution XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
380 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iii. Select float from the Type drop-down list in the Number Format group box.
v. Click Apply.
viii.Select float from the Type drop-down list in the Number Format group box.
x. Click Apply and close the Axes - Solution XY Plot dialog box.
h. Click the Curves... button to open the Curves - Solution XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 381
Using the Discrete Ordinates Radiation Model
i. Select the line pattern as shown in the Curves - Solution XY Plot dialog box.
ii. Select the symbol pattern as shown in the Curves - Solution XY Plot dialog box.
iii. Click Apply and close the Curves - Solution XY Plot dialog box.
i. Click Plot (Figure 8.6: Temperature Profile for lens-inner (p. 382)).
j. Enable Write to File and click the Write... button to open the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
382 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For semi-transparent and reflective surfaces, increasing accuracy by increasing pixelation is more efficient
than increasing theta and phi divisions.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 383
Using the Discrete Ordinates Radiation Model
c. Enable Write to File and click the Write... button to open the Select File dialog box.
d. Click the Load File... button to open the Select File dialog box.
i. Select do_2x2div_1x1pix.xy.
e. Click the Curves... button to open Curves - Solution XY Plot dialog box.
i. Set Curve # to 1.
ii. Select the line pattern as shown in the Curves - Solution XY Plot dialog box (shown below)
iii. Select the symbol pattern as shown in the Curves - Solution XY Plot dialog box (shown below).
iv. Click Apply and close the Curves - Solution XY Plot dialog box.
g. Click Plot (Figure 8.7: Temperature Profile for lens-inner (p. 385)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
384 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Continue iterations.
b. Ensure that all files are deselected from the File Data selection list.
d. Click Plot.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 385
Using the Discrete Ordinates Radiation Model
9. Repeat the procedure for 10 Theta Pixels and Phi Pixels and save the case and data files
(do_2x2div_10x10pix.cas.gz and do_2x2div_10x10pix.dat.gz).
b. Click the Load File... button to open the Select File dialog box.
i. Select all the xy files in the order that you created them and close the Select File dialog box.
Note
Make sure you deselect lens-inner from the Surfaces list so that there is no duplicated plot.
c. Click the Curves... button to open Curves - Solution XY Plot dialog box.
i. Select the line pattern as shown in the Curves - Solution XY Plot dialog box.
ii. Select the symbol pattern as shown in the Curves - Solution XY Plot dialog box.
vi. Click Apply and close the Curves - Solution XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
386 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Read the case and data files that you saved earlier for 3 Theta Pixels and 3 Phi Pixels
(do_2x2div_3x3pix.cas.gz and do_2x2div_3x3pix.dat.gz).
2. Change Theta Divisions and Phi Divisions to 3 and continue the calculation.
a. Plot the temperature distribution as before and save the file as do_3x3div_3x3pix.xy.
5. Read in all the files for Theta Divisions and Phi Divisions of 2, 3, and 5 and display temperature profiles.
Make sure you deselect lens-inner from the Surfaces list so that no plots are duplicated.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 387
Using the Discrete Ordinates Radiation Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
388 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Click Compute.
Note
The net heat load is -0.0170 W, which equates to an imbalance of approximately 0.003%
when compared against the heat load of the bulb.
b. Retain the selection of all boundary zones from the Boundaries selection list.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 389
Using the Discrete Ordinates Radiation Model
b. Select Wall Fluxes... and Surface Incident Radiation from the Field Variable drop-down lists.
c. Select all surfaces except air-interior and lens-interior from the Surfaces selection list.
d. Click Compute.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
390 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the selection of Integral from the Report Type drop-down list.
b. Select Wall Fluxes... and Reflected Radiation Flux from the Field Variable drop-down lists.
c. Select all surfaces except air-interior and lens-interior from the Surfaces selection list.
d. Click Compute.
Reflected radiation flux values are printed in the console for all the zones. The zone baffle is facing the
filament and its shadow (baffle-shadow) is facing the lens. There is much more reflection on the filament
side than on the lens side, as expected.
lens-inner is facing the fluid and lens-inner-shadow is facing the lens. Due to different refractive indexes
and nonzero absorption coefficient on the lens, there is some reflection at the interface. Reflection on
lens-inner-shadow is the reflected energy of the incident radiation from the lens side. Reflection on lens-
inner is the reflected energy of the incident radiation from the fluid side.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 391
Using the Discrete Ordinates Radiation Model
a. Retain the selection of Integral from the Report Type drop-down list.
b. Select Wall Fluxes... and Transmitted Radiation Flux from the Field Variable drop-down lists.
c. Ensure that all surfaces are selected except air-interior and lens-interior from the Surfaces selection
list.
d. Click Compute.
Transmitted radiation flux values are printed in the console for all the zones. All surfaces are opaque
except lens. Zero transmission for all surfaces indicate that they are opaque.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
392 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the selection of Integral from the Report Type drop-down list.
b. Select Wall Fluxes... and Absorbed Radiation Flux from the Field Variable drop-down lists.
c. Ensure that all surfaces are selected except air-interior and lens-interior from the Surfaces selection
list.
d. Click Compute.
Absorption will only occur on opaque surface with a nonzero internal emissivity adjacent to participating
cell zones. Note that absorption will not occur on a semi-transparent wall (irrespective of the setting for
internal emissivity). In semi-transparent media, absorption and emission will only occur as a volumetric
effect in the participating media with nonzero absorption coefficients.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 393
Using the Discrete Ordinates Radiation Model
4. Plot the temperature profiles with the increased diffuse fraction for the reflector.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
394 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
5. Plot the temperature profile for lens-inner based on the modified baffle.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 395
Using the Discrete Ordinates Radiation Model
8.5. Summary
This tutorial demonstrated the modeling of radiation using the discrete ordinates (DO) radiation model
in ANSYS Fluent. In this tutorial, you learned the use of angular discretization and pixelation available
in the discrete ordinates radiation model and solved for different values of Pixels and Divisions. You
studied the change in behavior for higher absorption coefficient. Changes in internal emissivity, refractive
index, and diffuse fraction are illustrated with the temperature profile plots.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
396 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 9: Using a Non-Conformal Mesh
This tutorial is divided into the following sections:
9.1. Introduction
9.2. Prerequisites
9.3. Problem Description
9.4. Setup and Solution
9.5. Summary
9.6. Further Improvements
9.1. Introduction
Film cooling is a process that is used to protect turbine vanes in a gas turbine engine from exposure
to hot combustion gases. This tutorial illustrates how to set up and solve a film cooling problem using
a non-conformal mesh. The system that is modeled consists of three parts: a duct, a hole array, and a
plenum. The duct is modeled using a hexahedral mesh, and the plenum and hole regions are modeled
using a tetrahedral mesh. These two meshes are merged together to form a hybrid mesh, with a non-
conformal interface boundary between them.
Due to the symmetry of the hole array, only a portion of the geometry is modeled in ANSYS Fluent,
with symmetry applied to the outer boundaries. The duct contains a high-velocity fluid in streamwise
flow (Figure 9.1: Schematic of the Problem (p. 398)). An array of holes intersects the duct at an inclined
angle, and a cooler fluid is injected into the holes from a plenum. The coolant that moves through the
holes acts to cool the surface of the duct, downstream of the injection. Both fluids are air, and the flow
is classified as turbulent. The velocity and temperature of the streamwise and cross-flow fluids are
known, and ANSYS Fluent is used to predict the flow and temperature fields that result from convective
heat transfer.
Model heat transfer across a non-conformal interface with specified temperature and velocity boundary
conditions.
9.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 397
Using a Non-Conformal Mesh
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Only a portion of the domain needs to be modeled because of the symmetry of the geometry. The bulk
temperature of the streamwise air ( ) is 450 K, and the velocity of the air stream is 20 m/s. The bottom
wall of the duct that intersects the hole array is assumed to be a completely insulated (adiabatic) wall.
The secondary (injected) air enters the plenum at a uniform velocity of 0.4559 m/s. The temperature of
the injected air ( ) is 300 K. The properties of air that are used in the model are also mentioned in
Figure 9.1: Schematic of the Problem (p. 398).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
398 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
9.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the non_conformal_mesh_R170.zip link to download the input and solution files.
The input files film_hex.msh and film_tet.msh can be found in the non_conformal_mesh
folder created after unzipping the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 399
Using a Non-Conformal Mesh
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
9.4.2. Mesh
1. Read the hex mesh file film_hex.msh.
The Append Case File... functionality allows you to combine two mesh files into one single mesh file.
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
400 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select in from the Mesh Was Created In drop-down list by first clicking the down-arrow button and
then clicking the in item from the list that appears.
d. Select in from the View Length Unit In drop-down list to set inches as the working unit for length.
Note
It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.
b. Ensure Edges is the only option enabled in the Options group box.
c. Click Display.
7. Manipulate the mesh display to obtain a front view as shown in Figure 9.2: Hybrid Mesh for Film Cooling
Problem (p. 403).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 401
Using a Non-Conformal Mesh
b. Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
402 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8. Zoom in using the middle mouse button to view the hole and plenum regions (Figure 9.3: Hybrid Mesh
(Zoomed-In View) (p. 404)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 403
Using a Non-Conformal Mesh
In Figure 9.3: Hybrid Mesh (Zoomed-In View) (p. 404), you can see the quadrilateral faces of the hexahedral
cells that are used to model the duct region and the triangular faces of the tetrahedral cells that are used
to model the plenum and hole regions, resulting in a hybrid mesh. Figure 9.4: Mesh for the wall-1 and
wall-7 Boundaries (p. 418) shows the non-conformal intersection of the tetrahedral and hexahedral meshes.
Extra
You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
window, its zone number, name, and type will be printed in the ANSYS Fluent console.
This feature is especially useful when you have several zones of the same type and you
want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
404 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
9.4.4. Models
1. Enable heat transfer by enabling the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 405
Using a Non-Conformal Mesh
The Viscous Model dialog box will expand to show the additional input options for the - model.
Note
The default Standard Wall Functions are generally applicable if the first cell center
adjacent to the wall has a y+ larger than 30. In contrast, the Enhanced Wall Treatment
option provides consistent solutions for all y+ values. Enhanced Wall Treatment is
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
406 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
recommended when using the k-epsilon model for general single-phase fluid flow
problems. For more information about Near Wall Treatments in the k-epsilon model
refer to the Fluent Users Guide.
9.4.5. Materials
1. Define the material properties.
a. Ensure air is selected from the Fluent Fluid Materials drop-down list.
The incompressible ideal gas law is used when pressure variations are small but temperature variations
are large. The incompressible ideal gas option for density treats the fluid density as a function of
temperature only. If the above condition is satisfied, the incompressible ideal gas law generally gives
better convergence compared to the ideal gas law, without sacrificing accuracy.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 407
Using a Non-Conformal Mesh
b. Retain the default selection of air from the Material Name drop-down list.
2. Set the conditions for the fluid in the first plenum and hole (fluid-8).
b. Retain the default selection of air from the Material Name drop-down list.
3. Set the conditions for the fluid in the second plenum and hole (fluid-9.1).
b. Retain the default selection of air from the Material Name drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
408 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For the incompressible-ideal-gas law selected here for air, the constant pressure used for the density
calculation is the Operating Pressure specified in this dialog box. So, make sure that the Operating
Pressure is close to the mean pressure of the domain.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 409
Using a Non-Conformal Mesh
a. Double-click velocity-inlet-1 in the Zone list of the Boundary Conditions task page.
d. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.
e. Enter 1% and 5 in for the Turbulent Intensity and the Hydraulic Diameter, respectively.
f. Click the Thermal tab and enter 450 K for the Temperature.
2. Set the boundary conditions for the first injected stream inlet (velocity-inlet-5).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
410 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Double-click velocity-inlet-5 in the Zone list of the Boundary Conditions task page.
d. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.
e. Enter 1% for Turbulent Intensity and retain the default setting of 10 for Turbulent Viscosity Ratio.
f. Click the Thermal tab and retain the setting of 300 K for Temperature.
In the absence of any identifiable length scale for turbulence, the Intensity and Viscosity Ratio method
should be used.
For more information about setting the boundary conditions for turbulence, see the Fluent Users
Guide.
3. Copy the boundary conditions set for the first injected stream inlet.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 411
Using a Non-Conformal Mesh
c. Click Copy.
A Question dialog box will open, asking if you want to copy velocity-inlet-plenum1 boundary
conditions to (velocity-inlet-6). Click OK.
Warning
Copying a boundary condition does not create a link from one zone to another.
If you want to change the boundary conditions on these zones, you will have
to change each one separately.
4. Set the boundary conditions for the second injected stream inlet (velocity-inlet-6).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
412 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Double-click velocity-inlet-6 in the Zone list of the Boundary Conditions task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 413
Using a Non-Conformal Mesh
a. Double-click pressure-outlet-1 in the Zone list of the Boundary Conditions task page.
d. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.
e. Enter 1% for Backflow Turbulent Intensity and retain the default setting of 10 for Backflow Turbulent
Viscosity Ratio.
f. Click the Thermal tab and enter 450 K for Backflow Total Temperature.
Note
The settings you specify at the pressure outlet will be used only if flow enters the domain
through this boundary. It is important to set reasonable values for these downstream
scalar values, in case flow reversal occurs at some point during the calculation.
7. Retain the default boundary conditions for the plenum and hole walls (wall-4 and wall-5).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
414 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8. Verify that the symmetry planes are set to the correct type by expanding the Boundary Conditions branch
in the Tree.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 415
Using a Non-Conformal Mesh
By expanding the Boundary Conditions branch of the Tree, you can verify that symmetry-1,
symmetry-5, symmetry-7, symmetry-tet1, and symmetry-tet2 all have (symmetry) to the right
of their names.
9. Define the zones on the non-conformal boundary as interface zones by changing the Type for wall-1,
wall-7, and wall-8 to interface.
The non-conformal mesh interface contains three boundary zones: wall-1, wall-7, and wall-8. wall-1 is
the bottom surface of the duct, wall-7 and wall-8 represent the holes through which the cool air is injected
from the plenum (Figure 9.4: Mesh for the wall-1 and wall-7 Boundaries (p. 418)). These boundaries were
defined as walls in the original mesh files (film_hex.msh and film_tet.msh) and must be redefined
as interface boundary types.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
416 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iii. Expand the wall branch by Ctrl + left-clicking +wall- [5,0] in the Surfaces group box.
iv. Select wall-1, wall-7, and wall-8 from the Surfaces selection list.
Use the scrollbar to access the surfaces that are not initially visible.
Zoom in using the middle mouse button. Figure 9.4: Mesh for the wall-1 and wall-7 Boundar-
ies (p. 418) shows the mesh for the wall-1 and wall-7 boundaries (that is, hole-1). Similarly, you
can zoom in to see the mesh for the wall-1 and wall-8 boundaries (that is, hole-2).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 417
Using a Non-Conformal Mesh
c. Change the Type definition for wall-1, wall-7 and wall-8 to interface.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
418 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Similarly, convert wall-7 and wall-8 to interface boundary zones, specifying interface-hole1 and
interface-hole2 for Zone Name, respectively.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 419
Using a Non-Conformal Mesh
Warning
When one interface zone is smaller than the other, choose the smaller zone as Inter-
face Zone 1.
4. Click Create.
In the process of creating the mesh interface, ANSYS Fluent will create three new wall boundary zones:
wall-24, wall-25, and wall-26.
wall-24 and wall-25 are the non-overlapping regions of the interface-hole1 and interface-hole2 zones
that result from the intersection of the interface-hole1, interface-hole2, and interface-duct boundary
zones. They are listed under Boundary Zone 1 in the Create/Edit Mesh Interfaces dialog box. These wall
boundaries are empty, since interface-hole1 and interface-hole2 are completely contained within the in-
terface-duct boundary.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
420 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
wall-26 is the non-overlapping region of the interface-duct zone that results from the intersection of the
three interface zones, and is listed under Boundary Zone 2 in the Create/Edit Mesh Interfaces dialog box.
Warning
You need to set boundary conditions for wall-26 (since it is not empty). In this case,
the default settings are used.
9.4.10. Solution
1. Set the solution parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 421
Using a Non-Conformal Mesh
For many general fluid-flow problems, convergence speed can be improved by using the coupled
solver.
b. Select Second Order Upwind from the Turbulent Kinetic Energy and Turbulent Dissipation Rate
drop-down lists in the Spatial Discretization group box.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
422 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click Initialize.
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the conver-
gence behavior of the solver.
b. Click Calculate.
Note
If you choose a filename that already exists in the current directory, ANSYS Fluent will
prompt you for confirmation to overwrite the file.
9.4.11. Postprocessing
1. Display and save filled contours of static pressure (Figure 9.5: Contours of Static Pressure (p. 425)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 423
Using a Non-Conformal Mesh
c. Ensure that Pressure... and Static Pressure are selected from the Contours of drop-down lists.
Use the scroll bar to access the surfaces that are not initially visible in the Contours dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
424 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The maximum pressure change (see Figure 9.5: Contours of Static Pressure (p. 425)) is only 232 Pa.
Compared to a mean pressure of 1.013e5 Pa, the variation is less than 0.3%, therefore the use of the
incompressible ideal gas law is appropriate.
f. Reset the view to the default view if you changed the default display of the mesh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 425
Using a Non-Conformal Mesh
i. Click Default in the Actions group box and close the Views dialog box.
g. Zoom in on the view to display the contours at the holes (Figure 9.6: Contours of Static Pressure at the
First Hole (p. 427) and Figure 9.7: Contours of Static Pressure at the Second Hole (p. 428)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
426 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 427
Using a Non-Conformal Mesh
Note the high/low pressure zones on the upstream/downstream sides of the coolant hole, where the
jet first penetrates the primary flow in the duct.
2. Display and save filled contours of static temperature (Figure 9.8: Contours of Static Temperature (p. 430)
and Figure 9.9: Contours of Static Temperature (Zoomed-In View) (p. 431)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
428 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Temperature... and Static Temperature from the Contours of drop-down lists.
c. Disable Auto Range in the Options group box so that you can change the maximum and minimum
temperature gradient values to be plotted.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 429
Using a Non-Conformal Mesh
h. Zoom in on the view to get the display shown in Figure 9.9: Contours of Static Temperature (Zoomed-
In View) (p. 431).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
430 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 9.8: Contours of Static Temperature (p. 430) and Figure 9.9: Contours of Static Temperature
(Zoomed-In View) (p. 431) clearly show how the coolant flow insulates the bottom of the duct from
the higher-temperature primary flow.
3. Display and save the velocity vectors (Figure 9.10: Velocity Vectors (p. 433)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 431
Using a Non-Conformal Mesh
b. Ensure that Velocity... and Velocity Magnitude are selected from the Color by drop-down lists.
This enlarges the displayed vectors, making it easier to view the flow patterns.
Use the scroll bar to access the surfaces that are not initially visible in the dialog box.
g. Zoom in on the view to get the display shown in Figure 9.10: Velocity Vectors (p. 433).
In Figure 9.10: Velocity Vectors (p. 433), the flow pattern in the vicinity of the coolant hole shows the level
of penetration of the coolant jet into the main flow. Note that the velocity field varies smoothly across
the non-conformal interface.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
432 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Create an iso-surface along a horizontal cross-section of the duct, 0.1 inches above the bottom, at = 0.1
inches.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 433
Using a Non-Conformal Mesh
a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.
d. Click Create.
5. Create an XY plot of static temperature on the iso-surface created (Figure 9.11: Static Temperature at y=0.1
in (p. 436)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
434 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Temperature... and Static Temperature from the Y-Axis Function drop-down lists.
d. Click Plot.
In Figure 9.11: Static Temperature at y=0.1 in (p. 436), you can see how the temperature of the fluid
changes as the cool air from the injection holes mixes with the primary flow. The temperature is
coolest just downstream of the holes. You can also make a similar plot on the lower wall to examine
the wall surface temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 435
Using a Non-Conformal Mesh
9.5. Summary
This tutorial demonstrated how the non-conformal mesh interface capability in ANSYS Fluent can be
used to handle hybrid meshes for complex geometries, such as the film cooling hole configuration ex-
amined here. One of the principal advantages of this approach is that it allows you to merge existing
component meshes together to create a larger, more complex mesh system, without requiring that the
different components have the same node locations on their shared boundaries. Thus, you can perform
parametric studies by merging the desired meshes, creating the non-conformal interface(s), and solving
the model. For example, in the present case, you can do the following:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
436 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 10: Modeling Flow Through Porous Media
This tutorial is divided into the following sections:
10.1. Introduction
10.2. Prerequisites
10.3. Problem Description
10.4. Setup and Solution
10.5. Summary
10.6. Further Improvements
10.1. Introduction
Many industrial applications such as filters, catalyst beds, and packing, involve modeling the flow through
porous media. This tutorial illustrates how to set up and solve a problem involving gas flow through
porous media.
The industrial problem solved here involves gas flow through a catalytic converter. Catalytic converters
are commonly used to purify emissions from gasoline and diesel engines by converting environmentally
hazardous exhaust emissions to acceptable substances. Examples of such emissions include carbon
monoxide (CO), nitrogen oxides (NOx), and unburned hydrocarbon fuels. These exhaust gas emissions
are forced through a substrate, which is a ceramic structure coated with a metal catalyst such as platinum
or palladium.
The nature of the exhaust gas flow is a very important factor in determining the performance of the
catalytic converter. Of particular importance is the pressure gradient and velocity distribution through
the substrate. Hence, CFD analysis is useful for designing efficient catalytic converters. By modeling the
exhaust gas flow, the pressure drop and the uniformity of flow through the substrate can be determined.
In this tutorial, ANSYS Fluent is used to model the flow of nitrogen gas through a catalytic converter
geometry, so that the flow field structure may be analyzed.
Calculate a solution for gas flow through the catalytic converter using the pressure-based solver.
Determine the pressure drop through the substrate and the degree of non-uniformity of flow through cross
sections of the geometry using X-Y plots and numerical reports.
10.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 437
Modeling Flow Through Porous Media
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
While the flow in the inlet and outlet sections is turbulent, the flow through the substrate is laminar
and is characterized by inertial and viscous loss coefficients along the inlet axis. The substrate is imper-
meable in other directions. This characteristic is modeled using loss coefficients that are three orders
of magnitude higher than in the main flow direction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
438 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
10.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the porous_R170.zip link to download the input and solution files.
The mesh file catalytic_converter.msh can be found in the porous directory created after
unzipping the file.
8. Use Fluent Launcher to start the 3D version of ANSYS Fluent, with the Double Precision and Display
Mesh After Reading options enabled.
For more information about starting ANSYS Fluent using the Fluent Launcher, see the Fluent Getting
Started Guide, available in the help viewer or on the ANSYS Customer Portal (http://support.an-
sys.com/documentation).
10.4.2. Mesh
1. Read the mesh file (catalytic_converter.msh).
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 439
Modeling Flow Through Porous Media
b. Click Scale.
Note
It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.
Rotate the view and zoom in to get the display shown in Figure 10.2: Mesh for the Catalytic Converter
Geometry (p. 441). The hex mesh on the geometry contains a total of 34,580 cells.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
440 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 441
Modeling Flow Through Porous Media
10.4.4. Models
1. Select the standard - turbulence model.
b. Retain the default settings for k-epsilon Model and Near-Wall Treatment and click OK to close the
Viscous Model dialog box.
10.4.5. Materials
1. Add nitrogen to the list of fluid materials by copying it from the Fluent Database of materials.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
442 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Fluent Database... button to open the Fluent Database Materials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 443
Modeling Flow Through Porous Media
ii. Click Copy to copy the information for nitrogen to your list of fluid materials.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
444 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 445
Modeling Flow Through Porous Media
c. Enable Laminar Zone to solve the flow in the porous zone without turbulence.
i. Make sure that the principal direction vectors are set as shown in Table 10.1: Values for the Principle
Direction Vectors (p. 446).
ANSYS Fluent automatically calculates the third (Z direction) vector based on your inputs for the
first two vectors. The direction vectors determine which axis the viscous and inertial resistance
coefficients act upon.
ii. For the viscous and inertial resistance directions, enter the values in Table 10.2: Values for the Viscous
and Inertial Resistance (p. 447) Viscous Resistance and Inertial Resistance.
Direction-2 and Direction-3 are set to arbitrary large numbers. These values are several orders
of magnitude greater than that of the Direction-1 flow and will make any radial flow insignificant.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
446 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Scroll down to access the fields that are not initially visible.
1. Set the velocity and turbulence boundary conditions at the inlet (inlet).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 447
Modeling Flow Through Porous Media
b. In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification
Method drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
448 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification
Method drop-down list.
3. Retain the default boundary conditions for the walls (substrate-wall and wall).
10.4.8. Solution
1. Set the solution parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 449
Modeling Flow Through Porous Media
b. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.
c. Retain the default selection of Second Order Upwind from the Momentum drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
450 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Mass Flow Rate from the Report Type drop-down list.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 451
Modeling Flow Through Porous Media
Warning
b. Click Options... to open the Solution Initialization task page, which provides access to further settings.
i. Select inlet from the Compute from drop-down list in the Solution Initialization task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
452 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The solution will converge in approximately 65 iterations. The mass flow rate monitor flattens out,
as seen in Figure 10.3: Surface Monitor Plot of Mass Flow Rate with Number of Iterations (p. 453).
Figure 10.3: Surface Monitor Plot of Mass Flow Rate with Number of Iterations
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 453
Modeling Flow Through Porous Media
Note
If you choose a filename that already exists in the current folder, ANSYS Fluent will prompt
you for confirmation to overwrite the file.
10.4.9. Postprocessing
1. Create a surface passing through the centerline for postprocessing purposes.
a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.
e. Click Create.
Note
To interactively place the surface on your mesh, use the slider bar in the Iso-Surface
dialog box.
2. Create cross-sectional surfaces at locations on either side of the substrate, as well as at its center.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
454 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Mesh... and X-Coordinate from the Surface of Constant drop-down lists.
e. Click Create.
f. In a similar manner, create surfaces named x=130 and x=165 with Iso-Values of 130 and 165, re-
spectively.
g. Close the Iso-Surface dialog box after all the surfaces have been created.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 455
Modeling Flow Through Porous Media
a. Enter the coordinates of the end points of the line in the End Points group box as shown.
a. Disable Edges and make sure Faces is enabled in the Options group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
456 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Deselect inlet and outlet in the Surfaces selection list, and make sure that only substrate-wall and
wall are selected.
6. Set the transparency parameter for the wall zones (substrate-wall and wall).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 457
Modeling Flow Through Porous Media
b. Click the Display... button in the Geometry Attributes group box to open the Display Properties
dialog box.
i. Make sure that the Red, Green, and Blue sliders are set to the maximum position (that is, 255).
iii. Click Apply and close the Display Properties dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
458 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
7. Display velocity vectors on the y=0 surface (Figure 10.4: Velocity Vectors on the y=0 Plane (p. 461)).
a. Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 459
Modeling Flow Through Porous Media
i. Make sure that substrate-wall and wall are selected in the Surfaces selection list.
ii. Click Display and close the Mesh Display dialog box.
c. Set Skip to 1.
f. Rotate the view and adjust the magnification to get the display shown in Figure 10.4: Velocity Vectors
on the y=0 Plane (p. 461).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
460 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The flow pattern shows that the flow enters the catalytic converter as a jet, with recirculation on either
side of the jet. As it passes through the porous substrate, it decelerates and straightens out, and exhibits
a more uniform velocity distribution. This allows the metal catalyst present in the substrate to be more
effective.
8. Display filled contours of static pressure on the y=0 plane (Figure 10.5: Contours of Static Pressure on the
y=0 plane (p. 463)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 461
Modeling Flow Through Porous Media
i. Make sure that substrate-wall and wall are selected in the Surfaces selection list.
ii. Click Display and close the Mesh Display dialog box.
c. Make sure that Pressure... and Static Pressure are selected from the Contours of drop-down lists.
The pressure changes rapidly in the middle section, where the fluid velocity changes as it passes through
the porous substrate. The pressure drop can be high, due to the inertial and viscous resistance of the
porous media. Determining this pressure drop is one of the goals of the CFD analysis. In the next step,
you will learn how to plot the pressure drop along the centerline of the substrate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
462 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
9. Plot the static pressure across the line surface porous-cl (Figure 10.6: Plot of Static Pressure on the porous-
cl Line Surface (p. 464)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 463
Modeling Flow Through Porous Media
a. Make sure that Pressure... and Static Pressure are selected from the Y Axis Function drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
464 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
As seen in Figure 10.6: Plot of Static Pressure on the porous-cl Line Surface (p. 464), the pressure drop
across the porous substrate is approximately 300 Pa.
10. Display filled contours of the velocity in the X direction on the x=95, x=130, and x=165 surfaces (Fig-
ure 10.7: Contours of the X Velocity on the x=95, x=130, and x=165 Surfaces (p. 466)).
a. Make sure that Filled and Draw Mesh are enabled in the Options group box.
d. Select x=130, x=165, and x=95 in the Surfaces selection list, and deselect y=0.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 465
Modeling Flow Through Porous Media
Figure 10.7: Contours of the X Velocity on the x=95, x=130, and x=165 Surfaces
The velocity profile becomes more uniform as the fluid passes through the porous media. The velocity is
very high at the center (the area in red) just before the nitrogen enters the substrate and then decreases
as it passes through and exits the substrate. The area in green, which corresponds to a moderate velocity,
increases in extent.
11. Use numerical reports to determine the average, minimum, and maximum of the velocity distribution before
and after the porous substrate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
466 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Velocity and X Velocity from the Field Variable drop-down lists.
d. Click Compute.
e. Select Facet Minimum from the Report Type drop-down list and click Compute.
f. Select Facet Maximum from the Report Type drop-down list and click Compute.
The numerical report of average, maximum and minimum velocity can be seen in the main ANSYS
Fluent console.
The spread between the average, maximum, and minimum values for X velocity gives the degree to which
the velocity distribution is non-uniform. You can also use these numbers to calculate the velocity ratio (that
is, the maximum velocity divided by the mean velocity) and the space velocity (that is, the product of the
mean velocity and the substrate length).
Custom field functions and UDFs can be also used to calculate more complex measures of non-uniformity,
such as the standard deviation and the gamma uniformity index.
Mass-Weighted Average
X Velocity (m/s)
-------------------------------- --------------------
x=165 4.0398279
x=95 5.2996936
---------------- --------------------
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 467
Modeling Flow Through Porous Media
Net 4.6766876
10.5. Summary
In this tutorial, you learned how to set up and solve a problem involving gas flow through porous media
in ANSYS Fluent. You also learned how to perform appropriate postprocessing. Flow non-uniformities
were easily identified through images of velocity vectors and pressure contours. Surface integrals and
X-Y plots provided purely numeric data.
For additional details about modeling flow through porous media (including heat transfer and reaction
modeling), see the Fluent User's Guide, available in the help viewer or on the ANSYS Customer Portal
(http://support.ansys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
468 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 11: Using a Single Rotating Reference Frame
This tutorial is divided into the following sections:
11.1. Introduction
11.2. Prerequisites
11.3. Problem Description
11.4. Setup and Solution
11.5. Summary
11.6. Further Improvements
11.7. References
11.1. Introduction
This tutorial considers the flow within a 2D, axisymmetric, co-rotating disk cavity system. Understanding
the behavior of such flows is important in the design of secondary air passages for turbine disk cooling.
11.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup
and solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 469
Using a Single Rotating Reference Frame
Air enters the cavity between two co-rotating disks. The disks are 88.6 cm in diameter and the air enters
at 1.146 m/s through a circular bore 8.86 cm in diameter. The disks, which are 6.2 cm apart, are spinning
at 71.08 rpm, and the air enters with no swirl. As the flow is diverted radially, the rotation of the disk
has a significant effect on the viscous flow developing along the surface of the disk.
As noted by Pincombe [1], there are two nondimensional parameters that characterize this type of disk
cavity flow: the volume flow rate coefficient, , and the rotational Reynolds number, . These
parameters are defined as follows:
(11.1)
(11.2)
where is the volumetric flow rate, is the rotational speed, is the kinematic viscosity, and is
the outer radius of the disks. Here, you will consider a case for which = 1092 and = .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
470 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
11.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the single_rotating_R170.zip link to download the input and solution files.
The file disk.msh can be found in the single_rotating folder created after unzipping the file.
8. Use Fluent Launcher to start the 2D single precision (disable Double Precision) version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 471
Using a Single Rotating Reference Frame
11.4.2. Mesh
1. Read the mesh file (disk.msh).
As ANSYS Fluent reads the mesh file, it will report its progress in the console.
Note
The Fluent console will display a warning that the current setup for the boundary condi-
tions is not appropriate for a 2D/3D flow problem.
You will resolve this issue when you modify the solver settings in a subsequent step.
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.
Note
ANSYS Fluent will issue a warning concerning the high aspect ratios of some cells and
possible impacts on calculation of Cell Wall Distance. The warning message includes re-
commendations for verifying and correcting the Cell Wall Distance calculation. In this
particular case the cell aspect ratio does not cause problems so no further action is re-
quired. As an optional activity, you can confirm this yourself after the solution is generated
by plotting Cell Wall Distance as noted in the warning message.
2. Examine the mesh (Figure 11.2: Mesh Display for the Disk Cavity (p. 473)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
472 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Extra
You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
window, information will be displayed in the ANSYS Fluent console about the associated
zone, including the name of the zone. This feature is especially useful when you have
several zones of the same type and you want to distinguish between them quickly.
In the problem description, angular velocity and length are specified in rpm and cm, respectively, which
is more convenient in this case. These are not the default units for these quantities.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 473
Using a Single Rotating Reference Frame
a. Select angular-velocity from the Quantities list, and rpm in the Units list.
b. Select length from the Quantities list, and cm in the Units list.
4. Specify the solver formulation to be used for the model calculation and enable the modeling of axisymmetric
swirl.
For a rotating reference frame, the absolute velocity formulation has some numerical advantages.
c. Select Axisymmetric Swirl from the drop-down list in the Solver group box (below Reference Values...).
11.4.4. Models
1. Enable the standard - turbulence model with the enhanced near-wall treatment.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
474 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The ability to calculate a swirl velocity permits the use of a 2D mesh, so the calculation is simpler
and more economical to run. This is especially important for problems where the enhanced wall
treatment is used. The near-wall flow field is resolved through the viscous sublayer and buffer zones
(that is, the first mesh point away from the wall is placed at a of the order of 1).
For details, see enhanced wall treatment in the Fluent Theory Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 475
Using a Single Rotating Reference Frame
11.4.5. Materials
For the present analysis, you will model air as an incompressible fluid with a density of 1.225 kg/ and a
dynamic viscosity of 1.7894 kg/m-s. Since these are the default values, no change is required in the
Create/Edit Materials dialog box.
Extra
You can modify the fluid properties for air at any time or copy another material from the
database.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
476 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Define the rotating reference frame for the fluid zone (fluid-7).
b. Enter 71.08 rpm for Speed in the Rotational Velocity group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 477
Using a Single Rotating Reference Frame
c. Retain the default selection of Intensity and Viscosity Ratio from the Specification Method drop-
down list in the Turbulence group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
478 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select From Neighboring Cell from the Backflow Direction Specification Method drop-down list.
Note
ANSYS Fluent will use the backflow conditions only if the fluid is flowing into the
computational domain through the outlet. Since backflow might occur at some point
during the solution procedure, you should set reasonable backflow conditions to
prevent convergence from being adversely affected.
3. Confirm that the wall boundary condition settings for the disk walls (wall-6) are as shown below.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 479
Using a Single Rotating Reference Frame
Note
A Stationary Wall condition implies that the wall is stationary with respect to the adjacent
cell zone. Hence, in the case of a rotating reference frame a Stationary Wall is actually
rotating with respect to the absolute reference frame. To specify a non-rotating wall in
this case you would select Moving Wall (that is, moving with respect to the rotating ref-
erence frame). Then you would specify an absolute rotational speed of 0 in the Motion
group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
480 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Retain the default selection of Least Squares Cell Based from the Gradient list in the Spatial Discret-
ization group box.
c. Select PRESTO! from the Pressure drop-down list in the Spatial Discretization group box.
The PRESTO! scheme is well suited for steep pressure gradients involved in rotating flows. It provides
improved pressure interpolation in situations where large body forces or strong pressure variations
are present as in swirling flows.
d. Select Second Order Upwind from the Turbulent Kinetic Energy and Turbulent Dissipation Rate
drop-down lists.
Use the scroll bar to access the discretization schemes that are not initially visible in the task page.
The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 481
Using a Single Rotating Reference Frame
a. Retain the default values in the Pseudo Transient Explicit Relaxation Factors group box.
Note
For this problem, the default explicit relaxation factors are satisfactory. However, if
the solution diverges or the residuals display large oscillations, you may need to reduce
the relaxation factors from their default values.
For tips on how to adjust the explicit relaxation parameters for different situations, see theFluent
Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
482 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
For this calculation, the convergence tolerance on the continuity equation is kept at
0.001. Depending on the behavior of the solution, you can reduce this value if necessary.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 483
Using a Single Rotating Reference Frame
Note
When the Write option is selected in the Surface Monitor dialog box, the mass flow
rate history will be written to a file. If you do not enable the Write option, the history
information will be lost when you exit ANSYS Fluent.
b. Select Mass Flow Rate from the Report Type drop-down list.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
484 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click Initialize.
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This in general will help in improving
the convergence behavior of the solver.
Run Calculation
b. Click Calculate.
Throughout the calculation, ANSYS Fluent will report reversed flow at the exit. This is reasonable for
the current case. The solution should be sufficiently converged after approximately 550 iterations.
The mass flow rate history is shown in Figure 11.3: Mass Flow Rate History (k- Turbulence Mod-
el) (p. 486).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 485
Using a Single Rotating Reference Frame
Extra
Here we have retained the default Timescale Factor of 1 in the Run Calculation panel.
When performing a Pseudo Transient calculation, larger values of Timescale Factor may
speed up convergence of the solution. However, setting Timescale Factor too large may
cause the solution to diverge and fail to complete. As an optional activity, you can re-
initialize the solution and try running the calculation with Timescale Factor set to 2.
Observe the convergence behavior and the number of iterations before convergence.
Then try the same again with Timescale Factor set to 4. For more information on setting
Timescale Factor and the Pseudo Transient solver settings, refer to the Fluent Users Guide.
Warning
Although the mass flow rate history indicates that the solution is converged, you
should also check the net mass fluxes through the domain to ensure that mass is
being conserved.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
486 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Warning
The net mass imbalance should be a small fraction (for example, 0.5%) of the total
flux through the system. If a significant imbalance occurs, you should decrease the
residual tolerances by at least an order of magnitude and continue iterating.
Note
It is always prudent to save both case and data files in case anything has changed.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 487
Using a Single Rotating Reference Frame
b. Set Skip to 1.
c. Click the Vector Options... button to open the Vector Options dialog box.
i. Disable Z Component.
ii. Click Apply and close the Vector Options dialog box.
d. Click Display in the Vectors dialog box to plot the velocity vectors.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
488 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
A magnified view of the velocity field displaying a counter-clockwise circulation of the flow is shown
in Figure 11.4: Magnified View of Velocity Vectors within the Disk Cavity (p. 489).
Figure 11.4: Magnified View of Velocity Vectors within the Disk Cavity
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 489
Using a Single Rotating Reference Frame
b. Retain the selection of Pressure... and Static Pressure from the Contours of drop-down lists.
The pressure contours are displayed in Figure 11.5: Contours of Static Pressure for the Entire Disk Cav-
ity (p. 491). Notice the high pressure that occurs on the right disk near the hub due to the stagnation of
the flow entering from the bore.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
490 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 11.5: Contours of Static Pressure for the Entire Disk Cavity
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 491
Using a Single Rotating Reference Frame
a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.
This is the radial position along which you will plot the radial velocity profile.
Using a prefix such as aaa or zzz allows you to keep all postprocessing surfaces together.
Note
The name you use for an isosurface can be any continuous string of characters (without
spaces).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
492 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Velocity... and Radial Velocity from the Y Axis Function drop-down lists.
b. Select the y-coordinate line aaa_y=37cm from the Surfaces selection list.
c. Click Plot.
Figure 11.6: Radial Velocity DistributionStandard k- Solution (p. 494) shows a plot of the radial
velocity distribution along .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 493
Using a Single Rotating Reference Frame
d. Enable Write to File in the Options group box to save the radial velocity profile.
e. Click the Write... button to open the Select File dialog box.
i. Enter ke-data.xy in the XY File text entry box and click OK.
Be sure to double check the location where the files are being saved to ensure they will be saved
where you intend.
5. Plot the wall y+ distribution on the rotating disk wall along the radial direction (Figure 11.7: Wall Yplus
Distribution on wall-6 Standard k- Solution (p. 497)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
494 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Turbulence... and Wall Yplus from the Y Axis Function drop-down lists.
c. Deselect aaa_y=37cm and select wall-6 from the Surfaces selection list.
d. Enter 0 and 1 for X and Y respectively in the Plot Direction group box.
Note
The change in Plot Direction is required because we are plotting y+ along the radial
dimension of the disk, which is oriented with Y axis.
e. Click the Axes... button to open the Axes - Solution XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 495
Using a Single Rotating Reference Frame
iii. Retain the default value of 0 for Minimum and enter 43 for Maximum in the Range group box.
iv. Click Apply and close the Axes - Solution XY Plot dialog box.
Figure 11.7: Wall Yplus Distribution on wall-6 Standard k- Solution (p. 497) shows a plot of wall
y+ distribution along wall-6.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
496 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
g. Enable Write to File in the Options group box to save the wall y+ profile.
h. Click the Write... button to open the Select File dialog box.
i. Enter ke-yplus.xy in the XY File text entry box and click OK.
Note
Ideally, while using enhanced wall treatment, the wall y+ should be in the order of 1
(at least less than 5) to resolve the viscous sublayer. The plot justifies the applicability
of enhanced wall treatment to the given mesh.
1. Enable the RNG - turbulence model with the enhanced near-wall treatment.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 497
Using a Single Rotating Reference Frame
b. Enable Differential Viscosity Model and Swirl Dominated Flow in the RNG Options group box.
The differential viscosity model and swirl modification can provide better accuracy for swirling flows
such as the disk cavity.
For more information, see RNG swirl modification in the Fluent Theory Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
498 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Click Yes in the Question dialog box to append the data to surf-mon-1.out.
a. Enter 1 and 0 for X and Y respectively in the Plot Direction group box.
b. Select Velocity... and Radial Velocity from the Y Axis Function drop-down lists.
c. Select aaa_y=37cm and deselect wall-6 from the Surfaces selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 499
Using a Single Rotating Reference Frame
f. Click the Axes... button to open the Axes - Solution XY Plot dialog box.
ii. Click Apply and close the Axes - Solution XY Plot dialog box.
g. Click the Curves... button to open the Curves - Solution XY Plot dialog box, where you will define a
different curve symbol for the RNG - data.
iii. Click Apply and close the Curves - Solution XY Plot dialog box.
h. Click Plot in the Solution XY Plot dialog box (Figure 11.8: Radial Velocity Distribution RNG k- and
Standard k- Solutions (p. 501)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
500 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The peak velocity predicted by the RNG - solution is higher than that predicted by the standard
- solution. This is due to the less diffusive character of the RNG - model. Adjust the range of
the axis to magnify the region of the peaks.
i. Click the Axes... button to open the Axes - Solution XY Plot dialog box, where you will specify the
-axis range.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 501
Using a Single Rotating Reference Frame
ii. Retain the value of 0 for Minimum and enter 1 for Maximum in the Range dialog box.
iii. Click Apply and close the Axes - Solution XY Plot dialog box.
j. Click Plot.
The difference between the peak values calculated by the two models is now more apparent.
2. Plot the wall y+ distribution on the rotating disk wall along the radial direction Figure 11.10: wall-6 RNG
k- and Standard k- Solutions (x=0 cm to x=43 cm) (p. 504).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
502 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Turbulence... and Wall Yplus from the Y Axis Function drop-down lists.
b. Deselect aaa_y=37cm and select wall-6 from the Surfaces selection list.
c. Enter 0 and 1 for X and Y respectively in the Plot Direction group box.
d. Select any existing files that appear in the File Data selection list and click the Free Data button to
remove the file.
f. Click the Axes... button to open the Axes - Solution XY Plot dialog box.
ii. Retain the default value of 0 for Minimum and enter 43 for Maximum in the Range group box.
iii. Click Apply and close the Axes - Solution XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 503
Using a Single Rotating Reference Frame
Figure 11.10: wall-6 RNG k- and Standard k- Solutions (x=0 cm to x=43 cm)
11.5. Summary
This tutorial illustrated the setup and solution of a 2D, axisymmetric disk cavity problem in ANSYS Fluent.
The ability to calculate a swirl velocity permits the use of a 2D mesh, thereby making the calculation
simpler and more economical to run than a 3D model. This can be important for problems where the
enhanced wall treatment is used, and the near-wall flow field is resolved using a fine mesh (the first
mesh point away from the wall being placed at a y+ on the order of 1).
For more information about mesh considerations for turbulence modeling, see the Fluent Users Guide.
Use adaption to see if resolving the high velocity and pressure-gradient region of the flow has a significant
effect on the solution.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
504 of ANSYS, Inc. and its subsidiaries and affiliates.
References
Introduce a nonzero swirl at the inlet or use a velocity profile for fully-developed pipe flow. This is probably
more realistic than the constant axial velocity used here, since the flow at the inlet is typically being supplied
by a pipe.
Model compressible flow (using the ideal gas law for density) rather than assuming incompressible flow
text.
This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121).
11.7. References
1. Pincombe, J.R.,Velocity Measurements in the Mk II - Rotating Cavity Rig with a Radial Outflow, Thermo-
Fluid Mechanics Research Centre, University of Sussex, Brighton, UK, 1981.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 505
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
506 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 12: Using Multiple Reference Frames
This tutorial is divided into the following sections:
12.1. Introduction
12.2. Prerequisites
12.3. Problem Description
12.4. Setup and Solution
12.5. Summary
12.6. Further Improvements
12.1. Introduction
Many engineering problems involve rotating flow domains. One example is the centrifugal blower unit
that is typically used in automotive climate control systems. For problems where all the moving parts
(fan blades, hub and shaft surfaces, and so on) are rotating at a prescribed angular velocity, and the
stationary walls (for example, shrouds, duct walls) are surfaces of revolution with respect to the axis of
rotation, the entire domain can be referred to as a single rotating frame of reference. However, when
each of the several parts is rotating about a different axis of rotation, or about the same axis at different
speeds, or when the stationary walls are not surfaces of revolution (such as the volute around a centri-
fugal blower wheel), a single rotating coordinate system is not sufficient to immobilize" the computa-
tional domain so as to predict a steady-state flow field. In such cases, the problem must be formulated
using multiple reference frames.
In ANSYS Fluent, the flow features associated with one or more rotating parts can be analyzed using
the multiple reference frame (MRF) capability. This model is powerful in that multiple rotating reference
frames can be included in a single domain. The resulting flow field is representative of a snapshot of
the transient flow field in which the rotating parts are moving. However, in many cases the interface
can be chosen in such a way that the flow field at this location is independent of the orientation of the
moving parts. That is, if an interface can be drawn on which there is little or no angular dependence,
the model can be a reliable tool for simulating time-averaged flow fields. It is therefore very useful in
complicated situations where one or more rotating parts are present.
This tutorial illustrates the procedure for setting up and solving a problem using the MRF capability. As
an example, the flow field on a 2D section of a centrifugal blower will be calculated. Although this is a
general methodology that can be applied to cases where more than one reference frame is moving,
this example will be limited to a single rotating reference frame.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 507
Using Multiple Reference Frames
12.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
This tutorial also assumes that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.
In general, to solve problems using the MRF feature, you should be familiar with the concept of creating
multiple fluid zones in your mesh generator.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
508 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
12.4.1. Preparation
To access tutorials and their input files on the ANSYS Customer Portal, go to http://support.ansys.com/
training.
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the multiple_rotating_R170.zip link to download the input and solution files.
7. Unzip the multiple_rotating_R170.zip file you have downloaded to your working folder.
The file, blower-2d.msh can be found in the multiple_rotating directory created after unzipping
the file.
8. Use Fluent Launcher to start the 2D Double Precision version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 509
Using Multiple Reference Frames
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
12.4.2. Reading and Checking the Mesh and Setting the Units
1. Read the mesh file (blower-2d.msh).
The geometry and mesh are displayed in graphics window (Figure 12.2: Mesh of the 2D Centrifugal
Blower (p. 511))
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the reported minimum volume is a positive number. It will also issue warnings about unassigned
interface zones. You do not need to take any action now. You will set up the mesh interfaces in a later
step.
The mesh consists of three fluid zones, fluid-casing, fluid-inlet, and fluid-rotor. These are reported in
the console when the mesh is read. In the Mesh Display dialog box, the fluid zones are reported as in-
terior zones default-interior, default-interior:013, and default-interior:015 respectively. The fluid zone
containing the blades will be solved in a rotational reference frame.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
510 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The fluid zones are bounded by interface zones that appear in the mesh display in yellow. These interface
boundaries were used in the mesh generator to separate the fluid zones, and will be used to create mesh
interfaces between adjacent fluid zones when the boundary conditions are set later in this tutorial.
In the problem description, angular velocity is specified in rpm rather than in the default unit of rad/s.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 511
Using Multiple Reference Frames
a. Select angular-velocity from the Quantities list and rpm in the Units list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
512 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 513
Using Multiple Reference Frames
Tip
If needed, you could modify the fluid properties for air or copy another material from
the database.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
514 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Under the Reference Frame tab, retain the Rotation-Axis Origin default setting of (0,0).
This is the center of curvature for the circular boundaries of the rotating zone.
c. Enter -2500 rpm for Speed in the Rotational Velocity group box.
Note
The speed is entered as a negative value because the rotor is rotating clockwise, which
is in the negative sense about the Z axis.
Note
Since the other fluid zones are stationary, you do not need to set any boundary conditions
for them. If one or more of the remaining fluid zones were also rotating, you would need
to set the appropriate rotational speed for them.
Tip
In this example, the names of the fluid-zones in the mesh file leave no ambiguity as to
which is the rotating fluid zone. In the event that you have a mesh without clear names,
you may have difficulty identifying the various fluid-zones. Unlike interior zones, the fluid-
zones cannot be individually selected and displayed from the Mesh Display dialog box.
However, you can use commands in the text interface to display them.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 515
Using Multiple Reference Frames
/display> zone-mesh
()
zone id/name(1) [()] 4
zone id/name(2) [()] <Enter>
The resulting display shows that the zone with ID 4 (in this case fluid-rotor) corresponds
to the rotating region.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
516 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Review the boundary condition definition for the pressure-inlet type. Leave the settings at their defaults.
Note
All pressures that you specify in ANSYS Fluent are gauge pressures, relative to the oper-
ating pressure specified in the Operating Conditions dialog box. By default, the operating
pressure is 101325 Pa.
2. Review and retain the default values for the boundary conditions for the flow outlet (outlet) so that the
backflow turbulence parameters for the flow outlet (outlet) are set to the same values used for inlet.
Note
The backflow values are used only if reversed flow occurs at the outlet, but it is a good
idea to use reasonable values, even if you do not expect any backflow to occur.
3. Define the velocity of the wall zone representing the blades (blades) relative to the moving fluid zone.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 517
Using Multiple Reference Frames
With fluid-rotor set to a rotating reference frame, blades becomes a moving wall.
The Wall dialog box will expand to show the wall motion parameters.
b. Retain the default selection of Relative to Adjacent Cell Zone and select Rotational in the Motion
group box.
The Rotation-Axis Origin should be located at = 0 m and = 0 m. With these settings, the blades
will move at the same speed as the surrounding fluid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
518 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select interface-1 for Interface Zone 1 and interface-2 for Interface Zone 2.
You can use the Draw button to help identify the interface-zones.
d. In a similar manner, define a mesh interface called int2 between interface-3 and interface-
4.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 519
Using Multiple Reference Frames
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Select Second Order Upwind for Turbulent Kinetic Energy and Turbulent Dissipation Rate in the
Spatial Discretization group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
520 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For this problem, the default value of 0.001 is insufficient for the flow rate in the blower to fully
converge. All other settings should remain at their default values.
3. Create a surface monitor and plot the volume flow rate at the flow outlet.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 521
Using Multiple Reference Frames
Note
When the Write option is selected in the Surface Monitor dialog box, the mass flow
rate history will be written to a file. If you do not enable the Write option, the history
information will be lost when you exit ANSYS Fluent.
b. Select Volume Flow Rate from the Report Type drop-down list.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
522 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the Method at the default of Hybrid in the Initialization Methods group.
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This in general will help in improving
the convergence behavior of the solver.
b. Click Calculate.
Early in the calculation, ANSYS Fluent will report that there is reversed flow occurring at the exit. This
is due to the sudden expansion, which results in a recirculating flow near the exit.
The solution will converge in approximately 120 iterations (when all residuals have dropped
below their respective criteria).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 523
Using Multiple Reference Frames
The surface monitor history indicates that the flow rate at the outlet has ceased changing significantly,
further indicating that the solution has converged. The volume flow rate is approximately 3.49 m3/s.
Note
You can examine the residuals history in an appropriate graphics tab window.
Note
It is good practice to save the case file whenever you are saving the data. This will ensure
that the relevant parameters corresponding to the current solution data are saved accord-
ingly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
524 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Ensure Pressure... and Static Pressure are selected from the Contours of drop-down lists.
c. Click Display and close the Contours dialog box (see Figure 12.4: Contours of Static Pressure (p. 526)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 525
Using Multiple Reference Frames
2. Display absolute velocity vectors (Figure 12.5: Velocity Vectors (p. 528)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
526 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
By default, Auto Scale is chosen. This will automatically scale the length of velocity vectors relative
to the size of the smallest cell in the mesh. To increase the length of the scaled" vectors, set the Scale
factor to a value greater than 1.
b. Retain the default selection of Velocity from the Vectors of drop-down list.
c. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down list.
d. Click Display and close the Vectors dialog box (see Figure 12.5: Velocity Vectors (p. 528)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 527
Using Multiple Reference Frames
The velocity vectors show an area of flow separation near the bottom of the outlet duct. You can zoom
in on this area and see the flow recirculation.
3. Display relative velocity vectors with respect to the rotational reference frame (fluid-rotor).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
528 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Reference Values task page, select fluid-rotor from the Reference Zone drop-down list.
b. In the Vectors dialog box, select Relative Velocity from the Vectors of drop-down list.
c. Select Velocity... and Relative Velocity Magnitude from the Color by drop-down list.
d. Set Scale to 2.
The relative air velocity vectors viewed in the frame of reference rotating with the rotor are dis-
played.
f. Zoom in on the rotor blade region as shown in Figure 12.6: Relative Velocity Vectors (p. 530) and examine
the air flow through the rotor blade passages.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 529
Using Multiple Reference Frames
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
530 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
a. Retain the selection of Mass Flow Rate in the Options group box.
c. Click Compute.
The net mass imbalance should be no more than a small fraction (say, 0.5%) of the total flux through
the system. If a significant imbalance occurs, you should decrease your residual tolerances by at least
an order of magnitude and continue iterating.
The flux report will compute fluxes only for boundary zones.
Note
You can use the Surface Integrals option to report fluxes on surfaces or planes.
12.5. Summary
This tutorial illustrates the procedure for setting up and solving problems with multiple reference frames
using ANSYS Fluent. Although this tutorial considers only one rotating fluid zone, extension to multiple
rotating fluid zones is straightforward as long as you delineate each fluid zone.
Note that this tutorial was solved using the default absolute velocity formulation. For some problems
involving rotating reference frames, you may want to use the relative velocity formulation. See the
Fluent Users Guide for details.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 531
Using Multiple Reference Frames
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
532 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 13: Using the Mixing Plane Model
This tutorial is divided into the following sections:
13.1. Introduction
13.2. Prerequisites
13.3. Problem Description
13.4. Setup and Solution
13.5. Summary
13.6. Further Improvements
13.1. Introduction
This tutorial considers the flow in an axial fan with a rotor in front and stators (vanes) in the rear. This
configuration is typical of a single-stage axial flow turbomachine. By considering the rotor and stator
together in a single calculation, you can determine the interaction between these components.
13.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 533
Using the Mixing Plane Model
The mixing plane is defined at the rotor outlet / stator inlet. The mesh is set up with periodic boundaries
on either side of the rotor and stator blades. A pressure inlet is used at the upstream boundary and a
pressure outlet at the downstream boundary. Ambient air is drawn into the fan (at 0 Pa gauge total
pressure) and is exhausted back out to the ambient environment (0 Pa static pressure). The hub and
blade of the rotor are assumed to be rotating at 1800 rpm.
13.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
534 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Click the mixing_plane_R170.zip link to download the input and solution files.
The file fanstage.msh can be found in the mixing_plane directory created after unzipping the
file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
13.4.2. Mesh
1. Read the mesh file fanstage.msh.
As ANSYS Fluent reads the mesh file, it will report its progress in the console.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number. You will notice that ANSYS Fluent issues several
warning messages concerning translation vectors with suggestions to check periodic setup. These arise
because you have not yet specified the periodicity for zones 11 and 22. You can ignore these warnings
because you will specify the periodicity in a later step.
2. Display the mesh (Figure 13.2: Mesh Display for the Multistage Fan (p. 537)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 535
Using the Mixing Plane Model
a. Select only rotor-blade, rotor-hub, rotor-inlet-hub, stator-blade, and stator-hub from the Surfaces
selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
536 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Extra
You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
window, its zone number, name, and type will be printed in the ANSYS Fluent console.
This feature is especially useful when you have several zones of the same type and you
want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 537
Using the Mixing Plane Model
The angular velocity for this problem is known in rpm, which is not the default unit for angular velocity.
You will need to redefine the angular velocity units as rpm.
a. Select angular-velocity from the Quantities selection list and rpm from the Units selection list.
13.4.4. Models
1. Enable the standard - turbulence model with enhanced wall treatment.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
538 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of Standard from the k-epsilon Model list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 539
Using the Mixing Plane Model
In this step, you will create the mixing plane between the pressure outlet of the rotor and the pressure inlet
of the stator.
ANSYS Fluent will name the mixing plane by combining the names of the zones selected as the Upstream
Zone and Downstream Zone. This new name will be displayed in the Mixing Plane list.
The essential idea behind the mixing plane concept is that each fluid zone (stator and rotor) is solved as
a steady-state problem. At prescribed iteration intervals, the flow data at the mixing plane interface is
averaged in the circumferential direction on both the rotor outlet and the stator inlet boundaries. ANSYS
Fluent uses these circumferential averages to define profiles of flow properties. These profiles are then
used to update boundary conditions along the two zones of the mixing plane interface.
In this example, profiles of averaged total pressure ( ), static pressure ( ), direction cosines of the local
flow angles in the radial, tangential, and axial directions ( ), turbulent kinetic energy ( ), turbulent
dissipation rate ( ), and radius ( ) are computed at the rotor exit and used to update boundary conditions
at the stator inlet. Likewise, the same profiles (except for that of total pressure) are computed at the
stator inlet and used as a boundary condition on the rotor exit.
The default method for calculating mixing plane profiles uses an area-weighted averaging approach.
This method allows reasonable profiles of all variables to be created, regardless of the mesh topology.
In some cases, a mass flow-weighted averaging may be appropriate (for example, with compressible
turbomachinery flows). For such cases, Mass should be selected from the Averaging Method list. A third
averaging approach (the Mixed-Out average) is also available for flows with ideal gases. Refer to the
Fluent Theory Guide for more information on these averaging methods.
You can view the profiles computed at the rotor exit and stator inlet in the Profiles dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
540 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You will also see that these profiles appear in the boundary conditions dialog boxes for the rotor exit
and stator inlet.
For more information on mixing planes, see the Fluent Users Guide.
13.4.6. Materials
1. Retain the default properties for air.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 541
Using the Mixing Plane Model
For the present analysis, you will model air as an incompressible fluid with a density of 1.225 kg/m3
and a dynamic viscosity of 1.7894 10-5 kg/m-s. Since these are the default values, no change is re-
quired in the Create/Edit Materials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
542 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 543
Using the Mixing Plane Model
According to the right-hand rule (see Figure 13.1: Problem Specification (p. 534)), the axis of rotation
is the axis.
c. Enter 1800 rpm for Speed in the Rotational Velocity group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
544 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enter -1 for Z in the Rotation-Axis Direction group box. Even though Frame Motion is not enabled
for the fluid-stator zone, the rotational axis specification must be consistent between zones.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 545
Using the Mixing Plane Model
1. Specify rotational periodicity for the periodic boundary of the rotor (periodic-11).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
546 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Specify rotational periodicity for the periodic boundary of the stator (periodic-22).
3. Set the conditions for the pressure inlet of the rotor (pressure-inlet-rotor).
a. Select Direction Vector from the Direction Specification Method drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 547
Using the Mixing Plane Model
d. Retain the selection of Intensity and Viscosity Ratio from the Specification Method drop-down list.
e. Retain the default, 5% for Turbulence Intensity and enter 5 for Turbulent Viscosity Ratio.
4. Retain the default settings for the pressure inlet of the stator (pressure-inlet-stator).
The profiles computed at the rotor outlet are used to update the boundary conditions at the stator inlet.
These profiles were set automatically when the mixing plane was created. Therefore, you do not need to
set any parameters in this dialog box.
a. Verify that the settings are defined by the fields of the pressure-outlet-rotor profile.
5. Retain the default settings for the pressure outlet of the rotor (pressure-outlet-rotor).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
548 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Backflow Direction Specification Method was set to Direction Vector when you created the
mixing plane, and the Coordinate System to Cylindrical (as for the stator inlet). The values for the dir-
ection cosines are taken from the profiles at the stator.
a. Verify that the settings are defined by the fields of the pressure-inlet-stator profile.
6. Set the conditions for the pressure outlet of the stator (pressure-outlet-stator).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 549
Using the Mixing Plane Model
a. Retain the default selection of Normal to Boundary from the Backflow Direction Specification
Method drop-down list.
In problems where a backflow exists at the pressure outlet boundary (for example, a torque-converter),
you can use this option to specify the direction of the backflow.
This option accounts for the pressure distribution that results from rotation by calculating the pressure
gradient according to
where is the tangential velocity. This option is appropriate for axial flow configurations with relat-
ively straight flow paths (that is, little change in radius from inlet to exit).
c. Retain the default selection of Intensity and Viscosity Ratio from the Specification Method drop-
down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
550 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For a rotating reference frame, ANSYS Fluent assumes by default that walls rotate with the rotating ref-
erence frame, and hence are stationary with respect to it. Since the rotor-hub is rotating, you should
retain the default settings.
a. Verify that Stationary Wall is selected from the Wall Motion list.
b. Click OK to accept the default settings and close the Wall dialog box.
8. Set the conditions for the inlet hub of the rotor (rotor-inlet-hub).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 551
Using the Mixing Plane Model
The Wall dialog box will expand to show the wall motion inputs.
These conditions set the rotor-inlet-hub to be a stationary wall in the absolute frame.
9. Set the conditions for the shroud of the rotor inlet (rotor-inlet-shroud).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
552 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
These conditions will set the rotor-inlet-shroud to be a stationary wall in the absolute frame.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 553
Using the Mixing Plane Model
These conditions will set the rotor-shroud to be a stationary wall in the absolute frame.
13.4.9. Solution
1. Set the solution parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
554 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Ensure that Second Order Upwind is selected from the Momentum drop-down list in the Spatial
Discretization group box.
c. Select Second Order Upwind for Turbulent Kinetic Energy and Turbulent Dissipation Rate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 555
Using the Mixing Plane Model
a. Enter 0.2 for Pressure in the Pseudo Transient Explicit Relaxation Factors group box.
Note
For this problem, it was found that these under-relaxation factors worked well.
For tips on how to adjust the under-relaxation parameters for different situations, see the Fluent
Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
556 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Ensure that the Plot option is enabled in the Options group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 557
Using the Mixing Plane Model
d. Select Mass Flow Rate from the Report Type drop-down list.
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
558 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click Initialize.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 559
Using the Mixing Plane Model
Note
Click OK in the Question dialog box to discard the current data. After completing 15 it-
erations, the console displays a message that hybrid initialization is done.
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the convergence
behavior of the solver.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
560 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
While the Automatic method is suitable for most cases, for this problem you will
specify a pseudo time step that is larger than the default value, in order to accelerate
the convergence. For information on how the pseudo time step is automatically set,
see the Fluent Theory Guide.
d. Click Calculate.
The solution will converge after approximately 150 iterations, as shown in Figure 13.3: Mass Flow Rate
History (p. 561). However, the residual history plot is only one indication of solution convergence.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 561
Using the Mixing Plane Model
Warning
Although the mass flow rate history indicates that the solution is converged, you
should also check the mass fluxes through the domain to ensure that mass is being
conserved.
a. Retain the default selection of Mass Flow Rate from the Options list.
c. Click Compute.
Warning
The net mass imbalance should be a small fraction (approximately 0.5%) of the
total flux through the system. If a significant imbalance occurs, you should de-
crease your residual tolerances by at least an order of magnitude and continue
iterating.
Note
The fluxes are different for the portions of the rotor and stator that have been modeled.
However, the flux for the whole rotor and the whole stator are both approximately
equal to 0.2292 kg/s (that is, 0.02547 9 rotor blades, and 0.01910 12 stator blades).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
562 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
13.4.10. Postprocessing
1. Create an isosurface at =0.12 m.
The surface =0.12 m is a midspan slice through the mesh. This view is useful for looking at the blade-
to-blade flow field.
a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.
2. Create an isosurface at m.
The surface m is an axial plane downstream of the stator. This will be used to plot circumferentially
averaged profiles.
a. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 563
Using the Mixing Plane Model
Note
The default name that ANSYS Fluent displays in the New Surface Name field (that is,
z-coordinate-17) indicates that this is surface number 17. This fact will be used later
in the tutorial when you plot circumferential averages.
3. Display and save velocity vectors on the midspan surface (Figure 13.4: Velocity Vectors on y=0.12
Near the Stator Blade (p. 565)).
b. Retain the default selection of arrow from the Style drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
564 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Set Skip to 2.
g. Rotate and zoom the view to get the display shown in Figure 13.4: Velocity Vectors on y=0.12 Near the
Stator Blade (p. 565).
Plotting the velocity field in this manner gives a good indication of the midspan flow over the stator.
For the rotor, it is instructive to similarly plot the relative velocity field.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 565
Using the Mixing Plane Model
Note
Surface 17 is the surface z=-0.1 you created earlier. For increased resolution, 15 bands
are used instead of the default 5.
i. Click Add... and select the file circum-plot.xy in the Select File dialog box.
ii. Click Plot and close the File XY Plot dialog box.
The radial variation in the total pressure is very non-uniform, as shown in Figure 13.5: Plot of Circum-
ferential Average of the Total Pressure on z=-0.1 Plane (p. 567). The losses are largest near the hub.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
566 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 13.5: Plot of Circumferential Average of the Total Pressure on z=-0.1 Plane
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 567
Using the Mixing Plane Model
c. Select Pressure... and Static Pressure from the Contours of drop-down lists.
e. Click Compute.
g. Rotate the view to get the display as shown in Figure 13.6: Contours of Total Pressure for the Rotor
Blade and Hub (p. 569).
The pressure contours are displayed in Figure 13.6: Contours of Total Pressure for the Rotor Blade and
Hub (p. 569). Notice the high pressure that occurs on the leading edge of the rotor blade due to the motion
of the blade.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
568 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 13.6: Contours of Total Pressure for the Rotor Blade and Hub
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 569
Using the Mixing Plane Model
c. Click Plot and close the Plot Profile Data dialog box.
Note
The profiles shown are area-averaged profiles computed by the mixing plane model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
570 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
13.5. Summary
This tutorial has demonstrated the use of the mixing plane model for a typical axial flow turbomachine
configuration. The mixing plane model is useful for predicting steady-state flow in a turbomachine
stage, where local interaction effects (such as wake and shock wave interaction) are secondary. If local
effects are important, then a transient, sliding mesh calculation is required.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 571
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
572 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 14: Using Sliding Meshes
This tutorial is divided into the following sections:
14.1. Introduction
14.2. Prerequisites
14.3. Problem Description
14.4. Setup and Solution
14.5. Summary
14.6. Further Improvements
14.1. Introduction
The analysis of turbomachinery often involves the examination of the transient effects due to flow in-
teraction between the stationary components and the rotating blades. In this tutorial, the sliding mesh
capability of ANSYS Fluent is used to analyze the transient flow in an axial compressor stage. The rotor-
stator interaction is modeled by allowing the mesh associated with the rotor blade row to rotate relative
to the stationary mesh associated with the stator blade row.
Set up the transient solver and cell zone and boundary conditions for a sliding mesh simulation.
14.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 573
Using Sliding Meshes
angle of 22.5 degrees. This enables you to model only a portion of the geometry, namely, one rotor
blade and two stator blades. Due to the high Reynolds number of the flow and the relative coarseness
of the mesh (both blade rows are composed of only 13,856 cells total), the analysis will employ the in-
viscid model, so that ANSYS Fluent is solving the Euler equations.
14.4.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
574 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the sliding_mesh_R170.zip link to download the input and solution files.
The mesh file axial_comp.msh can be found in the sliding_mesh directory created after unzipping
the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
14.4.2. Mesh
1. Read in the mesh file axial_comp.msh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 575
Using Sliding Meshes
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Warnings will be displayed regarding unassigned interface zones, resulting in the failure of the mesh
check. You do not need to take any action at this point, as this issue will be rectified when you define
the mesh interfaces in a later step.
Orient the view to display the mesh as shown in Figure 14.2: Rotor-Stator Display (p. 576). The inlet of the
rotor mesh is colored blue, the interface between the rotor and stator meshes is colored yellow, and the
outlet of the stator mesh is colored red.
3. Use the text user interface to change zones rotor-per-1 and rotor-per-3 from wall zones to peri-
odic zones.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
576 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
/mesh/modify-zones> make-periodic
Periodic zone [()] 10
Shadow zone [()] 9
Rotational periodic? (if no, translational) [yes] yes
Create periodic zones? [yes] yes
zone 9 deleted
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 577
Using Sliding Meshes
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
578 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
14.4.4. Models
1. Enable the inviscid model.
14.4.5. Materials
1. Specify air (the default material) as the fluid material, using the ideal gas law to compute density.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 579
Using Sliding Meshes
a. Retain the default entry of air in the Name text entry field.
b. Select ideal-gas from the Density drop-down list in the Properties group box.
As reported in the console, ANSYS Fluent will automatically enable the energy equation, since this is re-
quired when using the ideal gas law to compute the density of the fluid.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
580 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Set the cell zone conditions for the fluid in the rotor (fluid-rotor).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 581
Using Sliding Meshes
c. Retain the default values of (0, 0, 1) for X, Y, and Z in the Rotation-Axis Direction group box.
d. Enter 37500 rpm for Speed in the Rotational Velocity group box.
2. Set the cell zone conditions for the fluid in the stator (fluid-stator).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
582 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default values of (0, 0, 1) for X, Y, and Z in the Rotation-Axis Direction group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 583
Using Sliding Meshes
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
584 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For information about the Supersonic/Initial Gauge Pressure, see the Fluent Users Guide.
c. Click the Thermal tab and enter 288 K for Total Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 585
Using Sliding Meshes
c. Click the Thermal tab and enter 288 K for Backflow Total Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
586 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
The momentum settings and temperature you input at the pressure outlet will be used
only if flow enters the domain through this boundary. It is important to set reasonable
values for these downstream scalar values, in case flow reversal occurs at some point
during the calculation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 587
Using Sliding Meshes
Note
For wall zones, ANSYS Fluent always imposes zero velocity for the normal velocity com-
ponent, which is required whether or not the fluid zone is moving. This condition is all
that is required for an inviscid flow, as the tangential velocity is computed as part of the
solution.
Since you have specified the boundary condition inputs for pressure in terms of absolute pressures, you
have to set the operating pressure to zero. Boundary condition inputs for pressure should always be rel-
ative to the value used for operating pressure.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
588 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Enabling this option, allows ANSYS Fluent to treat the interface between the sliding and non-sliding
zones as periodic where the two zones do not overlap.
Note
In general, when one interface zone is smaller than the other, it is recommended that
you choose the smaller zone as Interface Zone 1. In this case, since both zones are
approximately the same size, the order is not significant.
e. Click Create and close the Create/Edit Mesh Interfaces dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 589
Using Sliding Meshes
2. Check the mesh again to verify that the warnings displayed earlier have been resolved.
14.4.10. Solution
1. Set the solution parameters.
For many general fluid-flow problems, convergence speed can be improved by using the coupled
solver.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
590 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enter 0.5 for Momentum and Pressure in the Explicit Relaxation Factors group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 591
Using Sliding Meshes
c. Enter 0.01 for Relative Criteria for each Residual (continuity, x-velocity, y-velocity, z-velocity, and
energy).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
592 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Select Time Step from the Get Data Every drop-down list.
f. Select Mass Flow Rate from the Report Type drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 593
Using Sliding Meshes
e. Select Time Step from the Get Data Every drop-down list.
f. Select Mass Flow Rate from the Report Type drop-down list.
6. Enable the plotting of the area-weighted average of the static pressure at the interface (stator-interface).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
594 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Select Time Step from the Get Data Every drop-down list.
g. Retain the default selection of Pressure... and Static Pressure from the Field Variable drop-down
lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 595
Using Sliding Meshes
c. Click Initialize.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
596 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The time step is set such that the passing of a single rotor blade is divided into 15 time steps. There
are 16 blades on the rotor. Therefore, in each time step the rotor rotates 360/16/15=1.5 degrees. With
a rotational speed of 37,500 rpm (225,000 deg/sec), 1.5 degrees of rotation takes 1.5 / 2.25e5 =
6.6667e-6 sec.
There are 16 blades on the rotor, and each rotor blade period corresponds to 15 time steps (see
above). Therefore, a complete revolution of the rotor will take 16*15=240 time steps.
d. Click Calculate.
The residuals jump at the beginning of each time step and then fall at least two to three orders of mag-
nitude. Also, the relative convergence criteria is achieved before reaching the maximum iteration limit
(20) for each time step, indicating the limit does not need to be increased.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 597
Using Sliding Meshes
Figure 14.3: Residual History for the First Revolution of the Rotor
10. Examine the monitor histories for the first revolution of the rotor (Figure 14.4: Mass Flow Rate at the Inlet
During the First Revolution (p. 599), Figure 14.5: Mass Flow Rate at the Outlet During the First Revolu-
tion (p. 599), and Figure 14.6: Static Pressure at the Interface During the First Revolution (p. 600)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
598 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 14.4: Mass Flow Rate at the Inlet During the First Revolution
Figure 14.5: Mass Flow Rate at the Outlet During the First Revolution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 599
Using Sliding Meshes
Figure 14.6: Static Pressure at the Interface During the First Revolution
The monitor histories show that the large variations in flow rate and interface pressure that occur early
in the calculation are greatly reduced as time-periodicity is approached.
11. Save the case and data files (axial_comp-0240.cas.gz and axial_comp-0240.dat.gz).
Note
It is a good practice to save the case file whenever you are saving the data file espe-
cially for sliding mesh model. This is because the case file contains the mesh inform-
ation, which is changing with time.
Note
For transient-state calculations, you can add the character string %t to the file name so
that the iteration number is automatically appended to the name (for example, by entering
axial_comp-%t for the File Name in the Select File dialog box, ANSYS Fluent will save
files with the names axial_comp-0240.cas and axial_comp-0240.dat).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
600 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
By saving the monitor histories under a new file name, the range of the axes will automatically be set
to show only the data generated during the next set of iterations. This will scale the plots so that the
fluctuations are more visible.
14. Continue the calculation for 720 more time steps to simulate three more revolutions of the rotor.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 601
Using Sliding Meshes
Note
Calculating three more revolutions will require some additional CPU time. If you choose,
instead of calculating the solution, you can read a data file (axial_comp-0960.dat.gz)
with the precalculated solution for this tutorial. This data file can be found in the slid-
ing_mesh directory.
15. Examine the monitor histories for the next three revolutions of the rotor to verify that the solution is time-
periodic (Figure 14.7: Mass Flow Rate at the Inlet During the Next 3 Revolutions (p. 603) Figure 14.8: Mass
Flow Rate at the Outlet During the Next 3 Revolutions (p. 604), and Figure 14.9: Static Pressure at the Interface
During the Next 3 Revolutions (p. 604)).
Note
If you read the provided data file instead of iterating the solution for three revolutions,
the monitor histories can be displayed by using the File XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
602 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Click the Add button in the File XY Plot dialog box to select one of the monitor histories
from the Select File dialog box, click OK, and then click Plot. To obtain a better view of
the data, you may want to manually change the ranges of the axes.
Figure 14.7: Mass Flow Rate at the Inlet During the Next 3 Revolutions
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 603
Using Sliding Meshes
Figure 14.8: Mass Flow Rate at the Outlet During the Next 3 Revolutions
Figure 14.9: Static Pressure at the Interface During the Next 3 Revolutions
16. Save the case and data files (axial_comp-0960.cas.gz and axial_comp-0960.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
604 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
17. Change the file names for surf-mon-1b.out, surf-mon-2b.out, and surf-mon-3b.out to surf-mon-
1c.out, surf-mon-2c.out, and surf-mon-3c.out, respectively (as described in a previous step),
in preparation for further iterations.
a. Enter -0.02 for x0, -0.08 for y0, and -0.036 for z0 in the Point Surface dialog box.
19. Enable plotting of the static pressure at a point on the stator interface (point-1).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 605
Using Sliding Meshes
e. Select Time Step from the Get Data Every drop-down list.
g. Retain the defaults of Pressure and Static Pressure for Field Variable.
20. Continue the calculation for one final revolution of the rotor, while saving data samples for the postpro-
cessing of the time statistics.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
606 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Enable Data Sampling for Time Statistics in the Options group box.
Enabling Data Sampling for Time Statistics causes ANSYS Fluent to calculate and store mean and
root-mean-square (RMS) values of various quantities and field functions over the calculation interval.
c. Click Calculate.
21. Save the case and data files (axial_comp-1200.cas.gz and axial_comp-1200.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 607
Using Sliding Meshes
Figure 14.10: Static Pressure at a Point on The Stator Interface During the Final Revolution
14.4.11. Postprocessing
In the next three steps you will examine the time-averaged values for the mass flow rates at the inlet and
the outlet during the final revolution of the rotor. By comparing these values, you will verify the conservation
of mass on a time-averaged basis for the system over the course of one revolution.
1. Examine the time-averaged mass flow rate at the inlet during the final revolution of the rotor (as calculated
from surf-mon-1c.out).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
608 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Load Input File... button to open the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 609
Using Sliding Meshes
b. Click the Plot/Modify Input Signal... button to open the Plot/Modify Input Signal dialog box.
i. Examine the values for Min, Max, Mean, and Variance in the Signal Statistics group box.
c. Select the directory path ending in surf-mon-1c.out from the Files selection list.
2. Examine the time-averaged mass flow rate at the outlet during the final revolution of the rotor (as calculated
from surf-mon-2c.out), and plot the data.
a. Click the Load Input File... button to open the Select File dialog box.
b. Click the Plot/Modify Input Signal... button to open the Plot/Modify Input Signal dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
610 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Examine the values for Min, Max, and Variance in the Signal Statistics group box.
iii. Click Apply/Plot to display the area-weighted average of mass flow rate at the outlet (Fig-
ure 14.11: Area-Weighted Average Mass Flow Rate at the Outlet During the Final Revolution (p. 612)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 611
Using Sliding Meshes
Figure 14.11: Area-Weighted Average Mass Flow Rate at the Outlet During the Final
Revolution
3. Examine the vertex-averaged static pressure at the stator during the final revolution of the rotor (as calculated
from surf-mon-4.out), and plot the data.
a. Click the Load Input File... button to open the Select File dialog box.
b. Click the Plot/Modify Input Signal... button to open the Plot/Modify Input Signal dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
612 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 613
Using Sliding Meshes
e. Select exponential from the Type drop-down list, and set Precision to 1 in the Number Format group
box.
f. Click Apply and close the Axes - Fourier Transform dialog box.
g. Click Plot FFT and close the Fourier Transform dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
614 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The FFT plot clearly shows that the pressure fluctuations due to interaction at the interface are
dominated by the rotor and stator blade passing frequencies (which are 10 kHz and 20 kHz, respect-
ively) and their higher harmonics.
4. Display contours of the mean static pressure on the walls of the axial compressor.
b. Select Unsteady Statistics... and Mean Static Pressure from the Contours of drop-down lists.
e. Rotate the view to get the display as shown in Figure 14.13: Mean Static Pressure on the Outer Shroud
of the Axial Compressor (p. 616).
Shock waves are clearly visible in the flow near the outlets of the rotor and stator, as seen in the areas
of rapid pressure change on the outer shroud of the axial compressor.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 615
Using Sliding Meshes
Figure 14.13: Mean Static Pressure on the Outer Shroud of the Axial Compressor
14.5. Summary
This tutorial has demonstrated the use of the sliding mesh model for analyzing transient rotor-stator
interaction in an axial compressor stage. The model utilized the coupled pressure-based solver in con-
junction with the transient algorithm to compute the inviscid flow through the compressor stage. The
solution was calculated over time until the monitored variables displayed time-periodicity (which required
several revolutions of the rotor), after which time-averaged data was collected while running the case
for the equivalent of one additional rotor revolution (240 time steps).
The Fast Fourier Transform (FFT) utility in ANSYS Fluent was employed to determine the time averages
from stored monitor data. You also used the FFT utility to examine the frequency content of the transient
monitor data. The observed peak corresponds to the passing frequency and the higher harmonics of
the passing frequency, which occurred at approximately 10,000 Hz.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
616 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 617
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
618 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 15: Using Dynamic Meshes
This tutorial is divided into the following sections:
15.1. Introduction
15.2. Prerequisites
15.3. Problem Description
15.4. Setup and Solution
15.5. Summary
15.6. Further Improvements
15.1. Introduction
In ANSYS Fluent, the dynamic mesh capability is used to simulate problems with boundary motion,
such as check valves and store separations. The building blocks for dynamic mesh capabilities within
ANSYS Fluent are three dynamic mesh schemes, namely, smoothing, layering, and remeshing. A com-
bination of these three schemes is used to tackle the most challenging dynamic mesh problems. However,
for simple dynamic mesh problems involving linear boundary motion, the layering scheme is often
sufficient. For example, flow around a check valve can be simulated using only the layering scheme, as
is demonstrated in this tutorial.
Check valves are commonly used to allow unidirectional flow. For instance, they are often used to act
as a pressure-relieving device by only allowing fluid to leave the domain when the pressure is higher
than a certain level. In such a case, a ball is connected to a spring that acts to push the ball to the valve
seat and to shut the flow. But when the pressure force on the ball is greater than the spring force, the
ball will move away from the valve seat and allow fluid to leave, thus reducing the pressure upstream.
Gravity could be another factor in the force balance, and can be considered in ANSYS Fluent. The de-
formation of the ball is typically neglected, thus allowing for a rigid body Fluid Structure Interaction
(FSI) calculation, for which a user-defined function (UDF) is provided.
This tutorial provides information for performing basic dynamic mesh calculations by demonstrating
how to do the following:
Use the dynamic mesh capability of ANSYS Fluent to solve a simple flow-driven rigid-body motion problem.
15.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 619
Using Dynamic Meshes
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
15.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
620 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Narrow the results by using the filter on the left side of the page.
6. Click the dynamic_mesh_R170.zip link to download the input and solution files.
The mesh and source files valve.msh and valve.c can be found in the dynamic_mesh directory
created after unzipping the file.
A user-defined function will be used to define the rigid-body motion of the valve geometry. This function
has already been written (valve.c). You will only need to compile it within ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
Note that this tutorial has been generated using single precision, so you should ensure that Double
Precision is disabled if you want to match the tutorial setup exactly.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Users Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
15.4.2. Mesh
1. Read the mesh file valve.msh.
Note
You should always make sure that the cell minimum volume is not negative, since ANSYS
Fluent cannot begin a calculation if this is the case.
2. Change the display units for length to millimeters in the Set Units dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 621
Using Dynamic Meshes
3. Display the mesh (Figure 15.2: Initial Mesh for the Valve (p. 623)).
a. Deselect axis-inlet, axis-move, inlet, and outlet from the Surfaces selection list.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
622 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Select Axisymmetric from drop-down list in the Solver group box (below Reference Values...).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 623
Using Dynamic Meshes
15.4.4. Models
1. Enable the standard - turbulence model.
a. Select k-epsilon (2 eqn) from the Model list and retain the default selection of Standard in the k-ep-
silon Model group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
624 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
15.4.5. Materials
1. Apply the ideal gas law for the incoming air stream.
a. Ensure air is selected from the Fluent Fluid Materials drop-down list.
c. Click Change/Create.
Note that the energy equation is automatically enabled based on your change to the material density
method.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 625
Using Dynamic Meshes
Since the inlet boundary is assigned to a wall boundary type in the original mesh, you will need to explicitly
assign the inlet boundary to a mass flow inlet boundary type in ANSYS Fluent.
b. Select Normal to Boundary from the Direction Specification Method drop-down list.
c. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
626 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Since the outlet boundary is assigned to a wall boundary type in the original mesh, you will need to
explicitly assign the outlet boundary to a pressure outlet boundary type in ANSYS Fluent.
a. Select From Neighboring Cell from the Backflow Direction Specification Method drop-down list.
b. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.
Since the axis-inlet boundary is assigned to a wall boundary type in the original mesh, you will need to
explicitly assign this boundary to an axis boundary type in ANSYS Fluent.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 627
Using Dynamic Meshes
c. Retain the default of Second Order Upwind in the Density drop-down list.
d. Retain the default of Second Order Upwind in the Momentum drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
628 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Retain the defaults of First Order Upwind in the Turbulent Kinetic Energy and Turbulent Dissipation
Rate drop-down lists.
f. Retain the default of Second Order Upwind in the Energy drop-down list.
Retain the default values for Under-Relaxation Factors in the Solution Controls task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 629
Using Dynamic Meshes
Solving Initialization
b. Click Initialize.
Note
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
630 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
Click OK in the Question dialog box that asks if it is OK to discard the current data. The
console will display that hybrid initialization is done.
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the convergence
behavior of the solver.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 631
Using Dynamic Meshes
Select Transient from the Time list in the General task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
632 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Select the source code valve.c in the Select File dialog box.
The UDF is already defined, but it must be compiled within ANSYS Fluent before it can be used in the
solver. Here you will create a library with the default name of libudf in your working folder. If you
want to use a different name, you can enter it in the Library Name field; you would then need to
make sure that you open the correct library in the next step.
A dialog box will appear warning you to make sure that the UDF source files are in the directory that
contains your case and data files. Click OK in the Question dialog box.
When the UDF is built and loaded, it is available to hook to your model. Its name will appear as
valve::libudf and can be selected from drop-down lists of various dialog boxes.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 633
Using Dynamic Meshes
a. Click the Edit... button next to Read Data to open the Read Data Functions dialog box.
i. Select reader::libudf from the Available Read Data Functions selection list.
ii. Click Add to add the selected function to the Selected Read Data Functions selection list.
b. Click the Edit... button next to Write Data to open the Write Data Functions dialog box.
i. Select writer::libudf from the Available Write Data Functions selection list.
ii. Click Add to add the selected function to the Selected Write Data Functions selection list.
These two functions will read / write the position of the center of gravity (CG) and velocity in the X
direction of the valve ball (represented in the mesh by the boundary zone named valve) to the data
file. The location of the CG and the velocity are necessary for restarting a case. When starting from
an intermediate case and data file, ANSYS Fluent needs to know the location of the CG and velocity,
which are the initial conditions for the motion calculation. Those values are saved in the data file
using the writer UDF and will be read in using the reader UDF when reading the data file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
634 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For more information on the available models for moving and deforming zones, see the Fluent
Users Guide.
b. Disable Smoothing and enable Layering in the Mesh Methods group box.
Note
ANSYS Fluent will automatically flag the existing mesh zones for use of the different
dynamic mesh methods where applicable.
c. Click the Settings... button to open the Mesh Method Settings dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 635
Using Dynamic Meshes
ii. Retain the default settings of 0.4 and 0.2 for Split Factor and Collapse Factor, respectively.
4. Specify the dynamic mesh zone motion for the fluid cell zone in which the valve ball moves (fluid-move).
The valve ball motion and the motion of the fluid region are specified by means of the UDF valve.c.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
636 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of Rigid Body from the Type list.
c. Ensure that valve::libudf is selected from the Motion UDF/Profile drop-down list in the Motion At-
tributes tab to hook the UDF to your model.
d. Retain the default settings of (0,0) mm for the Center of Gravity Location, and 0, 0 for the degrees
and location of the Rigid Body Orientation.
Specifying the CG location and orientation is not necessary in this case, because the valve ball motion
and the initial CG position of the valve ball are already defined by the UDF.
e. Click Create.
5. Specify the meshing options for the boundary zone named int-layering in the Dynamic Mesh Zones
dialog box. This boundary zone acts as a layering interface between the stationary inlet cell zone and the
cell zone in which the valve ball moves.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 637
Using Dynamic Meshes
c. Enter 0.5 mm for the Cell Height of the fluid-move Adjacent Zone.
d. Retain the default value of 0 mm for the Cell Height of the fluid-inlet Adjacent zone.
e. Click Create.
6. Specify the meshing options for the boundary zone named outlet in the Dynamic Mesh Zones dialog
box. This boundary zone acts as a stationary outlet for the cell zone in which the valve ball moves.
c. Enter 1.9 mm for the Cell Height of the fluid-move Adjacent Zone.
d. Click Create.
7. Specify the meshing options for the boundary zone named seat-valve in the Dynamic Mesh Zones dialog
box. This boundary zone acts as the stationary valve seat.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
638 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Enter 0.5 mm for the Cell Height of the fluid-move Adjacent Zone.
d. Click Create.
8. Specify the motion of the boundary zone named valve in the Dynamic Mesh Zones dialog box. This
boundary zone surrounds the valve ball that moves relative to the valve seat.
i. Ensure that valve::libudf is selected from the Motion UDF/Profile drop-down list to hook the UDF
to your model.
ii. Retain the default settings of (0,0) mm for the Center of Gravity Location, and 0, 0 for the degrees
and location of the Rigid Body Orientation.
d. Click the Meshing Options tab and enter 0 mm for the Cell Height of the fluid-move Adjacent
zone.
e. Click Create and close the Dynamic Mesh Zones dialog box.
In many moving / deforming mesh (MDM) problems, you may want to preview the mesh motion before
proceeding. In this problem, the mesh motion is driven by the pressure exerted by the fluid on the valve ball
and acting against the inertia of the valve ball. Hence, for this problem, mesh motion in the absence of a
flow field solution is meaningless, and you will not use this feature here.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 639
Using Dynamic Meshes
a. Select PISO from the Scheme drop-down list in Pressure-Velocity Coupling group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
640 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Request that case and data files are automatically saved every 50 time steps.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 641
Using Dynamic Meshes
c. Select flow-time from the Append File Name with drop-down list.
When ANSYS Fluent saves a file, it will append the flow time value to the file name prefix
(valve_tran). The gzipped standard extensions (.cas.gz and .dat.gz) will also be appended.
4. Create animation sequences for the static pressure contour plots and velocity vectors plots for the valve.
Use the solution animation feature to save pressure contour plots and velocity vector plots every five
time steps. After the calculation is complete, you will use the solution animation playback feature to view
the animated plots over time.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
642 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The default value of 1 instructs ANSYS Fluent to update the animation sequence at every time step.
For this case, this would generate a large number of files.
e. Select Time Step from the When drop-down list for pressure and vv.
f. Click the Define... button next to pressure to open the Animation Sequence dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 643
Using Dynamic Meshes
i. Retain the default selection of Metafile in the Storage Type group box.
Note
If you want to store the plots in a folder other than your working folder, enter the
folder path in the Storage Directory field. If this field is left blank (the default),
the files will be saved in your working folder (that is, the folder where you started
ANSYS Fluent).
iii. Select Contours from the Display Type list to open the Contours dialog box.
B. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down
lists.
C. Click Display (Figure 15.3: Contours of Static Pressure at t=0 s (p. 645)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
644 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Animation Sequence dialog box will close, and the check box in the Active column next
to pressure in the Solution Animation dialog box will be enabled.
g. Click the Define... button next to vv to open the Animation Sequence dialog box.
i. Retain the default selection of Metafile in the Storage Type group box.
iii. Select Vectors in the Display Type group box to open the Vectors dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 645
Using Dynamic Meshes
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
646 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Animation Sequence dialog box will close, and the check box in the Active column next
to vv in the Solution Animation dialog box will be enabled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 647
Using Dynamic Meshes
In the accurate solution of a real-life time-dependent CFD problem, it is important to make sure that
the solution converges at every time step to within the desired accuracy. Here, the first few time steps
will only come to a reasonably converged solution.
6. Save the initial case and data files for this transient problem (valve_tran-0.000000.cas.gz and
valve_tran-0.000000.dat.gz).
Extra
If you decide to read in the case file that is provided for this tutorial on the Customer Portal,
you will need to compile the UDF associated with this tutorial in your working folder. This
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
648 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
is necessary because ANSYS Fluent will expect to find the correct UDF libraries in your
working folder when reading the case file.
The UDF (valve.c) that is provided can be edited and customized by changing the para-
meters as required for your case. In this tutorial, the values necessary for this case were
preset in the source code. These values may be modified to best suit your model.
15.4.11. Postprocessing
1. Inspect the solution at the final time step.
a. Inspect the contours of static pressure in the valve (Figure 15.5: Contours of Static Pressure After 150
Time Steps (p. 650)).
Note
You may need to switch to Window 1 (click the upper left graphics window tab) to
view the contour plot.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 649
Using Dynamic Meshes
b. Inspect the velocity vectors near the point where the valve ball meets the valve seat (Figure 15.6: Velocity
Vectors After 150 Time Steps (p. 651)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
650 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 651
Using Dynamic Meshes
a. Select pressure from the Sequences list in the Animation Sequences group box of the Playback
dialog box.
If the Sequences list is empty, click Read... to select the pressure.cxa sequence file from your
working directory.
b. Set the slider bar above Replay Speed about halfway between Slow and Fast.
c. Retain the default settings in the rest of the dialog box and click the button.
You may have to change the window to see the animation. In the drop-down list at the top of the
graphics window, set the window number to 1, which corresponds to the Window that you set for
pressure in the Animation Sequence dialog box.
a. Select vv from the Sequences list in the Animation Sequences box of the Playback dialog box.
If the Sequences list does not contain vv, click Read... to select the vv.cxa sequence file from your
working directory.
b. Retain the default settings in the rest of the dialog box and click the button.
You may have to change the window to see the animation. In the drop-down list at the top of the
graphics window, set the window number to 2, which corresponds to the Window that you set for
vv in the Animation Sequence dialog box.
For additional information on animating the solution, see Modeling Transient Compressible
Flow (p. 255) and see the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
652 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
4. You can also inspect the solution at different intermediate time steps.
a. Read the corresponding case and data files (for example, valve_tran-1-0.010000.cas.gz and
valve_tran-1-0.010000.dat.gz).
15.5. Summary
In this tutorial, a check valve is used to demonstrate the dynamic layering capability within ANSYS
Fluent, using one of the three dynamic mesh schemes available. You were also shown how to perform
a one degree of freedom (1DOF) rigid body FSI by means of a user-defined function (UDF). ANSYS Fluent
can also perform a more general six degrees of freedom (6DOF) rigid body FSI using a built-in Six DOF
solver.
If you decide to run this tutorial in parallel, make sure you use Principal Axes as the partitioning
method.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 653
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
654 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 16: Modeling Species Transport and Gaseous Combustion
This tutorial is divided into the following sections:
16.1. Introduction
16.2. Prerequisites
16.3. Problem Description
16.4. Background
16.5. Setup and Solution
16.6. Summary
16.7. Further Improvements
16.1. Introduction
This tutorial examines the mixing of chemical species and the combustion of a gaseous fuel.
A cylindrical combustor burning methane ( ) in air is studied using the eddy-dissipation model in
ANSYS Fluent.
Enable physical models, select material properties, and define boundary conditions for a turbulent flow with
chemical species mixing and reaction.
Initiate and solve the combustion simulation using the pressure-based solver.
16.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
To learn more about chemical reaction modeling, see the Fluent Users Guide and the Fluent Theory
Guide. Otherwise, no previous experience with chemical reaction or combustion modeling is assumed.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 655
Modeling Species Transport and Gaseous Combustion
16.4. Background
In this tutorial, you will use the generalized eddy-dissipation model to analyze the methane-air combus-
tion system. The combustion will be modeled using a global one-step reaction mechanism, assuming
complete conversion of the fuel to and . The reaction equation is
(16.1)
This reaction will be defined in terms of stoichiometric coefficients, formation enthalpies, and parameters
that control the reaction rate. The reaction rate will be determined assuming that turbulent mixing is
the rate-limiting process, with the turbulence-chemistry interaction modeled using the eddy-dissipation
model.
16.5.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
656 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the species_transport_R170.zip link to download the input and solution files.
The file gascomb.msh can be found in the species_transport folder created after unzipping
the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
16.5.2. Mesh
1. Read the mesh file gascomb.msh.
After reading the mesh file, ANSYS Fluent will report that 1615 quadrilateral fluid cells have been read,
along with a number of boundary faces with different zone identifiers.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 657
Modeling Species Transport and Gaseous Combustion
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume reported is a positive number.
Note
ANSYS Fluent will issue a warning concerning the high aspect ratios of some cells and
possible impacts on calculation of Cell Wall Distance. The warning message includes re-
commendations for verifying and correcting the Cell Wall Distance calculation. In this
particular case the cell aspect ratio does not cause problems so no further action is re-
quired. As an optional activity, you can confirm this yourself after the solution is generated
by plotting Cell Wall Distance as noted in the warning message.
Since this mesh was created in units of millimeters, you will need to scale the mesh into meters.
a. Select mm from the Mesh Was Created In drop-down list in the Scaling group box.
b. Click Scale.
c. Ensure that m is selected from the View Length Unit In drop-down list.
d. Ensure that Xmax and Ymax are set to 1.8 m and 0.225 m respectively.
The default SI units will be used in this tutorial, hence there is no need to change any units in this
problem.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
658 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You should check the mesh after you manipulate it (scale, convert to polyhedra, merge,
separate, fuse, add zones, or smooth and swap). This will ensure that the quality of the
mesh has not been compromised.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 659
Modeling Species Transport and Gaseous Combustion
Extra
You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
660 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
16.5.4. Models
1. Enable heat transfer by enabling the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 661
Modeling Species Transport and Gaseous Combustion
The Viscous Model dialog box will expand to provide further options for the k-epsilon model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
662 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Species Model dialog box will expand to provide further options for the Species Transport
model.
Note
The Mixture Material list contains the set of chemical mixtures that exist in the ANSYS
Fluent database. You can select one of the predefined mixtures to access a complete
description of the reacting system. The chemical species in the system and their
physical and thermodynamic properties are defined by your selection of the mixture
material. You can alter the mixture material selection or modify the mixture material
properties using the Create/Edit Materials dialog box (see Materials (p. 664)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 663
Modeling Species Transport and Gaseous Combustion
The eddy-dissipation model computes the rate of reaction under the assumption that chemical kinetics
are fast compared to the rate at which reactants are mixed by turbulent fluctuations (eddies).
An Information dialog box will open, reminding you to confirm the property values before continuing.
Click OK to continue.
Prior to listing the properties that are required for the models you have enabled, ANSYS Fluent will display
a warning about the symmetry zone in the console. You may have to scroll up to see this warning.
Warning: It appears that symmetry zone 5 should actually be an axis
(it has faces with zero area projections).
Unless you change the zone type from symmetry to axis,
you may not be able to continue the solution without
encountering floating point errors.
In the axisymmetric model, the boundary conditions should be such that the centerline is an axis type
instead of a symmetry type. You will change the symmetry zone to an axis boundary in Boundary Condi-
tions (p. 667).
16.5.5. Materials
In this step, you will examine the default settings for the mixture material. This tutorial uses mixture properties
copied from the Fluent Database. In general, you can modify these or create your own mixture properties
for your specific problem as necessary.
The Create/Edit Materials dialog box will display the mixture material (methane-air) that was selected
in the Species Model dialog box. The properties for this mixture material have been copied from the
Fluent Database... and will be modified in the following steps.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
664 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Edit... button to the right of the Mixture Species drop-down list to open the Species dialog
box.
You can add or remove species from the mixture material as necessary using the Species dialog box.
i. Retain the default selections from the Selected Species selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 665
Modeling Species Transport and Gaseous Combustion
The species that make up the methane-air mixture are predefined and require no modification.
b. Click the Edit... button to the right of the Reaction drop-down list to open the Reactions dialog box.
The eddy-dissipation reaction model ignores chemical kinetics (the Arrhenius rate) and uses only the
parameters in the Mixing Rate group box in the Reactions dialog box. The Arrhenius Rate group
box will therefore be inactive. The values for Rate Exponent and Arrhenius Rate parameters are
included in the database and are employed when the alternate finite-rate/eddy-dissipation model is
used.
d. Retain the selection of mixing-law from the Cp (Specific Heat) drop-down list.
e. Retain the default values for Thermal Conductivity, Viscosity, and Mass Diffusivity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
666 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The calculation will be performed assuming that all properties except density and specific heat are con-
stant. The use of constant transport properties (viscosity, thermal conductivity, and mass diffusivity
coefficients) is acceptable because the flow is fully turbulent. The molecular transport properties will play
a minor role compared to turbulent transport.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 667
Modeling Species Transport and Gaseous Combustion
The symmetry zone must be converted to an axis to prevent numerical difficulties where the radius reduces
to zero.
The Axis dialog box will open and display the default name for the newly created axis zone. Click
OK to continue.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
668 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
To determine the zone for the air inlet, display the mesh without the fluid zone to see the boundaries.
Use the right mouse button to probe the air inlet. ANSYS Fluent will report the zone name (velocity-inlet-
8) in the console.
c. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.
f. Click the Thermal tab and retain the default value of 300 for Temperature.
g. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 669
Modeling Species Transport and Gaseous Combustion
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
670 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.
f. Click the Thermal tab and retain the default value of 300 for Temperature.
g. Click the Species tab and enter 1 for ch4 in the Species Mass Fractions group box.
b. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 671
Modeling Species Transport and Gaseous Combustion
e. Click the Thermal tab and retain the default value of 300 for Backflow Total Temperature.
f. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.
The Backflow values in the Pressure Outlet dialog box are utilized only when backflow occurs at the
pressure outlet. Always assign reasonable values because backflow may occur during intermediate itera-
tions and could affect the solution stability.
Use the mouse-probe method described for the air inlet to determine the zone corresponding to the
outer wall.
6. Set the boundary conditions for the fuel inlet nozzle (wall-2).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
672 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Retain the default selection of Heat Flux in the Thermal Conditions list.
ii. Retain the default value of 0 for Heat Flux, so that the wall is adiabatic.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 673
Modeling Species Transport and Gaseous Combustion
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
674 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enter 0.25 under Density in the Pseudo Transient Explicit Relaxation Factors group box.
The default explicit relaxation parameters in ANSYS Fluent are appropriate for a wide range of general
fluid flow problems. However, in some cases it may be necessary to reduce the relaxation factors to
stabilize the solution. Some experimentation is typically necessary to establish the optimal values.
For this tutorial, it is sufficient to reduce the density explicit relaxation factor to 0.25 for stability.
b. Click Advanced... to open the Advanced Solution Controls dialog box and select the Expert tab.
The Expert tab in the Advanced Solution Controls dialog box allows you to individually specify the
solution method and Pseudo Transient Time Scale Factors for each equation, except for the flow
equations. When using the Pseudo Transient method for general reacting flow cases, increasing the
species and energy time scales is recommended.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 675
Modeling Species Transport and Gaseous Combustion
i. Enable the pseudo-transient method for ch4, o2, co2, h2o, and Energy in the Expert tab, by selecting
each one under On/Off.
ii. Enter 10 for the Time Scale Factor for ch4, o2, co2, h2o, and Energy.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
676 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Solving Initialization
a. Retain the default Hybrid initialization method and click Initialize to initialize the variables.
b. Ensure that Write Binary Files is enabled to produce a smaller, unformatted binary file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 677
Modeling Species Transport and Gaseous Combustion
When using the Automatic Time Step Method ANSYS Fluent computes the Pseudo Transient time step
based on characteristic length and velocity scales of the problem. The Conservative Length Scale
Method uses the smaller of two computed length scales emphasizing solution stability. The Aggressive
Length Scale Method uses the larger of the two which may provide faster convergence in some cases.
The Timescale Factor allows you to further manipulate the computed Time Step calculated by ANSYS
Fluent. Larger time steps can lead to faster convergence. However, if the time step is too large it can
lead to solution instability.
d. Click Calculate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
678 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you choose a file name that already exists in the current folder, ANSYS Fluent will ask
you to confirm that the previous file is to be overwritten.
16.5.8. Postprocessing
Review the solution by examining graphical displays of the results and performing surface integrations at
the combustor exit.
b. Select all the boundaries from the Boundaries selection list (you can click the select-all button ( ).
Note
The energy balance is good because the net result is small compared to the heat of
reaction.
2. Display filled contours of temperature (Figure 16.3: Contours of Temperature (p. 680)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 679
Modeling Species Transport and Gaseous Combustion
c. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
680 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click the Vector Options... button to open the Vector Options dialog box.
The fixed length option is useful when the vector magnitude varies dramatically. With fixed length
vectors, the velocity magnitude is described only by color instead of by both vector length and
color.
ii. Click Apply and close the Vector Options dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 681
Modeling Species Transport and Gaseous Combustion
4. Display filled contours of stream function (Figure 16.5: Contours of Stream Function (p. 683)).
a. Select Velocity... and Stream Function from the Contours of drop-down lists.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
682 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The entrainment of air into the high-velocity methane jet is clearly visible in the streamline display.
5. Display filled contours of mass fraction for (Figure 16.6: Contours of CH4 Mass Fraction (p. 684)).
a. Select Species... and Mass fraction of ch4 from the Contours of drop-down lists.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 683
Modeling Species Transport and Gaseous Combustion
6. In a similar manner, display the contours of mass fraction for the remaining species , , and (Fig-
ure 16.7: Contours of O2 Mass Fraction (p. 685), Figure 16.8: Contours of CO2 Mass Fraction (p. 686), and
Figure 16.9: Contours of H2O Mass Fraction (p. 687)) Close the Contours dialog box when all of the species
have been displayed.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
684 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 685
Modeling Species Transport and Gaseous Combustion
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
686 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 687
Modeling Species Transport and Gaseous Combustion
b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
(16.2)
c. Select pressure-outlet-9 from the Surfaces selection list, so that the integration is performed over this
surface.
d. Click Compute.
The Mass-Weighted Average field will show that the exit temperature is approximately 1840 .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
688 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Velocity... and Velocity Magnitude from the Field Variable drop-down lists.
c. Click Compute.
The Area-Weighted Average field will show that the exit velocity is approximately 3.30 .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 689
Modeling Species Transport and Gaseous Combustion
a. Enable Thermal NOx and Prompt NOx in the Pathways group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
690 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
This will enable the turbulence-chemistry interaction. If turbulence interaction is not enabled, you
will be computing NOx formation without considering the important influence of turbulent fluc-
tuations on the time-averaged reaction rates.
ii. Retain the default selection of beta from the PDF Type drop-down list and enter 20 for PDF Points.
The value for PDF Points is increased from 10 to 20 to obtain a more accurate NOx prediction.
d. Select partial-equilibrium from the [O] Model drop-down list in the Formation Model Parameters
group box in the Thermal tab.
The partial-equilibrium model is used to predict the O radical concentration required for thermal
NOx prediction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 691
Modeling Species Transport and Gaseous Combustion
All of the parameters in the Prompt tab are used in the calculation of prompt NOx formation.
The Fuel Carbon Number is the number of carbon atoms per molecule of fuel. The Equivalence
Ratio defines the fuel-air ratio (relative to stoichiometric conditions).
f. Click Apply to accept these changes and close the NOx Model dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
692 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Deselect all variables except Pollutant no and Temperature Variance from the Equations selection
list.
You will predict NOx formation in a postprocessing mode, with the flow field, temperature, and
hydrocarbon combustion species concentrations fixed. Hence, only the NO equation will be computed.
Prediction of NO in this mode is justified on the grounds that the NO concentrations are very low
and have negligible impact on the hydrocarbon combustion prediction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 693
Modeling Species Transport and Gaseous Combustion
i. In the Expert tab, enable the pseudo-transient method for Pollutant no and Temperature
Variance, by selecting them under On/Off.
ii. Enter 10 for Time Scale Factor for Pollutant no and Temperature Variance.
b. Enter 1 for Pollutant no and Temperature Variance in the Pseudo Transient Explicit Relaxation
Factors group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
694 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Save the new case and data files (gascomb2.cas.gz and gascomb2.dat.gz).
7. Review the solution by creating and displaying a contour definition for NO mass fraction (Figure 16.10: Con-
tours of NO Mass Fraction Prompt and Thermal NOx Formation (p. 696)).
c. Select NOx... and Mass fraction of Pollutant no from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 695
Modeling Species Transport and Gaseous Combustion
Figure 16.10: Contours of NO Mass Fraction Prompt and Thermal NOx Formation
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
696 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select NOx... and Mass fraction of Pollutant no from the Field Variable drop-down lists.
d. Click Compute.
The Mass-Weighted Average field will show that the exit NO mass fraction is approximately 0.00421.
9. Disable the prompt NOx mechanism in preparation for solving for thermal NOx only.
11. Review the thermal NOx solution by displaying the coutnour-no-mass-fraction contour definition for NO
mass fraction (under the Results/Graphics/Contours tree branch) you created earlier (Figure 16.11: Contours
of NO Mass FractionThermal NOx Formation (p. 698)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 697
Modeling Species Transport and Gaseous Combustion
Note that the concentration of NO is slightly lower without the prompt NOx mechanism.
12. Compute the average exit NO mass fraction with only thermal NOx formation.
Tip
Follow the same procedure you used earlier for the calculation with both thermal
and prompt NOx formation.
The Mass-Weighted Average field will show that the exit NO mass fraction with only thermal
NOx formation (without prompt NOx formation) is approximately 0.004174.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
698 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
15. Review the prompt NOx solution by displaying the coutnour-no-mass-fraction contour definition for NO
mass fraction (under the Results/Graphics/Contours tree branch) (Figure 16.12: Contours of NO Mass
FractionPrompt NOx Formation (p. 700)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 699
Modeling Species Transport and Gaseous Combustion
The prompt NOx mechanism is most significant in fuel-rich flames. In this case the flame is lean and
prompt NO production is low.
16. Compute the average exit NO mass fraction only with prompt NOx formation.
Tip
Follow the same procedure you used earlier for the calculation with both thermal
and prompt NOx formation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
700 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Mass-Weighted Average field will show that the exit NO mass fraction with only prompt
NOx formation is approximately 9.975e-05.
Note
The individual thermal and prompt NO mass fractions do not add up to the levels predicted
with the two models combined. This is because reversible reactions are involved. NO
produced in one reaction can be destroyed in another reaction.
17. Use a custom field function to compute NO parts per million (ppm).
(16.4)
Note
This is the dry ppm. Therefore, the value is normalized by removing the water mole
fraction in the denominator.
a. Select NOx... and Mole fraction of Pollutant no from the Field Functions drop-down lists, and click
the Select button to enter molef-pollut-pollutant-0 in the Definition field.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 701
Modeling Species Transport and Gaseous Combustion
Tip
If you make a mistake, click the DEL button on the calculator pad to delete the
last item you added to the function definition.
For more explicit instructions on using the Custom Field Function calculator buttons, see Intro-
duction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121).
c. Select Species... and Mole fraction of h2o from the Field Functions drop-down lists, and click the
Select button to enter molef-h2o in the Definition field.
f. Click Define to add the new field function to the variable list and close the Custom Field Function
Calculator dialog box.
18. Display contours of NO ppm (Figure 16.13: Contours of NO ppm Prompt NOx Formation (p. 703)).
a. Select Custom Field Functions... and no-ppm from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
702 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
The contours closely resemble the mass fraction contours (Figure 16.12: Contours of NO Mass Frac-
tionPrompt NOx Formation (p. 700)), as expected.
16.6. Summary
In this tutorial you used ANSYS Fluent to model the transport, mixing, and reaction of chemical species.
The reaction system was defined by using a mixture-material entry in the ANSYS Fluent database. The
procedures used here for simulation of hydrocarbon combustion can be applied to other reacting flow
systems.
The NOx production in this case was dominated by the thermal NO mechanism. This mechanism is very
sensitive to temperature. Every effort should be made to ensure that the temperature solution is not
overpredicted, since this will lead to unrealistically high predicted levels of NO.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 703
Modeling Species Transport and Gaseous Combustion
The single-step reaction process used in this tutorial cannot account for the moderating effects of inter-
mediate reaction products, such as CO and . Multiple-step reactions can be used to address these
species. If a multi-step Magnussen model is used, considerably more computational effort is required
to solve for the additional species. Where applicable, the nonpremixed combustion model can be used
to account for intermediate species at a reduced computational cost.
For more details on the nonpremixed combustion model, see the Fluent Users Guide.
Radiation heat transfer tends to make the temperature distribution more uniform, thereby lowering the
peak temperature. In addition, radiation heat transfer to the wall can be very significant (especially here,
with the wall temperature set at 300 ). The large influence of radiation can be anticipated by computing
the Boltzmann number for the flow:
where is the Boltzmann constant (5.729 ) and is the adiabatic flame temperature.
For a quick estimate, assume , , and (the majority of the
inflow is air). Assume . The resulting Boltzmann number is Bo = 1.09, which shows that
radiation is of approximately equal importance to convection for this problem.
This tutorial guides you through the steps to reach an initial set of solutions. You may be able to obtain
a more accurate solution by using an appropriate higher-order discretization scheme and by adapting
the mesh. Mesh adaption can also ensure that the solution is independent of the mesh. These steps
are demonstrated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 121).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
704 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 17: Using the Non-Premixed Combustion Model
This tutorial is divided into the following sections:
17.1. Introduction
17.2. Prerequisites
17.3. Problem Description
17.4. Setup and Solution
17.5. Summary
17.6. References
17.7. Further Improvements
17.1. Introduction
The goal of this tutorial is to accurately model the combustion processes in a 300 KW BERL combustor.
The reaction can be modeled using either the species transport model or the non-premixed combustion
model. In this tutorial you will set up and solve a natural gas combustion problem using the non-premixed
combustion model for the reaction chemistry.
Use the Discrete Ordinates (DO) radiation model for combustion applications.
The non-premixed combustion model uses a modeling approach that solves transport equations for
one or two conserved scalars (mixture fractions). Multiple chemical species, including radicals and inter-
mediate species, may be included in the problem definition. Their concentrations will be derived from
the predicted mixture fraction distribution.
Property data for the species are accessed through a chemical database, and turbulence-chemistry in-
teraction is modeled using a -function for the PDF. For details on the non-premixed combustion
modeling approach, the Fluent Users Guide.
17.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 705
Using the Non-Premixed Combustion Model
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
706 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
17.4.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 707
Using the Non-Premixed Combustion Model
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the non_premix_combustion_R170.zip link to download the input and solution files.
The files, berl.msh and berl.prof, can be found in the non_premix_combustion folder,
which will be created after unzipping the file.
The mesh file, berl.msh, is a quadrilateral mesh describing the system geometry shown in Fig-
ure 17.1: Problem Description (p. 706) and Figure 17.2: Close-Up of the Burner (p. 707).
Fluent Launcher displays your Display Options preferences from the previous session.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
The ANSYS Fluent console will report that the mesh contains 9784 quadrilateral cells. A warning will be
generated informing you to consider making changes to the zone type, or to change the problem defin-
ition to axisymmetric. You will change the problem to axisymmetric swirl in Specifying Solver and Ana-
lysis Type (p. 712).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
708 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
b. Select mm from the Mesh Was Created In drop-down list in the Scaling group box.
c. Click Scale and verify that the domain extents are as shown in the Scale Mesh dialog box.
Note
It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.
5. Examine the mesh (Figure 17.3: 2D BERL Combustor Mesh Display (p. 710)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 709
Using the Non-Premixed Combustion Model
Due to the mesh resolution and the size of the domain, you may find it more useful to display just the
outline, or to zoom in on various portions of the mesh display.
Extra
You can use the mouse zoom button (middle button, by default) to zoom in to the display
and the mouse probe button (right button, by default) to find out the boundary zone
labels. The zone labels will be displayed in the console.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
710 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The full geometry is displayed, as shown in Figure 17.4: 2D BERL Combustor Mesh Display Including the
Symmetry Plane (p. 712)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 711
Using the Non-Premixed Combustion Model
Figure 17.4: 2D BERL Combustor Mesh Display Including the Symmetry Plane
Setup General
The non-premixed combustion model is available only with the pressure-based solver.
2. Change the spatial definition to axisymmetric swirl by selecting Axisymmetric Swirl in the 2D Space list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
712 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Since heat transfer occurs in the system considered here, you will have to solve the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 713
Using the Non-Premixed Combustion Model
For axisymmetric swirling flow, the RNG k-epsilon model can also be used, but for this case you will
retain the default Standard, k-epsilon model.
b. Retain the default Standard Wall Functions in the Near-Wall Treatment group box.
c. Click OK to accept all other default settings and close the Viscous Model dialog box.
The DO radiation model provides a high degree of accuracy, but it can be CPU intensive. In cases where
the computational expense of the DO model is deemed too great, the P1 model may provide an acceptable
solution more quickly.
For details on the different radiation models available in ANSYS Fluent, see the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
714 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Click OK to accept all other default settings and close the Radiation Model dialog box.
The ANSYS Fluent console lists the properties that are required for the model you have enabled. An
Information dialog box opens, reminding you to confirm the property values.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 715
Using the Non-Premixed Combustion Model
The dialog box will expand to show the related inputs. You will use this dialog box to create the PDF
table.
When you use the non-premixed combustion model, you need to create a PDF table. This table contains
information on the thermo-chemistry and its interaction with turbulence. ANSYS Fluent interpolates
the PDF during the solution of the non-premixed combustion model.
The Inlet Diffusion option enables the mixture fraction to diffuse out of the domain through inlets
and outlets.
i. Retain the default selection of the Chemical Equilibrium state relation and the Non-Adiabatic
energy treatment.
The Fuel Stream Rich Flammability Limit enables you to perform a partial equilibrium calcu-
lation, suspending equilibrium calculations when the mixture fraction exceeds the specified rich
limit. This increases the efficiency of the PDF calculation, allowing you to bypass the complex
equilibrium calculations in the fuel-rich region. This is also more physically realistic than the as-
sumption of full equilibrium.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
716 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For combustion cases, a value 10% 50% larger than the stoichiometric mixture fraction can be
used for the rich flammability limit of the fuel stream. In this case, the stoichiometric fraction is
0.058, therefore a value that is 10% greater is 0.064.
d. Click the Boundary tab to add and define the boundary species.
i. Enter c2h6 in the Boundary Species text-entry field and click Add.
v. Specify the fuel composition by entering the following values for Fuel:
The fuel composition is entered in mole fractions of the species, c2h6, c3h8, c4h10, and co2.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 717
Using the Non-Premixed Combustion Model
Tip
Note
All boundary species with a mass or mole fraction of zero will be ignored.
vi. Enter 315 K for Fuel and Oxid in the Temperature group box.
e. Click the Control tab and retain default species to be excluded from the equilibrium calculation.
f. Click the Table tab to specify the table parameters and calculate the PDF table.
ii. Retain the default values for all the parameters in the Table Parameters group box.
The maximum number of species determines the number of most preponderant species to consider
after the equilibrium calculation is performed.
iii. Click Calculate PDF Table to compute the non-adiabatic PDF table.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
718 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
A. In the PDF Table dialog box, retain the default parameters and click Display (Figure 17.5: Non-
Adiabatic Temperature Look-Up Table on the Adiabatic Enthalpy Slice (p. 719)).
The 3D look-up tables are reviewed on a slice-by-slice basis. By default, the slice selected corresponds
to the adiabatic enthalpy values. You can also select other slices of constant enthalpy for display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 719
Using the Non-Premixed Combustion Model
The maximum and minimum values for mean temperature and the corresponding mean mixture
fraction is also reported in the console. The maximum mean temperature is reported as 2246 K at a
mean mixture fraction of 0.058.
By default, the file will be saved as formatted (ASCII, or text). To save a binary (unformatted) file,
enable the Write Binary Files option in the Select File dialog box.
All thermodynamic data for the continuous phase, including density, specific heat, and formation enthal-
pies are extracted from the chemical database when the non-premixed combustion model is used. These
properties are transferred to the pdf-mixture material, for which only transport properties, such as vis-
cosity and thermal conductivity, need to be defined. The Density and Cp (Specific Heat) laws cannot
be altered: these properties are stored in the non-premixed combustion look-up tables.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
720 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Under Properties, you can click the View... button next to Mixture Species to view the species included
in the pdf-mixture material. These are the species included during the system chemistry setup.
a. Under Properties, from the Absorption Coefficient drop-down list, select wsggm-domain-based.
Tip
For more details, see radiation in combusting flows in the Fluent Theory Guide.
ANSYS Fluent uses the gas law to compute the mixture density and a mass-weighted mixing law to
compute the mixture . When the non-premixed combustion model is used, do not alter the properties
of the individual species. This will create an inconsistency with the PDF look-up table.
b. Click OK.
The CFD solution for reacting flows can be sensitive to the boundary conditions, in particular the incoming
velocity field and the heat transfer through the walls. Here, you will use profiles to specify the velocity at
air-inlet-4, and the wall temperature for wall-9. The latter approach of fixing the wall temperature to
measurements is common in furnace simulations, to avoid modeling the wall convective and radiative
heat transfer. The data used for the boundary conditions was obtained from experimental data [1].
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 721
Using the Non-Premixed Combustion Model
a. In the Turbulence group, from the Specification Method drop-down list, select Intensity and Hydraulic
Diameter.
d. Click the Thermal tab and enter 1300 K for Backflow Total Temperature.
The exit gauge pressure of zero defines the system pressure at the exit to be the operating pressure. The
backflow conditions for scalars (temperature, mixture fraction, turbulence parameters) will be used only
if flow is entrained into the domain through the exit. It is a good idea to use reasonable values in case
flow reversal occurs at the exit at some point during the solution process.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
722 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. In the Turbulence group, from the Specification Method drop-down list, select Intensity and Hydraulic
Diameter.
Turbulence parameters are defined based on intensity and length scale. The relatively large turbulence
intensity of 17% may be typical for combustion air flows.
h. Click the Species tab. For the non-premixed combustion calculation, you have to define the inlet Mean
Mixture Fraction and Mixture Fraction Variance. In this case, the gas phase air inlet has a zero mixture
fraction. Therefore, you can retain the zero default settings.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 723
Using the Non-Premixed Combustion Model
c. In the Turbulence group, from the Specification Method drop-down list, select Intensity and Hydraulic
Diameter.
The hydraulic diameter has been set to twice the height of the 2D inlet stream.
g. Click the Species tab and enter 1 for Mean Mixture Fraction for the fuel inlet.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
724 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Similarly, set the boundary conditions for wall-7 through wall-13 using the following values:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 725
Using the Non-Premixed Combustion Model
b. Retain the selection of t and x from the Y Axis Function and X Axis Function selection lists, respectively.
c. Click Plot (Figure 17.6: Profile Plot of Temperature for wall-9 (p. 726)).
8. Plot the profiles of velocity for the swirling air inlet (air-inlet-4).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
726 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. From the Y Axis Function selection list, retain the selection of u.
iv. Click Plot (Figure 17.7: Profile Plot of Axial-Velocity for the Swirling Air Inlet (air-inlet-4) (p. 727)).
Figure 17.7: Profile Plot of Axial-Velocity for the Swirling Air Inlet (air-inlet-4)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 727
Using the Non-Premixed Combustion Model
iii. From the X Axis Function selection list, retain the selection of y.
iv. Click Plot (Figure 17.8: Profile Plot of Swirl-Velocity for the Swirling Air Inlet (air-inlet-4) (p. 728)) and
close the Plot Profile Data dialog box.
Figure 17.8: Profile Plot of Swirl-Velocity for the Swirling Air Inlet (air-inlet-4)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
728 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Operating Pressure was already set in the PDF table generation in Specifying the Models (p. 713).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 729
Using the Non-Premixed Combustion Model
a. In the Pressure-Velocity Coupling group, from the Scheme drop-down list, select Coupled.
b. In the Spatial Discretization group, from the Pressure drop-down list, select PRESTO!.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
730 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The default under-relaxation factors are considered to be too aggressive for reacting flow cases with
high swirl velocity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 731
Using the Non-Premixed Combustion Model
Solving Initialization
b. Click Initialize.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
732 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
17.4.9. Postprocessing
1. Display the predicted temperature field (Figure 17.9: Temperature Contours (p. 734)).
b. Select Temperature... and Static Temperature from the Contours of drop-down lists.
c. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 733
Using the Non-Premixed Combustion Model
a. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
734 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Display the contours of mass fraction of O2 (Figure 17.11: Contours of Mass Fraction of o2 (p. 736)).
a. Select Species... and Mass fraction of o2 from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 735
Using the Non-Premixed Combustion Model
1. Compute the gas phase mass fluxes through the domain boundaries.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
736 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default selection of Mass Flow Rate in the Options group box.
b. Select air-inlet-4, fuel-inlet-5, and poutlet-3 from the Boundaries selection list.
c. Click Compute.
The net mass imbalance should be a small fraction of the total flux through the system. If a significant
imbalance occurs, you should decrease your residual tolerances by at least an order of magnitude and
continue iterating.
c. Click Compute, examine the resulting values, and close the Flux Reports dialog box.
The value will be displayed in the console. Positive flux reports indicate heat addition to the domain.
Negative values indicate heat leaving the domain. Again, the net heat imbalance should be a small
fraction (for example, 0.5% or less) of the total energy flux through the system. The reported value
may change for different runs.
3. Compute the mass weighted average of the temperature at the pressure outlet.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 737
Using the Non-Premixed Combustion Model
b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
d. Click Compute.
17.5. Summary
In this tutorial you learned how to use the non-premixed combustion model to represent the gas phase
combustion chemistry. In this approach the fuel composition was defined and assumed to react according
to the equilibrium system data. This equilibrium chemistry model can be applied to other turbulent,
diffusion-reaction systems. You can also model gas combustion using the finite-rate chemistry model.
You also learned how to set up and solve a gas phase combustion problem using the Discrete Ordinates
radiation model, and applying the appropriate absorption coefficient.
17.6. References
1. A. Sayre, N. Lallement, J. Dugu, and R. Weber Scaling Characteristics of Aerodynamics and Low-NOx
Properties of Industrial Natural Gas Burners, The SCALING 400 Study, Part IV: The 300 KW BERL Test Results,
IFRF Doc No F40/y/11, International Flame Research Foundation, The Netherlands.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
738 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 739
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
740 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 18: Modeling Surface Chemistry
This tutorial is divided into the following sections:
18.1. Introduction
18.2. Prerequisites
18.3. Problem Description
18.4. Setup and Solution
18.5. Summary
18.6. Further Improvements
18.1. Introduction
In chemically reacting laminar flows, such as those encountered in chemical vapor deposition (CVD)
applications, accurate modeling of time-dependent hydrodynamics, heat and mass transfer, and
chemical reactions (including wall surface reactions) is important.
In this tutorial, surface reactions are considered. Modeling the reactions taking place at gas-solid interfaces
is complex and involves several elementary physicochemical processes like adsorption of gas-phase
species on the surface, chemical reactions occurring on the surface, and desorption of gases from the
surface back to the gas phase.
Enable physical models and define boundary conditions for a chemically reacting laminar flow involving
wall surface reactions.
18.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 741
Modeling Surface Chemistry
Before beginning with this tutorial, see the Fluent Users Guide for more information about species
transport, chemically reacting flows, wall surface reaction modeling, and chemical vapor deposition. In
particular, you should be familiar with the Arrhenius rate equation, as this equation is used for the
surface reactions modeled in this tutorial.
The process gases, Trimethyl Gallium ( ) and Arsine ( ) enter the reactor at 293 K through
the inlet at the top. These gases flow over the hot, spinning disk depositing thin layers of gallium and
arsenide on it in a uniform, repeatable manner. The disk rotation generates a radially pumping effect,
which forces the gases to flow in a laminar manner down to the growth surface, outward across the
disk, and finally to be discharged from the reactor.
The semiconductor materials Ga(s) and As(s) are deposited on the heated surface governed by the fol-
lowing surface reactions.
(18.1)
(18.2)
The inlet gas is a mixture of Trimethyl Gallium, which has a mass fraction of 0.15, and Arsine, which has
a mass fraction of 0.4, the remainder is hydrogen. The mixture velocity at the inlet is 0.02189 m/s. The
disk rotates at 80 rad/sec. The top wall (wall-1) is heated to 473 K and the sidewalls (wall-2) of the reactor
are maintained at 343 K. The susceptor (wall-4) is heated to a uniform temperature of 1023 K and the
bottom wall (wall-6) is at 303 K. These CVD reactors are typically known as cold-wall reactors, where
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
742 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
only the wafer surface is heated to higher temperatures, while the remaining reactor walls are maintained
at low temperatures.
In this tutorial, simultaneous deposition of Ga and As is simulated and examined. The mixture properties
and the mass diffusivity are determined based on kinetic theory. Detailed surface reactions with multiple
sites and site species, and full multi-component/thermal diffusion effects are also included in the simu-
lation.
The purpose of this tutorial is to demonstrate surface reaction capabilities in ANSYS Fluent. Convective
heat transfer is considered to be the dominant mechanism compared to radiative heat transfer, thus
radiation effects are ignored.
18.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the surface_chem_R170.zip link to download the input and solution files.
7. Unzip the surface_chem_R170.zip file you have downloaded to your working folder.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 743
Modeling Surface Chemistry
The file surface.msh can be found in the surface_chem folder created after unzipping the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
744 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select cm (centimeters) from the Mesh Was Created In drop-down list in the Scaling group box.
b. Click Scale and verify that the domain extents are as shown in the Scale Mesh dialog box.
The default SI units will be used in this tutorial, hence there is no need to change any units.
Note
It is a good practice to check the mesh after manipulating it (scale, convert to polyhedra,
merge, separate, fuse, add zones, or smooth and swap). This will ensure that the quality
of the mesh has not been compromised.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 745
Modeling Surface Chemistry
Extra
You can use the left mouse button to rotate the image and view it from different angles.
Use the right mouse button to check which zone number corresponds to each boundary.
If you click the right mouse button on one of the boundaries in the graphics window, its
name and type will be printed in the ANSYS Fluent console. This feature is especially
useful when you have several zones of the same type and you want to distinguish between
them quickly. Use the middle mouse button to zoom the image.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
746 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 747
Modeling Surface Chemistry
The Species Model dialog box will expand to show relevant input options.
b. Retain the selection of mixture-template from the Mixture Material drop-down list.
This includes the effect of enthalpy transport due to species diffusion in the energy equation, which
contributes to the energy balance, especially for the case of Lewis numbers far from unity.
The Full Multicomponent Diffusion activates Stefan-Maxwells equations and computes the diffusive
fluxes of all species in the mixture to all concentration gradients. The Thermal Diffusion effects cause
heavy molecules to diffuse less rapidly, and light molecules to diffuse more rapidly, toward heated
surfaces.
The ANSYS Fluent console will display a list of the properties that are required for the models that
you have enabled.
An Information dialog box will open reminding you to confirm the property values that have been
extracted from the database.
1. Copy arsenic-trihydride, hydrogen, methyl-radical, and trimethyl-gallium from the ANSYS Fluent material
database to the list of fluid materials and modify their properties.
a. Click Fluent Database... in the Create/Edit Materials dialog box to open the Fluent Database Mater-
ials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
748 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. In the Fluent Database Materials dialog box, select fluid from the Material Type drop-down list.
c. From the Fluent Fluid Materials selection list, select arsenic-trihydride (ash3), hydrogen (h2), methyl-
radical (ch3), and trimethyl-gallium (game3) by clicking each species once.
Scroll down the Fluent Fluid Materials list to locate each species.
The Create/Edit Materials dialog box is updated to show the new materials, arsenic-trihydride
(ash3), hydrogen (h2), methyl-radical (ch3), and trimethyl-gallium (game3), in the Fluent
Fluid Materials drop-down list. The species are also listed under Fluid in the Materials task page
and the Setup/Materials/Fluid tree branch.
2. Create the site species (Ga_s and As_s) and the solid species (Ga and As).
a. In the Create/Edit Materials dialog box, select air from the Fluent Fluid Materials drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 749
Modeling Surface Chemistry
e. Click No in the Question dialog box when asked if you want to overwrite air.
The new material ga_s is added to your model and listed under Fluid in the Materials task page
and under the Setup/Materials/Fluid tree branch.
f. Create As_s, Ga, and As following the same procedure as for Ga_s and close the Create/Edit Materials
dialog box.
Extra
To enter complex formulae such as Ga(CH3)3 in the text entry box, use < and > instead
of ( and ), respectively.
b. Click Change/Create.
i. In Properties group box, click the Edit... button to the right of the names drop-down list for Mixture
Species to open the Species dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
750 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. Set the Selected Species from the Available Materials selection list as shown in Table 18.1: Selected
Species (p. 751) .
Selected Species
ash3
game3
ch3
h2
Important
Ensure that h2 is at the bottom in the Selected Species selection list as shown in
Table 18.1: Selected Species (p. 751). ANSYS Fluent will interpret the last species in the
list as the bulk species.
Note
To add a particular species to the list, select the required species from the Available
Materials selection list and click Add in the corresponding species selection list (Se-
lected Species, Selected Site Species, or Selected Solid Species). The species will
be added to the end of the relevant list and removed from the Available Materials
list.
To remove an unwanted species from the selection list, select the species from the
selection list (Selected Species, Selected Site Species, or Selected Solid Species)
and click Remove in the corresponding selection list. The species will be removed
from the list and added to the Available Materials list.
iv. Click Change/Create and close the Creat/Edit Materials dialog box.
Although you enable reactions, you still run a non-reacting flow to produce an initial solution. You will
run a reacting flow in Simulating Reacting Flow (p. 768).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 751
Modeling Surface Chemistry
b. Retain the selection of gass_deposition from the Mixture Material drop-down list.
The ANSYS Fluent console will display a list of the properties that are required for the models that
you have enabled.
The ANSYS Fluent console will display a list of the properties that are required for the models that
you have enabled.
An Information dialog box will open reminding you to confirm the property values that have been
extracted from the database.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
752 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
5. Set the site and solid species and the mixture reactions in a similar manner to the mixture species.
a. Click the Edit... button to the right of the names drop-down list for Mixture Species in the Properties
group box.
Specify the Selected Site Species and the Selected Solid Species as shown in Table 18.2: Selected
Site and Solid Species (p. 753).
Once you set the site and solid species, the Species dialog box should look like this:
c. Click the Edit... button to the right of the Reaction drop-down list to open the Reactions dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 753
Modeling Surface Chemistry
d. Increase the Total Number of Reactions to 2, and define the following reactions using the parameters
in Table 18.3: Reaction Parameters (p. 754) :
(18.3)
(18.4)
Parameter For Equation 18.3 (p. 754) For Equation 18.4 (p. 754)
Reaction ID 1 2a
Reaction Name gallium-dep arsenic-dep
Reaction Type Wall Surface Wall Surface
Number of Reactants 2 2
Species ash3, ga_s game3, as_s
Stoich. Coefficient ash3= 1, ga_s= 1 game3= 1, as_s= 1
Rate Exponent ash3= 1, ga_s= 1 game3= 1, as_s= 1
Arrhenius Rate PEF= 1e+06, AE= 0, TE= 0.5b PEF= 1e+12, AE= 0, TE= 0.5
Number of Products 3 3
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
754 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Parameter For Equation 18.3 (p. 754) For Equation 18.4 (p. 754)
Species ga, as_s, h2 as, ga_s, ch3
Stoich. Coefficient ga= 1, as_s= 1, h2= 1.5 as= 1, ga_s= 1, ch3= 3
Rate Exponent as_s= 0, h2= 0 ga_s= 0, ch3= 0
a
Set the ID to 2 in order to set the parameters for the second reaction.
b
Here, PEF = Pre-Exponential Factor, AE = Activation Energy, and TE = Temperature Exponent.
e. Click OK to save the data and close the Reactions dialog box.
i. Click the Edit... button to the right of the Mechanism drop-down list to open the Reaction Mech-
anisms dialog box.
viii.Click the Define... button to the right of site-1 to open the Site Parameters dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 755
Modeling Surface Chemistry
B. Select ga_s as the first site species and enter 0.7 for Initial Site Coverage.
C. Select as_s as the second site species and enter 0.3 for Initial Site Coverage.
g. Retain the default selection of incompressible-ideal-gas from the Density drop-down list.
h. Retain the default selection of mixing-law from the Cp (Specific Heat) drop-down list.
k. Retain the default selection of kinetic-theory from the Mass Diffusivity drop-down list.
l. Retain the default selection of kinetic-theory from the Thermal Diffusion Coefficient drop-down list.
6. Specify the material properties for arsenic-trihydride, hydrogen, methyl-radical, trimethyl-gallium, site
species (Ga_s and As_s), and solid species (Ga and As).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
756 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Properties group box, modify the arsenic-trihydride properties as shown in Table 18.4: Properties
of Species (p. 757).
Important
Tip
Scroll down in the Properties group box to see all the parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 757
Modeling Surface Chemistry
b. When finished, click Change/Create to update your local copy of the species material.
Note
When you modify the properties of the material local copy, the original copy in Fluent
material database stays intact.
c. In a similar way, modify the properties of trimethyl-gallium (game3), methyl-radical (ch3), and hy-
drogen (h2).
Note
Make sure to click Change/Create each time you modify the properties for the mater-
ial to apply the changes to the local copy.
e. Enter the parameter values for the ga_s species as shown in Table 18.5: Properties of Species (p. 758).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
758 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
f. Modify the material properties for As_s, Ga, and As as shown in Table 18.5: Properties of Species (p. 758).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 759
Modeling Surface Chemistry
a. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.
b. Retain the default selection of Absolute from the Reference Frame drop-down list.
e. Under the Species tab, set the Species Mass Fractions for ash3 to 0.4, game3 to 0.15, and ch3 to
0.
The mass fraction of hydrogen is 0.45, but there is no need to specify this since it is the last species
in the mixture.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
760 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Under the Species tab, set the Species Mass Fractions for ash3 to 0.32, game3 to 0.018, and ch3
to 0.06.
Since a certain amount of backflow is expected in the flow regions around the rotating shaft,
you should set the realistic backflow species mass fractions to minimize convergence difficulties.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 761
Modeling Surface Chemistry
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
762 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Wall dialog box will expand to wall motion inputs and options.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 763
Modeling Surface Chemistry
i. Enable Reaction.
ii. Retain the selection of gaas-ald from the Reaction Mechanisms drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
764 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Enable Gravity.
The Operating Conditions dialog box can be accessed from the Cell Zone Conditions task page as well
as the Setting Up Physics ribbon tab.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 765
Modeling Surface Chemistry
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
766 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default settings and close the Residual Monitors dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 767
Modeling Surface Chemistry
a. Retain the default selection of Hybrid Initialization from the Initialization Methods group box.
b. Click Initialize.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
768 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Ensure that Mass Deposition Source is enabled in the Wall Surface Reaction Options group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 769
Modeling Surface Chemistry
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
770 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default selection of Mass Flow Rate in the Options group box.
b. Select outlet, velocity-inlet, and wall-4 from the Boundaries selection list.
In order to properly assess the mass balance, you must account for the mass deposition on the spinning
disk. Hence you select wall-4 in addition to the inlet and outlet boundaries.
c. Click Compute, examine the values displayed in the Results and Net Results boxes, and close the Flux
Reports dialog box.
The net mass imbalance should be a small fraction (for example, 0.5% or less) of the total flux
through the system. If a significant imbalance occurs, you should decrease your residual tolerances
by at least an order of magnitude and continue iterating.
5. Display contours of surface deposition rate of ga (Figure 18.3: Contours of Surface Deposition Rate of
Ga (p. 772)).
b. Select Species... and Surface Deposition Rate of ga from the Contours of drop-down lists.
Rotate the display with the mouse to obtain the view as shown in (Figure 18.3: Contours of Surface De-
position Rate of Ga (p. 772)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 771
Modeling Surface Chemistry
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
772 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 773
Modeling Surface Chemistry
a. Retain the default selection of Mass Flow Rate in the Options group box.
b. Retain the selection of outlet and velocity-inlet and, wall-4 from the Boundaries selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
774 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Click Compute, examine the values displayed in the Results and Net Results boxes, and close the Flux
Reports dialog box.
Again, the net mass imbalance should be a small fraction (for example, 0.5% or less) of the total
flux through the system.
a. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.
b. Click Compute.
The Min and Max fields display the z-extent of the domain.
Note
If you want to delete or otherwise manipulate any surfaces, click Manage... to open
the Surfaces dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 775
Modeling Surface Chemistry
2. Display contours of temperature on the plane surface created. (Figure 18.5: Temperature Contours Near
wall-4 (p. 777)).
b. Select Temperature... and Static Temperature from the Contours of drop-down lists.
e. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
776 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 18.5: Temperature Contours Near wall-4 (p. 777) shows the temperature distribution across a plane
just above the rotating disk. You can see that the disk has a temperature of 1023 K.
3. Display contours of surface deposition rates of ga (Figure 18.6: Contours of Surface Deposition Rate of
ga (p. 778)).
a. Select Species... and Surface Deposition Rate of ga from the Contours of drop-down lists.
d. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 777
Modeling Surface Chemistry
You may need to use the left mouse button to rotate the image so that you can see the contours on the
top side of wall-4 where the deposition takes place.
Figure 18.6: Contours of Surface Deposition Rate of ga (p. 778) shows the gradient of surface deposition
rate of ga. The maximum deposition is seen at the center of the disk.
4. Display contours of surface coverage of ga_s (Figure 18.7: Contours of Surface Coverage of ga_s (p. 779)).
a. Select Species... and Surface Coverage of ga_s from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
778 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 18.7: Contours of Surface Coverage of ga_s (p. 779) shows the rate of surface coverage of the site
species ga_s.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 779
Modeling Surface Chemistry
a. Enter the values for x0, x1, y0, y1, z0, and z1 as follows:
You can also select the points by clicking Select Points with Mouse. Then, in the graphic display,
click at the center of wall-4 and at the edge using the right mouse button.
b. Click Create to accept the default name of line-9 for the New Surface Name.
Note
If you want to delete or otherwise manipulate any surfaces, click Manage... to open
the Surfaces dialog box
6. Plot the surface deposition rate of Ga versus radial distance (Figure 18.8: Plot of Surface Deposition Rate
of Ga (p. 782)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
780 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Species... and Surface Deposition Rate of ga from the Y Axis Function drop-down lists.
The source/sink terms due to the surface reaction are deposited in the cell adjacent to the wall cells,
so it is necessary to plot the cell values and not the node values.
c. Select line-9 you just created from the Surfaces selection list.
The peak surface deposition rate occurs at the center of wall-4 (where the concentration of the mixture
is highest).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 781
Modeling Surface Chemistry
Extra
You can also perform all the postprocessing steps to analyze the deposition of As.
18.5. Summary
The main focus of this tutorial is the accurate modeling of macroscopic gas flow, heat and mass transfer,
species diffusion, and chemical reactions (including surface reactions) in a rotating disk CVD reactor. In
this tutorial, you learned how to use the two-step surface reactions involving site species, and computed
simultaneous deposition of gallium and arsenide from a mixture of precursor gases on a rotating sus-
ceptor. Note that the same approach is valid if you are simulating multi-step reactions with multiple
sites/site species.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
782 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 19: Modeling Evaporating Liquid Spray
This tutorial is divided into the following sections:
19.1. Introduction
19.2. Prerequisites
19.3. Problem Description
19.4. Setup and Solution
19.5. Summary
19.6. Further Improvements
19.1. Introduction
In this tutorial, the air-blast atomizer model in ANSYS Fluent is used to predict the behavior of an
evaporating methanol spray. Initially, the air flow is modeled without droplets. To predict the behavior
of the spray, the discrete phase model is used, including a secondary model for breakup.
19.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 783
Modeling Evaporating Liquid Spray
19.4.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
784 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the evaporate_liquid_R170.zip link to download the input and solution files.
The mesh file sector.msh can be found in the evaporate_liquid directory created after unzipping
the file.
8. Use the ANSYS Fluent Launcher to start the 3D version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about the ANSYS Fluent Launcher, see starting ANSYS Fluent using the Fluent
Launcher in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
19.4.2. Mesh
1. Read in the mesh file sector.msh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 785
Modeling Evaporating Liquid Spray
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
786 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select only atomizer-wall, central_air, and swirling_air from the Surfaces selection list.
Tip
To deselect all surfaces click the far-right unshaded button ( ) at the top of the Sur-
faces selection list, and then select the desired surfaces from the Surfaces selection
list.
c. Click the Colors... button to open the Mesh Colors dialog box.
The graphics display will be updated to show the mesh. Zoom in with the mouse to obtain the view
shown in Figure 19.2: Air-Blast Atomizer Mesh Display (p. 788).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 787
Modeling Evaporating Liquid Spray
6. Reorder the mesh using the commands available in the Mesh group under the Setting Up Domain ribbon
tab that is found at the top of the ANSYS Fluent window.
To speed up the solution procedure, the mesh should be reordered, which will substantially reduce the
bandwidth.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
788 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
19.4.3. Solver
Retain the default solver settings of pressure-based steady-state solver in the Solver group of the Setting
Up Physics tab.
19.4.4. Models
1. Enable heat transfer by enabling the energy equation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 789
Modeling Evaporating Liquid Spray
The Realizable - model gives a more accurate prediction of the spreading rate of both planar and
round jets than the standard - model.
c. Retain the default selection of Standard Wall Functions in the Near-Wall Treatment list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
790 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Mixture Material list contains the set of chemical mixtures that exist in the ANSYS Fluent database.
When selecting an appropriate mixture for your case, you can review the constituent species and the
reactions of the predefined mixture by clicking View... next to the Mixture Material drop-down list.
The chemical species and their physical and thermodynamic properties are defined by the selection
of the mixture material. After enabling the Species Transport model, you can alter the mixture ma-
terial selection or modify the mixture material properties using the Create/Edit Materials dialog
box. You will modify your local copy of the mixture material later in this tutorial.
In the console window, ANSYS Fluent lists the properties that are required for the models you have
enabled. An Information dialog box opens, reminding you to confirm the property values that have
been extracted from the database.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 791
Modeling Evaporating Liquid Spray
19.4.5. Materials
Define materials using the Materials task page.
Setup Materials
1. Remove water vapor and carbon dioxide from the Mixture Species list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
792 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Edit button next to the Mixture Species drop-down list to open the Species dialog box.
i. Select carbon dioxide (co2) from the Selected Species selection list.
ii. Click Remove to remove carbon dioxide from the Selected Species list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 793
Modeling Evaporating Liquid Spray
iii. In a similar manner, remove water vapor (h2o) from the Selected Species list.
Note
It is good practice to click the Change/Create button whenever changes are made
to material properties even though it is not necessary in this case.
1. Set the boundary conditions for the inner air stream (central_air).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
794 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list.
h. Click the Thermal tab and enter 293 K for Total Temperature.
i. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.
2. Set the boundary conditions for the air stream surrounding the atomizer (co-flow-air).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 795
Modeling Evaporating Liquid Spray
b. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list.
f. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
796 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select From Neighboring Cell from the Backflow Direction Specification Method drop-down list.
b. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list.
e. Click the Thermal tab and enter 293 K for Backflow Total Temperature.
f. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.
4. Set the boundary conditions for the swirling annular stream (swirling_air).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 797
Modeling Evaporating Liquid Spray
a. Select Magnitude and Direction from the Velocity Specification Method drop-down list.
c. Select Cylindrical (Radial, Tangential, Axial) from the Coordinate System drop-down list.
g. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list.
k. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.
5. Set the boundary conditions for the outer wall of the atomizer (outer-wall).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
798 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 799
Modeling Evaporating Liquid Spray
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
The message appears in the console informing you of changing AMG cycle type for Volume Fraction,
Turbulent Kinetic Energy, and Turbulent Dissipation Rate to F-cycle.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
800 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 801
Modeling Evaporating Liquid Spray
Solving Initialization
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the convergence
behavior of the solver.
a. Select User Specified from the Time Step Method group box.
d. Click Calculate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
802 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
ANSYS Fluent will ask you to confirm that the previous case file is to be overwritten.
8. Create a clip plane to examine the flow field at the midpoint of the atomizer section.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 803
Modeling Evaporating Liquid Spray
a. Select Mesh... and Angular Coordinate from the Surface of Constant drop-down lists.
b. Click Compute to obtain the minimum and maximum values of the angular coordinate.
9. Review the current state of the solution by examining contours of velocity magnitude (Figure 19.4: Velocity
Magnitude at Mid-Point of Atomizer Section (p. 806)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
804 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
f. Use the mouse to obtain the view shown in Figure 19.4: Velocity Magnitude at Mid-Point of Atomizer
Section (p. 806).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 805
Modeling Evaporating Liquid Spray
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
806 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Define... button to open the Graphics Periodicity dialog box.
iv. Click Set and close the Graphics Periodicity dialog box.
11. Display pathlines of the air in the swirling annular stream (Figure 19.5: Pathlines of Air in the Swirling An-
nular Stream (p. 809)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 807
Modeling Evaporating Liquid Spray
You will need to scroll down the list to access this item.
e. Use the mouse to obtain the view shown in Figure 19.5: Pathlines of Air in the Swirling Annular
Stream (p. 809).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
808 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 809
Modeling Evaporating Liquid Spray
This will include the effects of the discrete phase trajectories on the continuous phase.
b. Retain the value of 10 for Number of Continuous Phase Iterations per DPM Iteration.
c. Select Mean Values in the Contour Plots for DPM Variables group box.
This will make the cell-averaged variables available for postprocessing activities.
d. Select the Unsteady Particle Tracking option in the Particle Treatment group box.
g. Under the Physical Models tab, select the Temperature Dependent Latent Heat.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
810 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Enabling this option will allow you to run the simulation with more aggressive setting for the
Discrete Phase Sources under-relaxation factor to speed up the solution convergence.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 811
Modeling Evaporating Liquid Spray
l. In the Set Injection Properties dialog box, select air-blast-atomizer from the Injection Type drop-
down list.
This option controls the number of droplet parcels that are introduced into the domain at every time
step.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
812 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
p. In the Point Properties tab, specify point properties for particle injections.
iii. Retain the default values of 0, 0, and 1 for X-Axis, Y-Axis, and Z-Axis, respectively.
This is the methanol flow rate for a 30-degree section of the atomizer. The actual atomizer flow
rate is 12 times this value.
vi. Retain the default Start Time of 0 s and enter 100 s for the Stop Time.
For this problem, the injection should begin at and not stop until long after the time period
of interest. A large value for the stop time (for example, 100 s) will ensure that the injection will
essentially never stop.
vii. Enter 0.0035 m for the Injector Inner Diameter and 0.0045 m for the Injector Outer Diameter.
The spray angle is the angle between the liquid sheet trajectory and the injector centerline. In this
case, the value is negative because the sheet is initially converging toward the centerline.
The relative velocity is the expected relative velocity between the atomizing air and the liquid
sheet.
x. Retain the default Azimuthal Start Angle of 0 degrees and enter 30 degrees for the Azimuthal
Stop Angle.
This will restrict the injection to the 30-degree section of the atomizer that is being modeled.
q. In the Physical Models tab, specify the breakup model and drag parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 813
Modeling Evaporating Liquid Spray
i. Ensure that Enable Breakup and TAB are enabled in the Breakup group box.
ii. Retain the default values of 0 for y0 and 2 for Breakup Parcels in the Breakup Constants group
box.
iii. Select dynamic-drag from the Drag Law drop-down list in the Drag Parameters group box.
The dynamic-drag law is available only when the Breakup model is used.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
814 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Enable Discrete Random Walk Model and Random Eddy Lifetime in the Stochastic Tracking
group box.
These models will account for the turbulent dispersion of the droplets.
An Information dialog box appears reminding you to confirm the property values before
continuing. Click OK in the Information dialog box to continue.
Note
To modify the existing injection, select its name in the Injections list and click
Set..., or simply double-click the injection of interest.
Note
In the case that the spray injection would be striking a wall, you should specify the
wall boundary conditions for the droplets. Though this tutorial does have wall zones,
they are a part of the atomizer apparatus. You need not change the wall boundary
conditions any further because these walls are not in the path of the spray droplets.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 815
Modeling Evaporating Liquid Spray
When secondary atomization models (such as Breakup) are used, several droplet properties need to be
specified.
c. Ensure that piecewise-linear is selected from the Saturation Vapor Pressure drop-down list.
d. Click the Edit... button next to Saturation Vapor Pressure to open the Piecewise-Linear Profile dialog
box.
i. Review the default values and click OK to close the Piecewise-Linear Profile dialog box.
g. Click Change/Create to accept the change in properties for the methanol droplet material and close
the Create/Edit Materials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
816 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
19.4.9. Solution
1. Increase the under-relaxation factor for Discrete Phase Sources.
In the Pseudo Transient Explicit Relaxation Factors group box, change the under-relaxation factor
for Discrete Phase Sources to 0.9.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 817
Modeling Evaporating Liquid Spray
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
818 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Enable Plot.
d. Select Species... and Mass fraction of ch3oh from the Field Variable drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 819
Modeling Evaporating Liquid Spray
b. Enable Plot.
c. Click the Axes... button to open the Axes - volume Monitor Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
820 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iv. Click Apply and close the Axes - volume Monitor Plot dialog box.
e. Select Discrete Phase Sources... and DPM Mass Source from the Field Variable drop-down lists.
5. Request 200 more iterations (Figure 19.6: Convergence History of Mass Fraction of ch3oh on Fluid (p. 821)
and Figure 19.7: Convergence History of DPM Mass Source on Fluid (p. 822)).
It can be concluded that the solution is converged because the number of particle tracks are constant
and the monitors are flat.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 821
Modeling Evaporating Liquid Spray
19.4.10. Postprocessing
1. Display the trajectories of the droplets in the spray injection (Figure 19.8: Particle Tracks for the Spray Injec-
tion (p. 824)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
822 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of point from the Track Style drop-down list.
c. Select Particle Variables... and Particle Diameter from the Color by drop-down lists.
This will display the location of the droplets colored by their diameters.
e. Click Display. As an optional exercise, you can increase the particle size by clicking the Attributes... button
in the Particle Tracks dialog box and adjusting the Marker Size value in the Track Style Attributes dialog
box.
g. Restore the 30degree section to obtain the view as shown in Figure 19.8: Particle Tracks for the Spray
Injection (p. 824).
ii. Click Reset and close the Graphics Periodicity dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 823
Modeling Evaporating Liquid Spray
h. Use the mouse to obtain the view shown in Figure 19.8: Particle Tracks for the Spray Injection (p. 824).
The air-blast atomizer model assumes that a cylindrical liquid sheet exits the atomizer, which then disin-
tegrates into ligaments and droplets. Appropriately, the model determines that the droplets should be
input into the domain in a ring. The radius of this disk is determined from the inner and outer radii of
the injector.
Note
The maximum diameter of the droplets is about 104 m or 0.1 mm. This is slightly smaller
than the film height. The inner diameter and outer diameter of the injector are 3.5 mm
and 4.5 mm, respectively. Hence the film height is 0.5 mm. The range in the droplet sizes
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
824 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
is due to the fact that the air-blast atomizer automatically uses a distribution of droplet
sizes.
Also note that the droplets are placed a slight distance away from the injector. Once the
droplets are injected into the domain, their behavior will be determined by secondary
models. For instance, they may collide/coalesce with other droplets depending on the
secondary models employed. However, once a droplet has been introduced into the do-
main, the air-blast atomizer model no longer affects the droplet.
2. Display the mean particle temperature field (Figure 19.9: Contours of DPM Temperature (p. 826)).
c. Select Discrete Phase Variables... and DPM Temperature from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 825
Modeling Evaporating Liquid Spray
i. Use the mouse to obtain the view shown in Figure 19.9: Contours of DPM Temperature (p. 826).
3. Display the mean Sauter diameter (Figure 19.10: Contours of DPM Sauter Diameter (p. 827)).
b. Select Discrete Phase Variables... and DPM Mean Sauter Diam from the Contours of drop-down
lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
826 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Display vectors of DPM mean velocity colored by DPM velocity magnitude (Figure 19.11: Vectors of DPM
Mean Velocity Colored by DPM Velocity Magnitude (p. 829)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 827
Modeling Evaporating Liquid Spray
b. Select Discrete Phase Variables... and DPM Velocity Magnitude from the Color by drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
828 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 19.11: Vectors of DPM Mean Velocity Colored by DPM Velocity Magnitude
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 829
Modeling Evaporating Liquid Spray
a. Select Species... and Mass fraction of ch3oh from the Surface of Constant drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
830 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click the Colors... button to open the Mesh Colors dialog box.
i. Select surface in the Types list and green in the Colors list.
Scroll down the Types list to locate surface. The isosurface will now be displayed in green, which
contrasts better with the rest of the mesh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 831
Modeling Evaporating Liquid Spray
ii. Ensure that Rotational is selected from the Periodic Type list and the Number of Repeats is set
to 12.
iii. Click Set and close the Graphics Periodicity dialog box.
d. Use the mouse to obtain the view shown in Figure 19.12: Full Atomizer Display with Surface of Constant
Methanol Mass Fraction (p. 833).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
832 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 19.12: Full Atomizer Display with Surface of Constant Methanol Mass Fraction
e. This view can be improved to resemble Figure 19.13: Atomizer Display with Surface of Constant Meth-
anol Mass Fraction Enhanced (p. 834) by changing some of the following variables:
Select only atomizer-wall and methanol-mf=0.002 in the Surfaces list of the Mesh Display
dialog box
Enable Lighting and change it to Flat in the Viewing tab (Display group)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 833
Modeling Evaporating Liquid Spray
Figure 19.13: Atomizer Display with Surface of Constant Methanol Mass Fraction Enhanced
19.5. Summary
In this tutorial, a spray injection was defined for an air-blast atomizer and the solution was calculated
using the discrete phase model in ANSYS Fluent. The location of methanol droplet particles after exiting
the atomizer and an isosurface of the methanol mass fraction were examined.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
834 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 835
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
836 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 20: Using the VOF Model
This tutorial is divided into the following sections:
20.1. Introduction
20.2. Prerequisites
20.3. Problem Description
20.4. Setup and Solution
20.5. Summary
20.6. Further Improvements
20.1. Introduction
This tutorial examines the flow of ink as it is ejected from the nozzle of a printhead in an inkjet printer.
Using ANSYS Fluents volume of fluid (VOF) multiphase modeling capability, you will be able to predict
the shape and motion of the resulting droplets in an air chamber.
Set up and solve a transient problem using the pressure-based solver and VOF model.
Examine the flow and interface of the two fluids using volume fraction contours.
20.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 837
Using the VOF Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
838 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
At time zero, the nozzle is filled with ink, while the rest of the domain is filled with air. Both fluids are assumed
to be at rest. To initiate the ejection, the ink velocity at the inlet boundary (which is modeled in this simulation
by a user-defined function) suddenly increases from 0 to 3.58 m/s and then decreases according to a cosine
law.
The calculation is run for 30 microseconds overall, that is, three times longer than the duration of the
initial impulse.
Because the dimensions are small, the double-precision version of ANSYS Fluent will be used. Air will
be designated as the primary phase, and ink (which will be modeled with the properties of liquid water)
will be designated as the secondary phase. Patching will be required to fill the ink chamber with the
secondary phase. Gravity will not be included in the simulation. To capture the capillary effect of the
ejected ink, the surface tension and prescription of the wetting angle will be specified. The surface inside
the nozzle will be modeled as neutrally wettable, while the surface surrounding the nozzle orifice will
be non-wettable.
20.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 839
Using the VOF Model
4. Narrow the results by using the filter on the left side of the page.
6. Click the vof_R170.zip link to download the input and solution files.
The files inkjet.msh and inlet1.c can be found in the vof directory created on unzipping the
file.
Fluent Launcher displays your Display Options preferences from the previous session.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
Note
The double precision solver is recommended for modeling multiphase flows simulation.
A warning message will be displayed twice in the console. You need not take any action at this point,
as the issue will be resolved when you define the solver settings in General Settings (p. 845).
2. Examine the mesh (Figure 20.2: Default Display of the Nozzle Mesh (p. 841)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
840 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Tip
By zooming in with the middle mouse button, you can see that the interior of the model
is composed of a fine mesh of quadrilateral cells (see Figure 20.3: The Quadrilateral
Mesh (p. 842)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 841
Using the VOF Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
842 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Ensure that All is selected from the Animation Option drop-down list.
Selecting All will allow you to see the movement of the entire mesh as you manipulate the Camera
view in the next step.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 843
Using the VOF Model
c. Click Apply.
d. Click the Camera... button to open the Camera Parameters dialog box.
Note
You may notice that the scale of the dimensions in the Camera Parameters dialog
box appear very large given the problem dimensions. This is because you have not
yet scaled the mesh to the correct units. You will do this in a later step.
i. Drag the indicator of the dial with the left mouse button in the clockwise direction until the upright
view is displayed (Figure 20.4: Mesh Display of the Nozzle Mirrored and Upright (p. 845)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
844 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 845
Using the VOF Model
Note
It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
846 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
5. Retain the default setting of Pressure-Based in the Solver group box of the Setting Up Physics ribbon
tab.
7. Select Axisymmetric from the drop-down list in the Solver group box (below Reference Values).
20.4.4. Models
1. Enable the Volume of Fluid multiphase model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 847
Using the VOF Model
b. Retain the default settings and click OK to close the Multiphase Model dialog box.
20.4.5. Materials
The default properties of air and water defined in ANSYS Fluent are suitable for this problem. In this step,
you will make sure that both materials are available for selection in later steps.
1. Add water to the list of fluid materials by copying it from the ANSYS Fluent materials database.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
848 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click Fluent Database... in the Create/Edit Materials dialog box to open the Fluent Database Mater-
ials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 849
Using the VOF Model
i. Select water-liquid (h2o < l >) from the Fluent Fluid Materials selection list.
Scroll down the Fluent Fluid Materials list to locate water-liquid (h2o < l >).
ii. Click Copy to copy the information for water to your list of fluid materials.
20.4.6. Phases
In the following steps, you will define water as the secondary phase. When you define the initial solution,
you will patch water in the nozzle region. In general, you can specify the primary and secondary phases
whichever way you prefer. It is a good idea to consider how your choice will affect the ease of problem setup,
especially with more complicated problems.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
850 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
In the Phases dialog box, select phase 1 Primary Phase and click Edit... to open the Primary
Phase dialog box.
b. Retain the default selection of air in the Phase Material drop-down list.
In the Phases dialog box, select phase 2 Secondary Phase and click Edit... to open the Secondary
Phase dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 851
Using the VOF Model
In the Phases dialog box, click Interaction... to open the Phase Interaction dialog box.
The surface tension inputs is displayed and the Continuum Surface Force model is set as the default.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
852 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You will set the Reference Pressure Location to be a point where the fluid will always be 100 air.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 853
Using the VOF Model
If the UDF source file is not in your working directory, then you must enter the entire directory path
for Source File Name instead of just entering the file name. Alternatively, click the Browse... button
and select inlet1.c in the vof directory that was created after you unzipped the original file.
b. Click Interpret.
The UDF defined in inlet1.c is now visible and available for selection as udf membrane_speed in the
drop-down lists of relevant graphical user interface dialog boxes.
2. Set the boundary conditions at the inlet (inlet) for the secondary phase by selecting water-liquid from
the Phase drop-down list in the Boundary Conditions task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
854 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Multiphase tab and enter 1 for the Volume Fraction.
3. Set the boundary conditions at the outlet (outlet) for the secondary phase by selecting water-liquid from
the Phase drop-down list in the Boundary Conditions task page.
a. Click the Multiphase tab and retain the default setting of 0 for the Backflow Volume Fraction.
4. Set the conditions at the top wall of the air chamber (wall_no_wet) for the mixture by selecting mixture
from the Phase drop-down list in the Boundary Conditions task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 855
Using the VOF Model
Note
This angle affects the dynamics of droplet formation. You can repeat this simulation
to find out how the result changes when the wall is hydrophilic (that is, using a small
contact angle, say 10 degrees).
5. Set the conditions at the side wall of the ink chamber (wall_wet) for the mixture.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
856 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
20.4.10. Solution
1. Set the solution methods.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 857
Using the VOF Model
The non-iterative time advancement (NITA) scheme is often advantageous compared to the iterative
schemes as it is less CPU intensive. Although smaller time steps must be used with NITA compared
to the iterative schemes, the total CPU expense is often smaller. If the NITA scheme leads to convergence
difficulties, then the iterative schemes (for example, PISO, SIMPLE) should be used instead.
b. Select Fractional Step from the Scheme drop-down list in the Pressure-Velocity Coupling group
box.
c. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.
d. Retain the default selection of PRESTO! from the Pressure drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
858 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 859
Using the VOF Model
a. Retain the default settings for all the parameters and click Initialize (either in the ribbon or in the
Solution Initialization task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
860 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default setting of 0 mm for X Min and Y Min in the Input Coordinates group box.
d. Click Mark.
ANSYS Fluent will report in the console that 1500 cells were marked for refinement while zero cells
were marked for coarsening.
Tip
You can display and manipulate adaption registers, which are generated using the
Mark command, using the Manage Adaption Registers dialog box. Click the Man-
age... button in the Region Adaption dialog box to open the Manage Adaption
Registers dialog box. For details, see Adapting the Mesh (p. 174).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 861
Using the VOF Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
862 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Ensure that time-step is selected from the Append File Name with drop-down list.
ANSYS Fluent will append the time step value to the file name prefix (inkjet). The standard .dat
extension will also be appended. This will yield file names of the form inkjet-1-00200.dat,
where 200 is the time step number.
Optionally, you can add the extension .gz to the end of the file name (for example, inkjet.gz),
which instructs ANSYS Fluent to save the data files in a compressed format, yielding file names of the
form inkjet-1-00200.dat.gz.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 863
Using the VOF Model
Note
Small time steps are required to capture the oscillation of the droplet interface and
the associated high velocities. Failure to use sufficiently small time steps may cause
differences in the results between platforms.
c. Click Calculate.
20.4.11. Postprocessing
1. Read the data file for the solution after 6 microseconds (inkjet-1-00600.dat.gz).
2. Create and display a filled contour of water volume fraction after 6 microseconds (Figure 20.5: Contours
of Water Volume Fraction After 6 s (p. 866)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
864 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Select Phases... and Volume fraction from the Contours of drop-down lists.
e. Click Save/Display.
Tip
In order to display the contour plot in the graphics window, you may need to click the
Fit to Window button.
3. Display contours of water volume fraction after 12, 18, 24, and 30 microseconds (Figure 20.6: Contours of
Water Volume Fraction After 12 s (p. 867) Figure 20.9: Contours of Water Volume Fraction After 30
s (p. 870)).
a. Read the data file for the solution after 12 microseconds (inkjet-1-01200.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 865
Using the VOF Model
c. Repeat these steps for the 18, 24, and 30 microseconds files.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
866 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 867
Using the VOF Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
868 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 869
Using the VOF Model
20.5. Summary
This tutorial demonstrated the application of the volume of fluid method with surface tension effects.
The problem involved the 2D axisymmetric modeling of a transient liquid-gas interface, and postpro-
cessing showed how the position and shape of the surface between the two immiscible fluids changed
over time.
For additional details about VOF multiphase flow modeling, see the Fluent Theory Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
870 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 21: Modeling Cavitation
This tutorial is divided into the following sections:
21.1. Introduction
21.2. Prerequisites
21.3. Problem Description
21.4. Setup and Solution
21.5. Summary
21.6. Further Improvements
21.1. Introduction
This tutorial examines the pressure-driven cavitating flow of water through a sharp-edged orifice. This
is a typical configuration in fuel injectors, and brings a challenge to the physics and numerics of cavit-
ation models because of the high pressure differentials involved and the high ratio of liquid to vapor
density. Using the multiphase modeling capability of ANSYS Fluent, you will be able to predict the
strong cavitation near the orifice after flow separation at a sharp edge.
21.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 871
Modeling Cavitation
4, where D, d, and L are the inlet diameter, orifice diameter, and orifice length respectively. The geometry
of the orifice is shown in Figure 21.1: Problem Schematic (p. 872).
21.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
872 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
6. Click the cavitation_R170.zip link to download the input and solution files.
The mesh file cav.msh can be found in the cavitation directory created after unzipping the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Note
The double precision solver is recommended for modeling multiphase flows simulation.
As ANSYS Fluent reads the mesh file, it will report the progress in the console. You can disregard the
warnings about the use of axis boundary conditions, as you will make the appropriate change to the
solver settings in the next step.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 873
Modeling Cavitation
4. Examine the mesh (Figure 21.2: The Mesh in the Orifice (p. 875)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
874 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
As seen in Figure 21.2: The Mesh in the Orifice (p. 875), half of the problem geometry is modeled, with an
axis boundary (consisting of two separate lines) at the centerline. The quadrilateral mesh is slightly graded
in the plenum to be finer toward the orifice. In the orifice, the mesh is uniform with aspect ratios close
to , as the flow is expected to exhibit two-dimensional gradients.
When you display data graphically in a later step, you will mirror the view across the centerline to obtain
a more realistic view of the model.
Since the bubbles are small and the flow is high speed, gravity effects can be neglected and the problem
can be reduced to axisymmetrical. If gravity could not be neglected and the direction of gravity were not
coincident with the geometrical axis of symmetry, you would have to solve a 3D problem.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 875
Modeling Cavitation
Seup General
Note
21.4.4. Models
1. Enable the multiphase mixture model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
876 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
In this flow, the high level of turbulence does not allow large bubble growth, so gravity is not important.
It is also assumed that the bubbles have same velocity as the liquid. Therefore, there is no need to
solve for the slip velocity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 877
Modeling Cavitation
c. Retain the default of Standard Wall Functions in the Near-Wall Treatment list.
21.4.5. Materials
For the purposes of this tutorial, you will be modeling the liquid and vapor phases as incompressible.
Note that more comprehensive models are available for the densities of these phases, and could be
used to more fully capture the affects of the pressure changes in this problem.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
878 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Change/Create.
A Question dialog box will open, asking if you want to overwrite air. Click Yes.
2. Copy water vapor from the materials database and modify the properties of your local copy.
a. In the Create/Edit Materials dialog box, click the Fluent Database... button to open the Fluent
Database Materials dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 879
Modeling Cavitation
i. Select water-vapor (h2o) from the Fluent Fluid Materials selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
880 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
21.4.6. Phases
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 881
Modeling Cavitation
a. In the Phases dialog box, select phase 1 Primary Phase and click Edit... to open the Primary Phase
dialog box.
c. Retain the default selection of water from the Phase Material drop-down list.
a. In the Phases dialog box, select phase 2 Secondary Phase and click Edit... to open the Secondary
Phase dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
882 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Phases dialog box, click Interaction... to open the Phase Interaction dialog box.
c. Click OK in the dialog box that appears to inform you that Linearized-Mass-Transfer UDF is on.
d. Ensure that liquid is selected from the From Phase drop-down list in the Mass Transfer group box.
The Cavitation Model dialog box will open to show the cavitation inputs.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 883
Modeling Cavitation
The vaporization pressure is a property of the working liquid, which depends mainly on the tem-
perature and pressure. The default value is the vaporization pressure of water at 1 atmosphere
and a temperature of 300 K.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
884 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Set the boundary conditions at inlet_1 for the mixture. Ensure that mixture is selected from the Phase
drop-down list in the Boundary Conditions task page.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 885
Modeling Cavitation
If you choose to initialize the solution based on the pressure-inlet conditions, the Supersonic/Initial
Gauge Pressure will be used in conjunction with the specified stagnation pressure (the Gauge Total
Pressure) to compute initial values according to the isentropic relations (for compressible flow) or
Bernoullis equation (for incompressible flow). Otherwise, in an incompressible flow calculation, ANSYS
Fluent will ignore the Supersonic/Initial Gauge Pressure input.
c. Retain the default selection of Normal to Boundary from the Direction Specification Method drop-
down list.
d. Select K and Epsilon from the Specification Method drop-down list in the Turbulence group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
886 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. In the Multiphase tab, retain the default value of 0 for Volume Fraction.
3. Copy the boundary conditions defined for the first pressure inlet zone (inlet_1) to the second pressure
inlet zone (inlet_2).
A Question dialog box will open, asking if you want to copy inlet_1 boundary conditions to in-
let_2. Click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 887
Modeling Cavitation
b. Select K and Epsilon from the Specification Method drop-down list in the Turbulence group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
888 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. In the Multiphase tab, retain the default value of 0 for Backflow Volume Fraction.
21.4.9. Solution
1. Set the solution parameters.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 889
Modeling Cavitation
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Retain the selection of PRESTO! from the Pressure drop-down list in the Spatial Discretization group
box.
d. Retain First Order Upwind for Turbulent Kinetic Energy and Turbulent Dissipation Rate.
The message appears in the console informing you of changing AMG cycle type for Volume Fraction,
Turbulent Kinetic Energy, and Turbulent Dissipation Rate to F-cycle.
The relaxation of high order terms will help to improve the solution behavior of flow simulations
when higher order spatial discretizations are used (higher than first).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
890 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Set the pseudo transient explicit relaxation factor for Volume Fraction to 0.3.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 891
Modeling Cavitation
b. Enter 1e-05 for the Absolute Criteria of continuity, x-velocity, y-velocity, k, and epsilon.
Decreasing the criteria for these residuals will improve the accuracy of the solution.
Solving Initialization
c. Enable Use Specified Initial Pressure on Inlets in the Initialization Options group box. The velocity
will now be initialized to the Initial Gauge Pressure value that you set in the Pressure Inlet boundary
condition dialog box. For more information on initialization options, see hybrid initialization in the
Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
892 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the conver-
gence behavior of the solver.
b. Click Calculate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 893
Modeling Cavitation
21.4.10. Postprocessing
1. Create and plot a definition of pressure contours in the orifice (Figure 21.3: Contours of Static Pres-
sure (p. 895)).
c. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
894 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note the dramatic pressure drop at the flow restriction in Figure 21.3: Contours of Static Pressure (p. 895).
Low static pressure is the major factor causing cavitation. Additionally, turbulence contributes to cavitation
due to the effect of pressure fluctuation (Figure 21.4: Mirrored View of Contours of Static Pressure (p. 897))
and turbulent diffusion (Figure 21.5: Contours of Turbulent Kinetic Energy (p. 898)).
2. Mirror the display across the centerline (Figure 21.4: Mirrored View of Contours of Static Pressure (p. 897)).
Mirroring the display across the centerline gives a more realistic view.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 895
Modeling Cavitation
a. Select symm_2 and symm_1 from the Mirror Planes selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
896 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Create and plot a contour definition of the turbulent kinetic energy (Figure 21.5: Contours of Turbulent
Kinetic Energy (p. 898)).
b. Select Turbulence... and Turbulent Kinetic Energy(k) from the Contours of drop-down lists.
c. Click Save/Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 897
Modeling Cavitation
In this example, the mesh used is fairly coarse. However, in cavitating flows the pressure distribution is
the dominant factor, and is not very sensitive to mesh size.
4. Create and plot a contour definition of the volume fraction of water vapor (Figure 21.6: Contours of Vapor
Volume Fraction (p. 899)).
b. Select Phases... and Volume fraction from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
898 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
The high turbulent kinetic energy region near the neck of the orifice in Figure 21.5: Contours of Turbulent
Kinetic Energy (p. 898) coincides with the highest volume fraction of vapor in Figure 21.6: Contours of
Vapor Volume Fraction (p. 899). This indicates the correct prediction of a localized high phase change
rate. The vapor then gets convected downstream by the main flow.
21.5. Summary
This tutorial demonstrated how to set up and resolve a strongly cavitating pressure-driven flow through
an orifice, using multiphase mixture model of ANSYS Fluent with cavitation effects. You learned how
to set the boundary conditions for an internal flow. A steady-state solution was calculated to simulate
the formation of vapor in the neck of the flow after the section restriction at the orifice. A more compu-
tationally intensive transient calculation is necessary to accurately simulate the irregular cyclic process
of bubble formation, growth, filling by water jet re-entry, and break-off.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 899
Modeling Cavitation
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
900 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 22: Using the Mixture and Eulerian Multiphase Models
This tutorial is divided into the following sections:
22.1. Introduction
22.2. Prerequisites
22.3. Problem Description
22.4. Setup and Solution
22.5. Summary
22.6. Further Improvements
22.1. Introduction
This tutorial examines the flow of water and air in a tee junction. Initially you will solve the problem
using the less computationally intensive mixture model. You will then switch to the more accurate Eu-
lerian model and compare the results of these two approaches.
Calculate a solution using the pressure-based coupled solver with the mixture model.
Calculate a solution using the multiphase coupled solver with the Eulerian model.
Display the results obtained using the two approaches for comparison.
22.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 901
Using the Mixture and Eulerian Multiphase Models
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
902 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
22.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the mix_eulerian_multiphase_R170.zip link to download the input and solution files.
The file tee.msh can be found in the mix_eulerian_multiphase folder created after unzipping
the file.
8. Use Fluent Launcher to enable Double Precision and start the 2D version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Note
The double precision solver is recommended for modeling multiphase flow simulations.
22.4.2. Mesh
1. Read the mesh file tee.msh.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 903
Using the Mixture and Eulerian Multiphase Models
As ANSYS Fluent reads the mesh file, it will report the progress in the console.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Extra
You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
904 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 905
Using the Mixture and Eulerian Multiphase Models
22.4.4. Models
1. Select the mixture multiphase model with slip velocities.
The Multiphase Model dialog box will expand to show the inputs for the mixture model.
b. Ensure that Slip Velocity is enabled in the Mixture Parameters group box.
You need to solve the slip velocity equation because there will be significant difference in velocities
for the different phases.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
906 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Enable Implicit Body Force in the Body Force Formulation group box.
This treatment improves solution convergence by accounting for the partial equilibrium of the pressure
gradient and body forces in the momentum equations. It is used in VOF and mixture problems, where
body forces are large in comparison to viscous and convective forces.
The realizable - model is recommended in cases where flow separation around sharp corners or
over bluff bodies can be expected.
This problem does not require a particularly fine mesh, and standard wall functions will be used.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 907
Using the Mixture and Eulerian Multiphase Models
22.4.5. Materials
1. Copy the properties for liquid water from the materials database so that it can be used for the primary
phase.
a. Click the Fluent Database... button to open the Fluent Database Materials dialog box.
i. Select water-liquid (h2o < l >) from the Fluent Fluid Materials selection list.
ii. Click Copy to copy the properties for liquid water to your model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
908 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
22.4.6. Phases
In the following steps you will define the liquid water and air phases that flow in the tee junction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 909
Using the Mixture and Eulerian Multiphase Models
b. Retain the default selection of air from the Phase Material drop-down list.
3. Check that the drag coefficient is set to be calculated using the Schiller-Naumann drag law.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
910 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of schiller-naumann from the Drag Coefficient drop-down list.
The Schiller-Naumann drag law describes the drag between the spherical particle and the surrounding
liquid for a wide range of conditions provided the bubbles remain approximately spherical. In this
case, the bubbles have a diameter of 1 mm which is within the spherical regime.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 911
Using the Mixture and Eulerian Multiphase Models
For this problem, you need to set the boundary conditions for three boundaries: the velocity inlet and the
two outflows. Since this is a mixture multiphase model, you will set the conditions at the velocity inlet that
are specific for the mixture (conditions that apply to all phases) and also conditions that are specific to the
primary and secondary phases.
1. Set the boundary conditions at the velocity inlet (velocity-inlet-4) for the mixture.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
912 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default selection of Intensity and Viscosity Ratio as the turbulence Specification Method.
2. Set the boundary conditions at the velocity inlet (velocity-inlet-4) for the primary phase (water).
Note
Note that you can also open the Velocity Inlet dialog box by double-clicking the
Setup/Boundary Conditions/velocity-inlet-4/water tree item.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 913
Using the Mixture and Eulerian Multiphase Models
i. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.
ii. Retain the default selection of Absolute from the Reference Frame drop-down list.
3. Set the boundary conditions at the velocity inlet (velocity-inlet-4) for the secondary phase (air).
Note
Note that you can also open the Velocity Inlet dialog box by double-clicking the
Setup/Boundary Conditions/velocity-inlet-4/air tree item.
i. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.
ii. Retain the default selection of Absolute from the Reference Frame drop-down list.
In multiphase flows, the volume rate of each phase is usually known. Volume rate divided by the
inlet area gives the superficial velocity, which is the product of the inlet physical velocity and the
volume fraction. When you have two phases, you must enter two physical velocities and the
volume fraction of the secondary phase. Here it is assumed that bubbles at the inlet are moving
at the same physical speed as the water.
iv. Click the Multiphase tab and enter 0.02 for Volume Fraction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
914 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 915
Using the Mixture and Eulerian Multiphase Models
a. Enable Gravity.
The Operating Conditions dialog box will expand to show additional inputs.
ANSYS Fluent redefines the fluid pressure by removing the hydrostatic component based on an average
density in the domain or a user-specified operating density. By setting the operating density to 0 you
force the hydrostatic pressure to appear explicitly in the postprocessed results. For more information,
refer to the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
916 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The PRESTO! method for pressure is a good choice when buoyancy and inertial forces are present.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 917
Using the Mixture and Eulerian Multiphase Models
b. Enter 0.4 for Volume Fraction in the Under-Relaxation Factors group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
918 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click Initialize.
Note
For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. In general, this will help in improving
the convergence behavior of the solver.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 919
Using the Mixture and Eulerian Multiphase Models
a. Retain the default selection of Mass Flow Rate in the Options list.
c. Select outflow-3, outflow-5, and velocity-inlet-4 from the Boundaries selection list.
d. Click Compute.
Note that the net mass flow rate of water is a small fraction of the inlet and outlet flow rates (<0.1%),
indicating that mass is conserved.
e. Select air from the Phase drop-down list and click Compute again.
Again, note that the net mass flow rate of air is small compared to the inlet and outlet flow rates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
920 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down lists.
c. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 921
Using the Mixture and Eulerian Multiphase Models
In Figure 22.3: Contours of Static Pressure (p. 922) the hydrostatic pressure gradient is readily apparent in
the vertical arm a result of setting the Operating Density to 0.
2. Display contours of velocity magnitude (Figure 22.4: Contours of Velocity Magnitude (p. 923)).
a. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
c. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
922 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Display the volume fraction of air (Figure 22.5: Contours of Air Volume Fraction (p. 924)).
a. Select Phases... and Volume fraction from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 923
Using the Mixture and Eulerian Multiphase Models
When gravity acts downwards, it induces stratification in the side arm of the tee junction. In Fig-
ure 22.5: Contours of Air Volume Fraction (p. 924), you can see that the gas (air) tends to concentrate on
the upper part of the side arm. In this case, gravity acts against inertia that tends to concentrate gas on
the low pressure side, thereby creating gas pockets. In the vertical arm, both the gas and the water have
velocities in the same direction, and therefore there is no separation. The outflow split modifies the relation
between inertia forces and gravity to a large extent, and has an important role in flow distribution and
on the gas concentration.
1. Revisit the Solution Methods task page and make the following selections:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
924 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Plot the contours of air volume fraction using the higher order method on the same scale as in Fig-
ure 22.5: Contours of Air Volume Fraction (p. 924).
a. Select Phases... and Volume fraction from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 925
Using the Mixture and Eulerian Multiphase Models
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
926 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Specify the drag and lift laws to be used for computing the interphase momentum transfer.
a. In the Drag tab, retain the default selection of schiller-naumann from the Drag Coefficient drop-
down list.
b. In the Lift tab, select legendre-magnaudet from the Lift Coefficient drop-down list.
Lift forces can arise when the gradient of the primary phase velocity field has a component normal
to the bubble flow.
Note
For this problem, there are no parameters to be set for the individual phases other than
those that you specified when you set up the phases for the mixture model calculation.
If you use the Eulerian model for a flow involving a granular secondary phase, you will
need to set additional parameters. There are also other options in the Phase Interaction
dialog box that may be relevant for other applications.
For details on setting up an Eulerian multiphase calculation, see the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 927
Using the Mixture and Eulerian Multiphase Models
a. Retain the default selection of Mixture in the Turbulence Multiphase Model list.
In this case the dispersed phase volume concentration is relatively small so the mixture turbulence
model is sufficient to capture the important features of the turbulent flow.
4. Confirm that the solution parameters are set to use the higher-order discretization schemes.
Revisit the Solution Methods task page and verify that the settings are as follows:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
928 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Solution Controls
b. Enter 0.5 for Momentum and for Pressure in the Explicit Relaxation Factors group box.
c. Confirm that Volume Fraction is set to 0.4 in the Under-Relaxation Factors group box.
7. Check that the mass imbalance is small (less than about 0.2 %) using the Flux Reports dialog box
as for the Mixture model solution.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 929
Using the Mixture and Eulerian Multiphase Models
By default, Dynamic Pressure will be displayed in the lower Contours of drop-down list. This will
automatically change to Static Pressure after you select the appropriate phase in the next step.
The lower Contours of drop-down list will now display Static Pressure.
c. As before, disable Auto Range (Clip to Range will be enabled) and set the Min and Max values to
match those in Figure 22.3: Contours of Static Pressure (p. 922).
d. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
930 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Display contours of velocity magnitude for water (Figure 22.8: Contours of Water Velocity Magnitude
Eulerian Model (p. 932)).
a. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
Since the Eulerian model solves individual momentum equations for each phase, you can choose the
phase for which solution data is plotted.
c. Set the range to match that in Figure 22.4: Contours of Velocity Magnitude (p. 923).
d. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 931
Using the Mixture and Eulerian Multiphase Models
3. Display the volume fraction of air (Figure 22.9: Contours of Air Volume Fraction Eulerian model (p. 933)).
a. Select Phases... and Volume fraction from the Contours of drop-down lists.
c. Set the range to match that in Figure 22.5: Contours of Air Volume Fraction (p. 924).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
932 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
Compare the volume fraction plot in Figure 22.9: Contours of Air Volume Fraction Eulerian model (p. 933)
with the volume fraction plot using the mixture model in Figure 22.6: Contours of Air Volume Fraction
Higher Order Solution (p. 926). Notice that the path of the concentrated air stream in the side arm
extends farther into the side arm before drifting to the top surface. As is apparent from the velocity plots,
there is a substantial velocity gradient across the side arm as a result of the recirculation near the lower
corner of the tee junction. As the dispersed phase bubbles travel along the side arm with the flow, this
velocity gradient induces a lift force which tends to oppose the buoyancy force thereby delaying the ac-
cumulation of the air concentration along the top surface of the side arm.
22.5. Summary
This tutorial demonstrated how to set up and solve a multiphase problem using the mixture model and
the Eulerian model. You learned how to set boundary conditions for the mixture and both phases. The
solution obtained with the mixture model was used as a starting point for the calculation with the Eu-
lerian model. After completing calculations for each model, you displayed the results to allow for a
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 933
Using the Mixture and Eulerian Multiphase Models
comparison of the two approaches. For more information about the mixture and Eulerian models, see
the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
934 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 23: Using the Eulerian Multiphase Model for Granular Flow
This tutorial is divided into the following sections:
23.1. Introduction
23.2. Prerequisites
23.3. Problem Description
23.4. Setup and Solution
23.5. Summary
23.6. Further Improvements
23.1. Introduction
Mixing tanks are used to maintain solid particles or droplets of heavy fluids in suspension. Mixing may
be required to enhance reaction during chemical processing or to prevent sedimentation. In this tutorial,
you will use the Eulerian multiphase model to solve the particle suspension problem. The Eulerian
multiphase model solves momentum equations for each of the phases, which are allowed to mix in any
proportion.
23.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 935
Using the Eulerian Multiphase Model for Granular Flow
The fixed-values option will be used to simulate the impeller. Experimental data are used to represent
the time-averaged velocity and turbulence values at the impeller location. This approach avoids the
need to model the impeller itself. These experimental data are provided in a user-defined function.
23.4.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
936 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the eulerian_multiphase_granular_R170.zip link to download the input and solution files.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Note
The double precision solver is recommended for modeling multiphase flow simulations.
23.4.2. Mesh
1. Read the mesh file mixtank.msh.
A warning message will be displayed twice in the console. You need not take any action at this point,
as the issue will be rectified when you define the solver settings in General Settings (p. 938).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 937
Using the Eulerian Multiphase Model for Granular Flow
ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Ensure
that the reported minimum volume is a positive number.
Extra
You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
938 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
window, its zone number, name, and type will be printed in the console. This feature is
especially useful when you have several zones of the same type and you want to distin-
guish between them quickly.
a. Click the Colors... button to open the Mesh Colors dialog box.
You can control the colors used to draw meshes by using the options available in the Mesh Colors
dialog box.
This will assign a different color to each zone in the domain, rather than to each type of zone.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 939
Using the Eulerian Multiphase Model for Granular Flow
4. Modify the view of the mesh display to show the full tank upright.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
940 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select axis from the Mirror Planes selection list and click Apply.
The mesh display will be updated to show both sides of the tank.
This option is used to scale and center the current display without changing its orientation (Fig-
ure 23.4: Mesh Display of the Tank, Mirrored and Scaled (p. 942)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 941
Using the Eulerian Multiphase Model for Granular Flow
c. Open the Display Options dialog box and ensure All is selected from the Animation Option drop-
down list. Click Apply and close the Display Options dialog box.
This will ensure that the 2D geometry remains visible while you manipulate the camera view in the
next step.
d. Click the Camera... button in the Views dialog box to open the Camera Parameters dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
942 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Drag the indicator of the dial with the left mouse button in the counter-clockwise direction until
the upright view is displayed (Figure 23.5: Mesh Display of the Upright Tank (p. 944)).
ii. Click Apply and close the Camera Parameters dialog box.
Note
While modifying the view, you may accidentally lose the view of the geometry in the
display. You can easily revert to the default (front) view by clicking the Default button
in the Views dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 943
Using the Eulerian Multiphase Model for Granular Flow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
944 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Select Axisymmetric from the drop-down list in the Solver group box (below Reference Values...).
b. Enable Gravity.
23.4.4. Models
1. Enable the Eulerian multiphase model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 945
Using the Eulerian Multiphase Model for Granular Flow
This problem does not require a particularly fine mesh hence, standard wall functions can be used.
The dispersed turbulence model is applicable in this case because there is clearly one primary continu-
ous phase and the material density ratio of the phases is approximately 2.5. Furthermore, the Stokes
number is much less than 1. Therefore, the kinetic energy of the particle will not differ significantly
from that of the liquid. For more information, see model comparisons in the Fluent Theory Guide.
23.4.5. Materials
In this step, you will add liquid water to the list of fluid materials by copying it from the ANSYS Fluent mater-
ials database and create a new material called sand.
1. Copy liquid water from the Fluent materials database so that it can be used for the primary phase.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
946 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Click the Fluent Database... button to open the Fluent Database Materials dialog box.
b. Select water-liquid (h2o<l>) from the Fluent Fluid Materials selection list.
Scroll down the Fluent Fluid Materials list to locate water-liquid (h2o<l>).
c. Click Copy to copy the information for liquid water to your model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 947
Using the Eulerian Multiphase Model for Granular Flow
a. Enter sand for Name and delete the entry in the Chemical Formula field.
c. Click Change/Create.
A Question dialog box will open, asking if you want to overwrite water-liquid.
d. Click No in the Question dialog box to retain water-liquid and add the new material (sand) to the list.
The Create/Edit Materials dialog box will be updated to show the new material, sand, in the Fluent
Fluid Materials drop-down list.
23.4.6. Phases
Specify the phase materials.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
948 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 949
Using the Eulerian Multiphase Model for Granular Flow
d. Enable Granular.
e. Retain the selection of Phase Property in the Granular Temperature Model list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
950 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Drag tab, select gidaspow from the Drag Coefficient drop-down list.
b. In the Turbulence Interaction tab, select simonin-et-al from the Turbulence Interaction drop-down
list.
The Simonin-et-al Model dialog box will appear. Click OK to retain the default model settings.
The order of polynomial to be used depends on the behavior of the function being fitted. For this tutorial,
the polynomial coefficients shown in Table 23.1: Impeller Profile Specifications (p. 951)
Variable A1 A2 A3 A4 A5 A6
u velocity -7.1357e-2 54.304 -3.1345e+3 4.5578e+4 -1.966e+5
v velocity 3.1131e-2 -10.313 9.5558e+2 -2.0051e+4 1.186e+5
kinetic energy 2.2723e-2 6.7989 -424.18 9.4615e+3 -7.725e+4 1.8410e+5
dissipation -6.5819e-2 88.845 -5.3731e+3 1.1643e+5 -9.120e+5 1.9567e+6
For more information about setting up a UDF using the DEFINE_PROFILE macro, refer to the separate
Fluent Customization Manual. Though this macro is usually used to specify a profile condition on a
boundary face zone, it is used in fix.c to specify the condition in a fluid cell zone. Hence, the arguments
of the macro have been changed accordingly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 951
Using the Eulerian Multiphase Model for Granular Flow
If the UDF source file is not in your working folder, you must enter the entire folder path for Source
File Name instead of just entering the file name. Alternatively, click Browse... and select fix.c in the
eulerian_multiphase_granular folder that was created after you unzipped the original file.
The Display Assembly Listing option displays the assembly language code in the console as the
function compiles.
Note
The name and contents of the UDF are stored in the case file when you save the case
file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
952 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For this problem, you do not have to specify any conditions for outer boundaries. Within the domain, there
are three fluid zones, representing the impeller region, the region where the sand is initially located, and the
rest of the tank. There are no conditions to be specified in the latter two zones, so you need to set conditions
only in the zone representing the impeller.
1. Set the cell zone conditions for the fluid zone representing the impeller (fix-zone) for the primary phase.
You will specify the conditions for water and sand separately using the UDF. The default conditions for
the mixture (that is, the conditions that apply to all phases) are acceptable.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 953
Using the Eulerian Multiphase Model for Granular Flow
The Fluid dialog box will expand to show the related inputs.
Parameter Value
Axial Velocity udf fixed_u
Radial Velocity udf fixed_v
Turbulence Kinetic Energy udf fixed_ke
Turbulence Dissipation Rate udf fixed_diss
2. Set the cell zone conditions for the fluid zone representing the impeller (fix-zone) for the secondary phase.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
954 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Fluid dialog box will expand to show the related inputs.
Parameter Value
Axial Velocity udf fixed_u
Radial Velocity udf fixed_v
23.4.9. Solution
1. Set the under-relaxation factors.
a. Enter 0.5 for Pressure, 0.2 for Momentum, and 0.8 for Turbulent Viscosity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 955
Using the Eulerian Multiphase Model for Granular Flow
Tip
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
956 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Solving Initialization
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 957
Using the Eulerian Multiphase Model for Granular Flow
5. Save the initial case and data files (mixtank.cas.gz and mixtank.dat.gz).
The problem statement is now complete. As a precaution, you should review the impeller velocity fixes
and sand bed patch after running the calculation for a single time step. Since you are using a UDF for
the velocity profiles, perform one time step in order for the profiles to be calculated and available for
viewing.
6. Set the time stepping parameters and run the calculation for 0.005 seconds.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
958 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Calculate.
In order to display the initial fixed velocities in the fluid zone (fix-zone), you need to create a surface for
this zone.
i. Select fix-zone from the Zone selection list and click Create.
The default name is the same as the zone name. ANSYS Fluent automatically assign the default
name to the new surface when it is created. The new surface is added to the Surfaces selection
list in the Zone Surface dialog box.
b. Display a vector plot of the initial impeller velocities for water (Figure 23.6: Initial Impeller Velocities for
Water (p. 961)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 959
Using the Eulerian Multiphase Model for Granular Flow
ii. Retain the selection of water from the Phase drop-down list below the Vectors of drop-down list.
iii. Retain the selection of Velocity... and Velocity Magnitude from the Color by drop-down lists.
iv. Retain the selection of water from the Phase drop-down list below the Color by drop-down lists.
v. Select fix-zone from the Surfaces selection list and click Display.
ANSYS Fluent will display the water velocity vectors fixes at the impeller location, as shown in
Figure 23.6: Initial Impeller Velocities for Water (p. 961).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
960 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Display the impeller velocities for sand (Figure 23.7: Initial Impeller Velocities for Sand (p. 962)).
i. Select sand from the Phase drop-down lists (below the Vectors of drop-down list and Color by
drop-down lists).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 961
Using the Eulerian Multiphase Model for Granular Flow
d. Create and display contours of sand volume fraction (Figure 23.8: Initial Settled Sand Bed (p. 964)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
962 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iii. Select Phases... and Volume fraction from the Contours of drop-down lists.
ANSYS Fluent will display the initial location of the settled sand bed, as shown in Figure 23.8: Initial
Settled Sand Bed (p. 964).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 963
Using the Eulerian Multiphase Model for Granular Flow
b. Click Calculate.
After a total of 200 time steps have been computed (1 second of operation), you will review the results
before continuing.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
964 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Here you will use the right-click context menu in the tree to create persistent post-processing objects that
are saved with the case.
a. Create and display a velocity vector plot for water in the whole tank (Figure 23.9: Water Velocity Vectors
after 1 s (p. 966)).
ii. Select water from the Phase drop-down lists (below the Vectors of drop-down list and Color by
drop-down lists).
iii. Ensure that no surfaces are selected in the Surfaces selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 965
Using the Eulerian Multiphase Model for Granular Flow
Figure 23.9: Water Velocity Vectors after 1 s (p. 966) shows the water velocity vectors after 1 second
of operation. The circulation is confined to the region near the impeller, and has not yet had time to
develop in the upper portions of the tank.
b. Create and display a plot of the velocity vectors for the sand (Figure 23.10: Sand Velocity Vectors after
1 s (p. 967)).
ii. Select sand from the Phase drop-down lists (below the Vectors of drop-down list and Color by
drop-down lists).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
966 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 23.10: Sand Velocity Vectors after 1 s (p. 967) shows the sand velocity vectors after 1 second of
operation. The circulation of sand around the impeller is significant, but note that no sand vectors
are plotted in the upper part of the tank, where the sand is not yet present.
c. Create and display a contour plot of sand volume fraction (Figure 23.11: Contours of Sand Volume
Fraction after 1 s (p. 968)).
ii. Ensure Filled, Node Values, Global Range, and Auto Range are enabled in the Options group
box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 967
Using the Eulerian Multiphase Model for Granular Flow
iii. Select Phases... and Volume fraction from the Contours of drop-down lists.
Notice that the action of the impeller draws clear fluid from above the originally settled bed and
mixes it into the sand. To compensate, the sand bed is lifted up slightly. The maximum sand volume
fraction has decreased as a result of the mixing of water and sand.
11. Save the case and data files (mixtank1.cas.gz and mixtank1.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
968 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The initial calculation was performed with a very small time step size to stabilize the solution. After
the initial calculation, you can increase the time step to speed up the calculation.
c. Click Calculate.
13. Save the case and data files (mixtank100.cas.gz and mixtank100.dat.gz).
23.4.10. Postprocessing
You will now examine the progress of the sand and water in the mixing tank after a total of 100 seconds.
The mixing tank has nearly, but not quite, reached a steady flow solution.
1. Display the velocity vectors for water (Figure 23.12: Water Velocity Vectors after 100 s (p. 970)).
Figure 23.12: Water Velocity Vectors after 100 s (p. 970) shows the water velocity vectors after 100 seconds
of operation. The circulation of water is now very strong in the lower portion of the tank, though modest
near the top.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 969
Using the Eulerian Multiphase Model for Granular Flow
2. Display the velocity vectors for sand (Figure 23.13: Sand Velocity Vectors after 100 s (p. 971)).
Figure 23.13: Sand Velocity Vectors after 100 s (p. 971) shows the sand velocity vectors after 100 seconds
of operation. The sand has now been suspended much higher within the mixing tank, but does not reach
the upper region of the tank. The water velocity in that region is not sufficient to overcome the gravity
force on the sand particles.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
970 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Display contours of sand volume fraction (Figure 23.14: Contours of Sand Volume Fraction after 100 s (p. 972)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 971
Using the Eulerian Multiphase Model for Granular Flow
4. Display filled contours of static pressure for the mixture (Figure 23.15: Contours of Pressure after 100
s (p. 973)).
c. Select Pressure... and Static Pressure from the Contours of drop-down lists.
Figure 23.15: Contours of Pressure after 100 s (p. 973) shows the pressure distribution after 100 seconds
of operation. The pressure field represents the hydrostatic pressure except for some slight deviations
due to the flow of the impeller near the bottom of the tank.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
972 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
23.5. Summary
This tutorial demonstrated how to set up and solve a granular multiphase problem using the Eulerian
multiphase model. The problem involved the 2D modeling of particle suspension in a mixing tank and
postprocessing showed the near-steady-state behavior of the sand in the mixing tank, under the as-
sumptions made.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 973
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
974 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 24: Modeling Solidification
This tutorial is divided into the following sections:
24.1. Introduction
24.2. Prerequisites
24.3. Problem Description
24.4. Setup and Solution
24.5. Summary
24.6. Further Improvements
24.1. Introduction
This tutorial illustrates how to set up and solve a problem involving solidification and will demonstrate
how to do the following:
24.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 975
Modeling Solidification
the bottom of the bowl with a velocity of and a temperature of 1300 . Material
properties are listed in Figure 24.1: Solidification in Czochralski Model (p. 976).
Starting with an existing 2D mesh, the details regarding the setup and solution procedure for the solid-
ification problem are presented. The steady conduction solution for this problem is computed as an
initial condition. Then, the fluid flow is enabled to investigate the effect of natural and Marangoni
convection in a transient fashion.
In the above figure, is the mushy zone constant. For details on modeling the solidification/melting
process, refer to momentum equations in the Fluent Theory Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
976 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
24.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the solidification_R170.zip link to download the input and solution files.
The file solid.msh can be found in the solidification directory created after unzipping the
file.
8. Use Fluent Launcher to start the 2D single precision (disable Double Precision) version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 977
Modeling Solidification
As the mesh is read by ANSYS Fluent, messages will appear in the console reporting the progress of the
reading.
A warning about the use of axis boundary conditions is displayed in the console. You are asked to consider
making changes to the zone type or change the problem definition to axisymmetric. You will change the
problem to axisymmetric swirl later in this tutorial.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the minimum volume is a positive number.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
978 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 979
Modeling Solidification
The geometry comprises an axisymmetric bowl. Furthermore, swirling flows are considered in this problem,
so the selection of Axisymmetric Swirl best defines this geometry.
Also, note that the rotation axis is the X axis. Hence, the X direction is the axial direction and the Y direction
is the radial direction. When modeling axisymmetric swirl, the swirl direction is the tangential direction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
980 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enable Gravity.
a. Enable the Solidification/Melting option in the Solidification and Melting dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 981
Modeling Solidification
The Solidification and Melting dialog box will expand to show the related parameters.
b. Retain the default value of 100000 for the Mushy Zone Constant.
By including the pull velocities, you will account for the movement of the solidified material as it is
continuously withdrawn from the domain in the continuous casting process.
When you enable this option, the Solidification and Melting dialog box will expand to show the
Compute Pull Velocities option. If you were to enable this additional option, ANSYS Fluent would
compute the pull velocities during the calculation. This approach is computationally expensive and
is recommended only if the pull velocities are strongly dependent on the location of the liquid-solid
interface. In this tutorial, you will patch values for the pull velocities instead of having ANSYS Flu-
ent compute them.
For more information about computing the pull velocities, see the Fluent Users Guide.
An Information dialog box opens, telling you that available material properties have changed for
the solidification model. You will set the material properties later, so you can click OK in the dialog
box to acknowledge this information.
Note
ANSYS Fluent will automatically enable the energy calculation when you enable the so-
lidification model, so you need not visit the Energy dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
982 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select polynomial from the Density drop-down list in the Properties group box.
i. Set Coefficients to 2.
ii. In the Coefficients group box, enter 8000 for 1 and -0.1 for 2.
As shown in Figure 24.1: Solidification in Czochralski Model (p. 976), the density of the material is
defined by a polynomial function: .
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 983
Modeling Solidification
d. In the Question dialog box, click Yes to overwrite fluid-1 and add the new material (liquid-metal) to
the Fluent Fluid Materials drop-down list.
f. Select liquid-metal from the Fluent Fluid Materials drop-down list to set the other material properties.
Scroll down the group box to find Pure Solvent Melting Heat and the properties that follow.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
984 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 985
Modeling Solidification
Here, the solid is pulled out with a specified velocity, so a velocity inlet boundary condition is used with
a positive axial velocity component.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
986 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Velocity Inlet dialog box will change to show related inputs.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 987
Modeling Solidification
The specified shear and Marangoni stress boundary conditions are useful in modeling situations in which
the shear stress (rather than the motion of the fluid) is known. A free surface condition is an example of
such a situation. In this case, the convection is driven by the Marangoni stress and the shear stress is
dependent on the surface tension, which is a function of temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
988 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The Marangoni Stress condition allows you to specify the gradient of the surface tension with respect
to temperature at a wall boundary.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 989
Modeling Solidification
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
990 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 991
Modeling Solidification
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
992 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 993
Modeling Solidification
a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.
b. Select PRESTO! from the Pressure drop-down list in the Spatial Discretization group box.
The PRESTO! scheme is well suited for rotating flows with steep pressure gradients.
c. Retain the default selection of Second Order Upwind from the Momentum, Swirl Velocity, and Energy
drop-down lists.
The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
994 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Deselect Flow and Swirl Velocity from the Equations selection list to disable the calculation of flow
and swirl velocity equations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 995
Modeling Solidification
b. Click OK to accept the remaining default settings and close the Residual Monitors dialog box.
Solving Initialization
For flows in complex topologies, hybrid initialization will provide better initial velocity and pressure
field than standard initialization. This in general will help in improving the convergence behavior of
the solver.
b. Click Initialize.
In this step, you will define a field function to be used to patch a variable value for the swirl pull velocity
in the next step. The swirl pull velocity is equal to , where is the angular velocity, and is the radial
coordinate. Since = 1 rad/s, you can simplify the equation to simply . In this example, the value of
is included for demonstration purposes.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
996 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. From the Field Functions drop-down lists, select Mesh... and Radial Coordinate.
If you make a mistake, click the DEL button on the calculator pad to delete the last item you added
to the function definition.
f. Click Define.
The omegar item appears under the Parameters & Customisation/Parameters tree branch.
Note
To check the function definition or delete the custom field function, click Manage....
Then in the Field Function Definitions dialog box, from the Field Functions selection
list, select omegar to view the function definition.
As noted earlier, you will patch values for the pull velocities, rather than having ANSYS Fluent compute
them. Since the radial pull velocity is zero, you will patch just the axial and swirl pull velocities.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 997
Modeling Solidification
d. Click Patch.
You have just patched the axial pull velocity. Next you will patch the swirl pull velocity.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
998 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
h. Ensure that fluid is selected from the Zones to Patch selection list.
8. Save the initial case and data files (solid0.cas.gz and solid0.dat.gz).
a. In the Run Calculation task page, select User Specified for the Time Step Method in both the Fluid
Time Scale and the Solid Time Scale group boxes.
b. Retain the default values of 1 and 1000 for the Pseudo Time Step (s) in the Fluid Time Scale and the
Solid Time Scale group boxes, respectively.
d. Click Calculate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 999
Modeling Solidification
10. Create and display the definition of filled temperature contours (Figure 24.3: Contours of Temperature for
the Steady Conduction Solution (p. 1001)).
c. Select Temperature... and Static Temperature from the Contours of drop-down lists.
d. Click Save/Display (Figure 24.3: Contours of Temperature for the Steady Conduction Solution (p. 1001)).
The temperature contour definition appear under the Results/Graphics/Contours tree branch.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1000 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
11. Display filled contours of temperature to determine the thickness of mushy zone.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1001
Modeling Solidification
c. Click Display (See Figure 24.4: Contours of Temperature (Mushy Zone) for the Steady Conduction
Solution (p. 1003)) and close the Contours dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1002 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 24.4: Contours of Temperature (Mushy Zone) for the Steady Conduction Solution
12. Save the case and data files for the steady conduction solution (solid.cas.gz and solid.dat.gz).
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1003
Modeling Solidification
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1004 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Retain the default selection of First Order Implicit from the Transient Formulation drop-down list.
b. Ensure that PRESTO! is selected from the Pressure drop-down list in the Spatial Discretization group
box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1005
Modeling Solidification
a. Select Flow and Swirl Velocity and ensure that Energy is selected from the Equations selection list.
Now all three items in the Equations selection list will be selected.
5. Save the initial case and data files (solid01.cas.gz and solid01.dat.gz).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1006 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Calculate.
7. Display filled contours of the temperature after 0.2 seconds using the temperature contours definition
that you created earlier.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1007
Modeling Solidification
8. Create and display the definition of stream function contours (Figure 24.6: Contours of Stream Function at
t=0.2 s (p. 1009)).
c. Select Velocity... and Stream Function from the Contours of drop-down lists.
d. Click Save/Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1008 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
As shown in Figure 24.6: Contours of Stream Function at t=0.2 s (p. 1009), the liquid is beginning to circulate
in a large eddy, driven by natural convection and Marangoni convection on the free surface.
9. Create and display the definition of liquid fraction contours by modifying the stream-function contour
definition (Figure 24.7: Contours of Liquid Fraction at t=0.2 s (p. 1010)).
c. Select Solidification/Melting... and Liquid Fraction from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1009
Modeling Solidification
The liquid fraction contours show the current position of the melt front. Note that in Figure 24.7: Contours
of Liquid Fraction at t=0.2 s (p. 1010), the mushy zone divides the liquid and solid regions roughly in half.
b. Click Calculate.
After a total of 50 time steps have been completed, the elapsed time will be 5 seconds.
11. Display filled contours of the temperature after 5 seconds using the contour definition created earlier
(Figure 24.8: Contours of Temperature at t=5 s (p. 1011)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1010 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
As shown in Figure 24.8: Contours of Temperature at t=5 s (p. 1011), the temperature contours are fairly
uniform through the melt front and solid material. The distortion of the temperature field due to the re-
circulating liquid is also clearly evident.
In a continuous casting process, it is important to pull out the solidified material at the proper time. If
the material is pulled out too soon, it will not have solidified (that is, it will still be in a mushy state). If
it is pulled out too late, it solidifies in the casting pool and cannot be pulled out in the required shape.
The optimal rate of pull can be determined from the contours of liquidus temperature and solidus tem-
perature.
12. Display contours of stream function (Figure 24.9: Contours of Stream Function at t=5 s (p. 1012)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1011
Modeling Solidification
As shown in Figure 24.9: Contours of Stream Function at t=5 s (p. 1012), the flow has developed more fully
by 5 seconds, as compared with Figure 24.6: Contours of Stream Function at t=0.2 s (p. 1009) after 0.2
seconds. The main eddy, driven by natural convection and Marangoni stress, dominates the flow.
To examine the position of the melt front and the extent of the mushy zone, you will plot the contours
of liquid fraction.
13. Display filled contours of liquid fraction (Figure 24.10: Contours of Liquid Fraction at t=5 s (p. 1013)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1012 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
The introduction of liquid material at the left of the domain is balanced by the pulling of the solidified
material from the right. After 5 seconds, the equilibrium position of the melt front is beginning to be es-
tablished (Figure 24.10: Contours of Liquid Fraction at t=5 s (p. 1013)).
14. Save the case and data files for the solution at 5 seconds (solid5.cas.gz and solid5.dat.gz).
24.5. Summary
In this tutorial, you studied the setup and solution for a fluid flow problem involving solidification for
the Czochralski growth process.
The solidification model in ANSYS Fluent can be used to model the continuous casting process where
a solid material is continuously pulled out from the casting domain. In this tutorial, you patched a
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1013
Modeling Solidification
constant value and a custom field function for the pull velocities instead of computing them. This ap-
proach is used for cases where the pull velocity is not changing over the domain, as it is computationally
less expensive than having ANSYS Fluent compute the pull velocities during the calculation.
For more information about the solidification/melting model, see the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1014 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 25: Using the Eulerian Granular Multiphase Model with
Heat Transfer
This tutorial is divided into the following sections:
25.1. Introduction
25.2. Prerequisites
25.3. Problem Description
25.4. Setup and Solution
25.5. Summary
25.6. Further Improvements
25.7. References
25.1. Introduction
This tutorial examines the flow of air and a granular solid phase consisting of glass beads in a hot gas
fluidized bed, under uniform minimum fluidization conditions. The results obtained for the local wall-
to-bed heat transfer coefficient in ANSYS Fluent can be compared with analytical results [1].
Compile a User-Defined Function (UDF) for the gas and solid phase thermal conductivities.
25.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
In order to complete the steps to compile the UDF, you will need to have a working C compiler installed
on your machine.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1015
Using the Eulerian Granular Multiphase Model with Heat Transfer
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1016 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
25.4.10. Postprocessing
25.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the eulerian_granular_heat_R170.zip link to download the input and solution files.
8. Use Fluent Launcher to enable Double Precision and start the 2D version of ANSYS Fluent.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
11. Ensure that Set up Compilation Environment for UDF is enabled in the Environment tab of the Fluent
Launcher window. This will allow you to compile the UDF.
Note
The double precision solver is recommended for modeling multiphase flow simulations.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1017
Using the Eulerian Granular Multiphase Model with Heat Transfer
25.4.2. Mesh
1. Read the mesh file fluid-bed.msh.
As ANSYS Fluent reads the mesh file, it will report the progress in the console.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the reported minimum volume is a positive number.
3. Examine the mesh (Figure 25.2: Mesh Display of the Fluidized Bed (p. 1019)).
Extra
You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
window, its zone number, name, and type will be printed in the ANSYS Fluent console.
This feature is especially useful when you have several zones of the same type and you
want to distinguish between them quickly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1018 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Setup General
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1019
Using the Eulerian Granular Multiphase Model with Heat Transfer
25.4.4. Models
1. Enable the Eulerian multiphase model for two phases.
You will use the default settings for the Eulerian model, so you can enable it directly from the tree by
right-clicking the Multiphase node and choosing Eulerian from the context menu.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1020 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
An Information dialog box appears reminding you to confirm the property values. Click OK in the
Information dialog box to continue.
Experiments have shown negligible three-dimensional effects in the flow field for the case modeled,
suggesting very weak turbulent behavior.
25.4.5. UDF
1. Compile the user-defined function, conduct.c, that will be used to define the thermal conductivity for
the gas and solid phase.
a. Click the Add... button below the Source Files option to open the Select File dialog box.
i. Select the file conduct.c and click OK in the Select File dialog box.
b. Click Build.
ANSYS Fluent will create a libudf folder and compile the UDF. Also, a Warning dialog box will
open asking you to make sure that UDF source file and case/data files are in the same folder.
Extra
If you decide to read in the case file that is provided for this tutorial on the Customer
Portal, you will need to compile the UDF associated with this tutorial in your working
folder. This is necessary because ANSYS Fluent will expect to find the correct UDF libraries
in your working folder when reading the case file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1021
Using the Eulerian Granular Multiphase Model with Heat Transfer
25.4.6. Materials
1. Modify the properties for air, which will be used for the primary phase.
The properties used for air are modified to match data used by Kuipers et al. [1]
c. Select user-defined from the Thermal Conductivity drop-down list to open the User Defined Functions
dialog box.
d. Click Change/Create.
2. Define a new fluid material for the granular phase (the glass beads).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1022 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Retain the selection of user-defined from the Thermal Conductivity drop-down list.
e. Click the Edit... button to open the User Defined Functions dialog box.
i. Select conduct_solid::libudf in the User Defined Functions dialog box and click OK.
A Question dialog box will open asking if you want to overwrite air.
25.4.7. Phases
You will now configure the phases.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1023
Using the Eulerian Granular Multiphase Model with Heat Transfer
b. Ensure that air is selected from the Phase Material drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1024 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
c. Enable Granular.
d. Retain the default selection of Phase Property in the Granular Temperature Model group box.
h. Select constant from the Granular Temperature drop-down list and enter 1e-05.
a. In the Drag tab, select syamlal-obrien from the Drag Coefficient drop-down list.
b. In the Heat tab, select gunn from the Heat Transfer Coefficient drop-down list.
The interphase heat exchange is simulated, using a drag coefficient, the default restitution coefficient
for granular collisions of 0.9, and a heat transfer coefficient. Granular phase lift is not very relevant
in this problem, and in fact is rarely used.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1025
Using the Eulerian Granular Multiphase Model with Heat Transfer
1. Set the boundary conditions for the lower velocity inlet (v_uniform) for the primary phase.
For the Eulerian multiphase model, you will specify conditions at a velocity inlet that are specific to the
primary and secondary phases.
b. Click the Edit... button to open the Velocity Inlet dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1026 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.
iii. Click the Thermal tab and enter 293 K for Temperature.
2. Set the boundary conditions for the lower velocity inlet (v_uniform) for the secondary phase.
b. Click the Edit... button to open the Velocity Inlet dialog box.
ii. Retain the default value of 0 m/s for the Velocity Magnitude.
iii. Click the Thermal tab and enter 293 K for Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1027
Using the Eulerian Granular Multiphase Model with Heat Transfer
iv. Click the Multiphase tab and retain the default value of 0 for Volume Fraction.
3. Set the boundary conditions for the orifice velocity inlet (v_jet) for the primary phase.
b. Click the Edit... button to open the Velocity Inlet dialog box.
In order for a comparison with analytical results [1] to be meaningful, in this simulation you will
use a uniform value for the air velocity equal to the minimum fluidization velocity at both inlets
on the bottom of the bed.
iii. Click the Thermal tab and enter 293 K for Temperature.
4. Set the boundary conditions for the orifice velocity inlet (v_jet) for the secondary phase.
b. Click the Edit... button to open the Velocity Inlet dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1028 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. Retain the default value of 0 m/s for the Velocity Magnitude.
iii. Click the Thermal tab and enter 293 K for Temperature.
iv. Click the Multiphase tab and retain the default value of 0 for the Volume Fraction.
5. Set the boundary conditions for the pressure outlet (poutlet) for the mixture phase.
For the Eulerian granular model, you will specify conditions at a pressure outlet for the mixture and for
both phases.
The thermal conditions at the pressure outlet will be used only if flow enters the domain through this
boundary. You can set them equal to the inlet values, as no flow reversal is expected at the pressure
outlet. In general, however, it is important to set reasonable values for these downstream scalar values,
in case flow reversal occurs at some point during the calculation.
b. Click the Edit... button to open the Pressure Outlet dialog box.
6. Set the boundary conditions for the pressure outlet (poutlet) for the primary phase.
b. Click the Edit... button to open the Pressure Outlet dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1029
Using the Eulerian Granular Multiphase Model with Heat Transfer
7. Set the boundary conditions for the pressure outlet (poutlet) for the secondary phase.
b. Click the Edit... button to open the Pressure Outlet dialog box.
i. In the Thermal tab, enter 293 K for the Backflow Total Temperature.
8. Set the boundary conditions for the heated wall (wall_hot) for the mixture.
For the heated wall, you will set thermal conditions for the mixture, and momentum conditions (zero
shear) for both phases.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1030 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. In the Thermal tab, select Temperature from the Thermal Conditions list.
9. Set the boundary conditions for the heated wall (wall_hot) for the primary phase.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1031
Using the Eulerian Granular Multiphase Model with Heat Transfer
c. Retain the default No Slip condition and click OK to close the Wall dialog box.
10. Set the boundary conditions for the heated wall (wall_hot) for the secondary phase (solids) same as that
of the primary phase.
For the secondary phase, you will retain the default no slip condition as for the primary phase.
11. Set the boundary conditions for the adiabatic wall (wall_ins).
For the adiabatic wall, retain the default thermal conditions for the mixture (zero heat flux), and the
default momentum conditions (no slip) for both phases.
25.4.9. Solution
1. Select the second order implicit transient formulation and higher-order spatial discretization schemes.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1032 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Second Order Implicit from the Transient Formulation drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1033
Using the Eulerian Granular Multiphase Model with Heat Transfer
Initially, you will define functions for the mixture temperature, and thermal conductivity, then you will
use these to define a function for the heat transfer coefficient.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1034 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Select Temperature... and Static Temperature from the Field Functions drop-down lists.
ii. Ensure that air is selected from the Phase drop-down list and click Select.
iv. Select Phases... and Volume fraction from the Field Functions drop-down list.
v. Ensure that air is selected from the Phase drop-down list and click Select.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1035
Using the Eulerian Granular Multiphase Model with Heat Transfer
i. Select Properties... and Thermal Conductivity from the Field Functions drop-down lists.
ii. Select air from the Phase drop-down list and click Select.
iv. Select Phases... and Volume fraction from the Field Functions drop-down lists.
v. Ensure that air is selected from the Phase drop-down list and click Select.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1036 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. Select Custom Field Functions... and k_mix from the Field Functions drop-down lists.
iii. Use the calculator pad and the Field Functions lists to complete the definition of the function.
v. Click Define and close the Custom Field Function Calculator dialog box.
5. Define the point surface in the cell next to the wall on the plane .
a. Enter 0.28494 m for x0 and 0.24 m for y0 in the Coordinates group box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1037
Using the Eulerian Granular Multiphase Model with Heat Transfer
d. Select Time Step from the Get Data Every drop-down list.
f. Select Custom Field Functions... and ave_htc from the Field Variable drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1038 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8. Define an adaption register for the lower half of the fluidized bed.
This register is used to patch the initial volume fraction of solids in the next step.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1039
Using the Eulerian Granular Multiphase Model with Heat Transfer
a. Enter 0.3 m for Xmax and 0.5 m for Ymax in the Input Coordinates group box.
b. Click Mark.
c. Click the Manage... button to open the Manage Adaption Registers dialog box.
ii. Click Display and close the Manage Adaption Registers dialog box.
After you define a region for adaption, it is a good practice to display it to visually verify that it
encompasses the intended area.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1040 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
9. Patch the initial volume fraction of solids in the lower half of the fluidized bed.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1041
Using the Eulerian Granular Multiphase Model with Heat Transfer
At this point, it is a good practice to display contours of the variable you just patched, to ensure that the
desired field was obtained.
10. Display contours of Volume Fraction of solids (Figure 25.4: Initial Volume Fraction of Granular Phase
(solids). (p. 1043)).
d. Ensure that Volume fraction is selected from the lower Contours of drop-down list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1042 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1043
Using the Eulerian Granular Multiphase Model with Heat Transfer
d. Click Calculate.
Note
If you do not want to wait for the solution to run the full 12000 time steps you can stop
the calculation and read in the completed case/data files from the solution-files
subdirectory in the eulerian_granular_heat.zip file.
The plot of the value of the mixture-averaged heat transfer coefficient in the cell next to the heated wall
versus time is in excellent agreement with results published for the same case [1].
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1044 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 25.5: Plot of Mixture-Averaged Heat Transfer Coefficient in the Cell Next to the Heated
Wall Versus Time
13. Save the case and data files (fluid-bed.cas.gz and fluid-bed.dat.gz).
25.4.10. Postprocessing
1. Display the pressure field in the fluidized bed (Figure 25.6: Contours of Static Pressure (p. 1047)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1045
Using the Eulerian Granular Multiphase Model with Heat Transfer
b. Select Pressure... and Static Pressure from the Contours of drop-down lists.
c. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1046 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Display the volume fraction of solids (Figure 25.7: Contours of Volume Fraction of Solids (p. 1048)).
b. Select Phases... and Volume fraction from the Contours of drop-down lists.
d. Zoom in to show the contours close to the region where the change in volume fraction is the greatest.
Note that the region occupied by the granular phase has expanded slightly, as a result of fluidization.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1047
Using the Eulerian Granular Multiphase Model with Heat Transfer
25.5. Summary
This tutorial demonstrated how to set up and solve a granular multiphase problem with heat transfer,
using the Eulerian model. You learned how to set boundary conditions for the mixture and both phases.
The solution obtained is in excellent agreement with analytical results from Kuipers et al. [1].
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1048 of ANSYS, Inc. and its subsidiaries and affiliates.
References
25.7. References
1. J. A. M. Kuipers, W. Prins, and W. P. M. Van Swaaij Numerical Calculation of Wall-to-Bed Heat Transfer
Coefficients in Gas-Fluidized Beds", Department of Chemical Engineering, Twente University of Technology,
in AIChE Journal, July 1992, Vol. 38, No. 7.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1049
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1050 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 26: Postprocessing
This tutorial is divided into the following sections:
26.1. Introduction
26.2. Prerequisites
26.3. Problem Description
26.4. Setup and Solution
26.5. Summary
26.1. Introduction
This tutorial demonstrates the postprocessing capabilities of ANSYS Fluent using a 3D model of a flat
circuit board with a heat generating electronic chip mounted on it. The flow over the chip is laminar
and involves conjugate heat transfer.
The heat transfer involves conduction in the chip and conduction and convection in the surrounding
fluid. The physics of conjugate heat transfer such as this are common in many engineering applications,
including the design and cooling of electronic components.
In this tutorial, you will read the case and data files (without doing the calculation) and perform a
number of postprocessing exercises.
Create animations.
Display pathlines.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1051
Postprocessing
26.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
As shown in the figure, each half-module is assumed to generate 2.0 Watts and to have a bulk conduct-
ivity of 1.0 -K. The circuit board conductivity is assumed to be one order of magnitude lower:
0.1 -K. The air flow enters the system at 298 K with a velocity of 1 m/s. The Reynolds number of
the flow, based on the module height, is about 600. The flow is therefore treated as laminar.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1052 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
26.4.1. Preparation
To prepare for running this tutorial:
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the postprocess_R170.zip link to download the input and solution files.
The files chip.cas.gz and chip.dat.gz can be found in the postprocess folder created after
unzipping the file.
Fluent Launcher displays your Display Options preferences from the previous session.
For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.
9. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1053
Postprocessing
When you select the case file, ANSYS Fluent will read the data file automatically.
a. Retain the default enabling of the Edges option and disable the Faces option in the Options group
box.
b. Deselect all surfaces and select board-top and chip from the Surfaces selection list.
To deselect all surfaces click the far-right unshaded button at the top of the Surfaces selection list,
and then select the desired surfaces from the Surfaces selection list.
c. Click the Colors... button to open the Mesh Colors dialog box.
ii. Click Reset Colors to reset the mesh colors to the default settings and close the Mesh Colors dialog
box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1054 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Display.
Use the left mouse button to rotate the view. Use the middle mouse button to adjust the magnification
until you obtain an enlarged display of the circuit board in the region of the chip, as shown in Fig-
ure 26.2: Mesh Display of the Chip and Board Surfaces (p. 1055).
Extra
You can click the right mouse button on one of the mesh boundaries displayed in the
graphics window and its surface group, ID, and name will be displayed in the console.
This feature is especially useful when you have several zones of the same type and you
want to distinguish between them.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1055
Postprocessing
The surfaces run together with no shading to separate the chip from the board.
The default light settings add a white light at the position (1,1,1). The default light is defined in the Lights
dialog box by the Light ID 0 with Direction vectors (X, Y, Z) as (1, 1, 1).
Double Buffering can dramatically reduce screen flicker during graphics updates, but will use extra
memory if your display hardware does not support it.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1056 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Make sure that the Lights On option is enabled in the Lighting Attributes group box.
Flat is the most basic lighting whereas Gouraud gives better color gradation. Note that Gouraud
rounds off corners, and so should be used with caution on highly angular geometries.
Shading will be added to the surface mesh display (Figure 26.3: Graphics Window with Default
Lighting (p. 1057)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1057
Postprocessing
You can also open the Lights dialog box by clicking the Lights... button in the Display Options dialog
box.
a. Set Light ID to 1.
c. Enter -1, 1, and 1 for X, Y, and Z respectively in the Direction group box.
The Headlight On option provides constant lighting effect from a light source directly in front of the
model, in the direction of the view. You can turn off the headlight by disabling the Headlight On
option (the results of this action are shown in Figure 26.4: Display with Additional Lighting: - Headlight
Off (p. 1059)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1058 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
f. Click Apply.
g. Similarly, add a second light (Light ID= 2 with Light On enabled) with a Direction of (-1, 1, -1).
The result will be more softly shaded display (Figure 26.5: Display with Additional Lighting (p. 1060)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1059
Postprocessing
Extra
You can use the left mouse button to rotate the ball in the Active Lights window to gain a
perspective view on the relative locations of the lights that are currently active, and see the
shading effect on the ball at the center.
You can also change the color of one or more of the lights by selecting the color from the
Color drop-down list or by moving the Red, Green, and Blue sliders.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1060 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You can define additional surfaces for viewing the results, such as a plane in Cartesian space. In this exercise,
you will create a horizontal plane cutting through the middle of the module with a Y value of 0.25 inches.
You can use this surface to display the temperature and velocity fields.
a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.
b. Click Compute.
The Min and Max fields display the Y extents of the domain.
Tip
When you are creating multiple postprocessing surfaces, it can be helpful to keep
them together in the various lists in the Fluent graphical user interface. An easy way
to accomplish this is to use a prefix such as aa_ or zz_ when naming them.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1061
Postprocessing
a. Select Mesh... and X-Coordinate from the Clip to Values of drop-down lists.
c. Click Compute.
The Min and Max fields display the X extents of the domain.
f. Click Clip.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1062 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Mesh... and Y-Coordinate from the Clip to Values of drop-down lists.
b. Retain the selection of fluid-sym from the Clip Surface selection list.
c. Click Compute.
The Min and Max fields display the Y extents of the domain.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1063
Postprocessing
b. Select Temperature... and Static Temperature from the Contours of drop-down lists.
c. Select board-sym, chip-sym, and fluid-sym from the Surfaces selection list.
d. Click Display.
e. Rotate and adjust the magnification of the view using the left and middle mouse buttons, respectively,
to obtain the view as shown in Figure 26.6: Filled Contours of Temperature on the Symmetry Sur-
faces (p. 1065).
Tip
If the model disappears from the graphics window at any time, or if you are having
difficulty manipulating it with the mouse, do one of the following:
Open the Views dialog box by right-clicking Graphics in the tree (under Results)
and selecting Views... from the menu that opens, and then use the Default button
to reset the view. You could also click Camera... in this dialog box to open the
Camera Parameters dialog box, where you could select orthographic from the
Projection drop-down list to reduce the likelihood of zooming through the geo-
metry.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1064 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The peak temperatures in the chip appear where the heat is generated, along with the higher temperatures
in the wake where the flow is recirculating.
2. Display filled contours of temperature for the clipped surface (Figure 26.7: Filled Contours of Temperature
on the Clipped Surface (p. 1066)).
a. Deselect all surfaces from the Surfaces selection list and then select fluid-sym-x-clip and fluid-sym-
y-clip.
b. Click Display.
A clipped surface appears, colored by temperature (Figure 26.7: Filled Contours of Temperature on
the Clipped Surface (p. 1066)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1065
Postprocessing
3. Display filled contours of temperature on the plane, y=0.25in (Figure 26.8: Temperature Contours on the
Surface, Y= 0.25 in. (p. 1069)).
a. Deselect all surfaces from the Surfaces selection list and then select y=0.25in.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1066 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1067
Postprocessing
b. Set Skip to 4.
If the contour labels displayed next to the colormap are crowding the graphics window, you can use
the skip-label function to control the number of labels displayed.
d. Orient the view as shown in Figure 26.8: Temperature Contours on the Surface, Y= 0.25 in. (p. 1069).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1068 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
In Figure 26.8: Temperature Contours on the Surface, Y= 0.25 in. (p. 1069), the high temperatures in the
wake of the module are clearly visible. You can also display other quantities such as velocity magnitude
or pressure using the Contours dialog box.
1. Display velocity vectors on the symmetry plane through the module centerline (Figure 26.9: Velocity Vectors
in the Module Symmetry Plane (p. 1072)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1069
Postprocessing
b. Deselect all surfaces from the Surfaces selection list and then select fluid-sym.
Extra
a. Deselect all surfaces from the Surfaces selection list and then select fluid-sym-x-clip and
fluid-sym-y-clip.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1070 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Rotate and adjust the magnification of the view to observe the vortex near the stagnation point and
in the wake of the module (Figure 26.9: Velocity Vectors in the Module Symmetry Plane (p. 1072)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1071
Postprocessing
Note
The vectors in Figure 26.9: Velocity Vectors in the Module Symmetry Plane (p. 1072) are
shown without arrowheads. You can modify the arrow style in the Vectors dialog box
by selecting a different option from the Style drop-down list.
Extra
If you want to decrease the number of vectors displayed, then increase the Skip factor
to a nonzero value.
3. Plot velocity vectors in the horizontal plane intersecting the module (Figure 26.10: Velocity Vectors Inter-
secting the Surface (p. 1074)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1072 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.
ii. Retain the selection of board-top and chip from the Surfaces selection list.
iii. Click the Colors... button to open the Mesh Colors dialog box.
C. Select light blue from the Colors selection list and close the Mesh Colors dialog box.
iv. Click Display and close the Mesh Display dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1073
Postprocessing
c. Deselect all surfaces by clicking the far-right unshaded button at the top of the Surfaces selection list.
f. Rotate the view and reduce the magnification to obtain the view as shown in Figure 26.10: Velocity
Vectors Intersecting the Surface (p. 1074).
4. Mirror the image about the chip symmetry plane (Figure 26.11: Velocity Vectors After Mirroring (p. 1076)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1074 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
This zone is the centerline plane of the module and its selection will create a mirror
of the entire display about the centerline plane.
The display will be updated in the graphics window (Figure 26.11: Velocity Vectors After Mirror-
ing (p. 1076)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1075
Postprocessing
You will display the surface temperature distribution on the module and the circuit board by selecting the
corresponding boundaries. You will also create the key frames and view the transition between the key
frames, dynamically, using the animation feature.
1. Display filled contours of surface temperature on the board-top and chip surfaces. (Figure 26.12: Filled
Temperature Contours on the Chip and Board Top Surfaces (p. 1078)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1076 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Retain the selection of Temperature... and Static Temperature from the Contours of drop-down lists.
c. Deselect all surfaces by clicking the far-right unshaded button at the top of the Surfaces list.
f. Reorient the display as needed to obtain the view shown in Figure 26.12: Filled Temperature Contours
on the Chip and Board Top Surfaces (p. 1078).
Figure 26.12: Filled Temperature Contours on the Chip and Board Top Surfaces (p. 1078) shows the high
temperatures on the downstream portions of the module and relatively localized heating of the circuit
board around the module.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1077
Postprocessing
Figure 26.12: Filled Temperature Contours on the Chip and Board Top Surfaces
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1078 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You will use the current display (Figure 26.12: Filled Temperature Contours on the Chip and Board Top
Surfaces (p. 1078)) as the starting view for the animation (Frame = ).
a. Click Add in the Key Frames group box to create the first frame for your animation.
The magnified view will be the one-hundredth key frame of the animation, with intermediate displays
(2 through 99) to be filled in during the animation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1079
Postprocessing
e. Rotate the view and adjust the magnification so that the downstream side of the module is in the
foreground (Figure 26.13: Filled Temperature Contours on the Chip and Board Top Surfaces (p. 1080)).
Figure 26.13: Filled Temperature Contours on the Chip and Board Top Surfaces
Note
You can check the display view of any of your saved key frames by selecting it in the
Keys list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1080 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. View the scene animation by clicking the play button ( ) in the Playback group box.
Note
If your computer is having difficulty displaying the animation with 200 frames, you can
increase the increment to 50.
While effective animation is best conducted on high-end graphics workstations, you can view scene
animations on any workstation. If the graphics display speed is slow, the animation playback will take
some time and will appear choppy, with the redrawing very obvious. On fast graphics workstations, the
animation will appear smooth and continuous and will provide an excellent visualization of the display
from a variety of spatial orientations. On many machines, you can improve the smoothness of the anim-
ation by enabling the Double Buffering option in the Display Options dialog box.
To produce a slower animation, increase the number of frames between the key frames. The more sparsely
you place your key frames, the more transition frames ANSYS Fluent creates between the key frames and
therefore stretching out your animation.
Note
You can also make use of animation tools of ANSYS Fluent for transient cases as
demonstrated in Modeling Transient Compressible Flow (p. 255).
Extra
You can change the Playback Mode if you want to auto repeat or auto reverse the
animation. When you are in either of these modes, you can click the stop button ( )
to stop the continuous animation.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1081
Postprocessing
A rake surface consists of a specified number of points equally spaced between two specified endpoints.
A line surface (the other option in the Type drop-down list) is a line that includes the specified end-
points and extends through the domain; data points on a line surface will not be equally spaced.
c. Enter a starting coordinate of (1.0, 0.105, 0.07) and an ending coordinate of (1.0, 0.25,
0.07) in the End Points group box.
This will define a vertical line in front of the module, about halfway between the centerline and edge.
You will refer to the rake by this name when you plot the pathlines.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1082 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.
ii. Retain the selection of board-top and chip from the Surfaces selection list.
These surfaces should already be selected from the earlier exercise where the mesh was displayed
with velocity vectors.
Note
As a general guideline to follow when you are setting these two parameters is that
if you want the particles to advance through a domain of length , the Step Size
times the number of Steps should be approximately equal to .
Coarsening the pathline simplifies the plot and reduces the plotting time. The coarsening factor spe-
cified for Path Coarsen indicates the interval at which the points are plotted for a given pathline in
any cell.
f. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1083
Postprocessing
g. Rotate and magnify the view so that the flow field is in front and the wake of the chip is visible as shown
in Figure 26.14: Pathlines Display (p. 1084).
c. Click the Write... button to open the Select File dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1084 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ANSYS Fluent will save the file in the Fieldview format with a .fvp extension.
c. Click the Attributes... button to open the Path Style Attributes dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1085
Postprocessing
d. Enter 1 inch for Step Size and 1000 for Steps respectively.
f. Retain the selection of pathline-rake in the Release from Surfaces selection list.
g. Click Display.
This will color the pathlines by the surface they are released from (Figure 26.16: Sphere Pathlines
Colored by Surface ID (p. 1087)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1086 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
As an optional exercise, you can create solution animations for pathlines using the Animation
Sequence dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1087
Postprocessing
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1088 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Because the mesh surfaces are already displayed and overlaying is active, there is no need to redisplay
the mesh surfaces.
c. Deselect all surfaces by clicking the far-right unshaded button at the top of the Surfaces list.
f. Use the mouse to obtain the view that is shown in Figure 26.17: Overlay of Velocity Vectors and Pathlines
Display (p. 1090).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1089
Postprocessing
Note
The final display (Figure 26.17: Overlay of Velocity Vectors and Pathlines Display (p. 1090)) does
not require mirroring about the symmetry plane because the vectors obscure the mirrored
image. You may disable the mirroring option in the Views dialog box at any stage during
this exercise.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1090 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Delete the velocity vectors and pathlines from the current display.
a. Select the pathlines path-8-surface-id and the velocity vectors vv-0-velocity-magnitude from the
Names selection list.
The Names selection list of the Scene Description dialog box should then contain only the two mesh
surfaces (board-top and chip).
2. Create a plotting surface at X = 3 inches (named x=3.0in), just downstream of the trailing edge of the
module.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1091
Postprocessing
Tip
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1092 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Deselect all surfaces by clicking the far-right unshaded button at the top of the Surfaces list.
a. Enable the Draw Mesh option in the Options group box to open the Mesh Display dialog box.
c. Set Skip to 2.
d. Deselect all surfaces by clicking the far-right unshaded button at the top of the Surfaces list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1093
Postprocessing
The display will show the vectors superimposed on the contours of temperature at =3.0 in.
5. Create the exploded view by translating the contour display, placing it above the vectors (Figure 26.18: Ex-
ploded Scene Display of Temperature and Velocity (p. 1095)).
The exploded view allows you to see the contours and vectors as distinct displays in the final scene
(Figure 26.18: Exploded Scene Display of Temperature and Velocity (p. 1095)).
c. Deselect Overlays.
e. Magnify the view, as shown in Figure 26.18: Exploded Scene Display of Temperature and Velocity (p. 1095).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1094 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1095
Postprocessing
The dialog box and graphics window will be updated to contain only the mesh surfaces.
2. Use the mouse to reduce the magnification of the view in the graphics window so that the entire board
surface is visible.
3. Generate contours of velocity magnitude and sweep them through the domain along the X axis.
b. Retain the default value of 0 m for Initial Value in the Animation group box.
Warning
The units for the initial and final values are in meters, regardless of the length
units being used in the model. Here, the initial and final values are set to the
Min Value and Max Value, to generate an animation through the entire domain.
e. Select Contours from the Display Type list to open the Contours dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1096 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
You will see the velocity contour plot displayed at 20 successive streamwise planes. ANSYS Fluent will
automatically interpolate the contoured data on the streamwise planes between the specified end points.
Especially on high-end graphics workstations, this can be an effective way to study how a flow variable
changes throughout the domain.
Note
You can also make use of animation tools of ANSYS Fluent for transient cases as demonstrated
in Modeling Transient Compressible Flow (p. 255).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1097
Postprocessing
b. Enter the coordinates of the line using a starting coordinate of (2.0, 0.4, 0.01) and an ending co-
ordinate of (2.75, 0.4, 0.01) in the End Points group box.
2. Plot the temperature distribution along the top centerline of the module (Figure 26.19: Temperature Along
the Top Centerline of the Module (p. 1100)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1098 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Select Temperature... and Static Temperature from the Y Axis Function drop-down lists.
This will plot temperature vs. the X coordinate along the selected line (top-center-line).
d. Click the Axes... button to open the Axes - Solution XY Plot dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1099
Postprocessing
iii. Enter 2.0 for Minimum and 2.75 for Maximum in the Range group box.
iv. Click Apply and close the Axes - Solution XY Plot dialog box.
The temperature distribution (Figure 26.19: Temperature Along the Top Centerline of the Module (p. 1100))
shows the temperature increase across the module surface as the thermal boundary layer develops
in the cooling air flow.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1100 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. Enter the text describing the plot (for example, Temperature Along the Top Centerline) in the
Annotation Text field.
2. Select 20 from the Size drop-down list in the Font Specification group box.
3. Click Add.
A Working dialog box will appear telling you to select the desired location of the text using the mouse-
probe button.
4. Click the right mouse button in the graphics window where you want the text to appear, and you will see
the text displayed at the selected location (Figure 26.20: A Display with Annotation (p. 1102)).
Extra
If you want to move the text to a new location on the screen, select the text in the Names
selection list, click Delete Text, and click Add once again, defining a new position with
the mouse.
Note
Depending on the size of the graphics window and the picture file format you choose,
the font size of the annotation text you see on the screen may be different from the font
size in a picture file of that graphics window. The annotation text font size is absolute,
while the rest of the items in the graphics window are scaled to the proportions of the
picture file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1101
Postprocessing
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1102 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
4. Click the Save... button to open the Select File dialog box.
2. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
The maximum temperature in the solid-1 cell zone (the chip) is displayed.
5. Select Minimum in the Report Type group box and click Compute.
The minimum temperature in the solid-1 cell zone (the chip) is displayed.
6. Repeat the operations to determine the maximum and minimum temperatures in the solid-2 and fluid-8
cell zones, corresponding to the board and fluid volume, respectively.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1103
Postprocessing
26.5. Summary
This tutorial demonstrated the use of many of the extensive postprocessing features available in ANSYS
Fluent.
For more information on these and related features, see reporting alphanumeric data and displaying
graphics in the Fluent Users Guide.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1104 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 27: Parallel Processing
This tutorial is divided into the following sections:
27.1. Introduction
27.2. Prerequisites
27.3. Problem Description
27.4. Setup and Solution
27.5. Summary
27.1. Introduction
This tutorial illustrates the setup and solution of a simple 3D problem using the parallel processing
capabilities of ANSYS Fluent. In order to be run in parallel, the mesh must be divided into smaller, evenly
sized partitions. Each ANSYS Fluent process, called a compute node, will solve on a single partition, and
information will be passed back and forth across all partition interfaces. The solver of ANSYS Fluent
enables parallel processing on a dedicated parallel machine, or a network of workstations running
Windows or Linux.
The tutorial assumes that both ANSYS Fluent and network communication software have been correctly
installed (see the separate installation instructions and related information for details). The case chosen
is similar to the mixing elbow problem you solved in Tutorial 3.
Start the parallel version of ANSYS Fluent using either Windows or Linux.
27.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1105
Parallel Processing
27.4.1. Preparation
To prepare for running this tutorial:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1106 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the parallel_process_r170.zip link to download the input and solution files.
The case file elbow2.cas.gz can be found in the parallel_process directory created after
unzipping the file.
You can partition the mesh before or after you set up the problem (define models, boundary conditions,
and so on). It is best to partition after the problem is set up, since partitioning has some model depend-
encies (for example, sliding-mesh and shell-conduction encapsulation). Because you have already followed
the procedure for setting up a similar problem in Tutorial 3, elbow2.cas.gz is provided to save you
the effort of redefining the models and boundary conditions.
5. Set Processes to 2.
To show details of the parallel settings, click Show More Options, then go to the Parallel Settings tab.
Note that your Run Types will be Shared Memory on Local Machine.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1107
Parallel Processing
6. Click OK.
If you type fluent at the command prompt, then Fluent Launcher will appear.
For additional information about parallel command line options, see the Fluent User's Guide, available
in the help viewer or on the ANSYS Customer Portal (http://support.ansys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1108 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
1. In Fluent Launcher, restore the default settings by clicking the Default button.
7. Click the Show More Options button and open the Parallel Settings tab.
a. Retain the selection of default in the Interconnects and MPI Types drop-down lists.
Note
c. Make sure that File Containing Machine Names is selected to specify the file.
d. Type the name and location of the hosts text file in the text box below File Containing Machine Names,
or browse and select it using the Browsing Machine File dialog box.
Alternatively, you can select Machine Names and type the names of the machines in the text box.
8. Click OK.
Note
If you are using a Windows platform, you will need to enter your password for MPI the
first time you run ANSYS Fluent using Distributed Memory on a Cluster.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1109
Parallel Processing
You can also start parallel ANSYS Fluent by typing the following at the command prompt:
where -cnf indicates the location of the hosts text file. The hosts file is a text file that contains a
list of the computers on which you want to run the parallel job. If the hosts file is not located in the
directory where you are typing the startup command, you will need to supply the full pathname to
the file.
For example, the fluent.hosts file may look like the following:
my_computer
another_computer
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1110 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For additional information about hosts files and parallel command line options, see the Fluent User's
Guide, available in the help viewer or on the ANSYS Customer Portal (http://support.ansys.com/
documentation).
Although ANSYS Fluent displays a message confirming the connection to each new compute node and
summarizing the host and node processes defined, you may find it useful to review the same information
at some time during your session, especially if more compute nodes are spawned to several different
machines.
For information about all defined compute nodes, you will select node 0, since this is the node from
which all other nodes are spawned.
b. Click Print.
-------------------------------------------------------------------------------
ID Hostname Core O.S. PID Vendor
-------------------------------------------------------------------------------
n1 my_computer 2/32 Windows-x64 31588 Intel(R) Xeon(R) E5-2687W
n0* my_computer 1/32 Windows-x64 31736 Intel(R) Xeon(R) E5-2687W
host my_computer Windows-x64 21192 Intel(R) Xeon(R) E5-2687W
ID is the sequential denomination of each compute node (the host process is always host), Hostname
is the name of the machine hosting the compute node (or the host process), Core is the core num-
ber / total number of cores available, O.S. is the architecture, PID is the process ID number, and Vendor
is the vendor of the processor. Information about the selected MPI option and system interconnect
is provided at the bottom of the report.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1111
Parallel Processing
If the Case File option is enabled (the default setting), and there exists a valid partition section in the
case file (that is, one where the number of partitions in the case file divides evenly into the number of
compute nodes), then that partition information will be used rather than repartitioning the mesh. You
need to disable the Case File option only if you want to change other parameters in the Auto Partition
Mesh dialog box.
When the Case File option is enabled, ANSYS Fluent will automatically select a partitioning method
for you. This is the preferred initial approach for most problems. In the next step, you will inspect the
partitions created and be able to change them, if required.
3. Examine the front view of the symmetry mesh zone (Figure 27.2: Mesh Along the Symmetry Plane for the
Mixing Elbow (p. 1113)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1112 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 27.2: Mesh Along the Symmetry Plane for the Mixing Elbow
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1113
Parallel Processing
ANSYS Fluent will print the active partition statistics in the console.
2 Active Partitions:
P Cells I-Cells Cell Ratio Faces I-Faces Face Ratio Neighbors Load
0 11654 202 0.017 38060 306 0.008 1 1
1 11256 211 0.019 37391 306 0.008 1 1
----------------------------------------------------------------------
Collective Partition Statistics: Minimum Maximum Total
----------------------------------------------------------------------
Cell count 11256 11654 22910
Mean cell count deviation -1.7% 1.7%
Partition boundary cell count 202 211 413
Partition boundary cell count ratio 1.7% 1.9% 1.8%
Note
ANSYS Fluent distinguishes between two cell partition schemes within a parallel
problem: the active cell partition, and the stored cell partition. Here, both are set to
the cell partition that was created upon reading the case file. If you repartition the
mesh using the Partitioning and Load Balancing dialog box, the new partition will
be referred to as the stored cell partition. To make it the active cell partition, you
need to click the Use Stored Partitions button in the Partitioning and Load Balan-
cing dialog box. The active cell partition is used for the current calculation, while the
stored cell partition (the last partition performed) is used when you save a case file.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1114 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
This distinction is made mainly to allow you to partition a case on one machine or
network of machines and solve it on a different one.
For details, see the chapter on parallel processing in the Fluent User's Guide, available in the
help viewer or on the ANSYS Customer Portal (http://support.ansys.com/documentation).
An optimal partition should produce an equal number of cells in each partition for load balancing,
a minimum number of partition interfaces to reduce interpartition communication, and a minimum
number of partition neighbors to reduce the startup time for communication. In the displayed partition
statistics, you will be looking for relatively small values of mean cell and face count deviation, and
total partition boundary cell and face count ratio. Values less than 5% are considered reasonable in
most cases. However, with very large core counts and/or especially complex cases, larger values may
be unavoidable.
In order to use the Contours dialog box to inspect the partition you just created, you have to initialize
the solution, even though you are not going to solve the problem at this point. The default values
are sufficient for this initialization.
b. Display the cell partitions (Figure 27.3: Cell Partitions (p. 1117)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1115
Parallel Processing
ii. Select Cell Info... and Active Cell Partition from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1116 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
As shown in Figure 27.3: Cell Partitions (p. 1117), the cell partitions are acceptable for this problem. The
position of the interface reveals that the criteria mentioned earlier will be matched. If you are dissat-
isfied with the partitions, you can use the Partitioning and Load Balancing dialog box to repartition
the mesh. Recall that, if you want to use the modified partitions for a calculation, you will need to
make the stored cell partition the active cell partition by either clicking the Use Stored Partitions
button in the Partitioning and Load Balancing dialog box or saving the case file and reading it
back into ANSYS Fluent.
For details about the procedure and options for manually partitioning a mesh, see the Fluent
User's Guide, available in the help viewer or on the ANSYS Customer Portal (http://support.an-
sys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1117
Parallel Processing
27.4.4. Solution
1. Initialize the flow field.
Solving Initialization
a. Make sure that Hybrid is selected under Method (this is the default).
b. Click Initialize.
A Question dialog box will open, asking if you want to discard the data generated during the first
initialization, which was used to inspect the cell partitions.
For details, see the chapter on parallel processing in the Fluent User's Guide, available in the help
viewer or on the ANSYS Customer Portal (http://support.ansys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1118 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The most accurate way to evaluate parallel performance is by running the same parallel problem on CPU
and on CPUs, and comparing the Total wall-clock time (elapsed time for the iterations) in both cases.
Ideally you would want to have the Total wall-clock time with CPUs be times the Total wall-clock
time with CPU. In practice, this improvement will be reduced by the performance of the communication
subsystem of your hardware, and the overhead of the parallel process itself.
Note
The wall clock time and the ratio of iterations to convergence time may differ depending on
the type of computer you are running (for example, Windows 64, Linux 64, and so on).
27.4.6. Postprocessing
See Tutorial 3 for complete postprocessing exercises for this example. Here, two plots are generated so that
you can confirm that the results obtained with the parallel solver are the same as those obtained with the
serial solver.
1. Display an XY plot of temperature along the centerline of the outlet (Figure 27.4: Temperature Distribution
at the Outlet (p. 1120)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1119
Parallel Processing
a. Select Temperature... and Static Temperature from the Y Axis Function drop-down lists.
Compare the plot of Temperature at the Outlet with the serial solution shown in Figure 3.20: Outlet
Temperature Profile for the Adapted Coupled Solver Solution (p. 186).
2. Display filled contours of the custom field function dynamic-head (Figure 27.5: Contours of the Custom
Field Function, Dynamic Head (p. 1122)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1120 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. Select Custom Field Functions... and dynamic-head from the Contours of drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1121
Parallel Processing
27.5. Summary
This tutorial demonstrated how to solve a simple 3D problem using the parallel solver of ANSYS Fluent.
Here, the automatic mesh partitioning performed by ANSYS Fluent when you read the mesh into the
parallel version was found to be acceptable. You also learned how to check the performance of the
parallel solver to determine if optimizations are required.
For additional details about using the parallel solver, see the Fluent User's Guide, available in the help
viewer or on the ANSYS Customer Portal (http://support.ansys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1122 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 28: Using the Adjoint Solver 2D Laminar Flow Past a
Cylinder
This tutorial is divided into the following sections:
28.1. Introduction
28.2. Prerequisites
28.3. Problem Description
28.4. Setup and Solution
28.5. Summary
28.1. Introduction
ANSYS Fluents adjoint solver is used to compute the sensitivity of quantities of interest in a fluid system
with respect to the user-specified inputs, for an existing flow solution. Importantly, this also includes
the sensitivity of the computed results with respect to the geometric shape of the system. The adjoint
design change tool is a powerful component that can use the sensitivity information from one or more
adjoint solutions to guide systematic changes that result in predictable improvements in the system
performance, which can be made subject to various types of design constraints if desired.
This tutorial provides an example of how to generate sensitivity data for flow past a circular cylinder,
how to postprocess the results, and to use the data to perform a multi-objective design change that
reduces drag and increases lift by morphing the mesh. The tutorial makes use of a previously computed
flow solution, and demonstrates how to do the following:
Use the design change tool to modify the cylinder shape to simultaneously reduce the drag and increase
the lift.
28.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1123
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
28.4.1. Preparation
1. Set up a working folder on the computer you will be using.
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the adjoint_cylinder_R170.zip link to download the input and solution files.
7. Unzip adjoint_cylinder_R170.zip.
8. Use Fluent Launcher to start the 2D version of ANSYS Fluent, with the Double Precision and Display
Mesh After Reading options enabled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1124 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For more information about starting ANSYS Fluent using the Fluent Launcher, see the Fluent Getting
Started Guide, available in the help viewer or on the ANSYS Customer Portal (http://support.an-
sys.com/documentation).
9. Load the converged case and data file for the cylinder geometry.
When prompted, browse to the location of the case and data files and select cylinder_tutori-
al.cas to load. The corresponding data file will automatically be loaded as well.
Note
After you read in the mesh, it will be displayed in the embedded graphics windows,
since you enabled the appropriate display option in Fluent Launcher.
The data file contains a previously computed flow solution that will serve as the starting point for
the adjoint calculation. Part of the mesh and the velocity field are shown below:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1125
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1126 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1127
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
Enter 6 to load the adjoint module. After the adjoint module is loaded, buttons become available in
the Design tab of the ribbon within ANSYS Fluent.
1. Click the Manage... button to open the Manage Adjoint Observables dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1128 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Click the Create... button in the Manage Adjoint Observables dialog box to open the Create New Ob-
servable dialog box.
4. In the Manage Adjoint Observables dialog box, the newly created force-drag observable appears and
must now be configured. (Figure 28.6: Manage Observables Dialog Box (p. 1130)):
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1129
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
b. Select wall under Wall Zones. This is the cylinder wall on which you want the force to be evaluated.
c. Ensure that the X-Component direction is set to 1 and the Y-Component direction is set to 0.
5. Repeat the process in the Manage Adjoint Observables dialog box to create a lift observable with the
following settings:
Name force-lift
Wall Zones wall
X-Component 0
Y-Component 1
Tip
If the Name field is not available in the Create New Observable dialog box, select a
different observable type and then select force again to make it available.
When you have configured the force-lift observable, click OK to commit the settings for force-lift and
close the Manage Adjoint Observables dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1130 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The selection in the Adjoint Obervables dialog box determines the observable for which sensitivities
will be computed. You will first compute the drag sensitivities.
b. Select Minimize from the Sensitivity Orientation list since you are trying to reduce the drag force.
This indicates that postprocessed results for the drag sensitivity will be displayed such that a reduction
in drag is achieved by a design change in the positive sensitivity direction.
c. Click Evaluate to print the value of the drag force on the wall in the console.
Observable name: force-drag
Observable Value (n) = 1271.7444
The default solution control settings are chosen to provide robust solution advancement for a wide
variety of problems, including those having complex geometry, high local flow rates, and turbulence.
Given sufficient iterations, a converged result can often be obtained without modifying the controls.
For this simple laminar flow case, more aggressive settings will yield faster convergence.
Open the Adjoint Solution Controls dialog box (Figure 28.8: Adjoint Solution Controls Dialog
Box (p. 1132)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1131
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
This prevents Fluent from automatically choosing and adjusting the solution controls for you.
This corresponds to a setup without any preconditioning and all under-relaxation factors set to
default values. This setup works for this simple laminar case, however less aggressive settings
will be needed for larger turbulent cases.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1132 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Configure the adjoint solution monitors by opening the Adjoint Residual Monitors dialog box (Fig-
ure 28.9: Adjoint Residual Monitors Dialog Box (p. 1133)).
In the Adjoint Residual Monitors dialog box, you set the adjoint equations that will be checked
for convergence, as well as set the corresponding convergence criteria.
a. Make sure that the Print to Console and Plot options are enabled.
b. Keep the default values of 1e-05 for Adjoint continuity and Adjoint velocity, and 0.001 for Adjoint
local flow rate. These settings are adequate for most cases. Make sure that the Check Convergence
options are selected.
4. Run the adjoint solver using the Run Adjoint Calculation dialog box (Figure 28.10: Adjoint Run Calculation
Dialog Box (p. 1133)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1133
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
a. Click the Initialize button. This initializes the adjoint solution everywhere in the problem domain to
zero.
b. Set the Number of Iterations to 200. The adjoint solver is fully configured to start running for this
problem.
d. When the calculation is complete, Close the Adjoint Run Calculation dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1134 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
2. Select inlet under Boundary choice and click the Report button to display a report in the console of the
available scalar sensitivity data on the inlet:
Updating shape sensitivity data.
Done.
2. Select Sensitivities... and Sensitivity to Body Force X-Component (Cell Values) from the Contours of
drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1135
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
4. Click Display to view the contours (Figure 28.14: Adjoint Sensitivity to Body Force X-Component Con-
tours (p. 1137)) and then Close the Contours dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1136 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 28.14: Adjoint Sensitivity to Body Force X-Component Contours (p. 1137) shows how sensitive
the drag on the cylinder is to the application of a body force in the -direction in the flow. If a body
force is applied directly upstream of the cylinder, for example, the disturbed flow is incident on the
cylinder and modifies the force that it experiences.
The contours also show how the computed drag is affected by lack of convergence in the original
X-momentum equation for the flow.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1137
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
3. Select Sensitivities... and Sensitivity to Mass Sources (Cell Values) from the Color by drop-down
lists.
5. Click the Display button to view the vectors (Figure 28.16: Shape Sensitivity Colored by Sensitivity to
Mass Sources (Cell Values) (p. 1139)) and then Close the Vectors dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1138 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 28.16: Shape Sensitivity Colored by Sensitivity to Mass Sources (Cell Values)
This plot shows how sensitive the drag on the cylinder is to changes in the surface shape. The drag is
affected more significantly if the cylinder is deformed on the upstream rather than the downstream
side. Maximum effect is achieved by narrowing the cylinder in the cross-stream direction.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1139
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
2. In the Region tab, define the region that will be modified for the design change.
b. Select wall in the Bounding Box Definition dialog box and click OK.
This will initialize the morphing region to the bounding box around the cylinder wall.
c. Click Update Region to update the view of the bounding box illustration in the graphics window.
You can use the Mesh Display dialog box to also display the mesh, in order to review it prior to
morphing.
d. Click Larger Box several times until the X and Y Limits are 1.907 m (Figure 28.18: Morphing Region
Around Cylinder (p. 1141)).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1140 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1141
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
2. Initialize and Calculate the adjoint solution using the Run Adjoint Calculation dialog box to obtain the
sensitivities for the force-lift observable.
You can export the sensitivity data for the lift observable as you did for the drag, but it is not strictly
necessary if you plan to perform the multi-objective optimization in the current Fluent session.
force-lift is now displayed in the Design Change tab because it is the currently selected observable.
The Design Change tab functions as a dashboard for the design modification, where you can select
which boundaries are subject to modification, enable or disable conditions that you have defined,
specify relative weighting if you have multiple freeform objectives, and view predicted results. You
will return to it to perform the design change after you have configured the objectives and the
morphing region.
The force-lift observable is already listed because Include current data is enabled.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1142 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click Manage Data... to open the Manage Sensitivity Data dialog box.
c. Click Import Sensitivities... and select the force-drag.s file you created earlier. Click OK.
For this example, you will seek a design change that increases the lift and results in a 10% reduction
in drag.
a. In the Objectives tab, select the force-lift observable. The current value of the lift is displayed along
with options to specify the objective for the lift.
This indicates that you want to increase the lift, but are not prescribing a specific target change.
This setting is used to normalize the scale of the change in value of the observable, which can be
important in cases where multiple observables are considered that may be of different scales.
d. Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1143
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
This indicates that you are prescribing a specific change in the value of the observable, rather than
a freeform increase or decrease.
g. Enter -10 for Target/Reference Change and enable the As Percentage option.
10% is a generally a reasonable maximum target change for a design change. Using a target
change that is too large may result in very large deformations and/or overshooting the local op-
timum.
h. Click Apply.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1144 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
You already specified the dimensions of the region earlier when exporting the force-drag sensitivity.
Now you will also configure the control-point density.
a. Click the Region Conditions tab in the Design Tool dialog box.
c. Click Apply.
Many other settings are available in the Region Conditions tab, including constraints on control-
point motion, symmetry conditions, and continuity conditions. For additional information, see the
section on defining region conditions in the Fluent Advanced Add-On Modules manual, available
in the help viewer or on the ANSYS Customer Portal (http://support.ansys.com/documentation).
Only zones that are selected in the Zones To Be Modified list (or that have prescribed motions
applied) will be modified as part of the design change.
c. If multiple freeform objectives were defined (that is, multiple objectives with Increase Value or De-
crease Value selected in the Objectives tab), you would need to specify the Weight for each. In this
case only one objective (force-lift) is freeform, so no input is required for Weight.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1145
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
d. Retain the default settings of Control-point spacing for Freeform Scaling Scheme, and 0.1 for
Freeform Scale Factor.
These settings allow you to adjust the magnitude of the attempted design change (Freeform Scale
Factor) and the basis for the scaling (Freeform Scaling Scheme).
The Results list is updated to reflect the Expected change for each observable.
Note that the drag is predicted to decrease by 10% as you requested, and the lift is predicted
to increase.
f. Click the Modify Mesh button to apply the calculated mesh deformation that will reposition the
boundary and interior nodes of the mesh. Information regarding the mesh modification is printed
in the console:
Updating mesh (steady, mesh iteration = 00001, pseudo time step 1.0000e+00)...
Dynamic Mesh Statistics:
Minimum Volume = 3.46258e-04
Maximum Volume = 6.36270e-01
Maximum Cell Skew = 3.69341e-01 (cell zone 11)
Minimum Orthogonal Quality = 6.30659e-01 (cell zone 11)
The effect on the mesh is shown in Figure 28.19: Mesh After Deformation (p. 1147):
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1146 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
h. Re-converge the conventional flow calculation for this new geometry in the Run Calculation task
page.
The currently loaded case file already has monitors defined for lift and drag, or you can Eval-
uate the new values in the Adjoint Observables dialog box.
The new values for drag and lift are reported to be:
Observable name: force-drag
Observable Value (n): 1151.3398
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1147
Using the Adjoint Solver 2D Laminar Flow Past a Cylinder
Note that the drag has changed by -120.4 N or -9.5% compared to the drag on the undeformed
cylinder. This value compares very well with the change of -127.2 N (-10%) that was predicted
from the adjoint solver. The lift has increased by 122.4 N, which again compares very well with
the predicted change of 127.6 N.
28.5. Summary
This tutorial has demonstrated how to use the adjoint solver add-on to compute the sensitivity of the
drag and lift on a circular cylinder to various inputs for a previously computed flow field. The process
of setting up and running the adjoint solver was illustrated. The steps to perform various forms of
postprocessing were also described. The design change tool was used to make a multi-objective change
to the design that reduced the drag and increased the lift in a predictable manner.
This example considered multiple objectives at a single flow condition. Another powerful application
of the design tool is to perform multi-objective design changes using sensitivities computed for multiple
flow conditions. This allows you to identify design changes that improve performance across a range
of anticipated operating conditions, potentially of differing importance. The design tool also offers a
rich set of additional capabilities for including prescribed displacements, bounding planes, and fixed-
wall constraints in your multi-objective design change. For full details about how to use the design
tool, refer to the Fluent Advanced Add-On Modules documentation, available in the help viewer or on
the ANSYS Customer Portal (http://support.ansys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1148 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 29: Simulating a Single Battery Cell Using the MSMD Battery
Model
This tutorial is divided into the following sections:
29.1. Introduction
29.2. Prerequisites
29.3. Problem Description
29.4. Setup and Solution
29.5. Summary
29.6. Appendix
29.7. References
29.1. Introduction
This tutorial is used to show how to set up a battery cell simulation using the three submodels that are
available in ANSYS Fluent.
Set up a battery cell simulation using the NTGK, ECM, and Newman P2D battery submodels
Perform calculations for different battery discharge rates and compare the results using the postprocessing
capabilities of ANSYS Fluent
29.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1149
Simulating a Single Battery Cell Using the MSMD Battery Model
After solving the battery cell case using the NTGK model, you will use the ECM and Newman models
to simulate the same battery geometry. All the ECM model constants are taken from the Chens paper
[1] for a 0.85 Ah lithium-ion battery. The Newman model parameters are taken from Cai and Whites
paper [2].
For external and internal short-circuit treatment, you will consider an extreme case where external and
internal short-circuits occur at the same time. You will use the NTGK electrochemical submodel to sim-
ulate post-short-circuit battery processes. You can assume that the internal short is caused by a nail
penetration occurring near the center of the battery.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1150 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
29.4.1. Preparation
1. Set up a working folder on the computer you will be using.
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the battery_cell_R170.zip link to download the input and solution files.
7. Unzip battery_cell_R170.zip.
10. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
11. Select either Serial or Parallel under Processing Options. In this tutorial, Serial is selected for demon-
stration only.
When prompted, browse to the location of the unit_battery.msh and select the file.
Once you read in the mesh, it is displayed in the embedded graphics windows.
The geometry is already in the correct scale. You dont need to scale it.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1151
Simulating a Single Battery Cell Using the MSMD Battery Model
During the loading process, a scheme library containing the graphical and text user interface, and
a library of user-defined functions (UDFs) containing a set of UDFs for the battery module are loaded
into ANSYS Fluent. Fluent reports the progress in the console.
Once the MSMD battery add-on is loaded, MSMD Battery Model appears in the Models task page
and under the Models tree branch. The UDF library also becomes visible as a new entry in the UDF
Library Manager dialog box.
2. To solve for the temperature field, enable the Energy equation (in the Models group).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1152 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the MSMD Battery Model dialog box, select Enable MSMD Battery Model.
b. Under the Model Options tab (Figure 29.2: Model Options (p. 1153)), configure the following battery
operation conditions:
i. Under E-Chemistry Models, retain the default selection of NTGK Empirical Model.
ii. Ensure that Solving Transport Equation is selected for Solution Method for E-field.
iii. Under Electrical Parameters, retain the default value of 14.6 Ah for Nominal Cell Capacity.
iv. Retain the default selection of Specified C-Rate and the value of 1 for C-Rate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1153
Simulating a Single Battery Cell Using the MSMD Battery Model
c. Under the Model Parameters tab, retain the default settings for Y and U coefficients. For details, see
the Fluent Advanced Add-On Modules documentation on the ANSYS Customer Portal (http://support.an-
sys.com/documentation).
Note
If in your case, Y and U functions are not in the same function form as in the Kims paper,
you need to modify the cae_user.c source code file. See the Fluent Advanced Add-On
Modules documentation on the ANSYS Customer Portal (http://support.ansys.com/docu-
mentation) for details.
For a given battery, you can perform a set of constant current discharging tests, and then
use the battery's parameter estimation tool to obtain the Y and U functions. See the Fluent
Advanced Add-On Modules documentation on the ANSYS Customer Portal (http://sup-
port.ansys.com/documentation) for details.
d. Under the Conductive Zones tab (Figure 29.3: Conductive Zones (p. 1155)), configure the following set-
tings:
For this single cell case, there are no busbar zones. Electro-chemical reactions occur only in the
active zone. Battery tabs are usually modeled as passive zones, in which the potential field is
also solved.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1154 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Under the Electric Contacts tab (Figure 29.4: Electric Contacts (p. 1156)), configure the contact surface
and external connector settings as follows:
The corresponding current or voltage boundary condition will be applied to those boundaries
automatically.
Under the Electric Contacts tab, you can also define extra contact resistance for each zone.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1155
Simulating a Single Battery Cell Using the MSMD Battery Model
ANSYS Fluent prints the battery connection information in the console window:
Battery Network Zone Information:
-------------------------------------
Battery Serial 1
Parallel 1
N-Tab zone: tab_nzone
Active zone: e_zone
P-Tab zone: tab_pzone
-----------------------------------
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1156 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Number of battery series stages =1; Number of batteries in parallel per series stage=1
****************END OF BATTERY CONNECTION INFO**************
In the background, Fluent automatically hooks all the necessary UDFs for the problem.
In the battery model, two user defined scalars, uds0 and uds1, are solved for the positive and negative
potentials, respectively. To specify the electric conductivity of the active material you need to define
the UDS diffusivity.
Important
For the battery active material, you must define the electric conductivity via the UDS diffus-
ivity on a per-scalar basis. ANSYS Fluent will use these two UDS scalars to solve the differential
equations; for details, see the Fluent Advanced Add-On Modules documentation on the
ANSYS Customer Portal (http://support.ansys.com/documentation).
For the battery passive conductive zones, such as tabs or busbars, you must define the UDS
diffusivity using a user-defined function (UDF) and define the materials electric conductivity
using the Electrical Conductivity entry field.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1157
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the Create/Edit Materials dialog box, select solid from the Material Type drop-down list.
f. Ensure that define-per-uds is selected from the UDS Diffusivity drop-down list and click Edit... next
to UDS Diffusivity.
Note
If the UDS Diffusion Coefficients are defined through the defined-per-uds option,
the Fluent solver does not use the value for Electrical Conductivity.
g. In the UDS Diffusion Coefficients dialog box, specify the user-defined scalars.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1158 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iv. In a similar way, set uds-1 to 9.83e5 [1/ohm-m] and close the UDS Diffusion Coefficients dialog
box.
Note
The units for UDS Diffusivity are 1/ohm-m, and cannot be modified.
v. In the Question dialog box, click No to retain aluminum and add the new material (e_material) to
the materials list.
Note
Refer to Appendix (p. 1191) for information on how to calculate the battery cell
property values.
h. Ensure that e_material (e) is selected from the Fluent Solid Materials drop-down list.
i. Click Change/Create.
2. Create a new material for the positive tab by modifying copper from the solid material database.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1159
Simulating a Single Battery Cell Using the MSMD Battery Model
The UDS Diffusivity for tab materials must be defined through the UDF as described below.
b. In the Fluent Database Materials dialog box, make sure that solid is selected for Material Type.
c. Select copper from Fluent Solids Materials and click Copy and then Close.
The Create/Edit Materials dialog box now displays the copied properties for copper.
e. Under Properties, select user-defined from the UDS Diffusivity drop-down list and click Edit... next
to UDS Diffusivity.
f. In the User-Defined Functions dialog box, verify that battery_e_cond::msmdbatt is selected and
click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1160 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
i. Click Change/Create.
3. Create a new material for the negative tab with the same properties as the material for the positive tab.
Note
You do not need to create two different materials for the positive and negative tabs if
the positive and negative tabs are made of the same material. In this tutorial, the two
different tab materials with the same physical properties have been created for demon-
stration purposes only.
c. Click Change/Create.
d. In the Question dialog box, click No to retain p_material and add the new material (n_material) to the
materials list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1161
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the Solid dialog box, select e_material from the Material Name drop-down list.
b. Click OK.
a. In the Wall dialog box, under the Thermal tab, under Thermal Conditions, enable Convention.
c. Retain the default value of 300 [K] for Free Stream Temperature.
You do not need to change the settings under the UDS tab since the boundary conditions
for the two UDS scalars have been set automatically when you defined the cell zone condi-
tions.
a. In the Equations dialog box, deselect Flow from the Equation selection list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1162 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Click OK.
2. Remove the convergence criteria to ensure that automatic convergence checking does not occur.
a. In the Residual Monitors dialog box, select none from the Convergence Criterion drop-down list.
b. Click OK.
c. Select User Defined Scalars... and Potential Phi+ from the Field Variable drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1163
Simulating a Single Battery Cell Using the MSMD Battery Model
f. Click Axes... and in the Axes dialog box that opens, set Precision to 0 for the X axis and to 2 for the
Y axes. Note that you must click Apply to save the modified settings for each axis.
g. Enable Write.
j. From the Get Data Every drop-down list, select Time Step.
b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1164 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
e. Modify the axis attributes by setting the Precision to 0 for the X axis and to 2 for the Y axes (in a
manner similar to the surface monitor).
f. Enable Write.
i. From the Get Data Every drop-down list, select Time Step.
j. Click OK.
Solving Initialization
b. Click Initialize.
You do not need to modify Initial Values in the Solution Initialization task page, because these
values are not used for initialization. The ANSYS Fluent solver automatically computes the initial
condition for UDS0 and UDS1.
a. Set Time Step Size to 30 seconds and No. of Time Steps to 100.
b. Click Calculate.
The residual plot, the monitored voltage at the positive tap and the history of the maximum
temperature in the domain are shown in Figure 29.5: Residual History of the Simulation (p. 1166),
Figure 29.6: Surface Monitor Plot of Discharge Curve at 1 C (p. 1166), and Figure 29.7: Volume
Monitor Plot of Maximum Temperature in the Domain (p. 1167), respectively.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1165
Simulating a Single Battery Cell Using the MSMD Battery Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1166 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
29.4.5. Postprocessing
In this section, postprocessing capabilities for the MSMD battery model solution are demonstrated.
1. Display the contour plot of the phase potential for the positive electrode.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1167
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the Contours dialog box, in the Options group box, enable Filled.
b. From the Contours of drop-down list, select User Defined Scalars... and Potential Phi+.
c. From the Surfaces selection list, select tab_p, wall_active, and wall_p.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1168 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 29.8: Contour Plot of Phase Potential for the Positive Electrode
2. In a similar manner, display the contour plot of the phase potential for the negative electrode.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1169
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the Contours dialog box, in the Options group box, enable Filled.
b. From the Contours of drop-down list, select User Defined Scalars... and Potential Phi-.
c. From the Surfaces selection list, select tab_n, wall_active, and wall_n.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1170 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 29.9: Contour Plot of Phase Potential for the Positive Electrode
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1171
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the Contours dialog box, in the Options group box, enable Filled.
b. From the Contours of drop-down list, select Temperature... and Static Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1172 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1173
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the Vectors dialog box, select current-density-j from the Vectors of drop-down list.
b. Select User Defined Memory... and Magnitude of Current Density from the Color by drop-down
list.
The surfaces of the "wall" type are automatically selected in the Surfaces list.
d. In the Options group, enable Draw Mesh and in the Mesh Display dialog box, set the mesh display
options as desired.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1174 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
5. Save the case file as ntgk.cas.gz. You will use this saved case later to treat electric short-circuits.
6. Repeat the simulation for the following charge rates and time steps:
a. In the MSMD Battery Model dialog box, under the Model Options tab, specify the value listed in the
above table for the C-Rate.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1175
Simulating a Single Battery Cell Using the MSMD Battery Model
b. In the Solution Monitor dialog box for voltage_vp, enter ntgk-C-Rate.out for File Name, where
C-Rate is the value of the battery discharge rate (for example, for C-Rate = 0.5 C, you will enter ntgk-
0.5c.out for the filename).
c. Similarly, in the Volume Monitor dialog box for max_temp, enter max-temp-C-Rate.out for File
Name.
d. Initialize and run the solution for the number of the times steps specified in the above table.
Note
The simulation will stop when either a specified number of time steps is reached or
when the stop criteria for Min. Stop Voltage of 3 V is met. For instance, for the cases
of 0.5 C and 1 C charge rates, the Fluent solver will stop after completing a specified
number of time steps, while for the other cases, the Fluent will stop when it reaches
the Min. Stop Voltage condition and print an appropriate message it in the console.
7. Display the discharge curves for the positive tab for the different discharge rates.
b. In the Select File dialog box, change File of Types to All Files (*), click ntgk-0.5c.out and
click OK.
c. Under Legend Entries, in the lowest text-entry box, enter 0.5c and click Change Legend Entry.
d. Do the same for ntgk-1c.out, ntgk-2c.out, ntgk-3c.out, and ntgk-5c.out and change
their legend entries accordingly.
Note
Use the Axes dialog box to set the precision for the plot axes.
The Figure 29.12: NTGK Model: Discharge Curves (p. 1177) shows the discharge curves for different
discharge rates in the function of time.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1176 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8. In a manner similar to the previous step, load the files max-temp-0.5c.out, max-temp-1c.out,
max-temp-2c.out, max-temp-3c.out, max-temp-5c.out and display the maximum temperature
curves in the domain.
Figure 29.13: NTGK Model: Maximum Temperature in the Domain (p. 1178) shows the maximum tem-
perature curves in the simulation for different discharge rates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1177
Simulating a Single Battery Cell Using the MSMD Battery Model
Note
The ECM model parameters are for a different kind of battery. Therefore, the simulation results
will differ from those of the NTGK model. Direct comparison is meaningless.
1. In the MSMD Battery Model dialog box, under E-Chemistry Models, select Equivalent Circuit Model.
2. Under Electrical Parameters, retain the default value of 14.6 Ah for Nominal Cell Capacity.
3. Retain the default selection of Specified C-Rate and enter 1 for C-Rate.
4. Under the Model Parameters tab, retain the battery specific parameters; for details, see the Fluent Advanced
Add-On Modules documentation on the ANSYS Customer Portal (http://support.ansys.com/documentation).
The function forms for Rs, R1, R2, C1, C2, Voc coefficients are taken from Chens paper [2]. You can
select the Using polynomial option if all these parameters are in the polynomial form. If you use
different functions, you need to modify the provided cae-user.c source file. See the Fluent Ad-
vanced Add-On Modules documentation on the ANSYS Customer Portal (http://support.ansys.com/
documentation) for details.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1178 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
For a given battery, these model parameters can be obtained using the battery's HPPC testing data.
See the Fluent Advanced Add-On Modules documentation on the ANSYS Customer Portal (http://
support.ansys.com/documentation) for details.
5. Click OK to apply the ECM battery model settings and close the MSMD Battery Model dialog box
6. Click OK in the Warning dialog box informing you that the re-initialization of the battery model is required.
7. In the Surface Monitor and Volume Monitor dialog boxes, specify unique names for the solution monitor
files if you want to save the time-dependent voltage at the positive tab and the maximum temperature in
the domain over time.
8. In the Solution Initialization task page, click Initialize to re-initialize the field variables.
10. Re-run the calculation using 0.5 C, 1 C, 2 C, 3 C, and 5 C charge rates as you did in the NTGK model simulation.
11. Display the maximum temperature in the domain and potential curves for the different discharge rates.
The results of the simulations at different discharge rates using the ECM model are presented in
Figure 29.14: ECM Model: Discharge Curves (p. 1179) and Figure 29.15: ECM Model: Maximum Temper-
ature in the Domain (p. 1180).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1179
Simulating a Single Battery Cell Using the MSMD Battery Model
12. Simulate the battery pulse discharge by changing the battery operating conditions each time after running
the calculation for five minutes. You will start with the initial charge rate of 1 C.
c. In the Run Calculation task page, set Number of Time Steps to 10 and click Calculate.
d. Once the calculation is complete, set C-Rate to 0 and run the calculation for 10 more time steps.
e. Continue the simulation by alternating the value of C-Rate between 1 C and 0 C until, until the battery
is fully discharged.
Note
Instead of doing this manually, you can use the Using Profile option in the MSMD
Battery Model dialog box and load a profile file with specified C-rate fluctuations to
drive the whole process. For more information about the usage of a profile file, refer
to the Fluent Advanced Add-On Modules documentation on the ANSYS Customer
Portal (http://support.ansys.com/documentation).
The battery pulse discharge is summarized in Figure 29.16: Battery Pulse Discharge (p. 1181).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1180 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
The Newman models parameters are for a different kind of battery. The simulation results
will differ from those of the NTGK and ECM models. Thus a direct comparison is meaningless.
1. In the MSMD Battery Model dialog box, under E-Chemistry Models, select Newman P2D Model.
2. Under Solution Controls, set the number of clusters in each directions to speed up the simulation.
Note
The Newman model in the MSMD framework significantly increases memory and CPU
time as compared with the other two models. Usually, you want to use the cell clustering
approach to speed up the simulation.
a. Set Nx to 2.
b. Set Ny to 2.
The computational domain will be divided into 4 clusters. During computation, at each time
step, the Newman submodel will be solved only once for each cluster.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1181
Simulating a Single Battery Cell Using the MSMD Battery Model
3. Under the Model Parameters tab, retain the default battery specific parameters.
The default settings for the Newman P2D model are taken from Cai and Whites paper [1].
4. In the Surface Monitor and Volume Monitor dialog boxes, specify the unique names for the solution
monitor files.
5. Initialize the solution and run the simulation for 100 time steps.
6. Perform the simulation for the charge rates of 0.5 C, 2 C, 3 C, and 5 C as you did it in the previous cases.
The discharge curves and time-varying maximum temperature in the domain are displayed in Fig-
ure 29.17: Newman P2D Model: Discharge Curves (p. 1182) and Figure 29.18: Newman P2D Model:
Maximum Temperature in the Domain (p. 1183), respectively.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1182 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. In the Run Calculation task page, enter 3 for Number of Time Steps and click Calculate.
a. In the MSMD Battery Model dialog box, select Reduced Order Method.
The solution of the simulation using the ROM is significantly faster than when using the direct
method without any changes in results.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1183
Simulating a Single Battery Cell Using the MSMD Battery Model
a. In the MSMD Battery Model dialog box, under the Model Options tab, in the Solution Options group
box, enable Specified Resistance.
3. Set up the internal electric short-circuit in the center of the battery cell.
a. Mark the short-circuit zone shown in Figure 29.19: Internal Short Circuit Region Marked for Patch-
ing (p. 1184) using the region adaption feature.
i. In the Region Adaption dialog box, enter the following values for Input Coordinates.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1184 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Fluent reports in the console that 12 cells were marked for refinement.
Extra
If you want to display the marked cells, perform the following steps:
C. In the Adaption Display Option dialog box, under Options, enable Draw Mesh.
D. In the Mesh Display dialog box, ensure that Edges and Faces are enabled under
Options, and All is enabled under Edge Type, and click Close.
F. Click Display.
5. Patch the internal short circuit zone with the short resistance value.
b. In the Patch dialog box, select Short Circuit Resistance under Variable.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1185
Simulating a Single Battery Cell Using the MSMD Battery Model
b. Click Calculate.
29.4.9.2. Postprocessing
1. Compute the battery tab voltage .
a. In the Surface Integrals dialog box, from the Report Type drop-down list, select Area-Weighted Av-
erage.
b. From the Field Variable drop-down lists, select User Defined Scalar... and Potential Phi+.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1186 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. Click Compute.
The battery tab voltage of approximately 4.078 V is printed in the Area-Weighted Average field
and in the Fluent console.
b. From the Field Variable drop-down lists, select User Defined Memory... and Volumetric Current
Source.
d. Click Compute.
Fluent reports in the Total Volume Integral field and in the console that the total volume integral
for the volumetric current source is approximately 8.156 A.
The computed values of the battery tab current and voltage satisfy the tab boundary condition
.
3. Display the vector plot of current at the positive and negative current collectors.
a. In the Vectors dialog box, select current-density-jp from the Vectors of drop-down list.
b. Select User Defined Memory... and Magnitude of Current Density from the Color by drop-down
lists.
The surfaces of the "wall" type are automatically selected in the Surfaces list.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1187
Simulating a Single Battery Cell Using the MSMD Battery Model
d. Click Display.
e. In a similar manner, display the current for the negative current collector by selecting current-density-
jn from the Vectors of drop-down list.
The Figure 29.20: The Vector Plots of Current at the Positive and Negative Current Collectors (p. 1188)
demonstrates the vector plots of electric current flow in the positive and negative current col-
lectors in the battery cell side by side. The plots clearly show that besides providing tab current,
short current flows form positive electrode to the negative electrode through the short area.
Figure 29.20: The Vector Plots of Current at the Positive and Negative Current Collectors
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1188 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. From the Contours of drop-down list, select Temperature... and Static Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1189
Simulating a Single Battery Cell Using the MSMD Battery Model
Figure 29.21: Contour Plot of Temperature (p. 1190) shows a temperature hotspot in the internal
shorted area of the battery cell.
5. Check for different electric current flow rates in the manner described in step 2.
a. Generate volume integral reports for the field variables listed in the table below.
b. Verify that the total produced electric current equals to the sum of tab and short current, that is
.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1190 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix
a. As you did for the current source reports, generate reports for the field variables listed in the table below.
b. Verify that the total heat generation rate is the sum of different contributions, that is
.
Note that, as battery's temperature increases, thermal runaway may occur. If thermal runaway starts,
some undesirable exothermic decomposition reactions will occur. For thermal runaway simulations, the
default electrochemistry model cannot be used. Short treatment can only capture the thermal ramp-up
process before the onset of thermal runaway.
29.5. Summary
In this tutorial, you studied how to solve a battery cell problem using the three submodels, NTGK, ECM,
and Newman P2D, available within the MSMD Battery model. For all three submodels, you ran the
simulations with the default submodel settings. You then used the ROM to speed up the computation
time of the battery model simulation. In addition, you learned how to use the MSMD model capability
to treat external and internal short-circuits. If the parameters of your battery cell are different than the
defaults, however, you need to modify these values as specified in the submodel specific sections.
For more information about using the Dual-Potential MSMD Battery model, see the Fluent Advanced
Add-On Modules documentation on the ANSYS Customer Portal (http://support.ansys.com/documenta-
tion).
29.6. Appendix
The battery cell cross-section is shown in the figure below.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1191
Simulating a Single Battery Cell Using the MSMD Battery Model
You can estimate the material properties for your battery cell using the following correlations:
where is the effective property value of a material property (such as density, heat capacity, or
thermal conductivity), is the thickness. The subscripts , , and refer to current collector, electrode,
and separator, respectively. The superscripts and refer to positive and negative, respectively.
The material properties are taken from Kims papers [4] and [3]. The computed material properties for
the battery cell presented in the tutorial are shown in the table below.
Zone Total
[um] 20 150 12 145 10 322
= 9.83e5
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1192 of ANSYS, Inc. and its subsidiaries and affiliates.
References
29.7. References
1. M. Chen and G. A. Rincon-Mora,Accurate Electrical Battery Model Capable of Predicting Runtime and I-V
Performance, IEEE Trans. On Energy Conversion, Vol. 21. No.2, pages A154-A161, June, 2006.
2. L. Cai and R.E. White,Reduction of Model Order Based on Proper Orthogonal Decomposition for Lithium-
Ion Battery Simulations, J. of Electrochemical Soc., Volume 156(3), pages A154-A161, 2009.
4. U. S. Kim, et al.,Modeling the Dependence of the Discharge Behavior of a Lithium-Ion Battery on the En-
vironmental Temperature, J. of Electrochemical Soc., Volume 158 (5), pages A611-A618, 2011.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1193
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1194 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 30: Simulating a 1P3S Battery Pack Using the MSMD Battery
Model
This tutorial is divided into the following sections:
30.1. Introduction
30.2. Prerequisites
30.3. Problem Description
30.4. Setup and Solution
30.5. Summary
30.1. Introduction
This tutorial is used to show how to set up a battery pack (battery system connected in parallel/series
pattern) simulation in ANSYS Fluent. All the three submodels are available for a pack simulation.
Set up a battery pack simulation using the NTGK battery submodel in ANSYS Fluent
Define electric contacts for the contact surface and external connectors
Define electric conductivity for the active material using the user-defined scalars
Define electric conductivity for the passive material using the user-defined function
Obtain the battery pack simulation results and perform postprocessing activities
Most problem setup procedures are similar to the single cell simulation. The differences in the problem
setup will be emphasized in this tutorial.
30.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorials found in this manual:
Introduction to Using ANSYS Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1)
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 121)
and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some steps in the setup and
solution procedure will not be shown explicitly.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1195
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
The discharging process of the battery pack is occurring under constant power of 200 W. The nominal
cell capacity is 14.6 Ah.
You will create a material for the battery cells (an active material) and define the electric conductivity
for the active material using the user-defined scalars (UDS). You will create a material for busbars and
tabs (a passive material) and define the electric conductivity for the passive material using the provided
user-defined function (UDF). You will use the same material for busbars and tabs.
In this tutorial, you will use the NTGK battery submodel to simulate the discharging process under
constant power conditions.
30.4.1. Preparation
1. Set up a working folder on the computer you will be using.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1196 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
If you do not have a login, you can request one by clicking Customer Registration on
the log in page.
4. Narrow the results by using the filter on the left side of the page.
6. Click the battery_pack_R170.zip link to download the input and solution files.
7. Unzip battery_pack_R170.zip.
10. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.
11. Select either Serial or Parallel under Processing Options. In this tutorial, Serial is selected for demon-
stration only.
When prompted, browse to the location of the 1P3S_battery_pack.msh and select the file.
Once you read in the mesh, it is displayed in the embedded graphics windows.
a. In the Scale Mesh dialog box, select Specify Scaling Factors in the Scaling group.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1197
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
During the loading process, a scheme library containing the graphical and text user interface, and
a library of user-defined functions (UDFs) containing a set of UDFs for the battery module are loaded
into ANSYS Fluent. Fluent reports the progress in the console.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1198 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Once the MSMD battery add-on is loaded, MSMD Battery Model appears in the Model task page
and under the Models tree branch. The UDF library also becomes visible as a new entry in the UDF
Library Manager dialog box.
2. To solve for the temperature field, enable the Energy equation (in the Models group).
a. In the MSMD Battery Model dialog box, select Enable MSMD Battery Model.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1199
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
b. Under the Model Options tab (Figure 30.2: Model Options (p. 1200)), configure the following battery
operation conditions:
ii. In the Electrical Parameters group, retain the default value of 14.6 Ah for Nominal Cell Capacity.
iii. Enable Specified System Power in the Solution Options group and set System Power to 200
W.
c. Under the Model Parameters tab, retain the default settings for Y and U coefficients. For details, see
the Fluent Advanced Add-On Modules documentation on the ANSYS Customer Portal (http://support.an-
sys.com/documentation).
d. Under the Conductive Zones tab (Figure 30.3: Conductive Zones (p. 1201)), configure the following set-
tings:
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1200 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1201
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
e. Under the Electric Contacts tab (Figure 30.4: Electric Contacts (p. 1202)), configure the contact surface
and external connector settings as follows:
The corresponding current or voltage boundary condition will be applied to those boundaries
automatically.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1202 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ANSYS Fluent prints the battery connection information in the console window:
Battery Network Zone Information:
-------------------------------------
Battery Serial 1
Parallel 1
N-Tab zone: n_tabzone_1
Active zone: cell_1
P-Tab zone: p_tabzone_1
Battery Serial 2
Parallel 1
N-Tab zone: n_tabzone_2
Active zone: cell_2
P-Tab zone: p_tabzone_2
Battery Serial 3
Parallel 1
N-Tab zone: n_tabzone_3
Active zone: cell_3
P-Tab zone: p_tabzone_3
-----------------------------------
Busbar zone 1: bar1
Busbar zone 2: bar2
g. Verify that the connection information is correct. If an error message appears or if the connections are
not what you want, redefine the conductive zones in the Conductive Zones tab (Figure 30.3: Conductive
Zones (p. 1201)). Repeat this process until you confirm that the battery connections are set correctly.
Important
To set a valid connection, you must connect the negative tab to the positive tab
through conductive zones.
In the background, Fluent automatically hooks all the necessary UDFs for the problem.
Important
For the battery active material, you must define the electric conductivity via the UDS diffus-
ivity on a per-scalar basis. ANSYS Fluent will use these two UDS scalars to solve the differential
equations; for details, see the Fluent Advanced Add-On Modules documentation on the
ANSYS Customer Portal (http://support.ansys.com/documentation).
For the battery passive material(s), you must define the UDS diffusivity using a user-defined
function (UDF).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1203
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
a. In the Create/Edit Materials dialog box, enter e_material for Name and e for Chemical Formula.
b. Under Properties, ensure that define-per-uds is selected from the UDS Diffusivity drop-down list
and click Edit... next to UDS Diffusivity.
d. In the UDS Diffusion Coefficients dialog box, set the constant value of 1.0 e6 for the both user-defined
scalars.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1204 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iv. In a similar way, set uds-1 to 1.0 e6 and close the UDS Diffusion Coefficients dialog box.
Note
The units for UDS Diffusivity are s/m, and cannot be modified.
In this tutorial, the electric conductivities are the same for the two scalars UDS0 and
UDS1, so you will need to define only one material for all cell zones. If the electric
conductivities are different for positive and negative electrodes, you will need to define
two different materials, as described in the Fluent Advanced Add-On Modules docu-
mentation on the ANSYS Customer Portal (http://support.ansys.com/documentation).
v. In the Question dialog box, click No to retain aluminum and add the new material (e_material) to
the materials list.
e. Ensure that e_material (e) is selected from the Fluent Solid Materials drop-down list.
f. Click Change/Create.
Note
If the UDS Diffusion Coefficients are defined through the defined-per-uds option,
the Fluent solver does not use the value for Electrical Conductivity.
2. Create the busbar_material material for busbars and tabs by modifying e-material you have created in the
previous step.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1205
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
As stated in the problem description, you will use the same material for busbars and tabs.
Note
If the busbar and tab materials are different, you need to define the two different mater-
ials and assign them to the busbars and tabs, respectively.
The UDS Diffusivity for both busbar and tab materials must be defined through the UDF as described
below.
a. In the Create/Edit Materials dialog box, enter busbar_material for Name and bus for Chemical
Formula.
b. Under Properties, select user-defined from the UDS Diffusivity drop-down list and click Edit... next
to UDS Diffusivity .
c. In the User-Defined Functions dialog box, verify that battery_e_cond::msmdbatt is selected and
click OK.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1206 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. In the Question dialog box, click No to retain e-material and add the new busbar_material material
to the materials list.
e. Ensure that busbar_material (bus) is selected from the Fluent Solid Materials drop-down list.
h. Click Change/Create.
a. In the Solid dialog box, select e_material from the Material Name drop-down list.
b. Click OK.
2. Copy the cell zone condition for the cell_1 zone to the cell_2 and cell_3 cell zones.
a. In the Copy Conditions dialog box, select cell_1 in the From Cell Zone list.
c. Click Copy.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1207
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
d. Click OK in the Question dialog box to copy the cell zone conditions and close the Copy Conditions
dialog box.
3. In a similar manner, assign busbar_material to all the tabs and busbars cell zones.
b. In the Wall dialog box, under the Thermal tab, configure the following settings:
2. Copy the boundary conditions for wall-cell_1 to wall-cell_2, wall-cell_3 and all the tab
and busbar wall zones (a boundary zones that have names starting with the "wall" string and containing
the "bar" or "tabzone" string).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1208 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Equations dialog box, deselect Flow from the Equation selection list.
b. Click OK.
2. Remove the convergence criteria to ensure that automatic convergence checking does not occur.
a. In the Residual Monitors dialog box, select none from the Convergence Criterion drop-down list.
b. Click OK.
a. In the Surface Monitor dialog box, select Area-Weighted Average from the Report Type drop-down
list.
b. Select User Defined Scalars... and Potential Phi+ from the Field Variable drop-down lists.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1209
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
d. Enable Plot.
e. Click Axes... and in the Axes dialog box that opens, set Precision to 0 for the X axis and to 2 for the
Y axes. Note that you must click Apply to save the modified settings for each axis.
g. Select Time Step from the Get Data Every drop-down list.
h. Click OK.
a. In the Volume Monitor dialog box, select Max from the Report Type drop-down list.
b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.
d. Enable Plot.
e. In a manner similar to the surface monitor, modify the axis attributes by setting the Precision to 0 for
the X axis and to 2 for the Y axes.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1210 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
g. Select Time Step from the Get Data Every drop-down list.
h. Click OK.
a. Retain the selection of Standard from the Initialization Methods group box.
b. Click Initialize.
You do not need to modify the Initial Values in the Solution Initialization task page, because
these values are not used for initialization. The ANSYS Fluent solver automatically computes the
initial condition for UDS0 and UDS1.
a. Set Time Step Size to 30 seconds and No. of Time Steps to 50.
The residual plot, the monitored voltage at the positive tap and the history of the maximum
temperature in the domain are shown in Figure 30.5: Residual History of the Simulation (p. 1212),
Figure 30.6: Surface Monitor Plot of Discharge Curve at 200W (p. 1213), and Figure 30.7: Volume
Monitor Plot of Maximum Temperature in the Domain (p. 1214), respectively.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1211
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1212 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1213
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
30.4.5. Postprocessing
In this section, postprocessing options for the MSMD battery model solution are presented.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1214 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Vectors dialog box, select current-density-j from the Vectors of drop-down list.
b. Select User Defined Memory... and Magnitude of Current Density from the Color by drop-down
list.
The surfaces of the "wall" type are automatically selected in the Surfaces list.
d. In the Options group, enable Draw Mesh and set the mesh display options as desired.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1215
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
All vectors in your plot will be displayed with the same lengths.
ii. Click Apply and close the Vector Options dialog box.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1216 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. In the Contours dialog box, in the Options group box, enable Filled.
b. From the Contours of drop-down list, select Temperature... and Static Temperature.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1217
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1218 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
a. From the Contours of drop-down list, select User Defined Memory... and Volumetric Ohmic Source.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1219
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1220 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
From the Contours of drop-down list, select User Defined Memory... and Total Heat Generation
Source.
a. From the Contours of drop-down list, select User Defined Memory... and Total Heat Generation
Source.
b. Click Display.
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1221
Simulating a 1P3S Battery Pack Using the MSMD Battery Model
30.5. Summary
This tutorial has demonstrated the use of the MSMD battery add-on to perform electrochemical and
heat transfer simulations for battery packs. You have learned how to set up and solve the problem for
the battery pack of the 1P3S configuration using the NTGK Battery submodel. You have also learned
some of the postprocessing capabilities available in the MSMD battery model.
As an exercise, you can obtain solutions using the Equivalent Circuit Model and Newman P2D Model.
For details, see the Fluent Advanced Add-On Modules documentation on the ANSYS Customer Portal
(http://support.ansys.com/documentation).
Release 17.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
1222 of ANSYS, Inc. and its subsidiaries and affiliates.