ANSYS Fluent Workbench Tutorial Guide 19.1
ANSYS Fluent Workbench Tutorial Guide 19.1
ANSYS Fluent Workbench Tutorial Guide 19.1
ANSYS, ANSYS Workbench, AUTODYN, CFX, FLUENT 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 located 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. FLEXlm and FLEXnet are trademarks of Flexera Software LLC.
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.
ANSYS, Inc. and ANSYS Europe, Ltd. are UL registered ISO 9001: 2008 companies.
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
Workbench Tutorial Guide
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
List of Figures
1.1. Problem Specification ............................................................................................................................. 3
1.2. Selecting the Fluid Flow (Fluent) Analysis System in ANSYS Workbench ................................................... 5
1.3. ANSYS Workbench with a New Fluent-Based Fluid Flow Analysis System .................................................. 5
1.4. ANSYS Workbench Files View for the Project After Adding a Fluent-Based Fluid Flow Analysis System ....... 7
1.5. Elbow Main Pipe Geometry ................................................................................................................... 14
1.6. ANSYS Workbench Files View for the Project After Creating the Geometry .............................................. 17
1.7. The ANSYS Meshing Application with the Elbow Geometry Loaded ....................................................... 19
1.8. Selecting a Face to Name ...................................................................................................................... 20
1.9. Applying a Name to a Selected Face ...................................................................................................... 21
1.10. The Computational Mesh for the Elbow Geometry in the ANSYS Meshing Application .......................... 24
1.11. ANSYS Workbench Files View for the Project After Mesh Creation ......................................................... 25
1.12. Fluent Launcher .................................................................................................................................. 26
1.13. The ANSYS Fluent Application ............................................................................................................. 27
1.14. The Create/Edit Materials Dialog Box ................................................................................................... 34
1.15. Convergence History of the Maximum Temperature at Pressure Outlet ................................................. 47
1.16. Residuals for the Converged Solution .................................................................................................. 48
1.17. Velocity Distribution Along Symmetry Plane ........................................................................................ 51
1.18. Temperature Distribution Along Symmetry Plane ................................................................................ 52
1.19. The Elbow Geometry Loaded into CFD-Post ......................................................................................... 54
1.20. Velocity Distribution Along Symmetry Plane ........................................................................................ 56
1.21. Temperature Distribution Along Symmetry Plane ................................................................................ 57
1.22. Duplicating the Fluid Flow System ....................................................................................................... 58
1.23. The Original Fluid Flow System and Its Duplicate ................................................................................. 59
1.24. Changing the Diameter of the Small Inlet in ANSYS DesignModeler ..................................................... 61
1.25. Updating the Mesh for the Changed Geometry ................................................................................... 62
1.26. The Updated Geometry and Mesh in the ANSYS Meshing Application .................................................. 63
1.27. The New Results System in the Project Schematic ............................................................................. 65
1.28. Connecting the First Fluid Flow System to the New Results System ...................................................... 65
1.29. Connecting the Second Fluid Flow System to the New Results System .................................................. 66
1.30. CFD-Post with Both Fluid Flow Systems Displayed ............................................................................... 66
1.31. CFD-Post Displaying Velocity Contours for Both Geometries ................................................................. 68
1.32. CFD-Post Displaying Temperature Contours for Both Geometries ......................................................... 69
2.1. Automotive HVAC System ..................................................................................................................... 73
2.2. HVAC System Valve Location Details ...................................................................................................... 74
2.3. Flow Pattern for the Cooling Cycle ......................................................................................................... 75
2.4. The Project Loaded into ANSYS Workbench ........................................................................................... 77
2.5. Parameters Defined in ANSYS DesignModeler ....................................................................................... 78
2.6. New Parameters Defined in ANSYS Workbench ...................................................................................... 78
2.7. Constrained Parameter hcpos ............................................................................................................. 79
2.8. Constrained Parameter ftpos ............................................................................................................. 80
2.9. Constrained Parameter wsfpos ........................................................................................................... 81
2.10. ANSYS Fluent Launcher ....................................................................................................................... 82
2.11. The ANSYS Fluent Application ............................................................................................................. 83
2.12. The Input Parameters Sub-Branch in ANSYS Fluent .............................................................................. 90
2.13. The Parameters View in ANSYS Workbench .......................................................................................... 90
2.14. The Automotive HVAC Geometry Loaded into CFD-Post ....................................................................... 95
2.15. Vectors Colored by Pressure ................................................................................................................ 98
2.16. Vectors Colored by Velocity ................................................................................................................. 99
2.17. Vectors Colored by Temperature ........................................................................................................ 100
2.18. The Updated Project Loaded into ANSYS Workbench Displaying the Files View ................................... 104
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
Workbench Tutorial Guide
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
List of Tables
1. Mini Flow Chart Symbol Descriptions ........................................................................................................ ix
1.1. DesignModeler View Manipulation Instructions ..................................................................................... 12
5.1. Species Composition ........................................................................................................................... 238
6.1. Injection Properties ............................................................................................................................. 309
6.2. Boundary Conditions .......................................................................................................................... 311
6.3. Patching ............................................................................................................................................. 316
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. vii
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
viii of ANSYS, Inc. and its subsidiaries and affiliates.
Using This Manual
This preface is divided into the following sections:
1. What’s In This Manual
2.Typographical Conventions Used In This Manual
• 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,
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. ix
Using This Manual
indicates selecting the Setting Up Domain ribbon tab, clicking Transform (in the Mesh group box)
and selecting Translate..., as indicated in the figure below:
And
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
x of ANSYS, Inc. and its subsidiaries and affiliates.
Typographical Conventions Used In 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xi
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xii 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 19.1 - © ANSYS, 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 19.1 - © ANSYS, 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 19.1 - © ANSYS, 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. Download the workbench_elbow.zip file here.
2. Unzip workbench_elbow.zip to your working folder. This file contains a folder, workbench_elbow,
that holds the following items:
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.
1. From the Windows Start menu, select Start > All Programs > ANSYS 19.1 > Workbench 19.1 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.
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Figure 1.2: Selecting the Fluid Flow (Fluent) Analysis System in ANSYS Workbench
Figure 1.3: ANSYS Workbench with a New Fluent-Based Fluid Flow Analysis System
Release 19.1 - © ANSYS, 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
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 cell’s state can quickly change. ANSYS Workbench provides a visual indication of a
cell’s 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.
• 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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
• 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 User's 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
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 User's 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. 7).
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.
Release 19.1 - © ANSYS, 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
1.4.3. Creating the Geometry in ANSYS DesignModeler
For the geometry of your fluid flow analysis, you can create a geometry in ANSYS DesignModeler, ANSYS
SpaceClaim Direct Modeler, or import the appropriate geometry file. In this step, you will create the
geometry in ANSYS DesignModeler, then review the list of files generated by ANSYS Workbench.
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. 18).
In the ANSYS Workbench Project Schematic, right-click the Geometry cell in the elbow fluid flow
analysis system to display the context menu, then select New DesignModeler Geometry.... This
displays the ANSYS DesignModeler application.
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
• 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.
iii. To create the torus segment, click the Generate button that is located in the ANSYS
DesignModeler toolbar.
Release 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
12 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. 14).
Release 19.1 - © ANSYS, 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
Figure 1.5: Elbow Main Pipe Geometry
b. Next you will use a cylinder primitive to create the side pipe.
ii. In the Details View, set the parameters for the cylinder as follows and click Generate:
Setting Value
BasePlane XYPlane
FD3, Origin X Coordinate 137.5
FD4, Origin Y Coordinate -225
FD5, Origin Z Coordinate 0
FD6, Axis X Component 0
FD7, Axis Y Component 125
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Setting Value
FD8, Axis Z Component 0
FD10, Radius (>0) 12.5
The Origin Coordinates determine the starting point for the cylinder and the Axis Components determine
the length and orientation of the cylinder body.
c. The final step in creating the geometry is to split the body on its symmetry plane which will halve the
computational domain.
Release 19.1 - © ANSYS, 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
iv. Click Generate.
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.
iii. In the Fluid/Solid section, select Fluid from the drop-down list.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
16 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 User's 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
18 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 19.1 - © ANSYS, 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
Figure 1.8: Selecting a Face to Name
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
20 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 19.1 - © ANSYS, 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
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 Quality node to reveal additional quality parameters. Change Smoothing to High.
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
22 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
24 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 19.1 - © ANSYS, 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.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.
b. Set Processes to 4.
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
d. 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
The ANSYS Fluent settings file (FFF.set) is written as soon as ANSYS Fluent opens.
Release 19.1 - © ANSYS, 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
Note
These controls are also available in the General task page that can be accessed by clicking
the Setup/General tree item.
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.
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): 2.166851e-09
maximum volume (m3): 5.586736e-08
total volume (m3): 2.510747e-03
Face area statistics:
minimum face area (m2): 1.573986e-06
maximum face area (m2): 3.281947e-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:
Release 19.1 - © ANSYS, 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
where Inverse Orthogonal Quality = 1 - Orthogonal Quality)
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
User's Guide.
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 double-clicking the
Setup/Models tree item.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 19.1 - © ANSYS, 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
ii. In the Viscous Model dialog box, select k-epsilon from the Model list.
Note
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
iii. Use the default Standard from the k-epsilon Model group.
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 User's 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-liquid using the Create/Edit Materials dialog box.
Release 19.1 - © ANSYS, 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
b. Copy the material water-liquid (h2o < l >) from the materials database (accessed by clicking the Fluent
Database... button).
c. Select water-liquid (h2o < l >) from the materials list and Click Copy, then close the Fluent Database...
panel.
d. Ensure that there are now two materials (water and air) defined locally by examining the Fluent Fluid
Materials drop-down list in the Create/Edit Materials dialog box .
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 19.1 - © ANSYS, 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
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.
5. Set up the boundary conditions for the CFD analysis using the Zones group of the Setting Up Physics
ribbon tab.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
To display boundary zones grouped by zone type (as shown above), click the Toggle
Tree View button in the upper right corner of the Boundary Conditions task page
and under the Group By category select Zone Type from the drop-down 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
Release 19.1 - © ANSYS, 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
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....
ii. In the Velocity Inlet dialog box, ensure that Magnitude, Normal to Boundary is selected for Ve-
locity Specification Method.
iv. In the Turbulence group, from the Specification Method drop-down list, select Intensity and
Hydraulic Diameter.
Note
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
38 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:
Setting Value
Velocity Specification Method Magnitude, Normal to Boundary
Velocity Magnitude 1.2 [m/s]
Specification Method Intensity & Hydraulic Diameter
Turbulent Intensity 5%
Hydraulic Diameter 25 [mm]
Temperature 313.15[K]
d. Double-click pressure-outlet and set the boundary conditions at the outlet, as shown in the Pressure
Outlet dialog box.
Release 19.1 - © ANSYS, 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
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
40 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 19.1 - © ANSYS, 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
i. In the Solving ribbon tab, click Residuals... (Reports group).
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
42 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 19.1 - © ANSYS, 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
• temp-outlet-0-rfile (under the Solution/Monitors/Report Files tree branch)
d. In the tree, double-click the temp-outlet-0-rfile (under the Solution/Monitors/Report Files) and ex-
amine 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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
44 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 19.1 - © ANSYS, 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
i. Keep the Method at the default of Hybrid.
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.
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
• 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-0–rplot tab window) (Figure 1.15: Convergence History of the Maximum Temper-
ature at Pressure Outlet (p. 47)).
The residuals history will be plotted in the Scaled Residuals tab window (Figure 1.16: Residuals
for the Converged Solution (p. 48)).
Release 19.1 - © ANSYS, 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
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. 48) and Fig-
ure 1.15: Convergence History of the Maximum Temperature at Pressure Outlet (p. 47)).
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
48 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.
a. Display filled contours of velocity magnitude on the symmetry plane (Figure 1.17: Velocity Distribution
Along Symmetry Plane (p. 51)).
Release 19.1 - © ANSYS, 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
Postprocessing → Graphics → Contours → Edit...
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Note
You may want to clear Lighting in the Viewing ribbon tab (Display group).
b. Display filled contours of temperature on the symmetry plane (Figure 1.18: Temperature Distribution
Along Symmetry Plane (p. 52)).
Release 19.1 - © ANSYS, 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
i. Select Temperature... and Static Temperature from the Contours of drop-down lists.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
52 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.
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.
Release 19.1 - © ANSYS, 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
Figure 1.19: The Elbow Geometry 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. 56)).
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Release 19.1 - © ANSYS, 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
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. 57)).
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
56 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
58 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 a refresh while the state of the Results cell indicates that the cell requires atten-
tion. 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.
Right-click the Geometry cell of the new-elbow system (cell B2) and select Edit Geometry in
DesignModeler... from the context menu 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 19.1 - © ANSYS, 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
c. Click the Generate button to generate the geometry with your new values.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
60 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
62 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 19.1 - © ANSYS, 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 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
64 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
66 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
68 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
70 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
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 the introductory ANSYS Fluent tutorials, 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Problem Description
Release 19.1 - © ANSYS, 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
Figure 2.1: Automotive HVAC System (p. 73) shows a representative automotive HVAC system. The system
has three valves (as shown in Figure 2.2: HVAC System Valve Location Details (p. 74)), 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
74 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.
Release 19.1 - © ANSYS, 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
2.4.1. Preparation
To prepare for running this tutorial:
1. From the Windows Start menu, select Start > All Programs > ANSYS 19.1 > Workbench 19.1 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
3. Review the input parameters that have already been defined in ANSYS DesignModeler.
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.5: Parameters Defined in ANSYS DesignModeler (p. 78)),
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
Release 19.1 - © ANSYS, 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
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.
4. In the Outline of All Parameters view, create three new named input parameters.
a. In the row that contains New input parameter, click the parameter table cell with New name (under
the Parameter Name column) and enter input_hcpos. Note the ID of the parameter that appears
in column A of the table. For the new input parameter, the parameter ID is P4. In the Value column,
enter 15.
b. In a similar manner, create two more parameters named input_ftpos and input_wsfpos. In the
Value column, enter 25, and 90 for each new parameter (P5 and P6), respectively.
5. 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
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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 19.1 - © ANSYS, 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
6. 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
8. 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 19.1 - © ANSYS, 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
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.
c. Set Processes to 4.
Note
Release 19.1 - © ANSYS, 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
2. Set up your models for the CFD simulation using the Models group of the Setting Up Physics ribbon tab.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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
Release 19.1 - © ANSYS, 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
model for general single-phase fluid flow problems. For more information about Near Wall
Treatments in the k-epsilon model refer to the Fluent User's Guide.
iii. Click OK to retain the other default settings, enable 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. 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, click the Edit... button next to Energy.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.
Note
All boundaries defined in the case are also displayed under the Setup/Boundary
Conditions tree branch.
b. In the Boundary Conditions task page, click the Toggle Tree View button (in the upper right corner),
and under the Group By category, select Zone Type. This displays boundary zones grouped by zone
type.
Release 19.1 - © ANSYS, 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
d. In the Velocity Inlet dialog box, from the Velocity Magnitude drop-down list, select New Input
Parameter....
e. Enter in_velocity for the Name, and enter 0.5 m/s for the Current Value.
g. Under the Turbulence group box, from the Specification Method drop-down list, select Intensity
and Hydraulic Diameter.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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 19.1 - © ANSYS, 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
These parameters are passed to ANSYS Fluent component system in ANSYS Workbench and are
available for editing in ANSYS Workbench (see Figure 2.13: The Parameters View in ANSYS Work-
bench (p. 90)).
4. Set the turbulence parameters for backflow at the front outlets and foot outlets.
a. In the Boundary Conditions task page, type outlet in the Zone filter text entry field. Note that as
you type, the names of the boundary zones beginning with the characters you entered appear in the
boundary condition zone list.
Note
• The search string can include wildcards. For example, entering *let* will display all zone
names containing let, such as inlet and outlet.
• To display all zones again, click the red X icon in the Zone filter.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
b. Double-click outlet-front-mid.
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 19.1 - © ANSYS, 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
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
The pressure-based coupled solver is the recommended choice for general fluid flow simulations.
Release 19.1 - © ANSYS, 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
Setting Value
Pressure PRESTO!
Momentum First Order Upwind
Energy First Order Upwind
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.
4. Close Fluent.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.
a. From the main menu, select Insert → Vector or click in the ANSYS CFD-Post toolbar.
Release 19.1 - © ANSYS, 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 Details view for Vector 1, under the Geometry tab, configure the following settings.
ii. From the Locations drop-down list, select symmetry central unit.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.15: Vectors
Colored by Pressure (p. 98).
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 19.1 - © ANSYS, 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
a. In the Details view for Vector 1, under the Color tab, configure the following settings.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
98 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.
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 19.1 - © ANSYS, 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
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.
ii. Enter alloutlets for the Name of the surface group, and click OK to close the Insert Surface
Group dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.
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).
5. 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.
Release 19.1 - © ANSYS, 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
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.
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 expression’s icon.
b. Create an expression for the mass flow from the wind shield.
i. Perform the same steps as described above to create an expression called floutwindshield
with the following definition:
-(massFlow()@outlet windshield)*2
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
ii. 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.
i. Perform the same steps as described above to create an expression called floutfoot with the
following definition:
-(massFlow()@outlet foot left)*2
ii. Right-click the new expression and select Use as Workbench Output Parameter from the context
menu.
ii. 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.
7. 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.
8. 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.
9. 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 19.1 - © ANSYS, 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
Figure 2.18: 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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
Workbench provides a Table of Design Points to make creating and manipulating design points more
convenient.
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.
For DP1 and DP2, edit the values for your input parameters within the Table of Design Points
as follows:
Release 19.1 - © ANSYS, 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
Figure 2.20: 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).
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.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution
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.21: 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.
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.
Release 19.1 - © ANSYS, 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
d. View the vector plot colored by pressure. Ensure that Range in the Color tab is set to Global.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
108 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.
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.
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.
Release 19.1 - © ANSYS, 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
d. View the vector plot colored by pressure. Ensure that Range in the Color tab is set to Global.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
110 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.
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 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 3: Solving a Cold Flow Simulation
A three dimensional single cylinder CFD simulation of a 4-stroke engine is performed under motored
conditions (cold flow) in this tutorial. Detailed boundary conditions are shown in Figure 3.1: Problem
Schematic (p. 113). Engine simulation is started from Intake valve opening (IVO) followed by air flow
during intake stroke. Air is compressed as piston moves towards top dead centre (TDC). This is followed
by expansion of air as piston moves towards bottom Dead centre (BDC). This tutorial serves as an intro-
duction in releasing the streamlined workflow between pre-processing, solver and post processing while
carrying out simulations with Fluent.
This tutorial is written with the assumption that you are familiar with the IC Engine system and that
you have a good working knowledge of ANSYS Workbench.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Solving a Cold Flow Simulation
3.1. Preparation
3.2. Step 1: Setting the Properties
3.3. Step 2: Performing the Decomposition
3.4. Step 3: Meshing
3.5. Step 4: Setting up the Simulation
3.6. Step 5: Running the Solution
3.7. Step 6: Obtaining the Results
3.8. Step 7: Postprocessing
3.9. Summary
3.10. Further Improvements
3.1. Preparation
1. Download the workbench_icengine_cold_flow.zip file here.
4. Start Workbench.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 1: Setting the Properties
2. If the Properties view is not already visible, right-click ICE, cell 2, and select Properties from the context
menu.
3. Select Cold Flow Simulation from the Simulation Type drop-down list.
4. In the Properties dialog box under Engine Inputs enter 144.3 for Connecting Rod Length.
8. Click Browse File next to Lift Curve. The File Open dialog box opens. Select the valve profile file
lift.prof and click Open.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Solving a Cold Flow Simulation
b. Click next to Inlet Faces, select the face of the inlet valve and click Apply.
c. Click next to Outlet Faces, select the face of the exhaust valve and click Apply.
d. Select the four faces as shown in Figure 3.2: Cylinder Faces (p. 119) for Cylinder Faces and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
e. Retain selection of Yes from the Symmetry Face Option drop-down list.
f. Select the three faces shown in Figure 3.3: Symmetry Faces (p. 119) for Symmetry Faces and click
Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Solving a Cold Flow Simulation
g. Retain the selection of Full Topology from the Topology Option drop-down list.
k. Select the valve body as shown in Figure 3.4: Intake Valve (p. 120) for Valve Bodies and click Apply.
l. Select the valve seat face as shown in Figure 3.5: Intake Valve Seat (p. 121) for Valve Seat Faces and
click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
n. Right-click IC Valves Data in the Details of InputManager and select Add New IC Valves Data
Group from the context menu.
o. In this IC Valves Data group following the steps for the intake valve, set the other valve body to
ExValve and set its profile to exvalve1. Select the valve seat face of that valve as shown in Fig-
ure 3.6: Exhaust Valve Seat (p. 122).
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
You can see that the Decomposition Angle is set to 329.6 after clicking on Generate.
Note
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Solving a Cold Flow Simulation
6. You can close the DesignModeler, after the geometry is decomposed without any errors.
1. Click Edit Mesh Settings in Properties of Schematic A4: Mesh under IC Engine to open the ICEngine
Mesh Settings dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 3: Meshing
c. Right-click Mesh, cell 4, and click Update from the context menu.
Note
You can also open Meshing by double-clicking on Mesh cell in the ICE analysis
system.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Solving a Cold Flow Simulation
2. Retain the default settings in the IC Mesh Parameters dialog box and click OK
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
5. Before starting to run the solution, update the Mesh cell. You can do this by right-
clicking on Mesh cell in the Workbench window and selecting Update from the
context menu.
Note
1. If the Properties view is not already visible, right-click ICE, cell 2, and select Properties from the context
menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 127
Solving a Cold Flow Simulation
2. Click Edit Solver Settings to open the Solver Settings dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
128 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
Note
In the Solver Settings dialog box you can check the default settings in the various tabs.
If required you can change the settings.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 129
Solving a Cold Flow Simulation
a. In the Basic Settings tab you can see that the under-relaxation factors (URF) and mesh details will
be included in the final report. Also the default models are used and the flow is initialized.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
130 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
iii. Click Create to open the Create Boundary Conditions dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 131
Solving a Cold Flow Simulation
C. Click Create.
D. Similarly set the liner which includes the three zones —cyl-piston, cyl-quad, and cyl-tri
to 318k.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
132 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
c. In the Monitor Definitions tab you can see that four volume monitors have been set. Cell Equivolume
Skewness, Turbulent Kinetic Energy, Temperature, and Pressure will be plotted on the zones
fluid-ch, fluid-layer-cylinder, and fluid-piston.
You will add volume monitors of volume and mass for the chamber zone.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 133
Solving a Cold Flow Simulation
ii. Select the chambers zones — fluid-ch, fluid-layer-cylinder, and fluid-piston from the list of
Zones.
iii. Retain the selection of Volume from the Type drop-down list.
v. Click Create.
vi. Retaining the selection of the Zones and Type, select Mass from the Report Type drop-down
list and click Create.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
134 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
d. In the Initialization tab you can see the default set values for the various parameters. You will be
deleting the existing patching conditions and adding new ones.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 135
Solving a Cold Flow Simulation
ii. For the inlet port, select fluid-invalve-1–port, fluid-invalve-1–vlayer, and fluid-invalve-1–ib
from the list of Zone.
vi. For outlet port, patch zones fluid-exvalve-1–port, fluid-exvalve-1–vlayer, and fluid-exvalve-
1–ib to Pressure equal to -1325 pascal and Temperature equal to 333 k.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
136 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
vii. For chamber select fluid-ch, fluid-layer-cylinder, and fluid-piston from the list under Zone
and patch the Temperature to a value of 348 k.
e. In the Solution Control tab select Yes from the Enable Adaptive Timestep drop-down list. Retain
the default settings.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 137
Solving a Cold Flow Simulation
• In the Solution Summary tab you can select from the list and check the plots in the Summary
Chart.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
138 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
f. In the Post Processing tab you can see that velocity-magnitude contours on the surface of cut-plane
will be saved during simulation and displayed in a table format in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 139
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
140 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
ii. Select Yes from the Overlay with Vectors drop-down list.
File >Save
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 141
Solving a Cold Flow Simulation
Note
ANSYS Fluent opens. It will read the mesh file and setup the case till initializing and
patching the solution.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
142 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
6. As you can see Number of Time Steps is already set to 2940 which is calculated from the Number of
CA to Run set in the Basic Settings tab of Solver Settings dialog box.
7. Click Calculate.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 143
Solving a Cold Flow Simulation
Note
Running the solution can take around forty hours for a 8 CPU machine. You can open
the project file provided and check the results of intermediate steps in CFD-Post. The
intermediate solution is also provided as a separate project. You can open this project
and continue the simulation.
2. Right-click the Results cell and click on Update from the context menu.
3. Once the Results cell is updated, view the files by clicking on Files from the View menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
144 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
4. Right-click Report.html from the list of files, and click Open Containing Folder from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 145
Solving a Cold Flow Simulation
• You can check the node count and mesh count of the cell zones in the table, Mesh Information for
ICE.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
146 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You can see the change in volume-average cell skewness with crank angle, in the chart Monitor: Max
Cell Equivolume Skew (fluid-piston fluid-layer-cylinder fluid-ch). Also the table Cell count at crank
angles, shows the mesh count at 0 and 180 degree crank angles.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 147
Solving a Cold Flow Simulation
• You can see the boundary conditions set, in the table Boundary Conditions.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
148 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Check the piston and valve lift profiles in the figures displayed below.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 149
Solving a Cold Flow Simulation
• The table Relaxations at crank angles, shows the under-relaxation factors at different crank angles.
• The table Dynamic Mesh Events, shows the events at different crank angles.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
150 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 151
Solving a Cold Flow Simulation
• In the section IC Engine System Inputs check engine inputs you have entered in the Properties dialog
box. It also lists the Journal Customization files if they are provided.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
152 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 153
Solving a Cold Flow Simulation
• Observe the saved images of the mesh at the cut-plane in the table mesh-on-ice_cutplane_1.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
154 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Similarly observe the saved images of the velocity contours on the cut-plane in the table velocity-
magnitude on ”ice_cutplane_1”.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 155
Solving a Cold Flow Simulation
• Check the residuals in the Residuals table. The residual chart is saved after every 180 degrees.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
156 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Check the Last iteration residual values corresponding to each time step chart.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 157
Solving a Cold Flow Simulation
• Observe the chart of swirl ratio at different crank angles in chart Swirl Ratio.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
158 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Observe the chart of tumble at different crank angles in charts Tumble Ratio and Cross Tumble Ratio
.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 159
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
160 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 161
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
162 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 163
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
164 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Observe the convergence history of turbulent kinetic energy in the figure below.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 165
Solving a Cold Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
166 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 167
Solving a Cold Flow Simulation
2. You can choose the time step at which you want to display the velocity vectors. Open the Timestep Se-
lector dialog box by selecting Timestep Selector ( ) from the Tools menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
168 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 7: Postprocessing
1. Select the Step of your choice from the list and click Apply.
a. Retain the default name and click OK in the Insert Streamline dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 169
Solving a Cold Flow Simulation
c. Select all items under ICE in the Location Selector dialog box and click OK.
f. Click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
170 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 7: Postprocessing
Note
This will copy the image displayed in the 3D Viewer, to the list under Report in
the Outline tree.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 171
Solving a Cold Flow Simulation
c. Click the Report Viewer tab in the display window and click Refresh ( ).
Note
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
172 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
This concludes the tutorial which demonstrated the setup and solution for a cold flow simulation of an
IC engine.
3.9. Summary
In this tutorial you have learnt how streamlined workflow is achieved in WB-ICE. Motored engine oper-
ation was performed using K-epsilon with standard wall treatment turbulence model in Fluent.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 173
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
174 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 4: Solving a Port Flow Simulation
In this tutorial of port flow analysis, you will measure mass and angular momentum flux (swirl and
tumble) for given cylinder head and intake port design over varying valve lifts of 2mm, 6mm and 10mm.
You will create swirl monitor planes at 30 mm, 45 mm, and 60 mm below the cylinder head. The inlet,
outlet and wall boundary conditions are as shown in the Figure 4.1: Problem Schematic (p. 175). Initial
conditions are pressure 101325 Pa and temperature 300 K. The tutorial illustrates the following steps
in setting up and solving a port flow simulation of an IC engine.
• Add design points to observe the change in results with change in input parameters.
This tutorial is written with the assumption that you are familiar with the IC Engine system and that
you have a good working knowledge of ANSYS Workbench.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 175
Solving a Port Flow Simulation
4.1. Preparation
4.2. Step 1: Setting the Properties
4.3. Step 2: Performing the Decomposition
4.4. Step 3: Meshing
4.5. Step 4: Setting up the Simulation
4.6. Step 5: Running the Solution
4.7. Step 6: Obtaining the Results
4.8. Summary
4.9. Further Improvements
4.1. Preparation
1. Download the workbench_icengine_port_flow.zip file here.
4. Start Workbench.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
176 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
2. Right-click ICE, cell 2, and click Properties (if it is not already visible) from the context menu.
3. Select Port Flow Simulation from the Simulation Type drop-down list.
Note
The ICE cell is updated after you select Port Flow Simulation. You can now proceed
to decomposition.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 177
Solving a Port Flow Simulation
a. Select the face as shown in Figure 4.2: Cylinder Faces (p. 179) for Cylinder Faces and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
178 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
c. Select the face shown in Figure 4.3: Symmetry Faces (p. 180) for Symmetry Faces and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 179
Solving a Port Flow Simulation
d. For Post Planes Dist. From Ref. you can enter the distance at which you would like to have the
postprocessing plane(s). It is a semicolon separated list, for example, you can enter 30;45;60.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
180 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
The representation of the reference planes and the postprocessing planes is visible in the geometry
after you enter the distances. These planes are required for creating swirl monitors in Fluent.
f. Select the valve body as shown in Figure 4.5: Intake Valve (p. 182) for Valve Bodies and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 181
Solving a Port Flow Simulation
g. Select the valve seat face as shown in Figure 4.6: Intake Valve Seat (p. 183) for Valve Seat Faces and
click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
182 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
i. Right-click IC Valves Data in the Details of InputManager and select Add New IC Valves Data
Group from the context menu.
j. In this IC Valves Data group following the steps for the intake valve, set the other valve body to
ExValve. Select the valve seat face of that valve as shown in Figure 4.7: Exhaust Valve Seat (p. 184).
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 183
Solving a Port Flow Simulation
Note
l. Click next to Inlet/(Plenum Inlet) Faces, select the face of the inlet valve and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
184 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
Note
The default values Plenum Size and Cylinder Extension Length are reduced so
that the number of mesh elements generated will be reduced. This will reduce the
solution time. This is one way to optimize the solution.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 185
Solving a Port Flow Simulation
Note
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
186 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
Note
Most of the port flow simulations are done to study the effect of valve lift on the velocity,
mass flow rate, and other flow parameters. Here you will add design points. Valve lift is
selected as the input parameter for this tutorial.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 187
Solving a Port Flow Simulation
This will create a parameter for this component. A dialog box opens asking you to name the parameter.
Enter ValveLift for the Parameter Name. Click OK to close the dialog box.
A Parameters cell is added to the ICE system and the Parameter Set is connected to the cell.
1. Right-click Mesh, cell 4, and click Update from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
188 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 3: Meshing
In a single step it will first create the mesh controls, then generate the mesh and finally update the mesh
cell.
Note
If you want to check or change the mesh settings click Edit Mesh Settings in Properties
of Schematic A4: Mesh under IC Engine.
For this tutorial you are going to retain the default mesh settings.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 189
Solving a Port Flow Simulation
Note
1. If the Properties view is not already visible, right-click ICE, cell 2, and select Properties from the context
menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
190 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
2. Click Edit Solver Settings to open the Solver Settings dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 191
Solving a Port Flow Simulation
Note
In the Solver Settings dialog box you can check the default settings in the various tabs.
If required you can change the settings.
a. In the Basic Settings tab you can see that the default models are used and the flow is initialized using
FMG.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
192 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
b. In the Boundary Conditions tab you can see that the wall ice-slipwall-outplenum and ice-slipwall-
inplenum1 are set to slipwall with Temperature set to 300.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 193
Solving a Port Flow Simulation
ice-outlet is set as Pressure Outlet with Gauge Pressure set to –5000 and Temperature set to 300.
Similarly for ice-inlet-inplenum1 which is set to type Pressure Inlet, Temperature is set to 300 and
Gauge Pressure to 0.
c. In the Monitor Definitions tab you can see that four surface monitors have been set. Three plot the
Flow Rate of swirl on the three swirl planes you have define in the Input Manager. One surface
monitor plots the Mass Flow Rate on ice-inlet-inplenum1 and ice-outlet.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
194 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
d. In the Post Processing tab you can see that four images are saved during simulation. Velocity-
magnitude contours plotted on the surface of cut-plane and all the swirl planes will be saved during
simulation and displayed in a table format in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 195
Solving a Port Flow Simulation
The details will be displayed after selecting the image name and clicking Edit.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
196 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
Note
For this tutorial you will be using the default solver settings. You can try changing the
settings and observe the difference in the results.
3. After checking the settings close the Solver Settings dialog box.
4. Right-click the ICE Solver Setup cell and click Update from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 197
Solving a Port Flow Simulation
3. You can run the simulation in parallel with increased number of processors to complete the solution in
less time.
Note
ANSYS Fluent opens. It will read the mesh file and setup the case.
5. For the solution of this tutorial you will use monitor based convergence criteria. To achieve this you will
define one velocity-magnitude surface monitor on an interior face zone and then will use this data for
defining convergence criteria.
• Solution → Report Definitions → New → Surface Report select Area Weighted Average...
under the group box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
198 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
d. Select Velocity... and Velocity Magnitude from the Field Variable drop-down lists.
• Solution → Monitors → Convergence Conditions select Create/Edit... under the group box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 199
Solving a Port Flow Simulation
Note
The solution is considered to be converged if the criteria of all of the Active mon-
itors are satisfied.
Note
Stop Criterion indicates the criterion below which the solution is considered to be
converged.
Note
Enter a value in the Initial Iterations to Ignore column if you expect your solution
to fluctuate in the initial iterations. Enter a value that represents the number of it-
erations you anticipate the fluctuations to continue. The convergence monitor cal-
culation will begin after the entered number of iterations have been completed.
For more information refer to the section on Convergence Manager in the Fluent
User's Guide.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
200 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
Note
To quantify the output result, mass flow rate is defined as the output parameter. So at
the end of this design points study, change in the mass flow rate for the above defined
valve lifts can be observed.
c. In the Parameters dialog box click Create and select From Report Defintions... from the drop-down
list.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 201
Solving a Port Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
202 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
i.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 203
Solving a Port Flow Simulation
10. In ANSYS Workbench double-click the parameter bar or right-mouse click and select Edit... from the
context menu to access the Parameters and Design Points workspace.
11. In the Parameters and Design Points view, you will see the work area of Table of Design Points. Enter 6
and 10 in the column of P1–ValveLift.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
204 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
12. Enable the check box next to Retain which will enable all check boxes in the Retain column for the design
points you have added.
After adding the desired valve lift values click Update All Design Points ( )
from the menu bar.
Note
Now the simulation will run for each design point. This process will take some time to complete.
As solution for each design point is completed its output parameter is updated in the Table of
Design Points under MassFlowRate.
Note
Updating the design points can take around 5 hours on a 8 CPU machine. You can open the
project file provided and check the results.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 205
Solving a Port Flow Simulation
2. Once the Results cell is updated, view the files by clicking Files from the View menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
206 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Right-click Report.html from the list of files, and click Open Containing Folder from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 207
Solving a Port Flow Simulation
• You can check the node count and mesh count of the cell zones in the table, Mesh Information for
ICE.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
208 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You can see the boundary conditions set, in the table Boundary Conditions.
• The table Models, shows the models selected for the simulation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 209
Solving a Port Flow Simulation
In the table Equations you can see for which equations the simulation has been solved.
The Relaxations table displays the under relaxation factors set for the various variables.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
210 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
The Discretization Scheme table displays the discretization schemes set for the various variables.
• Check the animation of velocity magnitude on the cut-plane in the section Solution Data.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 211
Solving a Port Flow Simulation
• In a Table you can observe the velocity-magnitude contours on the swirl planes which you have created.
These images are taken at the end of the simulation.
• You can also observe the contours of pressure on the cut-plane taken in intervals, in another table.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
212 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 213
Solving a Port Flow Simulation
• Check the mass flow rate surface monitor plot. Also you can check the mass flow rate plots on the swirl
planes.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
214 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 215
Solving a Port Flow Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
216 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 217
Solving a Port Flow Simulation
• In a chart under Design Points report you can check the values of input parameter against the output
parameter.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
218 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• In different tables you can observe the velocity magnitude contours on the different swirl planes for
the design points which you have created. These images are taken at the end of the simulation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 219
Solving a Port Flow Simulation
• In another table you can observe the contours of velocity magnitude on the cut-plane for the different
design points. These images are taken at the end of the simulation.
This concludes the tutorial which demonstrated the setup and solution for a port flow simulation of an
IC engine.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
220 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
4.8. Summary
In this tutorial, you have learned to set up and solve an IC Engine problem. You have also learned how
to use ANSYS Workbench parametric system, which is here used for varying the valve lifts and examining
their effect on mass flow rate.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 221
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
222 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 5: Solving a Combustion Simulation for a Sector
In this tutorial a complete Direct injection (DI) compression ignition (CI) engine geometry is transformed
into 60° sector in-order to reduce mesh size and solution time. Detailed boundary conditions are as
shown in the Figure 5.1: Problem Schematic (p. 223). Sector simulation is started at intake valve Closing
(IVC) with initial conditions as 3.45 bar and 404 K, species mass fraction of O2=0.1369, N2=0.7473,
CO2=0.0789, H2O=0.0369. n-heptane (nc7h16) is used as surrogate for diesel fuel and is injected 8 degrees
before compression (Top Dead Centre). Engine rpm is increased from 1500 rpm to 2000 rpm and its
effect on unburnt fuel is examined. This tutorial illustrates the following steps in setting up and solving
a combustion simulation for a sector.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 223
Solving a Combustion Simulation for a Sector
This tutorial is written with the assumption that you are familiar with the IC Engine system and that
you have a good working knowledge of ANSYS Workbench.
5.1. Preparation
5.2. Step 1: Setting the Properties
5.3. Step 2: Performing the Decomposition
5.4. Step 3: Meshing
5.5. Step 4: Setting up the Simulation
5.6. Step 5: Running the Solution
5.7. Step 6: Obtaining the Results
5.8. Summary
5.9. Further Improvements
5.1. Preparation
1. Download the workbench_icengine_sector.zip file here.
4. Start Workbench.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
224 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 1: Setting the Properties
2. Right-click ICE, cell 2, and click Properties (if it is not already visible) from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 225
Solving a Combustion Simulation for a Sector
7. From the Input option for IVC and EVO drop-down list select Enter Direct Values.
Note
10. Right-click ICE cell and select Update from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
226 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 227
Solving a Combustion Simulation for a Sector
Note
The inlet valve closing (IVC) angle is chosen as the geometry decomposition angle,
since for combustion simulation you are more interested in the power stroke of
the engine cycle, starting from closing of valves to the end of the compression
stroke.
b. Retain Complete Geometry from the Sector Decomposition Type drop-down list as the input
geometry you have chosen is a complete geometry.
c. Select the face as shown in Figure 5.2: Cylinder Face (p. 228) for Cylinder Faces and click Apply.
Note
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
228 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
h. Select the valve bodies as shown in Figure 5.3: Valves (p. 229) for Valve and click Apply.
i. Select the valve seat faces as shown in Figure 5.4: Valve Seats (p. 230) for Valve Seat and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 229
Solving a Combustion Simulation for a Sector
j. Retain the selection of Height and Radius for Spray Location Option under IC Injection 1.
Note
Depending upon the height and radius the spray location is calculated.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
230 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
6. During decomposition a warning pops up asking if you would like to compensate for the difference in
compression ratio.
Click Yes.
Note
The decomposition process will take a few minutes. During decomposition the following
changes take place:
1. The engine port is divided into a sector of the given Sector Angle.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 231
Solving a Combustion Simulation for a Sector
5. The piston is moved to the appropriate position as per the Decomposition Crank
Angle.
File >Save
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
232 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 3: Meshing
1. Right-click the Mesh cell in the IC Engine analysis system and select Update from the context menu.
Note
2. You can double-click the Mesh cell to check the mesh. See Figure 5.6: Meshed Geometry (p. 233)
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 233
Solving a Combustion Simulation for a Sector
File >Save
Note
1. If the Properties view is not already visible, right-click ICE Solver Setup, cell 5, and select Properties
from the context menu.
2. Click Edit Solver Settings to open the Solver Settings dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
234 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
Note
In the Solver Settings dialog box you can check the default settings in the various tabs.
If required you can change the settings.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 235
Solving a Combustion Simulation for a Sector
Enable the check box next to Engine Speed. This will add an engine speed input para-
meter.
Note
You have entered the IVC and EVO as 570 and 833. You are interested only in
the compression and power stroke. So the Number of CA to Run is automat-
ically calculated from these values.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
236 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
iii. Click Read Profile File and select injection-profile.prof in the Select Profile File
dialog box.
Note
You will be using this file to set the Total Flow Rate and Velocity Magnitude
in the Injection Properties dialog box.
b. In the Physics Settings tab select Diesel Unsteady Flamelet from the Species Model drop-down
list in the Combustion Model group box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 237
Solving a Combustion Simulation for a Sector
i. Click Browse next to Chemkin File and select the file Diesel_1comp_35sp_chem.inp from
your working folder.
ii. Similarly select the file Diesel_1comp_35sp_therm.dat for Thermal Data File from your
working folder.
• Enter the values shown in Table 5.1: Species Composition (p. 238) for the Oxid values for the listed
Species.
Species Oxid
o2 0.1369
n2 0.7473
co2 0.0789
h20 0.0369
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
238 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
e. In the Physics Settings tab click Injection tab. Select injection-0 from the list and click Edit to open
the Injection Properties dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 239
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
240 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
vi. Click the Constant button next to Total Flow Rate and select injection_mass massflowrate
from the drop-down menu.
vii. Click the Constant button next to Velocity Magnitude and select injection_vel velocity from
the drop-down menu.
f. In the Boundary Conditions tab you can see that no default settings are present. For this tutorial
you will create some wall boundary conditions. Click Create to open the Create Boundary Conditions
dialog box.
i. Select ice-cyl-chamber-bottom from the Zones list. Retain the default selection of wall as the
Type and set the Temperature to 440. Click Create.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 241
Solving a Combustion Simulation for a Sector
g. In the Monitor Definitions tab you can see that nine volume monitors have been set on the zones
ice-fluid-chamber-bottom, ice-fluid-chamber-top, and ice-fluid-piston. You will set additional
monitors.
i. Click Create.
ii. In the Monitor Definition dialog box select all in the list of Zones.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
242 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 243
Solving a Combustion Simulation for a Sector
xi. Select influid-mass from the Injection Fate drop-down list and click Create to create a monitor
of influid-mass-all-injections-mon.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
244 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
h. In the Initialization tab enter 243412.5 for Gauge Pressure and 404 for Temperature.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 245
Solving a Combustion Simulation for a Sector
i. In the Post Processing tab you can see four types of images will be saved during simulation and
displayed in a table format in the report. The details will be displayed after selecting the image name
and clicking Edit.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
246 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
4. Right-click the Solution cell and click on Properties to open the Properties of Schematic window (if
not already open).
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 247
Solving a Combustion Simulation for a Sector
a. In the Properties of Schematic window ensure that the Initialization Method is set to Solver
Controlled.
File >Save
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
248 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
2. You can run the simulation in parallel with increased number of processors to complete the solution in
less time.
Note
ANSYS Fluent opens. It will read the mesh file and setup the case.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 249
Solving a Combustion Simulation for a Sector
a. In the Parameters dialog box click Create and select From Report Definitions... from the drop-
down list.
b. In the Report Definitions panel click New and selectVolume Report and Mass-Average from the
drop-down list.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
250 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
d. Select Species... and Mass fraction of nc7h16 from the Field Variable drop-down list.
f. Under the Create group, enable Report File and Report Plot.
a. In the Table of Design Points you can see DP 0. Under P1–rpm enter 2000 for DP 1.
b. Enable the check box under Retain for each design point.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 251
Solving a Combustion Simulation for a Sector
2. Once the Results cell is updated, view the files by clicking Files from the View menu.
View >Files
3. Right-click Report.html from the list of files, and click Open Containing Folder from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
252 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You can check the node count and mesh count of the cell zones in the table, Mesh Information for
ICE.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 253
Solving a Combustion Simulation for a Sector
• You can see the boundary conditions, under-relaxations factors, and other setup conditions under
Setup.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
254 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Check the animation of mesh on the cut-plane in the section Solution Data.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 255
Solving a Combustion Simulation for a Sector
• Check the two animations of particle traces in the section Solution Data. Both show the animation
from different views.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
256 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 257
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
258 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 259
Solving a Combustion Simulation for a Sector
• In a Table you can observe the mesh images at various stages of the simulation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
260 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• In two tables you can observe the particle traces images at various stages of simulation from two different
views.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 261
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
262 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• In another Table you can observe the temperature contours on the cut plane. These images are taken
at the end of the simulation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 263
Solving a Combustion Simulation for a Sector
• You can also observe the velocity-magnitude contours on the cut-plane in another Table. These images
are taken at the end of the simulation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
264 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Under Charts you will find plots of Residuals and Last iteration residual corresponding to each time
step
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 265
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
266 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You will find plots for Swirl Ratio, Tumble Ratio, and Cross Tumble Ratio.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 267
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
268 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 269
Solving a Combustion Simulation for a Sector
• You will find plots of AHRR (Apparent Heat Release Rate) and Number of Iterations per Time Step.
Apparent heat release rate is defined as:
where
1.35 (can also be computed from Fluent)
Volume of sector, m3 X number of sectors
Absolute pressure, Pa
Crank Angle
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
270 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 271
Solving a Combustion Simulation for a Sector
• Monitors of Mass-Average phi, Mass-Average Turbulent Kinetic Energy, and Volume Integral
Density are plotted against the crank angle.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
272 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 273
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
274 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• The report also includes the plots of Max Static Pressure, Max Static Temperature, and Max Velocity
Magnitude on the surfaces ice-fluid-piston, ice fluid chamber-top and ice fluid chamber-bottom
at different crank angles.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 275
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
276 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 277
Solving a Combustion Simulation for a Sector
• Chart plotting the Penetration length of injection-0 per Time Step is also included in the report..
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
278 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Monitor plots of Volume Average Static Pressure, Volume Average Static Temperature, and Volume
Static Pressure against Crank Angle can be checked in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 279
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
280 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 281
Solving a Combustion Simulation for a Sector
• Monitor plots of Total mass influid for all injections per Time Step, Total mass injected for all in-
jections per Time Step, and Total mass evaporated for all injections per Time Step against Crank
Angle can be checked in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
282 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 283
Solving a Combustion Simulation for a Sector
• Lastly in the report you can see the chart of rpm vs unburnt-fuel.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
284 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary
This concludes the tutorial which demonstrated the setup and solution for the combustion simulation
of a sector of an IC engine.
5.8. Summary
In this tutorial Diesel Unsteady Flamelet (DUFL) non-premixed combustion model was used to simulate
turbulent combustion process. Pressure trace and heat release rate were examined. You also learned
how to use parametric system in Workbench for varying engine rpm and examining its effect on fuel
burning.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 285
Solving a Combustion Simulation for a Sector
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
286 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 6: Solving a Gasoline Direct Injection Engine Simulation
A three dimensional single cylinder CFD simulation, of a 4-stroke spray guided Gasoline Direct Injection
(GDI) Spark Ignition (SI) engine, is performed in this tutorial. Detailed boundary conditions are shown
in Figure 6.1: Problem Schematic (p. 287). Engine simulation is started from Intake valve opening (IVO)
and fuel is injected during the intake stroke. Homogeneous fuel air mixture is compressed and spark
ignited 15° before compression Top Dead Center (TDC).
This is followed by power stroke and subsequent exhaust stroke. This tutorial illustrates the following
steps in setting up and solving a Gasoline Direct Injection engine combustion simulation.
This tutorial is written with the assumption that you are familiar with the IC Engine system and that
you have a good working knowledge of ANSYS Workbench.
6.1. Preparation
6.2. Step 1: Setting the Properties
6.3. Step 2: Performing the Decomposition
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 287
Solving a Gasoline Direct Injection Engine Simulation
6.1. Preparation
1. Download the workbench_icengine_direct_injection.zip file here.
4. Start Workbench.
2. Right-click ICE, cell 2, and click Properties (if it is not already visible) from the context menu.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
288 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
4. Select Full Engine Full Cycle from the Combustion Simulation Type drop-down list.
8. Click Browse File next to Lift Curve. The File Open dialog box opens. Select the valve profile file
comb_lift.prof and click Open.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 289
Solving a Gasoline Direct Injection Engine Simulation
Note
Before creating a point ensure that the Display Points button is pressed to enable
you to see the point created in the graphics window.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
290 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
d. Under the Point Group 1 enter -0.94526, 5.5096, and -1.6782 for X Coordinate, Y Coordinate,
and Z Coordinate, respectively.
e. Right click and click Generate from the context menu. See Figure 6.3: Spark, Beam and Footprint
Points (p. 293).
Create >Point
d. Under the Point Group 1 enter 0, -6, and 8.58 for X Coordinate, Y Coordinate, and Z Coordinate,
respectively.
e. Right click and click Generate from the context menu. See Figure 6.3: Spark, Beam and Footprint
Points (p. 293).
a. Create a plane.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 291
Solving a Gasoline Direct Injection Engine Simulation
c. Select From Point and Normal from the Type drop-down list.
e. Select the face and then the direction as shown in Figure 6.2: Direction for Normal Defined by (p. 292)
for Normal Defined by.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
292 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
Create >Point
k. Click the button next to Coordinates File text box ( ) and select the file footprint.txt.
m. Retain the default settings for the rest, right-click and click Generate from the context menu. See
Figure 6.3: Spark, Beam and Footprint Points (p. 293).
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 293
Solving a Gasoline Direct Injection Engine Simulation
Note
c. Click next to Inlet Faces, select the face of the inlet valve and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
294 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
d. Click next to Outlet Faces, select the face of the exhaust valve and click Apply.
e. Select the face as shown in Figure 6.4: Cylinder Face (p. 296) for Cylinder Faces and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 295
Solving a Gasoline Direct Injection Engine Simulation
g. Select the three faces shown in Figure 6.5: Symmetry Faces (p. 297) for Symmetry Faces and click
Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
296 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
h. Retain the selection of Full Topology from the Topology Option drop-down list.
l. Select the Spark point created for Spark Points. See Figure 6.3: Spark, Beam and Footprint
Points (p. 293).
m. Select the valve body as shown in Figure 6.6: Intake Valve (p. 298) for Valve Bodies and click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 297
Solving a Gasoline Direct Injection Engine Simulation
n. Select the valve seat face as shown in Figure 6.7: Intake Valve Seat (p. 298) for Valve Seat Faces and
click Apply.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
298 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
p. Right-click IC Valves Data in the Details of InputManager and select Add New IC Valves Data
Group from the context menu.
q. In this IC Valves Data group following the steps for the intake valve, set the other valve body to
ExValve and set its profile to exvalve1. Select the valve seat face of that valve as shown in Fig-
ure 6.8: Exhaust Valve Seat (p. 299).
r. Under IC Injection 1 select the option Beam Origin, Footprint from the Spray Location Option
drop-down list.
s. Select the Beam point created before for Injection Beam Origin. See Figure 6.3: Spark, Beam and
Footprint Points (p. 293). Click Apply.
t. Select the 3 points after creating Footprint as shown in Figure 6.3: Spark, Beam and Footprint
Points (p. 293) for Footprint Point.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 299
Solving a Gasoline Direct Injection Engine Simulation
9. During decomposition you get a warning informing you that the chamber will not be decomposed.
The chamber will be decomposed between the insert_angle and the delete_angle. Click OK to continue.
10. Then you get a warning about the compression ratio validation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
300 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2: Performing the Decomposition
Click OK to continue.
Note
11. Click Show Spray Cone to check the view of the injections.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 301
Solving a Gasoline Direct Injection Engine Simulation
Note
1. Right-click Mesh, cell 4, and click Update from the context menu. In a single step it will first create the
mesh controls, then generate the mesh and finally update the mesh cell.
Note
If you want to check or change the mesh settings click Edit Mesh Settings in Properties
of Schematic A4: Mesh under IC Engine. For this tutorial you are going to retain the
default mesh settings. This meshing process will take a few minutes.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
302 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
Note
1. If the Properties view is not already visible, right-click ICE Solver Setup, cell 5, and select Properties
from the context menu.
2. To set the KeyGrids select Yes from the KeyGrid drop-down list.
3. Click Select KeyGrid Angles to open the KeyGrid Angle Selection dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 303
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
304 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
iii. Retain the default settings and click OK to close the Add Angle dialog box.
c. For angle 564 select Yes for Spark Refinement Around Spark.
Note
While the KeyGrids are being updated in the slave system you can setup the solver.
After all the Keygrids have been updated click Close to close the KeyGrid Angle
Selection dialog box.
4. Click Edit Solver Settings to open the Solver Settings dialog box.
a. In the Basic Settings tab enter 2000 for Engine Speed(rpm) and 0 for ICE Swirl Number.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 305
Solving a Gasoline Direct Injection Engine Simulation
i. In the Browse profile file click Profile Files (.prof) (*.prof) and select CSV Files (.csv) (*.csv).
ii. Select the file massflowrate.csv from your working folder and click Open.
iii. In the Read CSV File dialog box that open rename the Profile Name as massflowrate and
click OK.
You can click Profile Editor and check the profile charts.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
306 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
c. In the Physics Settings tab select SI Engine from the Engine Type drop-down list and Partial Pre-
mixed from the Species Model drop-down list.
ii. Click the Injection tab you can see that three injections have been created.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 307
Solving a Gasoline Direct Injection Engine Simulation
A. Select all three injections —injection-0, injection-1, and injection-2 and click Edit.
Note
You can select all three injections by pressing Ctrl key and then selecting.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
308 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
B. Set the values in the Injection Properties dialog box as shown in the Table 6.1: Injection
Properties (p. 309).
Parameter Value
Material n-octane-liquid
Evaporating Species c8h18<iso>
Temperature 293
Start CA 420
End CA 438.4
Cone Angle 3
Total Flow Rate massflowrate massflowrate
Velocity Magnitude velocity velocity
Max Diameter 300e-6
Mean Diameter 55e-6
Spread Param 3
iii. Click the Spark tab. Select Spark-0 and click Edit to open the Spark Properties dialog box.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 309
Solving a Gasoline Direct Injection Engine Simulation
B. Select Turbulent Length from the Flame Speed Model drop-down list.
A. Select Fixed H/C Ratio from the Inert Model drop-down list.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
310 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
iii. Click Create to open the Create Boundary Conditions dialog box.
Set the Temperature for the for the zones as shown in the table.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 311
Solving a Gasoline Direct Injection Engine Simulation
iv. After creating all the above boundary conditions close the Create Boundary Conditions dialog
box.
e. In the Monitor Definitions tab you can see that four volume monitors have been set on the zone
fluid-ch. You will create some additional monitors.
i. Select the monitor mass-avg-pressure-mon from the list and click Edit.
B. In the Add Quantity/Variable dialog box select Pressure from the Quantity drop-down
list.
C. Select Absolute pressure from the Quantity Subtype drop-down list and click OK.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
312 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
C. Click Create.
iv. For the same zone create a volume monitor by selecting Volume from the Report Type drop-
down list.
v. Similarly for the same zone create a volume monitor with Mass-Average selected from the
Report Type drop-down list. From the Field Variable drop-down list select Phi.
C. Similarly retaining the selection of all-injections, select injected-mass from the Injection
Fate drop-down list and click Create.
D. Create another monitor by selecting vapor-mass from the Injection Fate drop-down list
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 313
Solving a Gasoline Direct Injection Engine Simulation
f. In the Initialization tab you can see the default set values for the various parameters.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
314 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
i. Click Patch to open the to open the Patching Zones dialog box.
ii. For the inlet port, select fluid-invalve-1–port, fluid-invalve-1–vlayer, and fluid-invalve-1–ib
from the list of Zone.
vi. For outlet port, patch zones fluid-exvalve-1–port, fluid-exvalve-1–vlayer, and fluid-exvalve-
1–ib to Pressure equal to -1325 pascal, Temperature equal to 1070 k, and Inert Variable
to 1.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 315
Solving a Gasoline Direct Injection Engine Simulation
vii. For chamber select fluid-ch from the list under Zone and patch the Temperature to 1070 k,
Pressure to 4025 pascal, and Inert Variable to 1.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
316 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
g. In the Solution Control tab enter 419 under Start CA for PDF.
i. Right-click in Save Case/Date group box and select Insert Row Below from the context menu.
ii. Enter 419 for Crank Angle and add Before_inj_st as Comment.
h. In the Post Processing tab you can see that velocity-magnitude contours on the surface of cut-plane
will be saved during simulation and displayed In a table format in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 317
Solving a Gasoline Direct Injection Engine Simulation
E. Click Create.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
318 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 4: Setting up the Simulation
A. In the Add Iso Surface dialog box enter iso-surface-flame for Surface Name.
I. In the Add Quantity/Variable dialog box select User Defined from the Quantity
drop-down list.
iv. To add another post processing image, select iso-surface-flame from the list of Surfaces.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 319
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
320 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 321
Solving a Gasoline Direct Injection Engine Simulation
2. You can run the simulation in parallel with increased number of processors to complete the solution in
less time.
Note
ANSYS Fluent opens. It will read the mesh file and setup the case.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
322 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Running the Solution
• In the Discrete Phase Model dialog box enter 500 for Number of Continuous Phase Iterations
per DPM Iteration and click OK.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 323
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
324 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Note
The Number of Time Steps are automatically calculated from the entered start
and end crank angles.
b. Click Calculate.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 325
Solving a Gasoline Direct Injection Engine Simulation
2. Once the Results cell is updated, view the files by clicking Files from the View menu.
View >Files
3. Right-click Report.html from the list of files, and click Open Containing Folder from the context menu.
• You can check the node count and mesh count of the cell zones in the table, Mesh Information for
ICE.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
326 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 327
Solving a Gasoline Direct Injection Engine Simulation
• You can see the boundary conditions, under-relaxations factors, and other setup conditions under
Setup.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
328 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• The table of the dynamic mesh events can also be seen in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 329
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
330 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 331
Solving a Gasoline Direct Injection Engine Simulation
• Check the animation of mesh on the cut-plane in the section Solution Data.
There are also additional mesh animations on the three injection planes.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
332 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You can check the animation of the mean distance from flame, on the isosurface.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 333
Solving a Gasoline Direct Injection Engine Simulation
• Check the animations of particle traces of three injections. The animation are shown from different
views.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
334 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 335
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
336 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 337
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
338 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 339
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
340 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 341
Solving a Gasoline Direct Injection Engine Simulation
• In a Table you can observe the mesh images at various stages of the simulation.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
342 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
There are also additional mesh animations on the three injection planes.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 343
Solving a Gasoline Direct Injection Engine Simulation
• In another Table you can observe the temperature contours on the iso-surface.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
344 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You can observe the particle traces images at various stages of simulation from two different views in
the different tables.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 345
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
346 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 347
Solving a Gasoline Direct Injection Engine Simulation
• In another Table you can observe the temperature contours on the injection plane.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
348 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You can also observe the velocity-magnitude contours on the cut-plane in another Table.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 349
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
350 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Under Charts you will find plots for the last iteration residual values, Swirl Ratio, Tumble Ratio, and
Cross Tumble Ratio.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 351
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
352 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 353
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
354 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• The report also includes the plots of Mass-Average Absolute Pressure and Mass-Average phi.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 355
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
356 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Chart plotting the penetration length of injection-0 is also included in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 357
Solving a Gasoline Direct Injection Engine Simulation
• Monitors of Mass-Average Turbulent Kinetic Energy, Mass (fluid-ch) and Number of Iterations per
Time Step are plotted against the crank angle.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
358 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 359
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
360 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You will find plots of Area-Weighted Average Static Temperature and Volume of fluid-ch.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 361
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
362 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Along with the chart plotting the penetration length of injection-1 a report for total mass influid for all
injections is also included in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 363
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
364 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• Along with the total mass evaporated for all injections the chart plotting the penetration length of in-
jection-2 is included in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 365
Solving a Gasoline Direct Injection Engine Simulation
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
366 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 6: Obtaining the Results
• You will find plot of AHRR (Apparent Heat Release Rate) and Area-Weighted Average Static Temper-
ature. Apparent heat release rate is defined as:
where
1.35 (can also be computed from Fluent)
Volume of sector, m3 X number of sectors
Absolute pressure, Pa
Crank Angle
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 367
Solving a Gasoline Direct Injection Engine Simulation
• Monitor plot Total mass evaporated for all injections per Time Step against Crank Angle can be
checked in the report.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
368 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements
This concludes the tutorial which demonstrated the setup and solution for the combustion simulation
of a sector of an IC engine.
6.8. Summary
In this tutorial spray was injected in engine using Discrete Phase Model of Fluent. Fuel air mixture was
then spark ignited by using spark model in Fluent. Partially premixed Combustion model was used for
simulating turbulent combustion process. Pressure trace and heat release rate were examined.
You have also learnt on how to use key-grids and use different meshing strategies.
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 369
Release 19.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
370 of ANSYS, Inc. and its subsidiaries and affiliates.