Ansys Forte Users Guide
Ansys Forte Users Guide
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: 2015 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 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
User's Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
User's Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
User's Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
User's Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. vii
User's Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
viii of ANSYS, Inc. and its subsidiaries and affiliates.
List of Figures
1.1. Ansys Forte Simulate: Workflow overview ................................................................................................ 2
2.1. Layout of the Ansys Forte Simulation window ......................................................................................... 8
2.2. Context-sensitive right-click menu for Chemistry node in Workflow tree ................................................ 13
2.3. Links for navigating Workflow tree in Editor panels ................................................................................ 14
2.4. Editor panel’s standard buttons ............................................................................................................. 15
2.5. Edit Defaults dialog for Models > Soot Model > Settings ........................................................................ 15
2.6. Context-sensitive right-click menu in Workflow tree for visibility of Piston boundary condition ............... 17
2.7. Edit Preferences dialog .......................................................................................................................... 19
2.8. Profile Editor selection dialog ................................................................................................................ 20
2.9. Profile Editor with data imported from a CSV file .................................................................................... 21
2.10. Composition Calculator utility ............................................................................................................. 22
2.11. Specifying species composition for an inlet ......................................................................................... 23
2.12. Specifying species composition for a fuel mixture ................................................................................ 24
2.13. Specifying species composition of a multiphase mixture ...................................................................... 25
2.14. Initial Condition Table Editor, populated with spatially resolved data .................................................... 26
2.15. Variable mapping panel, where Ansys Forte variables are mapped to solution variables in an input
file .............................................................................................................................................................. 27
2.16. Point Cloud Editor, populated with a set of 3-D coordinates .................................................................. 31
2.17. Control Surface Editor ......................................................................................................................... 32
2.18. Example of Control Surface and its meshing, as defined by the Control Surface Editor .......................... 33
2.19. Coordinate system relationships .......................................................................................................... 35
2.20. Specifying a sub-volume via Geometry, then selecting, then actual sub-volume displayed .................... 36
2.21. Surface Composition Editor, showing the composition of a selected surface ......................................... 37
2.22. Dispersed Phase Editor displaying particle properties .......................................................................... 38
2.23. Valve Lift Profile Utility ........................................................................................................................ 39
3.1. Nonwatertight surfaces that cause this mesh to leak, because the edges do not align ............................. 42
3.2. Sector Mesh Generator interface ........................................................................................................... 44
3.3. Example topology 1: Mesh built by automated Sector Mesh Generator .................................................. 45
3.4. Example topology 2: Mesh built by automated Sector Mesh Generator .................................................. 45
3.5. Example topology 3: Mesh built by automated Sector Mesh Generator .................................................. 45
3.6. Example topology 4: Mesh built by automated Sector Mesh Generator .................................................. 46
3.7. Example topology 5: Mesh built by automated Sector Mesh Generator .................................................. 46
3.8. Interface for automated Sector Mesh Generator .................................................................................... 46
3.9. Sector mesh bowl profile and topology control point description .......................................................... 48
3.10. Export utility’s Save dialog (for files associated with Quick Start lesson) ................................................ 49
3.11. (a) Red edges indicate a leak in the surfaces that define a watertight mesh. (b) Relaxing duplicate edge
tolerance in a mesh join often repairs this issue ........................................................................................... 50
3.12. Feature Refinement Depth diagram illustrating phi .............................................................................. 53
3.13. RGP table input file: Nitrogen .............................................................................................................. 59
3.14. Definition of mean cone angle and liquid jet thickness in a hollow-cone spray ..................................... 70
3.15. Definition of several injection and nozzle parameters for slit injectors (Left: front view; Right: side
view) .......................................................................................................................................................... 70
3.16. Excerpt of sample thermodynamic data file used in the mechanism, containing absorption coefficient
data for CO, CO2, CH4 .................................................................................................................................. 81
3.17. Imported set of spatially varying temperatures .................................................................................... 87
3.18. Piston-pin offset distance .................................................................................................................... 91
3.19. Intake valve geometry input parameter illustration .............................................................................. 94
3.20. Sector alignment for periodicity .......................................................................................................... 95
3.21. Sector alignment for periodicity .......................................................................................................... 96
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. ix
User's Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
x of ANSYS, Inc. and its subsidiaries and affiliates.
List of Tables
2.1. File menu ............................................................................................................................................... 8
2.2. Edit menu ............................................................................................................................................... 9
2.3. View menu ........................................................................................................................................... 10
2.4. Utility menu .......................................................................................................................................... 10
2.5. Help menu ........................................................................................................................................... 11
2.6. Toolbar buttons in Ansys Forte Simulate ................................................................................................ 11
2.7. Default mouse modes ........................................................................................................................... 16
3.1. TDC and BDC conventions in Forte ........................................................................................................ 90
3.2. Description of time-step-limiting factors ............................................................................................. 104
3.3. Spatially resolved variables that are eligible output to the solution file ................................................. 111
3.4. Spatially resolved variables that are eligible output to the solution file when the Eulerian two-phase flow
simulation is performed ............................................................................................................................ 115
3.5. Spatially resolved variables that are output to the solution file when the Method of Moments soot
model is used ........................................................................................................................................... 115
3.6. Spatially averaged variables that are always output to the .csv files ...................................................... 118
3.7. Spatially averaged variables that are output to the .csv files when the Method of Moments soot model
is used ...................................................................................................................................................... 135
3.8. Summary Data reported in Ansys Forte log, for engine simulations ....................................................... 137
3.9. Spray penetration data available for reporting in custom_spray_penetration.csv .................. 142
3.10. Solution variables that can be monitored by probes ........................................................................... 148
5.1. Ansys Forte standard directory organization ........................................................................................ 172
5.2. Environment Variables corresponding to specific models on Windows systems .................................... 174
5.3. Run-control file names and purposes .................................................................................................. 183
7.1. Scripting contexts and command descriptions .................................................................................... 205
9.1. Forte variables available for System Coupling ...................................................................................... 212
1. Ansys Forte environment variables ......................................................................................................... 226
1. Fuel species ........................................................................................................................................... 233
2. Fuel library species identification properties ........................................................................................... 235
3. Fuel library species single-temperature properties ................................................................................. 235
1. Summary of the Ansys MFL-based pre-reduced reaction mechanisms included with Forte ...................... 240
1. Fuels for which prebuilt laminar flame speeds are available as part of the Table Library option ................ 253
2. Mixture conditions covered by the built-in laminar flame-speed tables available in the Table Library op-
tion .......................................................................................................................................................... 255
3. Mixture conditions covered by the built-in laminar flame-speed tables available in the Table Lookup op-
tion .......................................................................................................................................................... 256
1. CGNS Utility subprograms and descriptions ........................................................................................... 259
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xi
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xii of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Forte User's Guide Introduction
Ansys Forte fluid-dynamics software specializes in the simulation of combustion processes in an internal
combustion engine, using a highly efficient coupling of detailed chemical kinetics, liquid fuel spray and
turbulent gas dynamics. An Ansys Forte simulation solves the full Reynolds-averaged Navier-Stokes
(RANS) equations with well established flow turbulence models. Differentiated from other CFD software,
however, the Ansys Forte CFD simulation package employs advanced spray models that dramatically
reduce grid-resolution requirements and time-step dependencies of simulations. Ansys Forte software
also introduces an innovative, advanced chemistry solver module. This capability enables the direct use
of reaction mechanisms containing hundreds of chemical species with simulation times usually associated
with mechanisms that are orders of magnitude smaller. Combining the advanced chemistry solver and
the multi-component fuel vaporization models opens the door to simulation of realistic fuel surrogates
in 3-D engine models. In using these advanced fluid models, you have the choice of employing auto-
matic, on-the-fly mesh generation or state-of-the-art mesh-moving algorithms with pre-generated body-
fitted meshes. A sector-mesh generator, included in Ansys Forte, facilitates simulation of symmetric
systems using the body-fitted mesh-movement approach. Finally, in addition to the modeling capabil-
ities, the Ansys Forte user interface provides a guided user experience for setup and simulation.
This manual provides an overview of the user interface and workflow, as well as a high-level view of
the model options. The Forte Quick Start Guide provides detailed instructions for a sample problem to
help you get started using Ansys Forte. To access a product's documentation and tutorials, visit the
Ansys Help site. The tutorial files give examples of a variety of problems, including spark, spray, and
diesel lessons, and links to third-party applications, such as GT-SUITE. More detail on the modeling ap-
proach is available in the Ansys Forte Theory Manual.
• Simulate - start here to set up and run the model, including selection of a mesh and chemistry data,
specification of engine and model parameters, job execution, and real-time monitoring of runs.
• Monitor - use this to launch a job progress monitor, which allows you to create plots either while
the job is running or after it has completed.
The Launch window also contains the Edit Launcher Preferences icon, which opens a panel
to modify the memory usage of the Ansys Forte Simulate or Monitor sessions. These memory settings
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Forte User's Guide Introduction
control only the user-interface memory usage, or the Java Virtual Machine (JVM) settings. The memory
usage of the actual Ansys Forte flow simulations are dynamically determined.
Note:
After modifying the memory preferences with the Edit Launcher Preferences icon controls,
those changes will not take effect until the next time the Simulate or Monitor interface is
opened.
Once launched, the Simulation window will display a Workflow tree in its left-hand panel. The nodes
in this tree take you through project set-up and job execution tasks, working from top to bottom. Fig-
ure 1.1: Ansys Forte Simulate: Workflow overview (p. 2) provides a high-level view of the Simulation
tasks. Once the job is complete, Ansys EnSight is a recommended tool for visualizing results.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
The Ansys Product Improvement Program
How to Participate
The program is voluntary. To participate, select Yes when the Product Improvement Program dialog
appears. Only then will collection of data for this product begin.
Data We Collect
The data we collect under the Ansys Product Improvement Program are limited. The types and amounts
of collected data vary from product to product. Typically, the data fall into the categories listed here:
Hardware: Information about the hardware on which the product is running, such as the:
System: Configuration information about the system the product is running on, such as the:
• country code
• time zone
• language used
• time duration
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Forte User's Guide Introduction
Session Actions: Counts of certain user actions during a session, such as the number of:
• project saves
• restarts
• toolbar selections
• number and types of entities used, such as nodes, elements, cells, surfaces, primitives, etc.
• time and frequency domains (static, steady-state, transient, modal, harmonic, etc.)
• the solution controls used, such as convergence criteria, precision settings, and tuning options
• solver statistics such as the number of equations, number of load steps, number of design points,
etc.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
The Ansys Product Improvement Program
• actual values of material properties, loadings, or any other real-valued user-supplied data
In addition to collecting only anonymous data, we make no record of where we collect data from. We
therefore cannot associate collected data with any specific customer, company, or location.
No, your participation is voluntary. We encourage you to participate, however, as it helps us create
products that will better meet your future needs.
No. You are not enrolled unless you explicitly agree to participate.
3. Does participating in this program put my intellectual property at risk of being collected or discovered
by Ansys?
Yes, you can stop participating at any time. To do so, select Ansys Product Improvement Program
from the Help menu. A dialog appears and asks if you want to continue participating in the program.
Select No and then click OK. Data will no longer be collected or sent.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Forte User's Guide Introduction
No, the data collection does not affect the product performance in any significant way. The amount
of data collected is very small.
The data is collected during each use session of the product. The collected data is sent to a secure
server once per session, when you exit the product.
Not at this time, although we are adding it to more of our products at each release. The program
is available in a product only if this Ansys Product Improvement Program description appears in the
product documentation, as it does here for this product.
8. If I enroll in the program for this product, am I automatically enrolled in the program for the other Ansys
products I use on the same machine?
Yes. Your enrollment choice applies to all Ansys products you use on the same machine. Similarly,
if you end your enrollment in the program for one product, you end your enrollment for all Ansys
products on that machine.
9. How is enrollment in the Product Improvement Program determined if I use Ansys products in a cluster?
In a cluster configuration, the Product Improvement Program enrollment is determined by the host
machine setting.
10. Can I easily opt out of the Product Improvement Program for all clients in my network installation?
c. Change the value from "on" to "off" and save the file.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 2: Overview of Ansys Forte Simulation
The Ansys Forte Simulate window consists of sub-panels, a top-level menu bar, a ribbon, and a toolbar
containing button shortcuts to common tasks. Commands for general tasks are located in the menus
accessible from the menu bar across the top of the Ansys Forte window. Frequently used commands
are available through the ribbon's and toolbar’s button shortcuts. Figure 2.1: Layout of the Ansys Forte
Simulation window (p. 8) provides a map of the different areas within the Simulate window, which
provide quick access for different activities during project setup. Next we describe the main features
of the Ansys Forte Simulation window.
Setting up a simulation starts by defining the computational mesh that will represent the geometry of
the system. Ansys Forte provides several options for defining the computational mesh, which allows
much flexibility in creating a workflow that best suits the needs of your particular simulation. You can
load in just the definitions of the geometric surfaces that bound the system from an Ansys Fluent, CGNS,
or other mesh surface file, and then use the automatic mesh-generation option, or you can load in a
pre-defined, structured body-fitted mesh. For in-cylinder-only engine simulations, you also have the
option to use Ansys Forte's guided Sector Mesh Generator to generate a body-fitted sector mesh from
basic piston-bowl profile information.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Overview of Ansys Forte Simulation
Note:
Due to an incompatibility issue with OpenGL, some AMD Radeon graphics cards (such as
AMD Radeon Pro WX5100) may cause application crashes or display issues when running
under Linux operating systems.
The ribbon makes the menu commands available in a more accessible layout. Each icon on the ribbon
is associated with a command and the icons are labeled and grouped into related categories as shown
in Figure 2.1: Layout of the Ansys Forte Simulation window (p. 8).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Window, Ribbon, and Menus
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Overview of Ansys Forte Simulation
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Toolbar Shortcuts
Command Description
Ansys Forte Opens the entry page listing the Ansys Forte Help. The default location
Help is the Ansys Help site
Release Notes Opens to the current Forte Release Notes.
Best Practices Opens to a document providing guidance on best practices in a variety of
Forte simulations.
Forte Quick Opens the Forte Quick Start Guide, with introductory tutorial exercises
Start Guide to help you become acquainted with Forte.
Forte Theory Opens theAnsys Forte Theory Manual .
Manual
Forte Tutorials Opens the Forte Tutorials, which provide example cases and access
to the associated sample files.
Ansys Forte Opens this Ansys Forte User's Guide (p. 1).
User's Guide
Ansys Product Provides link to information about this Ansys quality program.
Improvement
Program
About FORTE Provides version number, patch details, and other information about
the installed software.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Overview of Ansys Forte Simulation
Edit > Profile Editor Launches the Profile Editor for creating profiles
or editing profiles saved to the project. See
Entering Profile Data (p. 16) and Profile
Editor (p. 20) , for more details on editing
profiles.
Edit > Mixture Editor Launches the Mixture Editor for creating
mixtures, or editing mixtures or compositions
saved to the project. See Mixture Editor (p. 22)
, for more details on editing mixtures.
Edit > Dispersed Phases Launches the Dispersed Phases Editor for
Editor editing surface composition and dispersed
phase properties saved to the project. See Solid
Phase Editor and Dispersed Phase Editor for
Particle Tracking (p. 37) , for more details on
editing solid phase properties.
Edit > Flame Table Launches the Flame Speed Table Editor for
Editor creating tables of laminar flame speeds for use
in the flame-propagation model or editing
flame-speed tables saved to the project. See
Flame-Speed Table Editor (p. 27) , for more
details.
Edit > Edit Initial Edit initial-condition tables.
Condition Tables
Edit > Solution Criteria Edit solution criteria that determine a
steady-state condition based on location and
solution variables. See Solid Phase Editor and
Dispersed Phase Editor for Particle
Tracking (p. 37) , and Steady-State
Simulation (p. 107) , for more details.
Edit > Edit Boundary Edit boundary-condition tables.
Condition Tables
Edit > Edit Parameter Edit parameter studies.
Studies
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Workflow Tree
Many actions are available within the Workflow tree by right-clicking and selecting from the context
menu commands (see Figure 2.2: Context-sensitive right-click menu for Chemistry node in Workflow
tree (p. 13) ). The current position in the Workflow tree is reflected by a list of links in the Editor panel
to allow rapid navigation among Simulate Interface elements, as shown in Figure 2.3: Links for navigating
Workflow tree in Editor panels (p. 14) .
Figure 2.2: Context-sensitive right-click menu for Chemistry node in Workflow tree
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Overview of Ansys Forte Simulation
Note:
In Editor panels, you must use the Apply button at the bottom of the panel before any
changes to the inputs will take effect.
• : Edit Default parameter values for this panel. This button opens a dialog with a table allowing
you to enter user-specified defaults that override the system defaults for that particular panel. The
dialog also displays the tool tip for each parameter in the table. There is also a button to restore
the system defaults. See Figure 2.5: Edit Defaults dialog for Models > Soot Model > Settings (p. 15)
.
• Apply: Apply the panel values to the inputs. Changes do not take effect until the Apply button is
clicked.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Editor Panels
Figure 2.5: Edit Defaults dialog for Models > Soot Model > Settings
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Overview of Ansys Forte Simulation
Many Editor panels contain a feature in the upper-left corner of one or more sub-panels that allows
expanding or collapsing of the subpanels. This allows you to hide detail of subpanels when you are
not using them. The default state of the expand/collapse feature (that is, whether always expanded
or always collapsed) can be configured in User Preferences (see User Preferences (p. 18) ).
Entities within the 3-D View can be selected with a combination of keypress and left-mouse click.
Once an item or group of items have been selected, right-clicking displays a context menu. Selecting
an entity in the 3-D View area will also select the coresponding item on the Workflow tree.
To perform a:
• Single-entity selection, left-click the entity in the 3-D View while holding the space bar key.
• Multiple-entity selection, left click the entities in the 3-D View while holding the Ctrl key.
• "Lasso” rectangle selection, left click and drag a box in the 3-D View area while holding the Shift
key.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
3-D View Panel
The Visibility tree also displays the current color of each item next to the item's name. To change the
color of an item, right-click the item, select Color in the context menu, and then select a new color
from the Color Selector (or double-click the color sample associated with the item in the Visibility
tree). In the Workflow tree, right-click the item.
Figure 2.6: Context-sensitive right-click menu in Workflow tree for visibility of Piston boundary
condition
To turn ON or OFF the visibility of items, use the Alter Visibility command from the toolbar or the
View menu. This launches a dialog that allows multi-selecting from a list or through screen selection.
Screen selection is enabled using the Select from screen button in the pop-up window and
then using Ctrl-click of the mouse to select items in the 3-D View panel. Once a selection is made,
use the Hide or Show button in the dialog to alter the visibility of the selected items.
To adjust other display attributes, such as visibility of the object’s wireframe, faces, or surface mesh
lines, right-click the item in the Workflow tree or Visibility tree and select the corresponding toggle
to switch between ON / OFF. Note that these changes can also be made globally for the whole category
of items using the parent node in the Visibility tree. The right-click context menu also offers controls
for the following:
• Opacity: Allows specifying opacity of Opaque, High, Medium, Low for the selected items in the
Visibility tree.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Overview of Ansys Forte Simulation
• Instancing: Opens a dialog for specifying parameters for multiple instances of the selected items.
You can specify the number of new instances and translate and rotate their position relative to the
original. Note that this is for visibility purposes only; no new fundamental entities are created.
• Order: Allows specifying the relative drawing order of selected items to control which items appear
on top. Select Bring Forward or Send Backward to change the stacking order.
User preferences information is stored in a file on a per-user basis. Deleting the file returns the user
preferences to as-installed default settings; the file can also be shared between users or different com-
puters to establish common working environments.
Note:
Default values of parameters can also be controlled by the user, through context-sensitive
dialogs available in each Editor panel, as discussed in Editor Panels (p. 14). This information
is stored globally for each user along with the User Preferences described here.
To specify preferences for memory usage of the Simulation sessions, use the Launcher Preferences Ed-
itor, available from the Ansys Forte Launcher, as described in Java Memory Settings (p. 226). Memory
usage of non-interface components is dynamically determined and automatically managed.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
User Preferences
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Overview of Ansys Forte Simulation
Whenever an item in an Editor panel requires or allows profile data, the Edit Profile button to
the right of the selection will open the Profile Editor. A general link to the Profile Editor is also provided
as the Profiles command on the Edit menu and the Profile Editor button on the toolbar. The Profile
Editor (Figure 2.9: Profile Editor with data imported from a CSV file (p. 21) ) allows you to manually
enter tabular data into columns and rows, or you can paste into the columns tabulated numbers that
have been cut from Microsoft ® Excel ® or a similar program. It also provides sine and square profiles
ready to use or modify by clicking the buttons in the 2D Profile list (Figure 2.9: Profile Editor with
data imported from a CSV file (p. 21)). Once you decide on the profile type you want, click the type
or Create new... and then the pencil button to open the Profile Editor interface.
To paste text from an external table, first set the proper units for the X and Y columns of the profile.
Then copy the table text you want to enter into Ansys Forte from the source program (such as Excel),
use the "select all" command (Ctrl-A) in the Ansys Forte table, and then Paste (Ctrl-V). Alternatively,
you can use the external program to save the data to a comma-separated values (CSV) text file, and
then use the Import from CSV option. Once the data is entered into the columns, a plot of the profile
should appear in the plot panel within the Profile Editor panel as shown in Figure 2.9: Profile Editor
with data imported from a CSV file (p. 21) . At the bottom left of the panel, you can change the name
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
of the profile and then use the buttons on the lower right to Save the results to the project. This will
return you to the Editor panel from which the Profile Editor was launched. Make sure that the newly
edited or created profile is now selected for the desired option in the Editor panel.
Figure 2.9: Profile Editor with data imported from a CSV file
1. Intake port/inlet composition for engine cases with valves and ports.
2. Exhaust port initial composition for engines cases with valves and ports.
3. In-cylinder initial composition at IVC for engine cases that are in-cylinder only.
The Composition Calculator can be accessed from the Utility menu or the Composition Calculator
button on the toolbar. Once the fuel mass, fuel composition, air flow data, and EGR data are
provided in the dialog, the utility will calculate the initial (and boundary condition) composition
automatically and the results will be displayed in a table format, as illustrated in Figure 2.10: Compos-
ition Calculator utility (p. 22) . Click the Create Mixture button to save the different sets of results
as gas mixtures and use them when such composition input is required. To save the current IVC session,
click the Save button. A saved session as an .ftivc file can be loaded into the calculator using
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Overview of Ansys Forte Simulation
Open the Mixture Editor from the Edit menu or the Mixture Editor button on the toolbar, or
from a panel, such as Initialization, with a Composition parameter. Two types of mixtures can be
defined:
• Fuel mixture, which refers to the liquid fuel used in all types of injectors in spray models (see
Solid-Cone, Hollow-Cone, Slit, and VOF Injector Panels (p. 65)).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
For a gas mixture, specify a species composition, by first selecting Mass Fraction or Mole Fraction,
and then use the Add Species button to select the chemical species that are present in the gas
mixture (see Figure 2.11: Specifying species composition for an inlet (p. 23) ). You can add any
chemical species that have been defined in the gas-phase kinetics file used by the project (see
Chemistry (p. 56). In the resulting table, specify the associated fractions (in the units selected) for
each species. Note that if you have table data with the same layout and species order, you can use
cut/paste to enter the data in this table. When all the species data are entered, you can optionally
use the Normalize button to assure that the resulting species composition sums to 1.0.
Note:
To paste values from Excel®: Place your cursor in the upper-left corner of the table and
paste table values from Excel (including case-sensitive species names). The table will be
populated with these values.
For a fuel mixture, define mixture compositions in a similar way. Figure 2.12: Specifying species com-
position for a fuel mixture (p. 24) provides an example of a seven-component fuel mixture. Use the
Add Species button to select the chemical species of the fuel. Note that the chemical species must
be defined in the gas-phase kinetics file used by the project. Then select the Physical Properties for
the species from Ansys Forte’s built-in fuel data library. Then, specify the Mass Fraction of the species
in the mixture.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Overview of Ansys Forte Simulation
Note:
Generally, Species selected from the gas-phase kinetics file should be consistent with
Physical Properties. However, when using a simplified gas-phase mechanism, it is possible
that a certain desired fuel component is not in the mechanism. An acceptable modeling
approach is to use a chemically similar species to model such a fuel component. One ex-
ample is the use of n-heptane as a chemical species to simulate diesel combustion problems.
When simulating an Eulerian two-phase flow (see Gas-Phase and Eulerian Two-Phase Flow Simula-
tions (p. 59)), you may define a multiphase mixture in either an initialization or at an inlet. The mul-
tiphase mixture consists of both a gas phase and a liquid phase, and you can specify mixture compos-
itions in each phase. In the gas phase mixture, use the Add Species button to select species from
the gas-phase kinetics file. In the liquid phase mixture, use the Add Species button to select species
from the surface kinetics file. For each species, specify its Mass Fraction or Mole Fraction in the
mixtures. You can optionally use the Normalize button to assure that the resulting species composition
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
sums to 1.0 in each mixture. Next, specify the mass fraction of the whole liquid phase with the Liquid
Phase Fraction option.
Note:
In the multiphase mixture setting, when Liquid Phase Fraction is 0, the mixture is a pure
gas mixture. When Liquid Phase Fraction is 1, the mixture is a pure liquid mixture.
Tip:
Figure 2.13: Specifying species composition of a multiphase mixture (p. 25) gives an example of a
multiphase mixture. The gas phase (“Phase 1”) contains nitrogen and steam, and the liquid phase
(“Phase 2”) contains water. The liquid phase's mass fraction is 0.8.
Initial Conditions panel or from the Edit menu or the button on the toolbar. Initial Condition
tables take the format of a .ftbl file (see Appendix H: File Formats (p. 265) ), a .cgns file (see Ap-
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Overview of Ansys Forte Simulation
pendix G: CGNS Utilities (p. 259) and Appendix H: File Formats (p. 265)), or a generic columnar set of
.csv data. The Initial Conditions Table Editor displays the specified set of data, and provides the
option to import replacement data from a file source, as shown in Figure 2.14: Initial Condition Table
Editor, populated with spatially resolved data (p. 26) . Note that X,Y,Z coordinate data are required
content for initial conditions data.
Figure 2.14: Initial Condition Table Editor, populated with spatially resolved data
If you import a .cgns or .ftres file, then you have the option to select the spatially resolved data
from lists of solution sets ("bases") and their "zones". For example, the CGNS-formatted solution files
(.ftres) from an Ansys Forte simulation have each parameter study stored in a base, and each time
point stored in a zone. Specifying the base and zone effectively selects the desired solution point.
Next you map the corresponding Ansys Forte variables, as shown in Figure 2.15: Variable mapping
panel, where Ansys Forte variables are mapped to solution variables in an input file (p. 27) .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
Figure 2.15: Variable mapping panel, where Ansys Forte variables are mapped to solution
variables in an input file
If, rather than a .cgns or .ftres file, a .csv, .dat, or .ftbl file is imported, the mapping panel’s
appearance is identical except that the base and zone options are absent.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Overview of Ansys Forte Simulation
The look-up table is a file that contains a series of laminar flame-speed data points used to interpolate
to an appropriate, local flame speed (unstretched, ) during the simulation. A table can be created
or edited with the Flame-Speed Table Editor. Access the Flame-Speed Table Editor from the Edit
menu or the Flame-Speed Table button on the toolbar. The pre-installed flame-speed tables
provided with Ansys Forte are described in Appendix F: Flame-Speed Tables Installed with Ansys
Forte (p. 253). For details of the flame model, see Flame Model (p. 60).
The flame-speed table is of the following format (see Example 2.1: Excerpt from flame-speed table
file demonstrating .cktbl format (p. 28) ):
Line 2: Names of the dimensions in the manifold. For a flame table, this consists of unburned_tem-
perature(K), pressure(Pa), equivalence_ratio(), and EGR_rate(). The look-up table uses these four
manifold dimensions to find the interpolated flame speed.
Line 4: Names of the scalars; in this case, the names of the manifold plus the flame_speed(m/sec).
Line 5+: Each subsequent line contains a single scalar point of Temperature, Pressure, Equivalence
Ratio, Exhaust Gas Recirculation rate, and flame speed. The nature of the interpolation does not require
that these points be equidistant in the manifold dimensions.
Equivalence ratio is given as the atomic ratio of 2 carbons plus ½ hydrogens over oxygen. The EGR
rate is the fraction of Exhaust Gas Recirculation (EGR) flow rate relative to total intake flow rate, where
0.0 corresponds to no EGR and 1.0 corresponds to 100% EGR. It is defined as
where X EGR is the total intake mole fraction of the EGR species in the inlet gas mixture, X fuel is the
total mole fraction of the fuel species, and X air is the total mole fraction of air. The sum of all fractions
of EGR species should be 1.0.
In the data directory of the Ansys Forte installation are 5 sample flame-speed look-up table files
for the species methane, ethane, propane, heptane, and iso-octane.
Example 2.1: Excerpt from flame-speed table file demonstrating .cktbl format
4
unburned_temperature(K) pressure(Pa) equivalence_ratio() EGR_rate()
5
unburned_temperature(K) pressure(Pa) equivalence_ratio() EGR_rate() flame_speed(m/sec)
5.00E+02 1.00E+06 4.00E-01 0.00E+00 2.48E-02
6.00E+02 1.00E+06 4.00E-01 0.00E+00 5.54E-02
7.00E+02 1.00E+06 4.00E-01 0.00E+00 1.15E-01
8.00E+02 1.00E+06 4.00E-01 0.00E+00 2.20E-01
9.00E+02 1.00E+06 4.00E-01 0.00E+00 4.10E-01
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
• Real Gas Property (RGP) File Contents in the CFX-Solver Modeling Guide
• Real Gas Property (RGP) File Format in the CFX-Solver Modeling Guide
Real Gas Property (RGP) files that have been used in Ansys CFX can also be used in Ansys Forte.
Note:
You can create RGP table files from the NIST REFPROP material properties using the RGP Generator
command line tool. The RGP Generator produces RGP files for the liquid and vapor states of a pure
substance. The liquid and vapor phases can be saved either individually in separate files or in two
separate RGP data sections in the same single file. The generate tables include:
The superheat table points are spaced adaptively within the specified error tolerance. The liquid
properties as a function of temperature and pressure will be available in your simulation once you
read the liquid superheat tables into your session.
The metastable states are extrapolated as far as possible. Beyond that, the liquid tables are filled
with the vapor data, and vice versa.
Two saturation table sections are included: one is discretized based on the liquid saturation data
and the other based on the vapor saturation data. Typically, the two discretization data are not the
same.
The commands can be executed in the System Coupling command console (Python), which is launched
by running the following command:
• Windows:
%AWP_ROOT211%\SystemCoupling\bin\systemcoupling.bat
• Linux:
$AWP_ROOT211/SystemCoupling/bin/systemcoupling
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
Overview of Ansys Forte Simulation
mat = arp.RefPropLib()
fluidList = ['fluids/water.fld']
mat.setup(fluidsPath, fluidList)
interpError = 1.0e-3
Tmin = 300.0
Tmax = 700.0
Pmin = 100000.0
Pmax = 25000000.0
# Generate both the liquid and vapor components, independent settings possible
h2ollow = arp.RGPLiquid("H2OL", Tmin, Tmax, Pmin, Pmax, interpError)
h2ovlow = arp.RGPVapor("H2OV", Tmin, Tmax, Pmin, Pmax, interpError)
arp.generateRGPfile("H2O-low.rgp", h2ollow, h2ovlow)
# Generate both the liquid and vapor components in the RGP file in one go
h2omed = arp.RGPSettings("H2O", Tmin, Tmax, Pmin, Pmax, 1.0e-4, arp.ADAPT_AUTO_TP)
arp.generateRGPfile("H2O-med.rgp", h2omed)
# Generate just the vapor component in the RGP file, for entire range
h2ovapor = arp.RGPVapor("H2OV", interpError)
arp.generateRGPfile("H2O-vapor.rgp", h2ovapor)
To select points with the mouse in the 3-D View, click the mouse icon in the upper-right corner
of the Editor. Then, at each surface point to be selected, ctrl-click. Once a point is picked, it will be
marked in the 3-D View window and its coordinates will automatically show in the table.
Note:
In the case that the points are expected to be located on the desired wall surface, we re-
commend visualizing this surface only while making the other surfaces invisible during
the point-picking.
Alternatively, you can generate the points using another ANSYS application (for example, ICEM-CFD),
record their coordinates in a .csv file, and directly import them into the table mentioned above. To
do this, simply click the Load CSV button in the Point Cloud Editor, and select the .csv file.
Note:
In the case that the point cloud is used for Wall Sampling, the specified point locations
must be close enough to a wall surface so that the heat transfer variable output is valid.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
To export or import .csv-formatted data, click the corresponding buttons in the Editor’s lower right
corner. In the .csv file, the x-, y-, and z- coordinates are reported in centimeters (cm) in three columns,
respectively, with no heading.
Figure 2.16: Point Cloud Editor, populated with a set of 3-D coordinates
Use the Control Surface Editor (see Figure 2.17: Control Surface Editor (p. 32)) to define the control
surface as well as its meshing. It is accessed from either a Monitor Probe’s Point Cloud Selector or
from the Libraries menu. Use the Plane Origin and Plane Normal Direction to define the control
surface (that is, the clip plane). Both can be specified by using a specified Reference Frame. In the
example shown in Figure 2.17: Control Surface Editor (p. 32), the plane’s Normal Direction is set to
be the z-direction of the Global Origin Reference Frame. (For more information about how a Reference
Frame is specified, refer to Reference Frames (p. 34).) You can then select the Packing option to
specify whether the meshing is square or triangular type, and indicate a grid spacing for the mesh.
The resulting control surface and its meshing are displayed in the 3-D View window, as illustrated in
Figure 2.18: Example of Control Surface and its meshing, as defined by the Control Surface Editor (p. 33).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
Overview of Ansys Forte Simulation
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
Figure 2.18: Example of Control Surface and its meshing, as defined by the Control Surface
Editor
Once the control surface is defined, the auto-generated point cloud is assumed to be collocated on
the mesh nodes. You may save the control surface and access it when setting up a Monitor Probe of
General Data Sampling type.
the Parameter Study button next to a parameter whose value is to be varied. Clicking this
button launches a wizard that adds runs to the simulation using parameter values obtained from the
wizard. The parameter values may be further edited in the Parameter Study utility that can be launched
from the toolbar menu with the parameter-study button once a parameter variation has been defined.
On the Editor panel where the nominal value is defined, the parameterized variable's label will be
colored blue to indicate it is involved in a study.
The following examples illustrate some of the possible uses of the parameter study feature.
To vary a parameter consisting of a numerical value (either dimensional or dimensionless), click the
Parameter Study button next to the parameter. A series of dialogs is displayed with which an
initial interval of values may be generated. Once the wizard is finished, the values appear in a Run
Table and may be edited further.
To vary a parameter consisting of a check box (boolean) click the Parameter Study button next
to that parameter. Select how the value will vary by using the pattern tool provided by the wizard.
Once the wizard is finished, the values appear in a Run Table and may be edited further.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Overview of Ansys Forte Simulation
Some parameters are provided as a drop-down list of two or more options. Vary these parameters
by clicking the Parameter Study button next to the selector and using the pattern tool provided
by the wizard.
Note:
Some check-box and drop-down-list parameters conditionally enable or disable other, child
parameters. When varying such parameters, it is important to specify all required child
parameters accurately, even though the child parameters may only be used in a subset of
the defined runs. Ansys Forte automatically checks model settings for consistency but care
should still be taken to make sure that model parameters are entered correctly in these
situations, as the settings may be less visible to the user
To create a reference frame, either specify the origin of the reference frame in the editor panel’s drop-
down list as Global Origin, or create a new origin for the reference frame. Another way to create a
new frame is to go to Geometry > Reference Frames on the Workflow tree and click the New Reference
Frame button. Enter a distinctive name for the reference frame. It is added to the items on the
Workflow tree. Specify the properties, including Origin, Coordinate System and coordinate values,
and optional rotation.
Locations, such as the New Origin, can be specified by selecting components in the 3-D window with
the Select from screen button, by clicking the magnifying glass button to select an existing
location from the list in the panel, or by listing coordinates. Click Apply.
Note:
The Z-axis always defines the primary axis for cylindrical and spherical coordinate point,
direction, and velocity specifications.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
Note:
Time-frame controls are hidden by default; to enable them, go to Edit > Preferences, and
add a check to the Enable Reference Time Frame Controls check box.
The New Clip Plane button on the icon bar opens the Clip Editor panel, allowing you to specify
the clip plane coordinates. This creates a cutting plane to split the currently visible surfaces. Any
surface that is in front of a clip plane is culled from the display. This is useful for seeing features on
the inside of a closed watertight surface.
To specify a clipping plane, set the origin and the normal direction of the plane. This specifies a
clipping plane to the 3-D renderer, so that items in front of this clipping plane are not drawn in the
display. An example of the clipping plane in use is shown in Figure 2.20: Specifying a sub-volume via
Geometry, then selecting, then actual sub-volume displayed (p. 36). The coordinates can be specified
by selecting components in the 3-D window with the Select from screen button, by clicking
the magnifying glass button to select an existing location from the list in the panel, or by
manual coordinates for a reference frame. Click Apply.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Overview of Ansys Forte Simulation
2.8.14. Sub-Volumes
New Sub-Volume : Creates a sub-volume for specifying a uniform mesh size, including a mesh
size that is larger than the global mesh size. This mesh control may be useful in allowing certain regions
of the domain to remain coarse when refinement is not needed. For example, this control allows
keeping the port region coarse when valves are closed. Since the sub-volumes also identify distinct
regions of the domain, they can also be used as the basis for defining initial conditions. See Config-
uration of Initialization Regions for Automatic-mesh Generation (p. 97) for details.
Figure 2.20: Specifying a sub-volume via Geometry, then selecting, then actual sub-volume
displayed
A sub-volume mesh control requires a material point. The material point defines the nature of the
control: if the material point is placed within the sub-volume, the control will act on the sub-volume.
If the material point is placed outside of the sub-volume (but still within the domain) the control
will act on the volume not enclosed by the sub-volume.
Use the menu command Utility > Compression Ratio Calculator to open the utility.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
The utility uses the No-Hydro CR Calculation method, which runs a single time step at two time
points α and β; these are the points when the crank angles are at TDC and BDC. This method uses
the solver mesh generation to get an accurate calculation of the in-cylinder volume at each time
point.
2.8.16. Solid Phase Editor and Dispersed Phase Editor for Particle Tracking
The Solid Phase Editor is used for specifying particles when particle-size tracking is turned on via the
specification of a dispersed-phase material in the chemistry model. The Solid Phase Editor is only
needed when particles are introduced from the outside or prior to the simulation start, such as the
initial particles present, or the particles in an inlet. You can access the Solid Phase Editor from the
Edit menu or the Solid Phase Editor button on the toolbar, or from the Initial Conditions or Inlet
editor panels. Specifying the solid-phase surface fraction uses an editor similar to the one for gaseous
composition described in Mixture Editor (p. 22). First, select a surface phase, then add all available
surface species to the surface fraction composition. The surface species activity chart is displayed
after the data is saved, as shown in Figure 2.21: Surface Composition Editor, showing the composition
of a selected surface (p. 37).
Figure 2.21: Surface Composition Editor, showing the composition of a selected surface
Use the Edit > Dispersed Phase Editor menu command or the Dispersed Phase pull-down and
button on the Initialization and other composition-related panels to set up the description of a dis-
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Overview of Ansys Forte Simulation
persed solid phase. In the dialog, specify the number density, volume fraction or mass density, and
area, and give a name to the dispersed phase, as shown in Figure 2.22: Dispersed Phase Editor display-
ing particle properties (p. 38). This dispersed phase description (for example, "Dispersed1" in Fig-
ure 2.22: Dispersed Phase Editor displaying particle properties (p. 38)) can then be applied as an ini-
tialization or a boundary condition.
To provide input to the utility, either select a valved boundary condition, or select a profile and activ-
ation threshold. An optional input is available for the case where the deactivation threshold is different
from the activation threshold.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Entry and Management Tools
A new profile is generated when the Save as New Profile button is clicked. If you select the Valved
Boundary Condition here, then the boundary conditions using the old profile are automatically updated
to use this new one.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 3: Modeling Guide
Ansys Forte has been optimized extensively for modeling reciprocating internal combustion engines
with accurate geometry, spray physics and chemistry. The following modeling discussion follows the
Simulation Workflow tree and presents common modeling set-up tasks and best-practice guidelines
for combustion simulations. For a more detailed explanation of the underlying models, refer to the
Ansys Forte Theory Manual .
Note:
Before starting Ansys Forte, you may want to go through some preliminary tasks, such as
setting memory environment variables and establishing the parallel-computing environment.
See Workflows: Preparing and Executing Runs (p. 167) .
The icon bar for the Geometry node itself provides icons relating to mesh creation, including Launch
Sector Mesh Generator, Import Geometry, Export Geometry, and Merge Meshes, Join Meshes, and
Measure Geometry. These actions are described in the sub-sections below.
For more details on the following items in the Geometry tree, read these sections in Overview of Ansys
Forte Simulation (p. 7):
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Modeling Guide
Note:
The Invert Normals command for surfaces is supported by the View Normals command,
which makes the Normals visible. View Normals is available as a right-click command in the
Visibility tree (which can be displayed on the right side of the Simulate panel, using the Edit
Preferences command). The displayed normals look like needles projecting from the exterior
face of the surfaces. If a surface does not have the needles pointing in the desired direction
from the exterior face, use the Invert Normals command. (The Forte Quick Start Guide
provides an example of inverting Normals.
Note:
These two conditions are not required for body-fitted mesh cases.
The mesh must be watertight so that the automated meshing does not escape the confines of the
specified surface. If a mesh has a leak (is not watertight), then a series of red lines will appear at the
edges of a surface in the 3D View, indicating the problem area. There are typically 3 reasons for this
situation:
1. The edges do not match, as shown in Figure 3.1: Nonwatertight surfaces that cause this mesh to
leak, because the edges do not align (p. 42) .
2. The mesh has duplicated surfaces, leaving some surface edges unmatched to neighbor surfaces.
3. The mesh has poor resolution and requires a relaxed tolerance to generate a watertight mesh.
Figure 3.1: Nonwatertight surfaces that cause this mesh to leak, because the edges do not align
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Geometry Node
1. Every edge in the surface mesh must join exactly two faces.
3. All surface normals must be oriented consistently such that face normals point away from the fluid
region.
When joining edges within a mesh, the default tolerance is 0.000001 cm. You can modify this with the
Merge Meshes Utility, as described in Join Meshes Utility (p. 50).
The Top Dead Center location of the piston is required for automatic meshing to prevent reversing the
directions of the normals for the wall faces in the compression stroke. The TDC position also reduces
the number of triangle faces in the initial mesh.
Engine projects that were created in versions of Ansys Forte that predate this requirement will automat-
ically be updated at the time of project launch. The updater cuts the wall surface at the stroke height,
shifts the moving surface all the way to top dead center, and joins the moving surface to the wall. If
there is any irregular surface, the automated mesh update attempts to stitch it together but will abort
if the original mesh is not watertight. The same functionality is available in the BDC-TDC Transform
utility in the Utility menu and as an icon on the toolbar.
The Sector Mesh Generator icon launches the Sector Mesh Generator window, which has a
workflow and layout similar to Ansys Forte Simulate. Sector meshes are used to represent in-cylinder
combustion where there is symmetry that is periodic around, for example, the nozzle holes associated
with the fuel-spray injection in a diesel engine. A symmetric 8-hole layout, for example, may be well
represented with a 45-degree sector mesh. The Sector Mesh Generator will generate a Forte-compatible,
body-fitted sector mesh using a minimal number of user specifications that define the engine piston
motion and bowl shape. The Workflow tree of the Sector Mesh Generator has nodes for Engine
Parameters and Mesh Parameters, while the 3-D View window is used to preview the mesh and mesh-
control settings.
The Engine Parameters panel allows specification of the piston bowl profile, piston-motion character-
istics, sector angle or sector cyclic symmetry, as well as engine-cylinder dimensions, and crevice di-
mensions.
Note:
The crevice model cannot be used (see Crevice Model (p. 74) ) if the crevice block is in-
cluded in the mesh.
The Mesh Parameters panel allows control of the mesh density and topology as shown in Figure 3.2: Sec-
tor Mesh Generator interface (p. 44). Using the Sector Mesh Generator is described in Sector Mesh
Generator (p. 43).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Modeling Guide
For in-cylinder-only simulations, Ansys Forte includes a built-in mesh generator with five possible
topology configurations. The Sector Mesh Generator requires specification of basic engine parameters
as well as some control parameters for each mesh topology. From this basic information, the Sector
Mesh Generator automatically generates and loads a sector mesh with the selected topology. To use
the mesh generator, select the Generate Mesh tab and specify the required parameters in the panel.
When the parameters have been specified and applied, click the Generate Mesh icon to generate
and import the mesh.
The Sector Mesh Generator (SMG) constructs one of five mesh topologies as shown in Figure 3.3: Ex-
ample topology 1: Mesh built by automated Sector Mesh Generator (p. 45) to Figure 3.7: Example
topology 5: Mesh built by automated Sector Mesh Generator (p. 46) below. The input in the Editor
panel controls how the topology is mapped onto the actual engine-cylinder geometry (see Figure 3.8: In-
terface for automated Sector Mesh Generator (p. 46) ). For the mesh the Z axis is always assumed to
be in the vertical direction, along the axis of the engine cylinder, pointing upward toward the cylinder
head. The (X,Y,Z) origin is assumed to align with the center of the cylinder, at the vertical height
corresponding to the top of the piston bowl.
Most of the topologies require control point locations along the bowl profile to aid in mapping the
topology to the actual geometry. The control point locations are entered as fractional lengths along
the bowl profile, that is, a control point fraction value of 0.1 would indicate the control point should
be placed 10% of the distance along the bowl profile curve, starting from the edge of the bowl profile
near the cylinder wall.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Geometry Node
Figure 3.3: Example topology 1: Mesh built by automated Sector Mesh Generator
Figure 3.4: Example topology 2: Mesh built by automated Sector Mesh Generator
Figure 3.5: Example topology 3: Mesh built by automated Sector Mesh Generator
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Modeling Guide
Figure 3.6: Example topology 4: Mesh built by automated Sector Mesh Generator
Figure 3.7: Example topology 5: Mesh built by automated Sector Mesh Generator
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Geometry Node
Parameters Cell Count K1, K2, K3, K4, and K5 indicate the number of mesh cell edges to include in
the vertical direction, within each vertical block indicated by the corresponding topology figure
(Figure 3.3: Example topology 1: Mesh built by automated Sector Mesh Generator (p. 45) to Fig-
ure 3.7: Example topology 5: Mesh built by automated Sector Mesh Generator (p. 46) ).
Parameters Cell Count I1, I2, I3, and I4 indicate the number of cell edges that will be included in the
radial direction, within each radial block as indicated in the corresponding topology figure (Figure 3.3: Ex-
ample topology 1: Mesh built by automated Sector Mesh Generator (p. 45) to Figure 3.7: Example
topology 5: Mesh built by automated Sector Mesh Generator (p. 46) ).
Parameter Circumferential Cell Count indicates the number of cell edges that will be included in
the circumferential direction of the sector. The larger the sector angle, the larger Circumferential
Cell Count should be.
Not all topologies require the same number of control points and cell edge numbers. Only the para-
meters applicable to the selected topology are shown in the input panels.
Note:
With respect to cell edge count specification, a good rule of thumb is to use cell sizes that
are about 1 mm in length in any direction. Coarser meshing may be OK farther from the
boundaries, depending on the degree of stratification expected in the engine simulation.
In addition to the cell counts, some basic engine size parameters (such as bore and squish height)
and a piston-bowl profile are required to complete the mesh definition. The piston-bowl profile can
be created by hand using the Ansys Forte Profile Manager, or can be imported from a comma-separ-
ated-values (CSV) file that might be created in Microsoft© Excel©, for example.
The piston-bowl shape must be provided in the form of a series of (X,Z) data pairs that have the fol-
lowing characteristics:
• The first profile point must have Z = 0. This is the location of the outer edge of the bowl.
• The remaining profile points must track the shape of the bowl towards the center of the cylinder,
or towards the z-axis. In other words, with decreasing X values.
• The final profile point must have X = 0. This is the center of the bowl and a point of symmetry for
the sector.
• The indices of three of the profile points will be used to control the mesh topology as shown in
the Figure 3.9: Sector mesh bowl profile and topology control point description (p. 48) .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 47
Modeling Guide
Figure 3.9: Sector mesh bowl profile and topology control point description
For each control point, you must enter the fractional distance along the profile curve that corresponds
to the location desired for that control point.
Once all of the parameters are specified, press the Apply button in the Mesh Generator dialog to
generate the mesh. The basic outline of the cylinder geometry will be displayed within the Ansys
Forte Sector Mesh Generator 3-D View area, including the bowl profile and locations of control points.
To create and load the mesh, click the Generate Mesh icon. This will involve several smoothing
steps as the Sector Mesh Generator attempts to provide an optimal mesh for the given inputs. The
number of smoothing steps is an optional parameter specified in the panel, but the default is usually
sufficient. The resulting mesh will be loaded automatically and displayed in the Ansys Forte 3-D View.
In this way, you can modify settings and then re-generate a new mesh quickly to interactively see
the effects of the input parameters. When you are finished, click the button marked Open in Forte
to update the content of the current Ansys Forte project. The settings there will be saved with the
Simulation file, to allow revisiting the mesh at a later time.
The Import Geometry icon on the Geometry panel opens the Geometry Import dialog, offering
options to import geometric surfaces from various file formats, as well as pre-defined body-fitted
meshes. Geometry surface information may be imported from the following types of files, in addition
to previously created Ansys Forte project files (.ftsim or .cksim):
1. Ansys Fluent meshing faceted geometry file (.tgf) from Ansys Discovery SpaceClaim.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
48 of ANSYS, Inc. and its subsidiaries and affiliates.
Geometry Node
For projects making use of Forte’s automatic meshing capability, the preferred geometry formats are
1 and 2 . The TGF format can be exported directly from Ansys Discovery SpaceClaim. This is also the
default transfer format used when defining an Ansys Workbench Forte cell connected to a Geometry
source.
STL is a less-preferred but common format available from many different CAD systems. The steps for
importing geometry information from an STL file for use with automatic mesh generation are described
in the Forte Quick Start Guide. That manual also describes the steps required for the option of reading
in a pre-defined body-fitted mesh.
If you select option 2 or 5 , you will next be presented with the choice of importing the entire mesh
for a body-fitted mesh simulation or extracting just the geometry surface information from the file
to use automatic mesh generation in the simulation. If you opt to use the body-fitted mesh directly,
then the mesh format must be block-structured hexahedron. Such file formats can be exported from
commercial mesh generators, such as Ansys ICEM CFD. These files include flags that indicate boundary
surfaces, which are required in specification of boundary conditions.
The Export Geometry icon on the Geometry panel opens the Save dialog, Select a file location
and file name. An STL file will be created describing all surfaces currently contained in the Geometry
node.
Figure 3.10: Export utility’s Save dialog (for files associated with Quick Start lesson)
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Modeling Guide
The Merge Meshes icon on the Geometry panel opens the Merge Meshes Utility, a convenient
dialog for selecting multiple mesh elements and then merging them into a single geometry surface
mesh, for use with the automatic-mesh generation option only. After surfaces are merged, you have
the option to delete the original elements. You can select items from a list or by using your mouse
in the 3D View, after selecting screen mode with the Select from screen icon. This option is
useful for managing geometry information imported from an STL file, where many small surfaces may
have been defined. The Duplicate edge tolerance option specifies the sensitivity to merging common
edges between the selected surfaces.
Note:
We recommend not changing the default value for Duplicate edge tolerance under most
circumstances.
The Join Meshes icon on the Geometry panel activates a utility to join the unmatched edges in
a set of surfaces that are topologically open. When surfaces remain open, usually after importing a
low-resolution surface mesh, this utility is used to repair the open edges. This leaky mesh problem
can be identified by red highlights on surface edges, as seen in Figure 3.11: (a) Red edges indicate a
leak in the surfaces that define a watertight mesh. (b) Relaxing duplicate edge tolerance in a mesh
join often repairs this issue (p. 50) , and can often be remedied by relaxing the duplicate edge toler-
Figure 3.11: (a) Red edges indicate a leak in the surfaces that define a watertight mesh. (b)
Relaxing duplicate edge tolerance in a mesh join often repairs this issue
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh Controls Node
Use the Measure Geometry Utility to measure distances, angles, and other properties of geometric
entities. This button opens a dialog with options to set 2- or 3-point metrics that allow you to select
using reference frames, screen selection , or by picking an existing location from the
Workflow tree.
Time Interval: Mesh will be updated if the elapsed time since the previous mesh update is exceeding
this user-specified time interval.
Rotation/Crank Angle Interval: The mesh update interval is controlled to be approximately equivalent
to this angle interval. This angle is with respect to the rotation motion of the highest RPM in the
simulation system, including both slider-crank motion (piston motion in IC engine cases), simple ro-
tation, and planetary motion (including both primary rotation and secondary rotation).
Flow Travel Distance: This distance threshold is used to limit the mesh update interval to be suffi-
ciently small such that the distance the flow with the largest velocity magnitude can travel between
two consecutive mesh updates will not exceed this threshold.
Spray Particle Travel Distance: This distance threshold is used to limit the mesh update interval to
be sufficiently small such that the distance the fastest-traveling spray particle can travel between two
consecutive mesh updates will not exceed this threshold.
Flame Propagation Distance: This distance threshold is used to limit the mesh update interval to
be sufficiently small such that the distance the fastest-traveling flame can propagate between two
consecutive mesh updates will not exceed this threshold.
When Automatic Meshing is indicated, the Mesh Controls tree contains two sub-nodes for required
input: Material Point and Global Mesh Size.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Modeling Guide
Material Point: This is a point that is inside the cylinder throughout the cycle and that enables the
automatic mesh generation to stay within the boundaries. You must set this point appropriately before
the automatic meshing can work properly.
Note:
The Material Point must be located in a position that is always inside the geometry
during the entire cycle and is at least one unit cell length away from any boundaries.
Global Mesh Size: Affects meshing and refinement throughout the system.
• Mesh Size: A specified dimension of a cell side throughout the system to use as a standard for
specifying other mesh cell sizes, usually as a fraction of this value. Specifying a value too small will
lengthen solution time. Units are user-selectable.
• Small Feature Deactivation Factor: Determines the treatment for small-scale surface features. This
includes crevices or sharp corners whose size is smaller than the cell that contains the feature.
Range = 0 to 1; a higher value will tend to filter out more of the small features, increasing ease of
solution.
In addition to the controls described above, the Mesh Controls icon bar (as well as right-clicking the
Mesh Controls node on the Workflow tree) provides icons that can be used to create additional mesh-
size constraints.
Each of the mesh-size controls can be specified as static (Always active) or dynamic (active only
During specified time or crank-angle intervals) with a reference to a relative time frame (see Time
Frames (p. 35) ). For example, refinement in the squish region near a moving piston boundary may
only be necessary when the piston is near top-dead-center (TDC) position. For simulation of a full
cycle, this may mean setting two controls for the two intervals (for example, 350 to 370 CA, 710 to
730 CA) during the cycle of a 4-stroke engine while the squish region is most active. However, near
the valve seat, mesh refinement must Always be set to 1/4 or finer.
If the mesh-size controls are active During Crank Angle Interval, you can select the Crank Angle
Option as Cyclic or Global. The Cyclic option is helpful in specifying controls that are repetitive in
a multi-engine-cycle simulation. In this case, the user-supplied crank angle values will be converted
to fit in the range of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for 2-stroke engines). The ac-
tivation interval will then be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or
360-degree schedule (2-stroke). You may choose to Use Global Crank Angle Limits to impose a
global crank angle range for the cyclic repetition, beyond which mesh-size controls are not active. If
the Crank Angle Option is Global, no cyclic conversion is applied to the user-supplied crank angle
values.
• Point Refinement Depth : A Point Refinement is a sphere of mesh-size influence, where you
specify the minimum size for a cell edge within that sphere, relative to the Global Mesh Size, the
location of the point at the center of the sphere, and the radius of the sphere in absolute physical
units. These parameters are entered in the Point Refinement Editor panel after a new control is
created. Since you can have multiple points of refinement, you can name each control for reference
purposes and it will appear with that name in the Mesh Controls list.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh Controls Node
• Surface Refinement Depth : Surface refinement allows you to specify a mesh-size constraint
at any surface defined in the geometry, such as an inlet or valve surface. The Editor panel includes
specification of the minimum size relative to the Global Mesh Size, as well as selection of one or
more boundaries at which the size constraint will apply.
• Feature Refinement Depth : Feature refinement allows you to specify a mesh-size constraint
to be applied along edges whose feature angle is greater than a specified feature-angle threshold
value. The Editor panel includes specification of the feature angle and a distance away from the
feature angle to apply the refinement. Feature angle (φ) is defined as the angle between the two
adjacent faces along an edge (see Figure 3.12: Feature Refinement Depth diagram
illustrating phi (p. 53) ).
• Line Refinement Depth : Line refinement allows you to specify a mesh-size constraint along
any line in the geometry. The Editor panel includes specification of the minimum size relative to
the Global Mesh Size, as well as selection of one or more boundaries at which the size constraint
will apply.
• Gap Feature Refinement Control and Gap Resistance Model : Gap feature refinement allows
you to specify a mesh-size constraint along a small gap formed by two surfaces. The Surface
Proximity is a distance criterion for identifying the gap zone. A fluid region will be identified as
gap if the distance between the two nearby surfaces is smaller than the Surface Proximity value.
Fluid cells residing in the gap region will be marked as gap cells and each given a gap size value
based on the closest gap distance.
If the gap sizes in the geometry are larger than the physical values, you can turn on the Gap Res-
istance Model to model the higher resistance caused by the smaller physical gap sizes. The gap
resistance model is formulated based on the analytical solution of a shear flow between two parallel
plates. The gap resistance factor is defined as the ratio of decelerated velocity and the original ve-
locity:
(3.1)
in which is the gap size, is the kinematic viscosity, and is the CFD time step. Gap sizes are
measured based on the surface proximity in the geometry. The Gap Size Scale Factor can be used
to scale the measured gap sizes to match their physical values.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Modeling Guide
• Small Feature Avoidance Control : Creates a feature with the Small Feature Deactivation
Factor applied. This is typically crevices, sharp corners, etc., whose size is smaller than the cell that
contains the feature. Define a Location, Small Feature Deactivation Factor, and determine
whether the feature is static or dynamic (see the next paragraph). Range = 0 to 1; a higher value
will tend to filter out more of the small features, increasing ease of solution.
• Secondary Volume : Creates a Secondary Volume item in the Workflow tree for specifying a
multiplier to the mesh size to a selected sub-volume. The multiplier can cause a mesh size that is
larger than the Global Mesh Size.
• Solution Adaptive Meshing : Solution adaptive meshing allows refining the mesh based on
a solution field (or gradient) at the current time step. Both a solution field and selection criteria
must be specified. Cells meeting the selected criteria will be refined one level per mesh update,
up to the maximum depth specified in the control. Previously refined cells that no longer meet the
criteria will be coarsened one level per mesh update, up to the default cell depth, unless influenced
by another control. Three types of criteria are available:
1. Statistical
This will target cells whose field value lies beyond a user-specified statistical significance of the
bulk fluid value, given as a multiple of the standard deviation of the field or gradient average:
high_threshold = infinity
Cells whose field or gradient value is greater than low_threshold and less than high_threshold
will be targeted for refinement. This approach is especially useful when applied to gradients.
A sigma value between 0.5 and 1.0 is recommended. A lower value lowers the threshold used
to target cells and therefore leads to more refinement, while a higher value raises the threshold
and results in less refinement.
This will target cells whose field value lies within the user-specified range, where the range is
defined as described in this table:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
Cells whose field or gradient value is greater than low_threshold and less than high_threshold
will be targeted for refinement. Note this criterion is currently unavailable when a species field
or gradient is selected.
3. Absolute value
This allows expressing the range of values used to target cells directly. Cells whose field or
gradient value is greater than the given lower bound and less than the given upper bound will
be targeted for refinement.
During piston motion in an IC Engine simulation, the mesh is compressed and the boundary region
associated with the piston moves according to the engine crank rotation. To make sure that the mesh
retains good grid quality and an accurate solution results, an algorithm within Ansys Forte automat-
ically and dynamically controls the mesh movement and rearrangement during the simulation. The
algorithms employed during mesh movement modify both the mesh boundary and interior at a given
time step. Specifically for in-cylinder simulations with piston motion, there are several parameters
that control the mesh-motion behavior. While default values of these parameters are usually sufficient,
they may be modified to achieve better cell quality for a given geometry. The control parameters for
IC Engine simulations are listed below with a brief description of each parameter.
Min. Cell Height: Threshold for minimum cell height during mesh rezoning and smoothing.
Min. Cell Layers in Squish Region: Effectively sets the number of cell layers in the squish layer at
top dead center.
Cell Expansion Ratio from Piston: Ratio by which cell heights expand from the piston. A larger
number will decrease cell heights closer to the piston.
Cell Expansion Ratio from Head: Ratio by which cell heights expand from the head. A larger number
will decrease cell heights closer to the head.
Max. Bowl Excursion: Maximum fraction of the squish region that bowl vertices are allowed to occupy
in a smoothing iteration.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Modeling Guide
3.3.1. Chemistry/Materials
The Chemistry/Materials node is used to specify the working fluid's compositions, thermodynamics
data, and chemical reactions, using the industry-standard Ansys Chemkin-Pro format. It also provides
settings for the thermodynamic Equation of State, and phase change, if applicable. Click Models >
Chemistry/Materials to open its panel.
In Ansys Forte 2022 R1, "Materials" was added to the "Chemistry" model node of the Workflow tree,
and new nodes have been added below this node.
3.3.1.1. Chemistry
Ansys Forte simulation needs a Chemkin-Pro chemistry set file (.cks) to determine which chemical
species or molecules are available in the simulation, their thermodynamic data, and the available
chemical reactions. On the Chemistry/Materials panel, the View Chemistry icon in the icon
bar lets you view the chemistry set that has been loaded into your Forte project. If there is no
chemistry set in the project, as is the case in any new project, you have three options to provide
it:
(1) Click the New Import Chemistry icon to import a pre-defined chemistry set file. This opens
a file browser to select and load the chemistry set file (.cks). You can navigate to the data directory
of your Ansys Forte installation location and find a number of chemistry set files that come with
the installation, which are created for different types of simulation problems. Alternatively, you can
load a self-made chemistry set file at any other location.
(2) Use the Chemistry Set Pre-Processing Utility to create a chemistry set file. The Utility menu
(on the main toolbar) provides the Pre-Processing Utility to create such a chemistry set file from
more fundamental Chemkin-Pro input files, including the reaction-mechanism input and the ther-
modynamic data file. This utility is described in Chemistry Set Pre-Processing Utility (p. 200) . After
the chemistry set file is created and saved, click the New Import Chemistry icon to import it
from the chemistry set from its saved location.
Tip:
These two options are commonly used to set up a gas phase flow simulation with
combustion processes. Inclusion of chemical reactions in the chemistry set is necessary
for reacting flow simulations.
After a chemistry set is imported, a Chemkin Chemistry Set node appears under Chemistry/Ma-
terials. There are three icons on its panel. The Import Chemistry icon allows you to import a
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
chemistry set file to override the existing one. The View Chemistry icon opens a panel dis-
playing details associated with the imported chemistry set. The information shown in the Gas Phase
Output tab is particularly helpful as it lists the chemical species and reactions specified. Reload
Chemistry is similar to Import Chemistry , but it starts the import process using the ex-
isting chemistry set file if it exists in the project.
(3) The third option to add a chemistry set is to click the New Liquid & Vapor Pair and/or the New
Gas Species icons on the Chemistry/Materials panel. This option is used to automatically generate
a chemistry set file in the Forte project based on user-selected fluid species. Use New Liquid &
Vapor Pair to add both liquid and vapor of a certain chemical species. Use New Gas Species to
add a certain gas species. You can add multiple liquid and vapor pairs and/or gas species, and the
chemistry set is generated by incorporating all the species. However, the chemistry set does not
include any chemical reaction. So, use of this option is suitable for non-reacting flow simulation.
When you View Chemistry, the added gas species are listed in the Gas Phase Output, and the added
liquid species are listed in the Surface Output. Presence of liquid species is necessary if the simulation
is Eulerian two-phase (described next), which requires specifying a multiphase mixture (see
Mixture Editor (p. 22) ) as the working fluid.
By default, the property data of the liquid species come from an internal library of Ansys Forte. You
may choose to override the liquid's density and viscosity from the library using your own data. To
do so for a specific liquid, click to select the liquid and vapor pair, select User Defined Values for
Liquid Properties, check Override Database Liquid Density/Viscosity with Constant Value, and
fill in the desired data.
You may select the Real Gas model, if the imported chemistry set contains real-gas-related property
data for the defined working fluid. To check if the real gas data are contained in the chemistry set,
click View Chemistry , and look for Real Gas Information in the Gas Phase Output tab. If it is
present, the species with real gas data available are listed in the lower area of the tab.
Tip:
Most chemistry sets in the data directory of your Ansys Forte installation location contain
real gas data. If your chemistry set does not contain real gas data, they need to be added
in the gas phase kinetics input file (chem.inp). For more details on the required data
format, refer to Real Gas Data in the Chemkin-Pro Input Manual . After the input file is
ready, use the Chemistry Set Pre-Processing Utility to create a new chemistry set file,
import it into the Forte project, and View Chemistry to verify that the real gas data
are successfully added.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
Modeling Guide
• The location (folder) of the RGP file can be specified using an environment variable
FORTE_RGPTABLE_PATH. Both absolute paths and relative paths are supported. Note, however,
that there is no default value for an environment variable. If FORTE_RGPTABLE_PATH is un-
defined, Ansys Forte will try to find the input file on the local path, that is, within the Run
folder. However, if the input file does not exist (not found), then Ansys Forte will report an error
and stop the calculation.
Tip:
• It is recommended that the minimum bounds for pressure and temperature used in the tabu-
lation is non-zero. This can avoid non-physical numerical undershoots and overshoots. If a zero-
bound is found then Ansys Forte will write a warning message in the monitor file after echoing
the table bounds.
• If a rough estimate of the range of P and T is that could happen during the simulation is known
a priori then generating tables with higher resolution within those bounds would, in principle,
result in better accuracy,
• In this release, RGP can only be selected for single-phase simulations. The chemistry set used
in the simulation should contain only the species for which the RGP file is provided.
• The RGP table input file may contain more than one "material;" typically, this would be two
phases (liquid and vapor) of a pure substance. One of the RGP material names (phase for which
the simulation is to be done) should be specified in the corresponding text box. Note that the
character string for the RGP material name specified as the $$$materialName field in the
file. An RGP file also contains a separate NAME field (for each phase); however, this is not
used/interpreted as the RGP material name by Ansys Forte. Figure 3.13: RGP table input file:
Nitrogen (p. 59) shows a screenshot of an RGP table input file for nitrogen. The RGP material
names corresponding to liquid and vapor phases of nitrogen are NITROGENL and NITROGENV,
respectively. Put the other way, the character string "nitrogen liquid" (without quotes) is not
a valid input for the RGP-material-name in Forte.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
Modeling Guide
There are two types of simulations in which you can include liquid in the working fluid:
1. In the first type, while the working fluid as a continuum is in gas phase, you can set up Spray
Model (see Spray Model (p. 65) ) to simulate liquid droplets. Spray droplets are modeled as
discrete particles, not as continuous fluid, and they interact with the gas phase as governed by
several sub-models in the Spray Model settings. Even with the presence of sprays, we refer to
this type of flow simulation as "gas-phase" since the continuous fluid is solely gas.
2. In the second type of simulation, the working fluid as a continuum can be liquid, or gas, or a
mixture of both. It is referred to as Eulerian two-phase flow simulation. To use this approach,
the liquid species must have been defined in the chemistry set. You can compile such a chemistry
set using the Chemistry Set Pre-Processing Utility, and make sure that liquid species are
defined in the surface kinetics input. Alternatively, you can use New Liquid & Vapor Pair (see
Chemistry (p. 56) ) to add the desired liquid species and let Ansys Forte automatically generate
a chemistry set. Then, define a multiphase mixture (see Mixture Editor (p. 22) ) as the working
fluid, which can be used to specify the initial fluid compositions (see also Initialization Pan-
el (p. 99) ) and fluid compositions in certain boundary conditions (see also Inlet Panel (p. 82)
). Once a multiphase mixture is used in an initialization and/or inlet, Forte automatically uses
Eulerian two-phase flow simulation.
Note that in an Eulerian two-phase flow simulation, the gas phase is assumed to be an ideal gas,
and a simple relation that considers compressibility effects is assumed for the liquid phase. The
Real Gas and Use RGP File options in Equation of State are not effective.
Note:
The Eulerian two-phase flow simulation should not be used together with certain sub-
models. In this type of simulation:
• Activate Chemistry under Simulation Controls > Chemistry Solver should be Always
Off.
• For inlet boundary conditions, the Inlet option should not be Total Pressure or Total
Pressure, Time Varying, or Assume Isentropic. The Temperature option should not
be Total Temperature or Total Temperature, Time Varying.
• For outlet boundary conditions, the Outlet option should not be Total Pressure or
Total Pressure, Time Varying.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
in the Workflow tree. Forte has several options for specifying the flame speed that can be accessed
on the Flame Speed Model panel. The laminar flame speed can be calculated either by using for-
mulations of the power law, or by using pre-calculated flame-speed tables. Turbulent flame speed
is determined from a correlation, which takes the calculated laminar flame speed as well as several
turbulence parameters as inputs. These concepts are described in Turbulent Flame Propagation
Model of the Ansys Forte Theory Manual.
The recommended option for specifying flame speed is the Table Library option. These contain
precalculated laminar flame-speed tables for 44 surrogate fuels. The fuels covered in the Table
Library option represent several classes: families of n-alkanes, iso-alkanes, cyclo-alkanes, alkenes,
cyclo-alkene, iso-alkene, aromatics, ethers, cyclo-ethers, alcohols and methyl esters. The fuels are
listed in Table 1: Fuels for which prebuilt laminar flame speeds are available as part of the Table
Library option (p. 253). Using pure-fuel flame speeds and local fuel composition in the CFD simulation,
multi-component-fuel flame speeds are calculated on-the-fly using non-linear blending of the single-
component values. This Table Library option provides (a) simplicity in the user input required for
the CFD simulation (only fuel composition is required); (b) a high degree of accuracy afforded by
the Ansys Chemkin-Pro-generated flame-speed library for an extensive range of fuel components;
and (c) the automation of the blending without compute performance penalty.
The second option for specifying laminar flame speed is the flame-speed look-up table. The look-
up table is a file that contains a series of flame table data points used to interpolate to the correct
flame speed and can be edited with the Profile Editor. For details on working with the flame-speed
table, see Flame-Speed Table Editor (p. 27). Lookup tables for five surrogate fuels are provided with
Ansys Forte, and these can be used as templates when you want to build your own laminar flame-
speed tables.
The third option is the power-law option, for which further options are provided when selecting
the Flame Model and its Speed at Reference State, Temperature and Pressure Dependency,
and Diluent Effect.
The model inputs for the Turbulent Flame Speed correlation are also listed in this Flame Model
panel. Their meanings are explained in the tool tips. More details are described in Ansys Forte
Theory Manual.
Laminar and turbulent flame speed correlations can also be defined through User Defined Functions
(UDFs). This option is provided as the last item on the Laminar Flame Speed and Turbulent Flame
Speed drop-down lists. For detailed information about how to use Ansys Forte UDFs, see the
README.txt file in the user_defined_functions directory in your Ansys Forte installation.
Template UDF source code for the flame speed models is provided in the combustion subdirectory.
The interface parameters for the UDFs are described in the template code. For the language used
in writing the UDFs, we support both Fortran and C/C++. The UDFs in the combustion subdirectory
will be compiled into a dynamic link library, libForteUDF_combustion.dll, on Windows, or
a shared object, libForteUDF_combustion.so, on Linux systems.
Note:
Do not change the names for the .dll or .so files because this naming convention is
used by the Forte executable.
The input and output parameters for the flame-speed UDFs are listed below.
1. UDF_Combustion_LaminarFlameSpeed
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
Modeling Guide
Inputs
kO2 – species index of O2 (1-based, that is, the index of the first species is 1. The value is 0 if this
species does not exist in the mechanism.)
eleNum - elemental composition of gas species. The dimension is (nElement, nSpecies) in Fortran
and [nSpecies] [nElement] in C/C++. It returns the number of element i in species j.
Outputs
2. UDF_Combustion_TurbulentFlameSpeed
Inputs
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
Outputs:
Use Legacy G-Convection Formulation: This check box provides backwards compatibility to a
previous (prior to the R18.1 release) model for determining the mean flow convection term in the
G transport equation. The default G convection formulation is recommended for flame propagation
cases involving especially large mean flow velocities; for example, under high-swirl engine operating
conditions. This affects how the flame surface (represented by the G=0 iso-surface) is transported,
considering both the flame propagation speed and the mean flow velocity.
If the legacy option is selected, the mean flow velocity used in the formulation will be the value
on the flame-front surface and the expansion effect is accounted for in the flame-speed term.
If the legacy option is not selected, that is, the default formation is used, the mean flow velocity
will be the value on the unburned side of the flame front and the expansion effect is accounted
for by the mean flow velocity term. Since the mean flow convection effect is ignored during the
ignition kernel stage when using the legacy formulation, the default formulation is the preferred
option. Using the default formulation requires a higher value for the turbulent-flame-speed ratio
(b1) value in the turbulent-flame-speed correlation, typically 2x the value used with the legacy
formulation.
Unburned Calculation Method: Three different options are provided for picking unburned conditions
in the flame propagation models. The Find Nearest Unburned Cell without Volume Search option
takes the unburned condition picked in the immediate neighborhood of the flame front. The Volume
Search with Fixed Radius option picks the unburned condition a fixed distance away from the
flame front, which prevents the unburned condition from being influenced by the hot burned gas
inadvertently. The Volume Search with Variable Radius option also uses a volume search, similar
to the second option. But instead of using a fixed search radius, it uses a variable search radius that
scales with the local cell size. The latter two options make the laminar flame speed calculation less
sensitive to mesh resolution. To obtain equivalent burn rate results, the latter two options require
a larger flame development coefficient (up to 2x) compared to the option without volume search,
especially for slow-burning cases.
Use Legacy Method For Flame Front and High-Temperature Front Synchronization: In release
2020 R1, a new default method is used to overcome a modeling difficulty in the G-equation flame
propagation model that may occur under certain operating conditions. When the unburned tem-
perature is high and flame speed is low, strong thermal diffusion can cause the high-temperature
front to propagate faster than the flame front surface marked by the G=0 iso-surface and cause
these two surfaces to become out of sync. The new default method is devised to keep these two
surfaces in sync should they show a tendency to separate. It is recommended that the default option
be used for all new Forte projects. The legacy option, enabled using this check box, is provided
only to maintain backward compatibility. Clear this check box to use the improved treatment.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
Modeling Guide
Disable Flame Propagation Model: These options allow the flame propagation model to be turned
off by a user specification to avoid solving the flame propagation model equations unnecessarily
during certain time or crank angle range of a calculation. These options are especially useful in
engine simulations. If When an Engine Cylinder is Not a Closed System is selected, the flame
propagation model will be disabled as soon as any port or valve is open in a cylinder region. This
is the default and recommended option. If After User-Specified Crank Angle or Time is selected,
the flame propagation model will be disabled after the specified timing. The model will be reactivated
at spark timing of the next engine cycle in engine cases. If Never is selected, the flame propagation
model will keep being solved until the flame quenches by itself.
3.3.2. Transport
Next in the workflow is the definition of the fluid transport models using the Transport workflow
item. The Editor panels for the two items under the Transport node, Turbulence and Fluid Properties,
are described below. The Transport Editor panel provides settings for Fluid Properties. The parameters
on this panel are reference properties used to calculate the turbulent fluid properties, as indicated
in the tool tips. The Body Acceleration terms in the fluid transport model can be used to specify ac-
celeration due to gravity. The equations that use these properties are defined in the Ansys Forte
Theory Manual .
Note:
We recommend accepting the defaults under Fluid Properties for most engine cases.
3.3.2.1. Turbulence
Use the Turbulence Editor panel to select among choices for the Turbulence Model: RANS
(Reynolds-Averaged Navier-Stokes) or LES (Large-Eddy Simulation) models. For the RANS models,
options of RNG k-epsilon or k-epsilon are offered. For LES models, the options of Smagorinsky
or Dynamic Structure model are available. Select no model for a laminar flow simulation.
For a simulation with the RANS approach, the default choice of RNG (Re-Normalization Group) k-
epsilon is recommended, although a standard k-epsilon model may also be selected.
Note:
Ansys recommends using the RNG-k-epsilon model for engine cases and for spray-
chamber cases. The spray models have many years of calibration to this model and are
unlikely to work as well with the k-epsilon model. The RNG-k-epsilon model should also
be a better model for engine combustion. The standard model is included for research
purposes or for use with problems such as pure air flow, for example, where it might be
more appropriate.
For a simulation with the LES approach, the Dynamic Structure model is recommended. The
Smagorinsky model is included due to its simplicity and historical importance. However, it is con-
sidered as over-dissipative and less accurate compared to the Dynamic Structure model.
For the turbulence model selected, there are a number of model parameters displayed. However,
the default values are recommended. Details on how the turbulence equations use these parameters
are included in the Ansys Forte Theory Manual .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
Simulating sprays requires properly initializing the spray formation by specifying the type and para-
meters of the fuel injector and nozzle(s), or providing the necessary data at the nozzle exit. Selecting
the proper spray models is also required. Both can be done on the Spray Model node.
First, selecting this node activates some general spray-model options, including Droplet Collision
Model, Injectors, Nozzles, and Injections. For the Droplet Collision Model option, select Disabled,
Radius of Influence Model or Collision Mesh Model, or Adaptive Collision Mesh Model and specify
the associated options. Use Vaporization Model indicates that the injected liquid is allowed to va-
porize (the default). For liquid-fueled engine cases this option is required.
Second, the Spray Model icon bar offers the following 4 icons that enable the definition of injectors,
which can be solid-cone, hollow-cone, slit, or VOF injectors. Once the injector is created, you can
specify the nozzle geometry and injection events, as described in Solid-Cone, Hollow-Cone, Slit, and
VOF Injector Panels (p. 65) , as well as the additional spray-model settings specific to each of these
injector types.
• New Hollow Cone Injector : Creates a new hollow-cone injector and opens the Injector panel
with Hollow Cone options.
• New Solid Cone Injector : Creates a new solid-cone injector and opens the Injector panel with
Solid Cone options.
• New Slit Injector : Creates a new slit injector and opens the Injector panel with Slit options.
• New VOF Injector : Creates a new VOF injector and opens the Injector panel with VOF options.
A VOF (volume of fluid) injector represents one-way coupling between a VOF simulation of internal
nozzle flow and Ansys Forte’s Lagrangian spray simulation for solid cone injections, in which user-
supplied VOF input data are used to initialize the injected Lagrangian spray parcels.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
Modeling Guide
• New Nozzle : Adds a nozzle associated with the injector and opens the Nozzle panel for
configuring the new nozzle.
• New Injection : Adds an Injection event associated with the injector (and nozzles) and opens
the Injection panel for configuring the injection in terms of timing and fuel amount.
• Copy : Copies the injector along with any nozzles or injections associated with the injector.
• Paste : Pastes the copied injector along with its defined nozzles and injection events.
The spray-model settings are controlled in the Injector's main Editor panel. Use this panel to define
the injector options, which control the fuel composition, temperature, and the ways that the spray
parcels are initialized to simulate the fuel injection. The options for atomization and spray breakup
models are also specified in this panel. There are several components to the spray breakup models
that are described in more detail in the Ansys Forte Theory Manual . Default values are provided
where appropriate. In the following, we briefly review both the general options and options specific
to each type of injector.
Note:
We recommend keeping default settings for the spray model as a starting point.
• Composition: This controls the Fuel Composition. (See Mixture Editor (p. 22) for details of using
the Mixture Editor.)
• Time Frame: Set the timing offset for all associated injections.
• Injection Type: Select whether the parcel count applies to a pulsed injection or a continuous
one. Hollow Injectors are used only with pulsed injection.
• Parcel Specification: Specify the number of injected parcels for either a pulsed injection or a
continuous injection. For a pulsed injection, specify either the injected parcel count or the droplet
number density in an injected parcel. When the injected parcel count is specified, this count is
for the first nozzle of this injector. If the injector contains more than one nozzle, the injected
parcel count through the other nozzles will be scaled based on the nozzle exit area ratio. When
the droplet number density is specified, this number density will be converted into injected
parcel count based on the total injected mass and the mass of an injected droplet. For continuous
injection, only Droplet Density can be specified in an injected parcel.
Note:
The Injected Parcel Count is the total number of spray parcels to be injected
through one injector nozzle. If there are multiple nozzles in the injector, the value
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
specified is for the first nozzle. Suggested values are: 2000–5000 for each solid
cone spray plume, 10000 for a hollow cone spray, and 30000 for a fan spray).
• Inflow Droplet Temperature: The initial temperature of injected droplets is typically near the
coolant temperature in an engine environment. The value of 350 K is usually reasonable if an
experimentally determined value is not known.
• Droplet Size Distribution: Specify droplet size distribution to initialize spray injection.
For a Solid-Cone Injector, the specified droplet size distribution is applied at the nozzle exit. If
the injector has a straight cylindrical nozzle passage, such as is commonly used for diesel fuel
injection, the Uniform Size is recommended. In this case, an intact liquid core is assumed to
exist at the nozzle exit, which is modeled by continuously injected large "blobs" of liquid droplets,
and the initial droplet size is calculated based on the nozzle exit area and discharge coefficient.
If the injector has a step-hole nozzle, such as is commonly used in gasoline direct-injection (GDI)
engines, atomization is assumed to occur inside the nozzle. In this case, we recommend a Rosin-
Rammler or Log-normal statistical droplet size distribution to account for the effects of atomiz-
ation.
where is the droplet diameter, is the shape parameter with typical range 2.0–5.0 for sprays
in engines, and is a characteristic mean drop size that is related to the Sauter mean diameter
through a gamma function:
(3.3)
To use the Rosin-Rammler distribution for a Solid-Cone Injector, the expected input parameters
are the shape parameter ( ) and the Sauter Mean Diameter of the droplet ( ).
(3.4)
where parameters and denote the mean and standard deviation of the normal distribution
followed by . They are related to the arithmetic mean ( ) and standard deviation ( ) of the
log-normal distribution:
(3.5)
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Modeling Guide
To use the Log-normal distribution for a Solid-Cone Injector, the expected input parameters
are the arithmetic mean droplet diameter ( ) and the ratio of the standard deviation over mean
diameter ( ).
Note:
There are two types of probability density function (PDF) for droplet size distribution:
the number-based PDF and mass-based PDF. In Ansys Forte, fuel is injected with a
number of "parcels," and each parcel contains one or multiple droplets. Whether the
droplet size distribution function should be a number-based or mass-based PDF depends
on the parcel specification. If the injected parcel count (or number of parcels) is specified,
each parcel will contain an identical amount of mass (which is, the total fuel mass divided
by the number of parcels injected), and is regarded as a fixed incremental of fuel mass.
When specifying droplet size distribution for the parcels, it is better to use a mass-based
PDF. If the droplet number density is specified, each parcel will contain the same number
of droplets but likely different mass if a droplet size distribution is assumed. In this case,
when specifying droplet size distribution for the parcels, it is better to use a number-
based PDF.
For the Hollow-Cone Injector and Slit Injector, the specified droplet size distribution is applied
when droplets are formed from the liquid sheet breakup process. The detailed description of the
physics and modeling of the hollow cone spray formation process is provided in Forte Theory
Manual, Linearized Instability Sheet Atomization (LISA) Model . The process of fan spray formation
from a slit injector is described in Fan Spray Models in the Ansys Forte Theory Manual . If the Uniform
Size option is used, initial droplet size will be calculated by Forte Theory Manual, Equation 6.64 . If
Rosin-Rammler Distribution is used, input of the shape parameter ( ) is required and input of the
Sauter Mean Diameter ( ) is optional. If is not provided, it will be calculated by Equation 6.64
in the Forte Theory Manual. If it is provided, it will override the prediction from the liquid sheet
breakup model. We recommend use of Rosin-Rammler Distribution without specifying .
Similarly, if Log-normal Distribution is used, input of the ratio of the standard deviation over the
mean diameter ( ) is required and input of the mean droplet diameter ( ) is optional. If is
not provided, it will be calculated by Equation 6.64 in the Forte Theory Manual.
For the Solid-cone Injector, there are several settings options that are specific to this type of in-
jector. Several spray-model parameters control the initial injection velocity and droplet breakup
behavior. In general, default settings are recommended as a good starting point. Options include:
• Spray Initialization: The spray can be initialized using an empirically derived Discharge Coeffi-
cient, or using a more detailed Nozzle-flow Model. When the default discharge coefficient ini-
tialization model is selected, only a value for the discharge coefficient is required. For the nozzle-
flow model, two relative length scales are required, which are described in the Ansys Forte Theory
Manual . Note that when the nozzle-flow model is selected, the spray cone angle will also be
calculated along with the effective discharge coefficient.
• On the Editor panel, the Cone Angle is specified for the injector. Note that this input is not used
for the case when the nozzle-flow model option is selected with a solid-cone injector. In all other
cases it is required input. The cone angle can be specified in two ways: as a user-specified constant
value, or by using a correlation. The correlation is created based on validation data over a wide
range of conditions, especially flash-boiling conditions. Since the flash-boiling injection condition
is typically associated with a wildly expanding cone angle, the cone angle correlation option is
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
recommended for simulating flash-boiling conditions. Details of the cone angle correlation are
described in the Empirical Nozzle Discharge Coefficient and Spray Angle in the Ansys Forte Theory
Manual.
• KH Model Constants: These parameters are used in the Kelvin-Helmholtz (KH) droplet-breakup
model, which is mainly applied in the near-nozzle liquid core region in solid-cone sprays. Note
that this breakup model generates new child parcels to account for the small droplets shed from
the liquid core. Impose SMR Conservation in KH Breakup is an option used in the child parcel
generation process, and is turned OFF by default.
• RT Model Constants: These parameters are used in the Rayleigh-Taylor (RT) droplet-breakup
model. This breakup model is applied in the region beyond the "breakup length," which is a
certain distance measured from the nozzle exit within which a liquid core is considered to exist
in solid-cone sprays. Beyond the breakup length, the RT model applies to spray parcels and is
expected to significantly reduce the averaged droplet size.
• Use Gas Jet Model: This option helps to reduce mesh-size and time-step dependency in the
spray penetration and droplet size prediction. It is ON by default.
The Hollow-Cone Injector and Slit Injector also have several settings options that are specific to
defining the spray behavior for hollow-cone injections. As with the solid-cone spray settings, default
settings are recommended as a starting point. Options include:
• LISA Spray Model Options: Parameters are provided for the LISA spray model. The Breakup
Length Model Constant controls the breakup length of the liquid sheet during the spray form-
ation processes.
• Injection Pressure: This should be the injection pressure in the sac volume of the injector. It is
used to calculate the discharge coefficient.
• Mean Cone Angle: For Hollow-Cone sprays only. This parameter controls the opening angle of
the hollow-cone spray shape. Figure 3.14: Definition of mean cone angle and liquid jet thickness
in a hollow-cone spray (p. 70) .
• Liquid Jet Thickness: For Hollow-Cone sprays only. This prescribes the spreading angle of the
spray layer. Figure 3.14: Definition of mean cone angle and liquid jet thickness in a hollow-cone
spray (p. 70) .
• Model Slug Flow: Select this option to account for the slug flow (the flow of residual fuel left in
the injector from the previous injection). The slug flow is modeled as a small solid-cone spray. It
is typically a very small portion of the total fuel flow and usually is not modeled.
• Slit Angle: For fan sprays only. This is the opening angle of the Slit Injector nozzle, and it also
defines the initial fan angle of the spray. See Figure 3.15: Definition of several injection and nozzle
parameters for slit injectors (Left: front view; Right: side view) (p. 70) (Left).
• Side Spreading Angle: For fan sprays only. This parameter determines the dispersion angle of
sprays with respect to the fan plane. See Figure 3.15: Definition of several injection and nozzle
parameters for slit injectors (Left: front view; Right: side view) (p. 70) (Right).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
Modeling Guide
Figure 3.14: Definition of mean cone angle and liquid jet thickness in a hollow-cone spray
Figure 3.15: Definition of several injection and nozzle parameters for slit injectors (Left: front
view; Right: side view)
The VOF Injector requires additional input information about the VOF input data and the mapping
of location and velocity parameters between the VOF simulation and the Lagrangian spray simulation:
• VOF Input File is used to specify the name of the VOF input data file. The location of the
VOF input file is specified using an environment variable FORTE_VOF_PATH. Ansys Forte
provides a default value for this path. You can either copy the VOF input file to the default
location or modify FORTE_VOF_PATH to point to the VOF input file. Both absolute path
and relative path are supported. If FORTE_VOF_PATH is undefined, Forte will try to find
the input file on the local path, that is, within the Run folder. However, if FORTE_VOF_PATH
is defined and points to a location where the input file does not exist, Forte will not attempt
to search the local path. Instead, it will report an error and stop the calculation. The format
of the VOF input file is explained in VOF Input File Format (p. 266) .
• VOF Start Time specifies when to begin to pull data from the VOF input file. This input
parameter refers to the time values contained in the VOF input file that are used to mark
each VOF data set.
• Injector Reference Frame in VOF specifies a coordinate system for marking the injector’s
location and orientation in the VOF simulation framework. This reference frame combined
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
with the Injector Reference Frame in Lagrangian Spray are used to map location and
orientation parameters from the VOF framework to Forte’s Lagrangian spray simulation
framework. The location and orientation of the injector and all its nozzles in these two refer-
ence frames are required to be consistent with respect to their own simulation framework.
Ideally, the origins of the reference frames should anchor the same point on the injector’s
axis, and one of the coordinate axes should be aligned with the injector axis.
• Injection Timing of Lagrangian Spray: Since only one VOF input file can be specified for
a VOF injector, the Start of Injection (SOI) timing is exposed on the Injector setup panel,
and there is no need to add Injection panels as used in other types of injectors. Duration
of Injection (DOI) is calculated based on the VOF Start Time and the time value of the last
data set in the VOF data file. The total injected liquid mass and injection profile are both
derived from the VOF input data.
• Each VOF Injector can have multiple Nozzles. For each nozzle, in addition to the nozzle
exit’s Location, Spray Direction, and Nozzle Size, there are several Spray Parcel Initializ-
ation Controls:
– Liquid Volume Fraction Threshold: If the liquid volume fraction in an VOF CFD cell
exceeds this threshold value, Lagrangian spray parcels will be initialized from this
cell. A smaller value will result in more injected parcels.
– Max Injected Parcel Mass: Controls the maximum mass of an injected parcel. For
each VOF CFD cell that will emit spray parcels, at least one parcel will be formed. If
the total liquid mass from this cell exceeds this maximum parcel mass control, the
total mass will be split into multiple parcels. A smaller value of this control will result
in more injected parcels.
– Min Injected Parcel Mass: Controls the minimum mass of an injected parcel. A VOF
CFD cell will not emit spray parcels if the total liquid mass coming out of this cell is
less than the min injected parcel mass. A smaller value will result in more injected
parcels.
– TKE Scaling Factor: The TKE scaling factor is used to modify the turbulent kinetic
energy in a local VOF cell (in the VOF input data). The scaled TKE is then converted
into turbulence velocity, which in turn is used to perturb the initial velocities of the
injected spray parcels associated with this VOF cell.
icon on the appropriate (Solid Cone, Hollow Cone, or Slit) Injector icon bar. (See Solid-Cone,
Hollow-Cone, Slit, and VOF Injector Panels (p. 65) .) On the Injection Editor panel using a Pulsed
injection, the Timing Option allows you to specify the injection's Start and Duration in terms
of Time (relative to the start of simulation) or Crank Angle (assuming a slider-crank boundary
motion is defined in the project). For a CA-based start-of-injection timing used in engine cases,
you can select the Crank Angle Option as Cyclic or Global. The Cyclic option is helpful in spe-
cifying injection that is repetitive in a multi-engine-cycle simulation. In this case, the user-supplied
Start crank angle value will be converted to fit in the range of [0, 720) °CA (for 4-stroke engines)
or [0, 360) °CA (for 2-stroke engines). The injection timing will then be treated as cyclic and re-
peated on a 720-degree schedule (4-stroke) or 360-degree schedule (2-stroke). You may choose
to Use Global Crank Angle Limits to impose a global crank angle range for the cyclic repetition,
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
Modeling Guide
beyond which the injection is not active. If the Crank Angle Option is Global, no cyclic conversion
is made on the user-supplied start crank angle value.
The panel also provides options to edit or create a Velocity Profile (by clicking the Edit
icon and specifying the Total Injected Mass. The Velocity Profile option opens the Profile Editor
(see Profile Editor (p. 20) ) where you can define the profile manually or import data describing
the injection shape.
The Injection Type parameter specifies the injection type as either Pulsed or Continuous. For
Pulsed injection, also specify the injection Timing Option (start and duration), Total Injected
Mass, as well as an injection Velocity Profile. For Continuous injection, specify the Mass Flow
Rate.
Note:
1. In cases that contain periodic or symmetric boundaries, the nozzles added in the
user interface are for the meshed sector (or meshed domain) only, but these nozzles
are assumed to be duplicated on all the unmeshed sectors in the full 360-degree
domain. For a solid-cone injector, the Total Injected Mass specified in the user
interface is for all the nozzles in the 360-degree domain (in both meshed and un-
meshed sectors). For a hollow-cone injector or a slit injector, the Total Injected
Mass specified is for the nozzle(s) in the meshed sector only. For a VOF injector,
total injected mass is specified through the VOF input file, and the mass is also for
the nozzle(s) in the meshed sector only.
2. Avoid allowing the starting time or starting crank angle of the simulation to fall in
the injection duration of any spray. When this happens to a spray, the injection
will be ignored and no liquid will be injected for this spray.
and geometry. The Nozzles icon bar also offers 4 icons: Rename , Copy , Paste , and
Delete . These allow you, for example, to create a new nozzle by copying and pasting an
existing one and then editing just the parameter that needs to change, such as Spray Direction.
Use the Reference Frame sub-panel to provide Location and Spray Direction of each nozzle
hole. (See Reference Frames (p. 34) for more details on Reference Frames.)
Note:
For converting nozzle orientations from KIVA: The Ansys Forte θ "theta" value is 180°
- (KIVA's X-Z tilt). If X-Z=76, θ=180-76=104°. The φ "phi" value is: (the value of the sector
wedge angle) - (X-Y tilt).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
For Solid-Cone and Hollow-Cone injectors, the remaining geometric parameter for the nozzle
is the Nozzle Area, which is the exit flow area. In Solid-Cone sprays, this is used to determine
the initial Sauter Mean Diameter of the liquid droplets exiting the nozzle. For Hollow-Cone sprays,
the nozzle area is an important parameter in determining the liquid sheet thickness and the spray
formation as a result of sheet breakup. In both cases, you can also set Nozzle Diameter instead
of Nozzle Area.
For Slit injectors, the Slit Height and Aspect Ratio are necessary inputs to specify the dimensions
of a nozzle. The Aspect Ratio is defined as Slit Width divided by Slit Height. The nozzle area is
associated to the Slit Height, Slit Width, and Slit Angle, as described in Fan Spray Models in
the Ansys Forte Theory Manual. Considering the planar shape of a fan spray, a Nozzle Orientation
Angle is needed to define the angle between the fan plane with respect to the direction of injec-
tion.
Note:
For Hollow-Cone injectors, only one nozzle is allowed for each injector. For Solid-Cone
and Slit injectors, multiple nozzles are allowed for each injector, and the amount of
mass injected through each nozzle is split from the Total Injected Mass based on the
area of each nozzle with respect to the total nozzle area. When creating multiple
nozzles, it is often efficient to configure the first one and then use Copy and Paste
to duplicate it, then modify the original configuration to correctly specify the
new nozzles.
The Spark Ignition Editor panel provides settings that apply to all spark events in the simulation:
• Kernel Flame to G-equation Switch Constant: Enter a value for the transition from ignition kernel
model to G-equation model. This transition happens when the kernel radius grows larger than this
coefficient times the turbulence integral length scale. Suggested range: 1.5-2.5.
• Min. Kernel Radius for Kernel to G-equation Switch: The spark ignition flame kernel radius must
grow larger than this minimum radius before it can switch to the G-equation model. Suggested
value: 0.1 cm.
• Flame Development Coefficient: This coefficient controls the exponentially increasing effect of
turbulence on flame propagation speed as the flame grows from laminar to fully developed turbulent
flame. A larger value speeds this transition. Suggested range: 0.5-2.5.
• Number of Flame Particles for each Spark Plug: Number of particles used to track the flame front
location of a spark ignition kernel flame. This value is applied to all spark plugs. Suggested value:
3000.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
Modeling Guide
The default settings are usually a good place to start. Next, from the Spark Ignition icon bar, use the
New Spark icon. A new, named Spark node is added to the Workflow tree and its associated Ed-
itor panel opens, as described below.
The Spark icon bar offers 4 icons: Rename , Copy , Paste , and Delete , which are
used to manage the sparks. You can create a new spark by copying and pasting an existing one or
by using the New Spark icon on the Spark Ignition icon bar.
Use the Location sub-panel (see Reference Frames (p. 34) ) to provide the location of each nozzle
hole.
• Timing: Start and duration of the spark event can be set in terms of crank angle or simulation
time with the option to specify a relative time frame (see Time Frames (p. 35) ). For CA-based
spark timing used in engine cases, you can select the Crank Angle Option as Cyclic or Global.
The Cyclic option is helpful in specifying spark event that is repetitive in a multi-engine-cycle
simulation. In this case, the user-supplied crank angle value will be converted to fit in the range
of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for 2-stroke engines). The spark timing will
then be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree
schedule (2-stroke). You may choose to Use Global Crank Angle Limits to impose a global crank
angle range for the cyclic repetition, beyond which the spark event is not active. If the Crank
Angle Option is Global, no cyclic conversion is made on the user-supplied starting crank angle
value.
• Spark Energy:
– Energy Release Rate: Specify the rate of energy release for the spark event.
– Energy Transfer Efficiency: Enter the efficiency of energy transfer from the spark discharge
to the gas mixture.
• Initial Kernel Radius: Enter the initial radius of the spark-ignition kernel.
Note:
When using the Crevice model, you cannot also include the crevice block in the Sector
Mesh Generator (see Sector Mesh Generator (p. 43) ).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
• Method of Moments
• Pseudo-gas model
Use Models > Soot Model to turn on the Soot model and access its options.
Note:
Although detailed kinetics can be used to predict soot precursors in the gas phase, it is often expedient
to use a semi-empirical model to get a qualitative but direct measure of the particulate matter gen-
erated under the simulation conditions of interest. For this reason, Ansys Forte includes a popular 2-
step semi-empirical soot model with acetylene as the soot precursor that approximates the mass and
the particle size of soot formed, based on local species concentrations throughout the simulation.
However, for the soot model to be used, it is also necessary to have a species named "soot" appended
to the species list with thermodynamic property entries in the chemistry input files within the
chemistry set that is imported to Ansys Forte. All of the installed Ansys Forte chemistry sets in the
system data directory include this species. If this model is chosen, no surface chemistry is required.
Soot particles cannot be tracked when this model is used; only the overall soot mass can be simulated
with this method.
The Soot Model Settings panel allows modification of the particle formation equations in the model
by controlling key parameters in those equations. Options include:
Details regarding the semi-empirical soot model and these parameters are provided in the Ansys
Forte Theory Manual . Some guidance is available in the tool tips for the individual options in the
Editor panel.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
Modeling Guide
The Method of Moments model (see Method of Moments , in the Ansys Forte Theory Manual ) allows
tracking of particle size and number density, in addition to soot mass and volume fraction, throughout
the simulation. It requires more detailed kinetics in the gas-phase fuel combustion model as well as
a surface kinetics description of reactions that occur on the particle surface to initiate the formation
of dispersed-phase particles. The Method of Moments option requires that a chemistry set be populated
with a dispersed-phase particle-inception reaction, where gas-phase precursors react to form a dispersed
particulate bulk phase along with some proportion of occupied and unoccupied surface sites. From
a Moment-equation representation of the particle size distribution, the particle number density, mass
density, and volume fraction are derived, as well as a mean particle size. These variables are determined
as a function of location and time throughout the simulation.
The Soot Model Settings panel has options for changing the number of moments, changing the
scaling factors used in the calculation, the option to include particle coagulation, and particle coagu-
lation efficiency.
3.3.7. Source
Four types of user-defined source models are provided in Ansys Forte, including
• Species Source
• Momentum Source
• Porous Media
• Energy Source
To use source models, check the box next to the Source node in the Workflow tree. Click the icons
in the action bar at the top of the Source Editor panel to add the desired types of new sources. In
Forte, sink models are treated as sources with negative production rates.
1. Species Source:
For a Species Source, you can specify its composition, production rate, source location, and activ-
ation duration.
b. Production Rate: Four options are provided to specify the production rate of the species
source mixture:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
If the Per Unit Volume option is selected, the same rate will be used to modify the mass
density of all fluid cells involved in the species source. If Entire Source Domain is selected,
the production rate will first be converted to a Per-Unit-Volume value based on the total
volume of fluid cells involved in the species source, and then the same Per-Unit-Volume rate
is applied to all cells.
When the Time Varying option is selected, you should supply a Rate Profile and its Time
Frame. For reciprocating engine cases, the first column of the Rate Profile must use crank
angle, and the range is expected to be [0°, 360°] for two-stroke engine and [0°, 720°] for four-
stroke engine. The profile will be treated as cyclic in engine simulations. For non-engine cases,
the first column of the profile should use time. For the second column of the profile, select
MassFlowRate for the Per Unit Volume option, and select MassROP for the Entire Source
Domain option. The Time Frame is used to define the time/crank angle delay relative to the
global time/crank angle, which is useful in multi-cylinder engine simulation. For example, by
defining an appropriate time-frame value for each cylinder based on the firing order, the same
Rate Profile can be used for all cylinders.
c. Source Location: This input is used to populate all the fluid cells involved in a species source
at any given time. The following options are available:
• Bounding Sphere
• Bounding Box
• Bounding Cylinder
• Initialization Region
Bounding Sphere uses a Source Center and a Source Radius to define a spherical volume.
Fluid cells whose cell centers reside inside this volume are included in the source domain.
Bounding Box uses a Local Coordinate System to define the center and orientation of the
box. The origin of the Local Coordinate System serves as the center of the box. The side
lengths of the box are specified by Side Length X, Y, Z. In the Local Coordinate System, the
lower-left and upper-right corners of the box correspond to (-X/2, -Y/2, -Z/2) and (X/2, Y/2,
Z/2), respectively.
Bounding Cylinder also uses a Local Coordinate System to define its center and orientation.
The origin of the Local Coordinate System serves as the center of the cylinder. The Z-axis of
the Local Coordinate System will be aligned with the axis of the cylinder. Source Height and
Source Radius define the height and radius of the cylinder, respectively.
Initialization Region allows you to associate the source to a region. At a given time, all fluid
cells in the selected region are included in the source domain.
General Data Sampling can be used to identify fluid cells associated with the source indirectly
through a point cloud. In the point cloud, you can specify a group of points in terms of their
X, Y, Z coordinates. Fluid cells containing any of these points will be included in the source
domain.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
Modeling Guide
d. Active: This input is used to specify when the species source will be activated and deactivated.
Four options are provided:
• Always
• Never
The During Crank Angle Interval option can only be used in reciprocating engine cases. You
can select the Crank Angle Option as Cyclic or Global. The Cyclic option is helpful in specifying
source activation that is repetitive in a multi-engine-cycle simulation. In this case, both the
Start angle and End angle will be converted to a value within the range of [0°, 360°) or [0°,
720°) for two-stroke or four-stroke engines, respectively. The CA-interval-based activation
control will be treated as cyclic in engine simulations. The source activation time will then be
treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree schedule (2-
stroke). User may choose to Use Global Crank Angle Limits to impose a global crank angle
range for the cyclic repetition, beyond which the source is not active. If the Crank Angle Option
is Global, no cyclic conversion is made on the user-supplied start and end crank angle value.
2. Momentum Source:
For a Momentum Source, you can specify its direction, production rate, source location, and activ-
ation duration.
a. Momentum Direction: Specify the direction vector for the momentum source. The user-supplied
X, Y, Z components will be normalized as a unit vector.
b. Production Rate: The options are similar as those for Species Source. Refer to the Species
Source section for the list of options and general information. For momentum source, the
production rate will be applied to momentum cells instead of regular fluid cells. Note that in
Forte’s staggered discretization scheme, a momentum cell’s center is a vertex and a momentum
cell consists of fractions of all fluid cells surrounding this vertex.
When Entire-Source-Domain is selected, the rate value will first be converted to a Per-Unit-
Volume value based on the total volume of momentum cells involved in the momentum
source, and then the same Per-Unit-Volume rate is applied to all momentum cells.
When the Time-Varying option is selected, user should supply a Rate Profile. The first column
of the Rate Profile (time or crank angle) should follow the same requirement described in
Species Source. For the second column of the Rate Profile, select VolumetricMomentum
for the Per-Unit-Volume option, and select Force for the Entire Source Domain option.
c. Source Location: This source location options for momentum source are the same as those
for Species Source. Note that instead of collecting regular fluid cells, momentum source collects
momentum cells, which center at vertices.
For the General Data Sampling option, the point cloud is first used to mark all fluid cells
containing any sample point, and then all the eight vertices of the marked cells will be included
in the momentum source domain.
d. Active: The activation control for momentum source is the same as that for Species Source.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Models Node
3. Porous Media
In Forte, porous media is modeled as a special type of momentum resistance using Darcy’s Law.
The momentum loss through a porous medium is given as
For each porous media source, you can specify the media type, resistance coefficients, source
location, and activation control.
a. Media Type: The porous media can be modeled as either Isotropic or Directional. For the
Isotropic type, only one set of resistance coefficients is needed. For the Directional type, you
can specify one streamwise direction and two transverse directions and assign different resist-
ance coefficients for each direction. Since these three direction vectors are required to be
mutually orthogonal, a convenient way to specify these vectors is to create a coordinate system.
The Z axis of this coordinate system should be oriented to align with the streamwise direction
of the porous medium. The X and Y axes of the coordinate system will be treated as transverse-
1 and transverse-2 directions, respectively.
b. Source Location: The source domain/location specification for porous media is similar to those
for Species Source and Momentum Source.
c. Active:The activation control for porous media source is the same as that for Species Source.
4. Energy Source
Energy source allows internal energy to be added or deducted from fluid cells. You can specify
its production rate, source location, and activation control.
a. Production Rate: The production rate options for energy source are similar to those for Species
Source. Refer to the Species Source section for general information.
When the Time Varying option is selected, the first column of the Rate Profile (time or crank
angle) should follow the same requirement described in Species Source. For the second
column of the Rate Profile, select HeatProductionRate for the Per-Unit-Volume option, and
select Power for the Entire Source Domain option.
Energy Source also allows its production rate to be derived from a pressure curve. This is the
last option on the drop-down list. When this option is used, the Source Location of the energy
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
Modeling Guide
source must use the Initialization Region option and the region selected must be a cylinder
or primary region. The energy release rate is calculated as
in which, may also be in engine cases. is the total volume of the selected cylin-
der/primary region, and is the averaged specific heat ratio in the region.
b. Source Location: The source location options for Energy Source are the same as those for
Species Source.
c. Active: The activation control for Energy Source is the same as that for other sources, such
as Species Source.
3.3.8. Radiation
Activate the Radiation model option if radiation heat transfer is considered in the simulation. Ansys
Forte can calculate radiative heat transfer between high-temperature gas and solid walls, if the gas
contains radiative gaseous species, soot particles, or both.
Select Include Soot Particle Contribution if you would like to consider soot particles in the radiation
model. Note that, in order to consider soot particles’ effect on radiation, you must have used one of
the soot models described in Soot Model (p. 75).
In the Radiation Species list, you can select which radiative species are considered in the radiation
model. The radiative species are automatically determined when a gas-phase mechanism is loaded
during the Chemistry model step (see Chemistry (p. 56)). Species are considered as radiative species
if they have an absorption coefficient correlation in the thermodynamic data file. The absorption
coefficient correlation can be identified in the thermodynamic data file by the AbsorptionCoeffi-
cients keyword. So, it is important for the user to check the thermodynamic data file used in the
gas-phase mechanism and see which species have the absorption coefficient, before using the radiation
heat transfer model. Figure 3.16: Excerpt of sample thermodynamic data file used in the mechanism,
containing absorption coefficient data for CO, CO2, CH4 (p. 81) shows an example of the thermody-
namic data file which includes several radiative species. For more information about the absorption
coefficient data format in this file, refer to Gas Species Radiation Absorption Coefficients in the
Chemkin-Pro Input Manual.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
Figure 3.16: Excerpt of sample thermodynamic data file used in the mechanism, containing
absorption coefficient data for CO, CO2, CH4
Body-fitted Mesh
For body-fitted meshes, the boundary conditions must be specified as flags associated with the
boundaries in the mesh itself, following the KIVA-3V export convention. In this case, after importing the
mesh, the boundaries will already appear in the Boundary Conditions list and the mapping between
the boundary and the geometry surface is already defined. For these boundaries, you need only set the
parameter values and options associated with the boundary condition, since the boundary/surface
mapping is handled by the imported mesh flags.
For automatic mesh generation, the Boundary Conditions icon bar is used to create new boundaries
and has the following options: New Inlet , New Outlet , and New Wall . Use these icons
to open an Editor panel, which will allow you to associate boundary conditions with geometry surfaces
and then specify the boundary conditions.
Once you have created a new boundary entity, the boundary (Inlet, Wall, Outlet, etc.) node allows you
to associate the Geometry surface in the Location selection sub-panel. To see the surface highlighted
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 81
Modeling Guide
in the 3-D View or to use the mouse to select, use the Select from screen icon to enable interactive
screen selection. Click the Screen icon again to toggle the screen-selection mode OFF.
Note:
It is usually possible to associate a boundary condition with more than one Geometry surface,
using multi-select (Ctrl + mouse click) in the Location list. However, for moving wall
boundaries, such as a valve, it may be necessary to merge surfaces using the Geometry Merge
option, so that only one surface is moved as an ensemble. This constraint is described in
more detail below in Wall Boundary (p. 86).
After the boundary-surface mapping is done for a given boundary, the input of boundary-condition
information on the Boundary Editor panels is generally the same for both body-fitted mesh and auto-
matic mesh generation. These panels are described in Inlet Panel (p. 82) through Wall Boundary (p. 86).
, Copy , Paste , and Delete . You can create a new inlet by copying and pasting an
existing one or by using the New Inlet icon on the Boundary Conditions icon bar. However, for
body-fitted cases the presence of the inlet(s) is determined by the mesh flags upon import of the
mesh, such that you cannot create new ones within the Simulation interface. For body-fitted mesh
projects, then, only the Rename option is available here.
Note:
If you have a DISPERSED material defined in your chemistry set, and you have selected
Moment Method for the Soot model option, and you want to define the presence of
particles in the inlet, you will need the options on the Surface Composition and the Dis-
persed Phase Editor panels. Otherwise they usually are not present.
• Composition: Use the Mixture Editor to specify the details of the composition. See Mixture
Editor (p. 22) for details. Select whether to specify the inlet’s species composition in Mass Fraction
or Mole Fraction, and then use the Add Species button to select species that are present in the
inlet fluid mixture (see Figure 2.11: Specifying species composition for an inlet (p. 23)). In the res-
ulting table, specify the associated fractions (in the units selected) for each species. Note that if
you have table data with the same layout and species order, you can use cut/paste to enter the
data in this table. When all the species data are entered, you can optionally use the Normalize
button to assure that the resulting species composition sums to 1.0.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
Note:
By default, surfaces included in the same open boundary condition are required to be
contiguous, but including non-contiguous surfaces in the same open boundary is sup-
ported as long as these surfaces are connected to the same region. To disable the con-
tiguity check, go to Edit Preferences > General Settings > Validation Settings and
check the box Skip Open Surface Contiguity Check.
• Inlet Options: Select from the list of inlet types: Static Pressure, Total Pressure, Velocity, or Mass
Flow Rate, and any of these can also be Time Varying. Time Varying options can include a time-
frame offset (see Time Frames (p. 35) ).
– If Pressure Inlet is selected, a constant value of the pressure or a pressure profile (as a function
of time or crank angle) must be provided for Time Varying cases. In the Time Varying case, if
the pressure profile is based on crank angle, you can select the Adjust Profile to Cyclic
Boundaries option to shift the crank angle in the profile to fit within 0-360 (for 2-stroke) or 0-
720 (for 4-stroke) degrees. The adjusted pressure profile will then be treated as cyclic and repeated
on a 720-degree schedule (4-stroke) or 360-degree schedule (2-stroke). You may choose to Use
Global Crank Angle Limits to impose a global crank angle range for the cyclic repetition of the
pressure profile. If the Adjust Profile to Cyclic Boundaries option is not selected, then the crank
angle provided in the pressure profile will not be converted to cyclic.
– If Velocity Inlet is selected, the velocity magnitude and direction must be provided and there
are options for specifying Inflow Mixture Density. For low-speed flows, you can use the default
Assume Zero Pressure Gradient. This option assumes the pressure of the inflow mixture is
equal to the pressure in the nearest fluid cell inside the domain, and that the inflow pressure is
used to compute inflow mixture density. For high-speed (supersonic) flows, the zero-pressure-
gradient assumption is no longer suitable, and you can either specify the inflow density directly
or specify an inflow pressure, which in turn is used to compute the inflow density. Both the
density and pressure can be specified as either static or total.
– If Mass Flow Rate Inlet is selected, the user-provided mass flow rate will be used to derive the
inlet velocity magnitude using the following formula:
in which is the velocity magnitude normal to the inlet boundary, is the mass flow rate,
is the density of the inflow mixture, and is the total area of the inlet. The inflow density is de-
termined based on the interior fluid cells adjacent to the inlet boundary. The direction of inflow
velocity can be specified either as Normal to Boundary or From Vector.
• Turbulence: Select from the list a method for indicating inlet turbulence kinetic energy (TKE) and
TKE dissipation rate; using the pull-down list, and then specify the corresponding parameter values
and units where appropriate. Specification options include:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 83
Modeling Guide
The above options allow you to specify absolute values for the TKE and TKE Dissipation rates or to
use the relative values of Turbulent Intensity and Turbulent Length Scale. Turbulence Intensity is
a dimensionless measure of the turbulent kinetic energy and is defined such that:
where U is the local mean velocity magnitude and I is the turbulence intensity fraction specified.
– Turbulent Length Scale: Defines the boundary value of epsilon in the k-epsilon turbulence
model, through the relationship:
• Temperature Option: Specify the temperature behavior as one of Assume Isentropic, a specified
Static value, or Total Temperature, either of which can also be Time Varying. Time Varying options
can include a time-frame offset (see Time Frames (p. 35) ). If the Assume Isentropic option is se-
lected, a reference state (density, pressure, specific heat ratio) will be picked at the beginning of
the calculation based on the state in the neighboring region. During the calculation, the actual inflow
temperature is calculated by assuming the mixture has gone through an isentropic compression/ex-
pansion process starting from the reference state.
If you have a DISPERSED material defined in your chemistry set, and you have selected Moment
Method for the Soot model option, and you want to define the presence of particles in the inlet, the
following options are of interest:
• Surface Composition: Use the Solid Phase Editor to specify the details of the surface com-
position. If no solid phase exists in the mechanism, this property can remain unspecified. If the
surface composition is not specified, then the dispersed-phase composition at the inlet is assumed
to be zero. See Solid Phase Editor and Dispersed Phase Editor for Particle Tracking (p. 37) for details.
Use the Add Species button to select species that are present in the inlet dispersed surface phase.
• Dispersed Phase: Use the Solid Phase Editor to specify the details of the dispersed phase.
See Solid Phase Editor and Dispersed Phase Editor for Particle Tracking (p. 37) for details. If no
solid phase exists in the mechanism, then this property can remain unspecified. If the dispersed
phase is left unset, then the dispersed phase composition at the inlet is assumed to be zero.
name , Copy , Paste , and Delete . You can create a new outlet by copying and
pasting an existing one or by using the New Outlet icon on the Boundary Condition icon bar.
However, for body-fitted cases the presence of the outlet(s) is determined by the mesh flags upon
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
import of the mesh, such that you cannot create new ones within the Simulation interface. For body-
fitted mesh projects, then, only the Rename option is available here.
Note:
By default, surfaces included in the same open boundary condition are required to be
contiguous, but including non-contiguous surfaces in the same open boundary is sup-
ported as long as these surfaces are connected to the same region. To disable the con-
tiguity check, go to Edit Preferences > General Settings > Validation Settings and
check the box Skip Open Surface Contiguity Check.
• Outlet Options: Select from the list of outlet types:Static Pressure, Total Pressure, and either of
these can also be Time Varying, or Continuative Outlet. Time Varying options can include a
time-frame offset (see Time Frames (p. 35)). If a Pressure Outlet is selected, an option is provided
for Offset Distance to Apply Pressure. This is the offset distance between the boundary and the
location of the specified fixed (ambient) pressure, which enables the boundary to absorb acoustic
waves and reduce any tendency the waves may have to be reflected back in. You must enter a
constant pressure value or a pressure profile that varies as a function of time (or crank angle) for
Pressure Outlets (see profile data in Entering Profile Data (p. 16)).
• Turbulence: This parameter set is necessary for the possibility of reverse flow at the outlet. To use
it, select from the list a method for indicating outlet turbulence kinetic energy (TKE) and TKE dissip-
ation rate; using the pull-down list, and then specify the corresponding parameter values and units
where appropriate. Specification options include:
The above options allow you to specify absolute values for the TKE and TKE Dissipation rates or to
use the relative values of Turbulent Intensity and Turbulent Length Scale. Turbulence Intensity is
a dimensionless measure of the turbulent kinetic energy and is defined such that:
where U is the local mean velocity magnitude and I is the turbulence intensity fraction specified.
Turbulent Length Scale: Defines the boundary value of epsilon in the k-epsilon turbulence model,
through the relationship:
3/2
Ε= C mu k /L
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 85
Modeling Guide
The available options for the wall-boundary-layer model are Free Slip, No Slip, or Law of the Wall.
To simulate turbulent flows in internal combustion engines, the Law of the Wall is the recommended
approach to accurately capture wall boundary layer's effects, especially when the mesh size is coarser
than the boundary layer thickness. It is available with both the RANS and LES turbulence models (See
Turbulence (p. 64)). The No Slip model works well with a laminar flow simulation. The Free Slip
model can work in special circumstances, such as when the wall boundary is at a far distance and
does not affect the flows at all. More information about these options is available in Wall Conditions
for the Momentum Equation in the Ansys Forte Theory Manual.
Two parameters for specifying wall roughness are available, the Roughness Height and Roughness
Constant. Typical Roughness Height values vary from 0.1 micron (for very smooth surfaces, such as
glass surfaces) to 5 micron (for rough surfaces, such as metal surfaces). If Roughness Height is set
to zero, the wall will be modeled as ideally smooth wall and all roughness effects will be ignored for
this wall. The default value of Roughness Height is set to 1.0 micron in the Forte User Interface. Wall
roughness affects the outcomes of spray-wall interactions. If the Law of the Wall model option is
used, it also affects the prediction of wall shear stress. To consider these effects, set a proper, averaged
physical roughness height. Presumably the roughness height is smaller than the mesh size used on
the wall. Otherwise, the roughness is considered too large and the wall surface geometry should be
modified to account for it. The roughness constant depends on the type of roughness. Its default
value (0.5) corresponds to tightly packed, uniform sand-grain roughness. Details of how the roughness
affects wall boundary conditions and spray-wall interactions can be found in Wall Conditions for the
Momentum Equation and Wall Impingement Model in the Ansys Forte Theory Manual , respectively.
For the options of modeling wall heat transfer, if Heat Transfer is turned off, the wall is assumed to
be adiabatic. If Heat Transfer is turned on, heat transfer model will be used to calculate heat transfer
from or to the wall. The sign convention used in Forte is that a positive value of heat transfer rate or
heat flux indicates heat being lost from the fluid to the wall. Five Thermal Boundary Condition options
are provided: constant wall temperature, spatially varying wall temperature, time varying wall temper-
ature, heat flux, and external convection.
• Wall Temperature, Constant: use this option to specify a wall temperature. The wall temperature
which applies uniformly to the specified wall and remains constant throughout the simulation.
• Wall Temperature, Spatially Varying: This option allows a wall boundary to have spatially varying
temperatures. The actual temperature at a specific location on the wall is obtained through table
lookup. Note that the table does not vary with time. You can use the Profile Editor to create or
specify the Temperature Table. The Boundary Condition Table of spatially varying temperature, like
the one shown in Figure 3.17: Imported set of spatially varying temperatures (p. 87) , can be imported
from CGNS, .ftres, .csv, and .ftbl formatted files. The form of the .ftbl files is described
in Appendix H: File Formats (p. 265). Note that the coordinate values X,Y,Z are always required.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
• Wall Temperature, Time Varying: This option allows a wall to have time-varying boundary tem-
peratures. The temperature is assumed to be uniform on the wall at any given time. You can use
the Profile Editor to create the temperature profile as a function of crank angle or time. A Time
Frame can be used to specify a crank angle or a time offset relative to the global time frame. A
crank angle-based profile can be treated as cyclic and repeated for each cycle. In addition, the Use
Global Crank Angle Limits option allows the profile to be treated as cyclic only within a global
crank angle range.
• Heat Flux: In this option, a constant heat flux is specified as input, Forte will calculate the wall
temperature using this input. The correlation between heat flux and wall temperature is governed
by the heat transfer model.
• External Convection: In this option, both the heat flux across the wall boundary and wall temper-
ature are unknowns. Instead, you specify an external heat transfer coefficient and a free stream
temperature. The external convection equation can be written as:
(3.6)
in which and are the heat flux and wall temperature, respectively, is the external
heat transfer coefficient, and is the external freestream temperature. Heat flux and wall
temperature are solved by combining the external convection equation and the internal heat
transfer model equation.
With the wall temperature specified, the wall heat transfer model in Ansys Forte will calculate the
wall heat transfer rate based on the difference between gas and wall temperatures, among other
factors. Three Heat Transfer Model options are available:
• Han-Reitz model
• Amsden model
• User-defined location
The details of the model are described in the Wall Conditions for the Energy Equation in the Ansys
Forte Theory Manual. When the Han-Reitz model is selected, you can turn on the optional Pressure
Effects to consider the effect of near-wall pressure fluctuation on the heat transfer rate. By default,
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 87
Modeling Guide
this option is not selected because the pressure fluctuation’s effect is secondary to that of the tem-
perature difference. For the user-defined function option, you can find the sample code in the
user_defined_function\wall folder in your Ansys Forte installation. The corresponding UDF
is UDF_Wall_HeatTransfer. This UDF is designed to calculate the heat flux for a local condition.
Among the input parameters, wallID can be used to identify a wall boundary, and hence it is possible
to apply different wall function formulations to different wall boundaries. wallID is the wall
boundary index following the order wall boundaries are listed in the setup tree.
The Heat Transfer Multiplier allows you to tune the heat transfer rate based on the heat transfer
model’s prediction. The default multiplier is unity, which indicates applying the heat transfer model’s
prediction without any modification. If the multiplier is not unity, the number will be multiplied by
the predicted heat transfer rate.
The wall shear stress applied from the fluid onto the wall can be calculated using two options, one
is Ansys Forte’s default wall function, the other is user defined function. When the default wall function
is selected, you can turn on the optional Roughness Effects option to consider the wall roughness
effect on shear stress. More details are described in Wall Conditions for the Momentum Equation in
the Ansys Forte Theory Manual . For the user-defined function option, you can find the sample code
in the user_defined_function\wall folder in your Forte installation. The corresponding UDF
is UDF_Wall_ShearStress. This UDF is designed to calculate the shear stress for a local condition.
Among the input parameters, wallID can be used to identify a wall boundary, and hence it is possible
to apply different shear model formulations to different wall boundaries. wallID is the wall boundary
index following the order wall boundaries are listed in the setup tree.
Tip:
More information about using User-defined functions (UDFs) is available in Output User
Routine Option (p. 115) .
In a typical engine flow simulation there should be several wall boundaries defined for the engine
combustion chamber, intake and exhaust ports, and valves. Certain wall boundaries (engine cylinder
head, intake and exhaust ports) are static; while other boundaries (piston and valves) are moving.
For automatic-meshing projects, each wall boundary surface can be defined independently. The Wall
icon bar offers 4 icons: Rename , Copy , Paste , and Delete , which are used to
manage the walls. You can create a new wall by copying and pasting an existing one or by using the
New Wall icon on the Boundary Conditions icon bar. For body-fitted mesh cases, however, the
wall boundaries are predetermined upon import of the mesh, and made corresponding to each part
of the engine wall boundaries as Head, Liner, Intake Port, Exhaust Port, and the Valves. In this case,
only the Rename option is available.
If the wall represents a moving boundary, select from Slider Crank or Offset Table as the Motion
Type and provide the related settings, which are described in the following sections.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
• Stroke: This is the swept vertical distance of the piston from bottom-dead center to top-dead
center.
• Connecting Rod Length: This is the length of the connecting rod that connects the crank arm
and the piston pin.
• Piston Offset: When the piston pin is not aligned vertically with the crankshaft, the offset is
defined as the distance between the vertical axis through the pin and the vertical axis through
the crankshaft. In Figure 3.18: Piston-pin offset distance (p. 91) , the distance x is the piston offset.
• The piston pin offset distance is defined as the distance between the two vertical dashed lines
(distance x in Figure 3.18: Piston-pin offset distance (p. 91)). Both lines are parallel to the piston’s
direction of motion. The left-side dashed line goes through the piston pin and the right-side line
goes through the crank-shaft rotating center.
• Sign Conventions: In Ansys Forte, the piston pin offset distance is defined as positive if the offset
is toward the thrust side relative to the crank centerline. The positive offset is illustrated in Fig-
ure 3.18: Piston-pin offset distance (p. 91), in which the crank shaft rotates in a clockwise direction
and the piston pin is on the left side of the crank shaft center.
• True Stroke: When piston-pin offset exists, the piston's actual traveling distance from its true
TDC to its true BDC is longer than two times the crank radius. In Ansys Forte, stroke is two times
the crank radius. The piston travel range from its true TDC to its true BDC will be referred to as
True Stroke.
• Crank Angle = 0: There are two ways of defining the crank angle = 0° position: use piston TDC
or crank TDC. Ansys Forte's convention is to define Piston TDC as crank angle = 0°. If needed,
the offset angle between the piston TDC convention and crank TDC convention can be easily
calculated. Time Frames can be used to shift the timing of a moving wall (see Time Frames (p. 35)).
In addition to the engine parameters, the following options are needed for any moving boundary:
• Vertices to Transform: You can select All, or only Interior or only Exterior. For the piston motion,
the All option is usually appropriate, which means that all of the vertices (front and back of the
surface) will move together with the prescribed motion.
• Direction: Select the coordinate system that is most convenient for the motion and then define
a unit vector in the direction of the desired motion. For a piston that is initially defined at BDC
position, for example, where the center of the cylinder is the Z-axis, the direction of motion would
be in the +z direction, so you would enter 0,0,1.0 in the X,Y, Z coordinates using the Cartesian
coordinate system. In this case the magnitude and units of the vector are not important.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 89
Modeling Guide
• AMG Piston Requirement: In automatic mesh generation (AMG) cases, the piston in the initial
geometry is assumed to be at its true TDC position, which corresponds to crank angle = 0°. This
convention will prevent the initial surface mesh from being compressed. Such a compression
may cause the triangles on the surface mesh to be highly distorted or inverted.
• Body-fitted Piston Requirement: For body-fitted (BF) cases, the piston in the initial mesh will
be assumed to be at its true BDC position. Note that with piston pin offset, the true BDC position
does NOT correspond to the crank angle = 180° position. This convention will prevent the volume
mesh cells from being stretched beyond the piston's lowest position in the initial mesh.
– The offset angle at Piston TDC is defined as the angle between the crank shaft and the ver-
tical line at Piston TDC, shown as angle α in Equation 3.7 (p. 90). The sign of α is consistent
with the sign of the pin offset distance x.
(3.7)
– The offset angle at Piston BDC is defined as the angle between the crank shaft and the ver-
tical line at Piston BDC, shown as angle β in Equation 3.8 (p. 90). The sign of β is consistent
with the sign of the pin offset distance x.
(3.8)
– True Stroke (Piston Travel Range): The distance between the piston's true TDC and true BDC
is calculated as:
(3.9)
In addition to the engine parameters, the following options are needed for any moving boundary:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
• Vertices to Transform: You can select All, or only Interior or only Exterior. In most cases, the
All option is appropriate. However, when defining valve (not piston) motion, it is often necessary
to allow only the Interior vertices to move. This is required when the original valve-stem surface,
as defined by the imported CAD file, does not extend to a sufficient length to allow the valve to
open without opening up a "hole" in the valve-stem/port-wall boundary. In such cases, we want
the valve stem to elongate with the valve motion, which can be accomplished by keeping the
exterior vertices fixed while allowing only the Interior vertices to move as the valve pushes into
the interior. Here Interior vertices refer to those in contact with the fluid region when that region
is first activated and Exterior means those pointing outward, such as the outer face of the valve
stem end. It’s possible that a surface mesh contains zero or more external edges (a completely
closed shape would have no external edges).
• Direction: Select the coordinate system that is most convenient for the motion and then define
a unit vector in the direction of the desired motion. In this case the units of the vector are not
important, as long as the relative values within the selected coordinate system are consistent.
• Lift Profile: Specification of the lift profile, as a function of crank angle or time, is required to
control the boundary motion during the simulation. Select or create a profile using the pull-down
menu. (See Entering Profile Data (p. 16), for details). If the lift profile is based on crank angle,
you can select the Adjust Profile to Cyclic Boundaries option to shift the crank angle in the
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 91
Modeling Guide
profile to fit within 0–360 (for 2-stroke) or 0–720 (for 4-stroke) degrees. The adjusted lift profile
will then be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree
schedule (2-stroke).
You may choose to Use Global Crank Angle Limits to impose a global crank angle range for
the cyclic repetition of the lift profile. If the Adjust Profile to Cyclic Boundaries option is not
selected, then the crank angle provided in the lift profile will not be converted to cyclic.
Note:
For engine simulations, it is recommended that the lift profile always cover one entire
cycle, using values between 0 and 720 degrees.
• Critical Motion Limit: Factor that determines when a boundary is considered separated from its
neighbor (for example, when a valve is open). A space is considered to be an opening through
which fluid can flow when its largest dimension becomes greater than the Critical Motion Limit
multiplied by the local mesh-size control.
1. Select Valve motion for valve-type boundary conditions, which open or close a port.
2. Select Sliding Interface motion in 2-stroke engine cases for a piston boundary condition that
opens a port by sliding past an opening in the liner.
After selecting one of the Movement Types, additional required inputs are displayed in the Editor
panel. Additional inputs for Valve motion include:
• Stationary Valve Seating Surface: Select the stationary valve seating surface or surfaces. This
is the region that the top surface of the valve would seat against at zero lift.
• Valve Motion Activation Threshold: Enter the minimum lift required to trigger valve motion.
For lift values less than this limit, the valve will be held at zero lift and treated as a stationary
surface.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
• Approximate Cells in Gap At Min. Lift: Enter the minimum number of cells required in the gap
upon valve lift (suggested range = 1.5 to 3 cells). A lower value will reduce the cell count around
the valve crevice, a higher value will increase the cell count.
Note:
For automatic mesh cases, it is important that the valve geometry is in a seated position.
Read the instructions in Valve-Seating Utility (p. 93) to achieve a seated valve.
• Select Stationary Sliding Surface: Select the stationary surface the piston slides against (that
is, select the surface that represents the liner).
When Valve Motion is selected, a utility is available to move the valve to the seated location if it
is not already. To run the utility, click the Seat the Valve button visible in the Boundary Condition's
Editor panel. A prompt will ask for a target distance. This is the closest distance between the vertices
of the valve surface to be seated and their closest points on the valve seat. This number is used by
the utility to take the following actions to seat the valve:
Note:
If you cancel the procedure while it is seeking the seating for the valve, it reverts to the
pre-seating location.
1. The points on the valve seating surface (the stationary surface) closest to the vertices of the
valve moving surface are identified.
2. The utility translates the valve to minimize the distance between the moving vertices and their
corresponding fixed-surface closest points.
3. The valve's interior vertices (those vertices which are not shared by an adjacent stationary
boundary) are transformed according to the transformation just described.
4. The geometry is updated in the 3-D View with the changes, and you are prompted to accept
or cancel the changes.
• The target distance is achieved. Achieving a target distance is the desired case and causes the
"accept or cancel" prompt to appear.
• The solver finds a minimum distance larger than the desired tolerance. A message describing
the current state is displayed, and causes the "accept or cancel" prompt to appear.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 93
Modeling Guide
• Minimum valve clearance from the valve seat: This is used to determine the point of valve
closure and opening during valve motion. The minimum valve clearance specified by the user
should correspond to the value in the profile when the valves are considered closed.
• Valve Thickness: The separation distance between the valve's top and bottom surfaces. This in-
formation is used in the control algorithm for adjusting the mesh during valve motion.
Note:
Note that the valve thickness must match the actual dimension in the mesh.
• XZ Tilt: The tilt angle of the valve axis relative to the X-Z plane.
• Lift Profile: Specification of the valve-lift profile, as a function of crank angle or time, is required
to control the valve motion during the simulation. Select or create a profile using the pull-down
menu. (See Entering Profile Data (p. 16), for details.) For engine simulations, the crank-angle
profile should always cover one entire cycle, using values between 0 and 720 degrees. During
the simulation, Ansys Forte will use the periodicity of the cycle to determine the values at crank
angles outside of this range.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions Node
• Snapping Table: The number of entries in the snapping table equals the number of mesh
snapping events between the valve and its surrounding squish region as the valve travels from
the closed location to the fully lifted location. This number of entries should be close to the
number of squish cell layers that the valve passes during its travel. The values in the table are
the fractions of the valve's total lift distance.
1. The piston is assumed to be at its BDC (bottom dead center) position in the surface mesh.
Requirements 2 and 3 are automatically satisfied in a mesh generated by Ansys Forte’s Sector Mesh
Generator.
For AMG (Automatic Mesh Generation) sector-mesh cases, a periodicity boundary condition should
be added and associated with the two vertical faces of the sector. For sector geometries other than
90° or 180°, the sector angle is automatically calculated based on the surface geometry. General re-
quirements for the AMG sector geometry include:
1. The piston is assumed to be at its TDC (top dead center) position in the surface mesh.
2. The sector/cylinder periodic axis must be aligned precisely with the z-axis.
3. The sector must be symmetric about the positive X-Z plane, that is, the central plane of the sector
must be aligned with the X-Z plane as in Figure 3.20: Sector alignment for periodicity (p. 95).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 95
Modeling Guide
Due to the nature of Forte’s underlying Cartesian mesh, there are two special cases that can exploit
the Cartesian alignment for 90° or 180° sectors. These special cases require a different alignment.
1. For 90°sector geometry, the geometry should be aligned so that the periodic surfaces occupy the
X-Z and Y-Z planes, as shown in Figure 3.21: Sector alignment for periodicity (p. 96).
2. For 180° sector geometry, the geometry should be aligned so that the periodic surface is aligned
with the X-Z plane and is centered about the Y-Z plane, as shown in Figure 3.22: Sector alignment
for periodicity (p. 97).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Initial Conditions Node
Projects making use of Forte’s automatic meshing capability (AMG) can also define a symmetry
boundary condition. The geometry should be aligned so that the symmetry plane is aligned with the
X-Z plane and is centered about the Y-Z plane. This is similar to the 180° alignment shown in Fig-
ure 3.22: Sector alignment for periodicity (p. 97).
Note:
As with Boundary Conditions, the handling of region initialization is different between projects
involving imported body-fitted meshes and projects set up for automatic mesh generation.
There are two strategies for defining initial conditions in cases using automatic-mesh generation:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 97
Modeling Guide
1. Let the valves and/or sliding port interfaces separate regions to receive different initial conditions.
3.5.2.1. Strategy 1: Let the Valves and/or Sliding Port Interfaces Separate Regions
The Initial Conditions icon bar offers the option: Secondary Region from Material Point , which
can be used to define a new region that will be initialized differently from the default initialization.
The new region can be a cylinder, an engine manifold, or an engine port. Creating a new Initialization
will add an item to the Initial Conditions tree and open an Editor panel to configure the initial
conditions of that region. For a Secondary Region Initialization, the location of the region is defined
by the location of a region material point. (See Mesh Controls for Automatic Meshing (p. 51).) The
material point sits inside the watertight surface, and touches a cell inside the secondary region.
Once a secondary region is created, then the Initialization order must be correctly set.
Initialization order indicates which region should be used in the assigning of properties in newly
created cells. The order should generally follow the direction of the flow. For example, when new
cells are created by the movement of an intake valve, those cells should be initialized from the intake
port, and not from the cylinder, such that the initialization order of the intake port should be lower
than the Initialization order of the cylinder. Similarly, the Initialization order of the cylinder should
be lower than the Initialization order of the exhaust port.
1. Intake port
2. Cylinder
3. Exhaust port
Initialization order for two-stroke engine with side ports that are uncovered by the piston motion:
1. Cylinder
2. Intake port
3. Exhaust port
In the unusual case that no stationary location exists that stays inside the watertight surface
throughout the entire simulation, the material point location can be set to translate along with a
moving boundary surface. Use the Translate Material Point with Boundary Motion option on the
Initial Conditions panel to specify the boundary that should have paired movement with the mater-
ial point.
The Initial Conditions icon bar offers the option: Secondary Region from Subvolume , which
can be used to define a new region that will be initialized differently from the default initialization.
This strategy allows selection of one or more user-defined subvolumes to initialize to the same
state. It is typically used to define a subchamber or prechamber attached to an engine cylinder.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
98 of ANSYS, Inc. and its subsidiaries and affiliates.
Initial Conditions Node
Using this strategy requires the creation of user-defined subvolumes under the Mesh Controls node.
See Mesh Controls for Automatic Meshing (p. 51) for an overview of Mesh Controls.
Note:
Strategy 2, Let User-defined Volumes Separate Regions, should not be used to define
engine port or manifold regions, as it can lead to incorrect region IDs for cells near the
port/cylinder interface. These errors are difficult to notice and cause problems in the
calculations.
When you create a subvolume, the "regions" are defined through the initialization items, that is,
the first initialization item listed on the Workflow tree receives region ID = 1, the second initialization
item is given region ID = 2, and so on.
You can accept the default RegionType or assign another type to the subvolume:
• Cylinder / Primary: Cylinder corresponds to reciprocating engine cases and Primary corresponds
to non-engine cases. Note that a cylinder region is expected to be adjacent to at least one slider-
crank moving boundary. From the modeling perspective, chemistry (both gas-phase and particle
chemistry), spark ignition, and flame propagation are calculated in this type of region; from the
output-reporting perspective, parameters reported in most of the CSV files are averaged over a
cylinder/primary region. These files include thermo.csv, dynamic.csv, species-
mass.csv, molefraction.csv, massfraction.csv, chemsolver.csv,
flame.csv, particle.csv, particle_size_distribution.csv.
• Other: In this type of region, chemistry, spark ignition, and flame propagation are not modeled,
from the modeling perspective. From the output-reporting perspective, parameters reported in
the CSV files (listed above) do not consider these regions.
• Subchamber: A subchamber region is typically created based on a subvolume. This type of region
is a compromise between the first two region types. From the modeling point of view, chemistry,
spark ignition, and flame propagation are allowed to happen in this type of region. From the
output-reporting perspective, parameters reported in the aforementioned CSV files do not consider
these regions. For example, when a subvolume connected to a cylinder is defined as a
subchamber, the volume of this subchamber will not be included in the in-cylinder volume re-
ported in thermo.csv for this cylinder. This subchamber region type is useful when you want
to give different initial conditions to a subchamber and the cylinder connected to it. To monitor
spatially averaged parameters in a subchamber, consider using a subvolume-based monitor
probe.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 99
Modeling Guide
available as described for the Outlet Boundary specification in Outlet Panel (p. 84). The velocity can
be specified in absolute values as coordinate components, or using a swirl-flow correlation. The swirl-
flow may be defined as general or "engine swirl" and these are provided as two options: engine swirl
and general swirl. The engine swirl-flow correlation requires association of a moving wall boundary
that has slider-crank motion, since the swirl-flow is scaled with the angular velocity of the crank rotation.
For body-fitted cases, this association is done automatically, but for automatic mesh generation, you
must select the appropriate boundary (for example, the piston boundary) and make this association
explicitly. The general-swirl correlation does not require a slider-crank motion to provide the reference
angular velocity. Instead, you can specify the angular velocity explicitly. The general swirl option is
useful for applications in which a slider-crank motion boundary does not exist. Optional initialization
for surface composition and dispersed phase properties for particle tracking can be specified as de-
scribed below. For details of setting the swirl-flow parameters, see Using Swirl Ratio to Initialize Velo-
city (p. 100).
• Composition: Use the Mixture Editor to specify the details of the composition. Select whether
the Region’s species composition is Constant or Spatially Varying. For a constant composition,
the Mixture Editor is launched (see Mixture Editor (p. 22) for details). For a spatially varying com-
position, click the Pencil icon next to Create new... and the Initial Condition Table Editor
launches. Name this new time-varying condition and use the buttons at the bottom of the window
to import data from a structured data file or map variables from a CGNS-formatted file. very occa-
sionally you may need to manipulate CGNS project or solution files and a utility to do this is de-
scribed in <new appendix>
Offset and Scaling Factors for the Spatially Varying Option: If the spatially varying option is
selected for pressure, temperature, turbulence parameters, or the three velocity components, you
can specify an offset value and a scaling factor (scalar) for each of these parameters. The modified
value will be calculated as: scalar times (original value + offset value).
• Surface Composition and Dispersed Phase: Use the Solid Phase Editor to specify the details
of the surface composition and dispersed phase properties (see Solid Phase Editor and Dispersed
Phase Editor for Particle Tracking (p. 37) for details). This is only required if particles are assumed
to be already present at the start of the simulation.
Note:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Simulation Controls Node
Conditions > Initialization). For automatic-mesh generation projects, select the Geometry entity
that corresponds to the Boundary condition where a slider-crank wall motion is imposed, such as
the piston surface, in the Slider Crank Boundary list if more than one region exists in the mesh.
• Initial Swirl Ratio: This is the initial ratio of the swirl flow's angular momentum relative to the
crankshaft rotation speed (both in revolutions per minute). When viewed from the positive Z
direction, a positive value of swirl indicates counterclockwise motion in keeping with the right-
hand rule. The rotation is assumed to be about the Z-axis. A default value is provided that is
typical for many engines.
• Initial Swirl Profile Factor: This factor, referred to as α in the Ansys Forte Theory Manual, is a
dimensionless constant that defines the initial azimuthal velocity profile. It should have a value
that lies between 0.0 (the wheel flow limit) and 3.83 (corresponding to zero velocity at the wall).
The recommended and default value is 3.11.
• Initialize Velocity Components Normal to Piston: If checked, the axial velocity component will
be set to vary linearly from the piston surface to the top of the region (axial velocity = piston
velocity at the piston surface, axial velocity = 0 at top of cylinder) for an engine cylinder.
For General Swirl, specify the Reference Frame (see Reference Frames (p. 34)) and the following
parameters:
• Radius: The radius defining the outermost swirling velocity location with respect to the Z-axis
of the reference frame.
• Axial Velocity: The initial axial velocity to be applied uniformly within the region defined by this
initialization.
• Reference Angular Velocity: The angular velocity defining the swirl velocity.
• Initial Swirl Profile Factor: The initial swirl profile factor, α, is a dimensionless constant that
defines the initial azimuthal velocity profile and lies between 0.0 (the wheel flow limit) and 3.83
(zero velocity at the wall). The recommended value is 3.11.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 101
Modeling Guide
Crank Angle Based End Points: Specify the initial and end points for simulation. Crank angles are
assumed to be specified relative to the top-dead-center (TDC) location of the piston, such that TDC
occurs at 0 crank angle degrees and increments of 360 degrees (that is, at 0, 360, 720,...). However,
when the piston pin is offset relative to the crank shaft, crank angle of 0 and piston TDC do not coin-
cide.
• Initial Crank Angle: ATDC, initial crank angle for the simulation.
• Final Simulation Crank Angle: Final crank angle, defining the extent of the simulation.
• Engine Bore: (Automatic Mesh Generation only) Choose whether the engine bore should be calcu-
lated automatically or be user-specified. The Calculate Automatically option computes the bore
value based on the dimensions of the surface(s) used to define the piston boundary. However, if
the piston is split into multiple moving boundaries, the automatically calculated value is unreliable.
In this case, specify the bore explicitly. This engine bore option only applies to cases using auto-
matic mesh generation. This input is not used for cases using body-fitted meshes.
Tip:
If you need to modify the simulation end points without loading the Forte project
into the user interface, you can do so using command line options. For time-based
simulation, use -tfinal time_value, where time_value is a real number
with unit second, for example, -tfinal 0.1. For crank angle-based simulation,
use -cafinal ca_value, where ca_value is a real number with unit degree,
for example, -cafinal 180.0. The command-line input values will override the
end-point values specified on the user interface panel.
Note:
In a multicycle simulation, the global crank angle value will increase monotonically
starting from the initial crank angle until it reaches the final crank angle. However,
crank-angle-based timing parameters, such as spark timing, injection timing, and
output controls, will be converted to fit in the range of [0, 720) °ATDC (for four-
stroke) or [0, 360) °ATDC (for two-stroke) and treated as cyclic automatically.
• Solution Constraints can be used to apply an upper bound to local flow velocity or Mach number.
If the velocity limiter or Mach number limiter is enabled, local velocity magnitude will be bounded
based on these user-specified limits everywhere inside the fluid domain. These limiters essentially
behave as momentum sink. They allow larger CFD time steps to be reachable by sacrificing the
accuracy of the local flow solution at certain high-velocity spots. They are useful in cases where
the accuracy at these high-velocity spots is unimportant and it is desirable not to let these high
velocities overly constrain CFD time step size.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Simulation Controls Node
• Initial Simulation Time Step: The starting value of the time step. The time step will be determined
adaptively starting from the specified time-step value, based on rate of change of solution gradients.
Generally, the adaptive time-step algorithm will gradually increase the step size until a limit is en-
countered or solution gradients become too large.
• Restrict Time Step by Crank Angle: This determines an overall maximum time-step size for engine
cases and is set to 1.1 by default.
• Maximum Time Step Option: The actual transport time step in Ansys Forte is adaptively determined,
but the maximum time step constrains time-step increase, which can help convergence during
times of rapid change. Such rapid changes can occur, for example, when droplet breakup and fuel
vaporization occur or during valve opening or closing. The maximum time step may be defined as
a constant value or as Time Varying, that is, a profile that is a function of crank angle or time. The
latter option allows you to specify a large time step for parts of a simulation where you don’t expect
sharp gradients and restrict it to a smaller value during critical simulation periods, such as fuel in-
jection.
If the maximum time step ("dtmax") profile is a function of crank angle, the Adjust Profile to
Cyclic Boundaries option shifts the profile to fit within 0-–360 (for 2-stroke) or 0–720 (for 4-stroke)
crank angles. The adjusted dtmax profile will then be treated as cyclic and repeated on a 720-degree
schedule (4-stroke) or 360-degree schedule (2-stroke). You may choose to Use Global Crank Angle
Limits to impose a global crank angle range for the cyclic repetition of the dtmax profile. If the
Adjust Profile to Cyclic Boundaries option is not selected, then the crank angle provided in the
dtmax profile will not be converted to cyclic.
• Specify Minimum Time Step: You can specify the minimum simulation time step explicitly by
checking this box. If not specified, the minimum time step will be set to the Initial Simulation
Time Step multiplied by 1.E-7. The simulation will be terminated when the adaptively controlled
actual CFD time step drops below the minimum time step value.
• Advanced Time Step Control Options: The adaptive time-stepping algorithm within Ansys Forte
adjusts the time-step size to optimize solution efficiency and accuracy. In most cases, the default
parameters that control this algorithm should be retained. However, if convergence issues are en-
countered it may be advantageous to reduce the values on some of these controls. The tool tips
provide a handy reference for each parameter, describing the recommended range and the anticip-
ated effect of adjusting the parameter away from its default values.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 103
Modeling Guide
In Ansys Forte calculations, the CFD time step is limited by the user-specified maximum value
(dtmax) or several other factors, whichever is smaller. The current limiting factor is reported in the
log file and refers to the following:
Name Description
Pressure Limits the number of pressure iterations in the SIMPLE (Semi-Implicit Method
Iteration for Pressure-Linked Equations) algorithm. This type of iteration is referred to
as big iteration. The max number of pressure iterations is controlled to be
less than 50. If this limit is exceeded within a time step, this time step will be
recycled with a reduced time step (reduced by a half ). If the number of
iterations is larger than 3 in the previous time step, the current time step will
be reduced by a half also.
Fluid Limiting factor based on fluid acceleration.
Acceleration
Rate of Limiting factor based on the rate of strain of fluid. It limits the amount of cell
Strain distortion that can occur due to mesh movement in the Lagrangian stage.
Fluxing Limits the magnitude of fluxing volume in any coordinate direction to a value
volume less than the cell volume.
Chem Time-step growth limiting factor when time-step is limited by rate of change
heat of internal energy due to chemical heat release. This factor is a limit of the
release rate of change of energy in each cell over a time step. A larger value makes
time-steps less constrained by rate of change of energy, but may affect the
accuracy of the overall solution
Vaporization Similar to Chemistry, this factor limits the internal energy change due to
vaporization to be smaller than a percentage of the cell's current internal
energy.
Valve This limit is applied when a valve is first opening. When a valve is opening,
opening the flow velocity across the valve tends to be large, thus a smaller value is
or applied.
Region
changing
Injection Used for precise control of injection timing. If the current time step is so large
timing that the next time point will pass an injection timing, then the time step will
be reduced to make the next time point match the timing precisely.
Spark Similar to Injection, used for precise control of spark ignition timings.
ignition
Note:
We strongly recommend keeping the default options for the chemistry solver, as these
have been tested to provide the best accuracy and speed.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
Simulation Controls Node
Use this panel to define chemistry-solver options. These include solution tolerances, as well as options
that provide maximum efficiency in terms of computational speed. The options are described briefly
below:
• Absolute Tolerance for Chemistry Solver: This option sets the absolute tolerance for the species
mass fractions as they are solved with detailed kinetics. The default of 1.E-12 will assure that all
major and minor species that can contribute to a variety of engine phenomena are considered
throughout the simulation.
• Relative Tolerance for Chemistry Solver: This option sets the relative tolerance for the species
mass fractions as they are solved with detailed kinetics. The default of 1.E-5 roughly says that the
error in the converged solution will be around the fifth significant digit of the value reported. This
assures that major species are resolved sufficiently to predict their impact on minor or trace species.
• Use Dynamic Adaptive Chemistry: This option turns on a dynamic adaptive chemistry option,
which uses on-the-fly skeletalization of the detailed reaction-kinetics mechanism, based on the
Directed Relation Graph with Error Propagation (DRG-EP) method, as described in the Ansys Forte
Theory Manual. This option is off by default, but can be turned on when very large reaction
mechanisms (that is, with greater than 100 species) are used. It can potentially reduce the compu-
tational time significantly. It assures that only the relevant chemistry terms are being calculated at
any given time and at each location in the computational grid, based on local conditions.
– Search Tolerance: Controls the level of accuracy. The default value of 0.0001 has been tested
and shown to provide good accuracy for a wide variety of problems. A larger tolerance would
tend to lower the accuracy but might speed up the computation.
– Size Threshold for Activating DAC: This is a trigger for activating DAC. It represents the ratio
of species in the reduced mechanism to the number of species in the full mechanism. DAC will
be enabled when this ratio is smaller than the threshold set here. A value of 0.6 is recommended.
A value of 1.0 means DAC is always enabled.
– DAC Initial Species List: Select the initial species to be tracked by the DAC algorithm. We recom-
mend selecting all (premixed or injected) fuel species, plus CO and HO2. You may also want to
include emission-related species, such as NO, NO2 and C2H2 to improve accuracy for emissions
calculations. If you select the DAC option, you must select the initial species.
– Premixed Fuel Composition: Define the premixed fuel composition. (See Mixture Editor (p. 22)
for details.)
• Use Dynamic Cell Clustering: This is another option that can greatly speed the computation, by
assuring that chemistry computations are not unnecessarily repeated in cells that have the same
thermochemical state. The determination of thermochemical state similarity is based on 2 features,
by default, and these are fuel-air equivalence ratio within the cell and cell temperature. The default
tolerances for these variables are recommended.
• Use Turbulence Kinetics Interaction Model: Turns on the Turbulence Kinetics Interaction model,
including an option for the Mixing Time Coefficient, which controls the turbulent mixing time
scale. A larger value increases the effect of turbulent mixing on reaction rates.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 105
Modeling Guide
• Use Species Lumping When Chemistry is Deactivated : Species lumping can be used to lump
the mass of a group of trace species whose mass fractions are below a threshold into one or more
absorbing species when chemistry is deactivated. After the lumping, the mass of those trace species
become zero and they will no longer participate in flow transport. Note that species coming into
the computational domain through sprays or open boundaries and species involved in GT-Power
co-simulation are always kept and transported. The purpose of species lumping is for reducing the
computational cost associated with transporting large number of species. When species lumping
is applied, the list of species kept in flow transport will be printed in FORTE.log. The number of
transported species is also reported in chemsolver.csv.
– Mass Fraction Threshold For Marking Trace Species: A species will be marked as trace species
if its mass fraction in the whole computational domain is smaller than this threshold value. The
mass of identified trace species will be lumped into the absorbing species in each computational
cell.
– Absorbing Species: The absorbing species are used to absorb the total mass of all identified
trace species in each computational cell during species lumping. The total mass of the trace
species is allocated among the absorbing species proportionally based on the mass fractions of
the absorbing species. If this user-specified absorbing species list is empty, the species that has
the largest mass fraction in the domain will be used as the absorbing species.
– Core Species Set: The core species set contains species that will not be marked as trace species,
even though their mass fractions inside the whole domain may be lower than the mass fraction
threshold. Recommended core species include: N2, O2, CO2, H2O, CO, NO, NO2, OH, H, H2, C2H2,
C6H6, soot. Note that species coming into the computational domain through sprays or open
boundaries and species involved in GT-Power co-simulation are always kept as core species by
default, even if they are not specified on this list.
• Activate Chemistry: In some cases, there is no need to solve all the chemistry-related equations
during certain portions of the simulation, because we know a priori that very little or no chemistry
will take place. For example, prior to fuel injection or before the temperature reaches 600-700 K,
we would expect little to be happening. You can select to have chemistry Always On, Always Off,
or activated Conditionally. If you choose Conditionally, you can activate chemistry when a certain
temperature is reached, at a certain crank-angle interval time interval, at a certain time, or after full
injection or the first spark event. When you choose Conditionally, you can select which criteria
must be satisfied before chemistry will be activated. You can choose to place criteria on a threshold
temperature, at a certain crank angle interval, at a certain time interval, after fuel injection or after
the first spark event. For a CA-interval based activation control used in engine cases, the user-sup-
plied starting and ending crank angle values will be converted to fit in the range of [0, 720) °CA
(for 4-stroke engines) or [0, 360) °CA (for 2-stroke engines). The activation interval will then be
treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree schedule (2-
stroke). Note that all of the specified criteria must be satisfied before the chemistry will be activated
for a given cell.
Note:
The chemistry activation controls using spark timing or injection timing will be ignored
after the first engine cycle. Because of this, we recommend using controls based on
crank-angle intervals for multicycle simulations.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
Simulation Controls Node
• Disable Chemistry in the Unburned Region During Flame Propagation: Selecting this option
causes chemistry calculation to be disabled in the unburned region when flame propagation is
used (initiated by spark-ignition), where the unburned region is identified as the region ahead of
and outside of the propagating flame front (represented by the G=0 iso-surface). This option is
typically useful in diagnosing autoignition during flame propagation.
Note:
The tolerances specified on the Transport Terms panel help determine convergence for transport
variables indicated. The tolerance values specified provide the maximum relative error in the implicit
solution of the variable indicated. The maximum numbers of iterations specified on this panel are
used to control the accuracy of the transport solutions. If the specified limit is reached, the calculation
will be repeated using a reduced time step. You can consider using a larger limit for certain variables
if recycling is frequently requested by the implicit iteration of this variable.
A solution criterion can be specified at three types of locations: Entire Domain, Probe, or Open
Boundary.
Entire Domain: A set of user-specified solution variables are monitored in fluid cells or vertices
within the entire domain. The solution variables are selected and assigned both an absolute and a
relative tolerance, as well as a calculation option. Available calculation options are Maximum Value
and Mass Averaging.
Probe: This option is similar to the Entire Domain option, but the solution variables are monitored
within a spherical probe, which can be specified using a Point (center) and a Radius.
Open Boundary: When a system reaches a steady state, the net mass flow rate across all the open
boundaries should approach zero. In this option, a normalized net mass flow rate is monitored for
steady state detection. The flow throughput of the system is used as the normalization factor to make
the normalized net flow rate dimensionless. The normalized net mass flow rate is defined as:
where and are the mass flow rates summed over all inlets and all outlets, respectively. For
all these mass flow rate terms, the sign is positive if the flow goes into the computational domain,
and vice versa. This option also requires absolute and relative tolerances for the convergence check.
For each monitored solution variable, S, the absolute and relative solution differences are calculated
for each time step using a direct variable differencing method. To avoid detecting fake steady states,
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 107
Modeling Guide
the convergence check uses solution differences averaged over a time interval (the default and re-
commended value is 0.1 ms) instead of the instantaneous values. The convergence check criteria can
be written as:
where is the total number of time steps accumulated within 0.1 ms before the current time.
To claim a steady state, BOTH absolute and relative criteria need to be satisfied. The Open-Boundary-
based criterion requires an additional check. The normalized net mass flow rate needs to satisfy the
absolute tolerance as well, that is,
The instantaneous solution values, absolute differences, and relative differences are printed in .csv
files named solution_vector_(criterion name).csv, solution_absdiff_(criterion
name), solution_reldiff_(criterion name), respectively. The limiting convergence con-
straint together with its absolute and relative solution differences are also printed in FORTE.log
and MONITOR for each time step. You should remember that the printed solution differences are in-
stantaneous values, while the values used for the convergence check are based on multiple instant-
aneous values accumulated within a time interval.
Steady-state simulations are restricted such that they do not allow the specification of moving
boundaries, transient temperature or pressure inlets, transient pressure outlets, or transient wall
temperatures. Spray injections are allowed, but only if the mass flow and parcel count options are
continuous, not pulsed.
Steady-state simulations are restricted such that they do not allow the specification of moving
boundaries, transient temperature or pressure inlets, transient pressure outlets, or transient wall
temperatures. Spray injections are allowed, but only if the mass flow and parcel count options are
continuous, not pulsed.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
108 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
– Interval Based Outputs. Output Every: This allows specification of the frequency for saving
spatially resolved solution data in terms of selected units.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 109
Modeling Guide
– User Defined Crank Angle Output: In addition to the above or instead of regular intervals, you
can enter a series of discrete points at which spatially resolved data will be saved, using the
Profile Manager. You can select the Adjust Profile to Cyclic Boundaries option to convert the
CA values in the range of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for 2-stroke engines),
and they will be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree
schedule (2-stroke). You may choose to Use Global Crank Angle Limits to impose a global crank
angle range for the cyclic repetition of these CA values. If the Adjust Profile to Cyclic Boundaries
option is not selected, then the CA values will not be converted to cyclic. Note that in a multi-
cylinder engine simulation, the user-defined CA values will be checked in all cylinders' local time
frames to determine when to output solutions.
– Interval Based Outputs. Output Every: This allows specification of the frequency for saving
spatially resolved solution data in terms of selected time-related units.
– User Defined Output (Time): In addition to the above or instead of regular time intervals, you
can enter a series of discrete times at which spatially resolved data will be saved, using the Profile
Manager. For these "profiles" the first column is simply the index of the entry.
Note:
A Forte .ftind index file is created during the Forte run and is an ASCII file that is a list
of all the spatially resolved solutions generated throughout the run. This file is used to
post-process these solutions. See Workflows: Preparing and Executing Runs (p. 167) for in-
formation about the .ftind file and how it is used.
You can specify files designed for use with user routines by selecting FORTE Output User Routine.
Note:
Once you have built the shared object, you must use the PATH environment variable
on Windows systems and both the PATH environment variable and the LD_LIB-
RARY_PATH environment variable on Linux systems to provide the location of the shared
object/dll "library" to the Ansys Forte executable for all operations relating to user-defined
routines. These environment variables are described in the Table 1: Ansys Forte environ-
ment variables (p. 226) .
• Root Name of Library: This is the name of the library containing the methods that write out a
user-defined output. A root name does not include the extension (dll or so).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
110 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
• Language: Standard language format used to write the methods in the User Defined library.
In the Spatially Resolved Species sub-panel, select which species data will be saved in the solution
file. Move species from the Choices list to the Selection list to include them as a Spatially Resolved
Species. You can type into the Filter box to limit the species presented in the Choices list. If the
Method of Moments soot model is selected (under Models on the Workflow tree, see Soot Mod-
el (p. 75)), additional variables are output to the solution file, as listed in Table 3.5: Spatially resolved
variables that are output to the solution file when the Method of Moments soot model is used (p. 115)
for spatially resolved variables and Table 3.7: Spatially averaged variables that are output to the .csv
files when the Method of Moments soot model is used (p. 135) for spatially averaged variables. If
the simulation type is Eulerian two-phase flow (Gas-Phase and Eulerian Two-Phase Flow Simula-
tions (p. 59) ), all the liquid species data will be saved in the solution file.
You can also control how many files are used to store the spatially resolved results using the File
Size Control option. By default, 1 solution is written per .ftres file, but you can have all solutions
written to a single large .ftres file or distribute them across several files if you prefer dealing
with smaller files, using the following options:
• One File: All solutions are written to a single large .ftres file.
• File Size: Set the target file size in megabytes of each .ftres file. If the current .ftres file
size exceeds this value, then a new .ftres is created.
• Solution Count: Use to control how many solutions are stored in each .ftres file. Set to n to
store n solutions per .ftres file. This is the default, with n=1.
• By Crank Angles: Use to store solutions in separate .ftres files that cover ranges of crank
angles. Select Create new from the list and click the Pencil icon to define a list of crank angle
values for which a new .ftres file must be used. For example, if -50, 0, 50 is used, then four
.ftres files will be created – one for solutions up to CA -50, one for solutions between -50 and
0, one for solutions between 0 and +50, and a fourth .ftres for all solutions from 50 CA onwards.
• By Time Points: Define how the results are split into separate .ftres files for ranges of time
points. Similar to crank angles, but for time points.
In addition to any selected output species, Ansys Forte allows selective output of spatially resolved
data from the variables listed in Table 3.3: Spatially resolved variables that are eligible output to
the solution file (p. 111). Ansys Forte always outputs the spatially averaged variables listed in
Table 3.6: Spatially averaged variables that are always output to the .csv files (p. 118). Spatially resolved
variables that are used with the Method of Moments soot model are listed in Table 3.5: Spatially
resolved variables that are output to the solution file when the Method of Moments soot model is
used (p. 115).
Table 3.3: Spatially resolved variables that are eligible output to the solution file
Variable Description
Variables defined at cell center
Pressure Static pressure of gas-phase mixture. Unit:
dyne/cm2.
Temperature Temperature of gas-phase mixture. Unit: K.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Modeling Guide
Variable Description
Density Density of gas-phase mixture. Unit: g/cm3.
Viscosity Effective dynamic viscosity of gas-phase
mixture. Unit: g/cm-s.
CellVolume Volume of the computational cells. Unit: cm3.
InternalEnergy Specific internal energy of gas-phase mixture.
Unit: erg/g.
Enthalpy Specific enthalpy of gas-phase mixture. Unit:
erg/g.
ThermalConductivity Effective heat conductivity of gas-phase
mixture. Unit: erg/cm-s-K.
TurbulentKineticEnergy Turbulent kinetic energy per unit mass, defined
as where u' is turbulence velocity. Unit:
cm2/s2.
TKEDissipationRate Dissipation rate of the turbulent kinetic energy
per unit mass. Unit: cm2/s3.
TurbulenceVelocity
Turbulence velocity, defined as
where TKE is turbulent kinetic energy. Unit:
cm/s.
IntegralLengthScale Largest length scale of the turbulent flow
which possesses most of the turbulent kinetic
energy, computed as: , where is
a turbulent constant, k is turbulent kinetic
energy and ε is the dissipation rate of the
turbulent kinetic energy.
TurbulentViscosity Turbulent dynamic viscosity of gas-phase
mixture. Unit: g/cm-s.
HeatCapacityConstV Heat capacity of gas-phase mixture at constant
volume. Unit: erg/g-K.
HeatCapacityConstP Heat capacity of gas-phase mixture at constant
pressure. Unit: erg/g-K.
FuelVaporMassFraction Sum of mass fractions of gas-phase fuel
species.
EquivalenceRatio The ratio of oxygen needed to convert carbon
and hydrogen to CO2 and H2O to the oxygen
available in the mixture. Where [C], [H], and
[O] are the sum concentrations of carbon,
hydrogen, and oxygen atoms in the mixture,
respectively:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Variable Description
This definition of equivalence ratio is essentially
an element ratio that considers all the species
in the mixture. It measures the equivalence
ratio of a mixture in its unburned state. Using
this definition, a mixture’s equivalence ratio
remains constant as it changes from unburned
to completely combusted in the combustion
process.
ProgressEquivalenceRatio The progress equivalence ratio is calculated as:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Modeling Guide
Variable Description
YPlus y+ value, which is a dimensionless distance
used in the law-of-the-wall model. At each
location along a wall, y+ is defined as
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Variable Description
FlameBrushThickness Turbulent flame brush thickness, defined by
Equation 7.25 in the Ansys Forte Theory Manual
. Unit: cm.
Table 3.4: Spatially resolved variables that are eligible output to the solution file when the
Eulerian two-phase flow simulation is performed
Variable Description
Variables defined at cell center
LiquidVolumeFraction Volume fraction of the liquid phase in the Eulerian two-phase fluid mixture.
VaporVolumeFraction Volume fraction of the gas phase in the Eulerian two-phase fluid mixture.
Table 3.5: Spatially resolved variables that are output to the solution file when the Method
of Moments soot model is used
Variable Description
Variables defined at cell center
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Modeling Guide
the .dll or .so files because this naming convention is used by the Forte executable. For the
language used in writing the UDFs, we support both Fortran and C/C++.
See the Ansys Forte installation’s user_defined_functions directory for assistance with cre-
ating and configuring user defined functions:
• The README.txt file repeats these instructions on how to build the shared object and set the
necessary path to use it in Ansys Forte simulations.
• Refer to the template files in the output subdirectory as examples for the output user defined
functions. The template user defined functions demonstrate how to write heat-transfer solution
data on both hexahedral grid and surface grid to .csv files in comma-delimited format.
• There are detailed in-line comments inside the template files for both C/C++ user routines and
Fortran user defined functions. Read the comments for descriptions of how each UDF can be
used.
You can use the make files provided in the user_defined_functions directory to build the
output user defined functions’ shared objects after you have set up the necessary Intel compiler
environment. For compiler support, see the Intel Composer XE 2019 Compiler Summary in the
Chemkin-Pro Application Programming Interface Manual Although the Intel compiler is recommended,
other compilers may work as well, such as the compiler included in Microsoft Visual Studio. The
template make files are customized for Intel compilers. Therefore, if you use a different compiler,
adjust the compiler and linker names (FOR, CPP, CXX) accordingly. You may also need to remove
the libraries specified in macro F77_SYSTEM_LIBS because some of them are specific to Intel
compilers.
Tip:
No matter what compiler you use, make sure to choose the 64-bit (x64) version. Shared
objects built using a 32-bit (x86) compiler are incompatible with the Forte executable
and cannot be loaded correctly.
To build the shared objects, select the appropriate command for your environment from this list.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
If you plan to use your own make file or build script or if you plan to change the provided make
files, follow these naming conventions for the final shared object:
Such naming conventions are used inside the Ansys Forte executable to load the shared object.
Windows: FORTE_UDF_LIBRARY_PATH=%REAC-
TION_DIR%\forte.win64\user_defined_functions\bin
Linux: FORTE_UDF_LIBRARY_PATH=${REAC-
TION_DIR}/forte.linuxx8664/user_defined_functions/bin
REACTION_DIR is the path of the reaction folder under the Ansys installation. If you need
to put the UDF .dll or .so files at a different location, modify FORTE_UDF_LIBRARY_PATH
to point to that location. At run time, the path specified by FORTE_UDF_LIBRARY_PATH will
be temporarily appended to the system PATH (Windows) or LD_LIBRARY_PATH (Linux) for
dynamic loading of the UDF libraries. The system PATH or LD_LIBRARY_PATH will not be
altered outside the Ansys Forte application.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Modeling Guide
path. This operation is done outside the Ansys Forte application, and these system environment
variables will be modified permanently.
Note:
Note:
In the Spatially Averaged Species sub-panel, select which gas species data will be saved in the
output files. Move species from the Choices list to the Selection list to include them as a Spatially
Averaged Species. You can type into the Filter box to limit the species presented in the Choices
list. Three .csv files dedicated to species data output. Speciesmass.csv, massfraction.csv,
and molefraction.csv include the data of species mass, mass fraction and mole fraction, respect-
ively. If the simulation type is Eulerian two-phase flow (Gas-Phase and Eulerian Two-Phase Flow
Simulations (p. 59) ), all the liquid species' data will be saved in these solution files.
As for the spatially averaged solution variables and spray variables, summarizes the variables’ names,
their output files, and their descriptions.
Table 3.6: Spatially averaged variables that are always output to the .csv files
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Unit: cm.
Center of Mass-z D The z coordinate of the center of mass in the
cylinder.
Unit: cm.
Total angular momentum-x D Total angular momentum of the in-cylinder
flow in the x direction, relative to the
instantaneous mass center in the cylinder.
Unit: g-cm2/s.
Total angular momentum-y D Similar to Total angular momentum-x, but for
the angular momentum in the y direction.
Unit: g-cm2/s.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Modeling Guide
Unit: g-cm2/s.
Total angular momentum D Root mean square of the x-, y-, z-angular
momentum. Unit: g-cm 2 /s.
Tumble ratio-x D The ratio of the angular velocity of the
in-cylinder flow about the x axis to engine
rotating velocity. where is the
angular momentum of the in-cylinder mass
about the x-axis, is the angular velocity of
engine crank, and is the corresponding
moment of inertia, defined as:
where is the
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
defined as:
Unit: dimensionless.
Total kinetic energy D Total kinetic energy of the in-cylinder gas. Unit:
g-cm 2 /s 2.
Turbulent kinetic energy D Mass-averaged turbulent kinetic energy. Unit:
cm 2 /s 2.
Dissipation rate of TKE D Mass-averaged dissipation rate of turbulent
kinetic energy. Unit: cm 2 /s 3.
Turbulence velocity D Mass averaged turbulent velocity, defined as
Where TKE is turbulent kinetic
energy. Unit: cm/s.
Integral length scale D Mass-averaged turbulence integral length
scale. Unit: cm.
Turbulence viscosity D Mass-averaged turbulence viscosity. Unit: cm
2
/s.
EffectiveThermal Conductivity D Mass-averaged effective (laminar + turbulent)
thermal conductivity of the gas phase. Unit:
erg/cm-s-K.
ThermalConductivity D Effective heat conductivity of gas-phase
mixture. Unit: erg/cm-s-K.
Pressure T Volume-averaged static pressure. Unit: MPa
Temperature T Mass-averaged temperature. Unit: K.
Max Temperature T Maximum temperature in the cylinder. Unit:
K.
Chemical heat release rate T Pure chemical heat release rate in the cylinder
or in region 1, calculated directly based on
chemical heat release in the cells. Unit: J/deg
for engine cases, J/s for non-engine cases.
Accumulated chemical heat release T Accumulated chemical heat release rate in the
cylinder or in region 1. Unit: J.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 127
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
128 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 129
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
130 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 131
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
132 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 133
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
134 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
angle):
Table 3.7: Spatially averaged variables that are output to the .csv files when the Method of
Moments soot model is used
Variable Description
Variables defined at cell center
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 135
Modeling Guide
Variable Description
Soot Emission Total mass of soot species normalized by total fuel mass in
an in-cylinder region (or a primary region, for non-engine
cases). Unit: g/kg-fuel.
SiteFraction In the soot surface mechanism, one or more sites are specified
where surface reactions can occur. This variable provides the
fraction of overall sites occupied by each of the sites.
psdf_number_density_0th_moment, The values of the of the particle-size distribution function
psdf_number_density_1st_moment, (psdf ) that are solved for. The number of moments is
psdf_number_density_2nd_moment user-defined, and can vary from 3-6, with 3 moments typically
up to a maximum of being sufficient. Unit: #/cm 3. The zero-th moment
psdf_number_density_5th_moment (psdf_number_density_0th_moment) provides the total
particle number density.
Itemized Wall Film Mass and Impinged Mass: If this box is checked, detailed itemized wall film
mass and impinged mass will be reported in two new output files: itemized_wallfilm_mass.csv
and itemized_impinged_mass.csv. These two files report the wall film/impinged mass from
every individual nozzle onto every individual wall boundary. The total number of output variables
equals the number of nozzles times the number of wall boundaries. The variable names are: Film
mass from (injector name) (nozzle name) on (wall name) and Imp mass from
(injector name) (nozzle name) on (wall name). Unit is g.
Enable Pocket Tracking: When enabled, Forte will track contiguous pockets of fluid in the domain.
Gap cells created using Gap Feature Controls are used to define the boundaries for the pockets.
Minimum Pocket Volume Fraction sets a volume fraction threshold, in which volume fraction is
defined as the volume of a pocket divided by the volume of the whole computational domain. A
pocket will be tracked only if its volume fraction exceeds this threshold value. Maximum Number
of Tracked Pockets sets the maximum number of pockets that can be tracked at a specific time. If
more pockets exist, Forte will track the largest pockets up to this count. Pockets are tracked dynam-
ically in the simulation. The x, y, z coordinates of pocket centroid, total volume, and averaged pressure
of all the pockets are reported in pocket_tracking.csv.
Equivalence Ratio Histogram: When this option is turned on, you can save equivalence ratio distri-
bution results in histogram format for each cylinder region (for engine cases) or primary region (for
non-engine cases). To use the uniform bin option, specify the total number of bins and the uniform
bin width. The other option is to specify the bin boundaries through a tabulated profile. For each
cylinder region or primary region, four output files are written:
• phi_histogram_massfrac.csv: reports the mass fraction of each bin, which equals the
mass in this bin divided by the total mass of the cylinder/primary region.
• phi_histogram_avgphi.csv: reports mass averaged equivalence ratio for each bin based
on its cell population.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
136 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
3.7.2.1. Summary Data Reported in Ansys Forte Log, for Engine Simulations
The parameters reported in the FORTE.log file are described in Table 3.8: Summary Data reported
in Ansys Forte log, for engine simulations (p. 137), including the name of the parameter, its units,
and a description of what it represents or how it is calculated.
Table 3.8: Summary Data reported in Ansys Forte log, for engine simulations
in which
and are the pressures at IVC and EVO, respectively;
, , and are the in-cylinder volumes at IVC, EVO
and BDC (bottom dead center), respectively. Thus the total
work of a sector mesh case is
Indicated
power is in which is engine
speed (revolution/min), is number of revolutions per
engine cycle ( for four-stroke engines), and the 60 is 60
sec/min.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 137
Modeling Guide
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
138 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 139
Modeling Guide
where is the total wall heat transfer loss and is the wall
heat transfer rate.
CA @ 2% [deg Time at which 2% of the accumulated heat release is reached,
Heat Release ATDC] in crank angle degrees.
CA @ 10% [deg Time at which 10% of the accumulated heat release is reached,
Heat Release ATDC] in crank angle degrees.
CA @ 30% [deg Time at which 30% of the accumulated heat release is reached,
Heat Release ATDC] in crank angle degrees.
CA @ 50% [deg Time at which 50% of the accumulated heat release is reached,
Heat Release ATDC] in crank angle degrees.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
140 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 141
Modeling Guide
For nozzle-based analysis, the following four variables, which are described in Table 3.9: Spray
penetration data available for reporting in custom_spray_penetration.csv (p. 142), may be
selected for output: Axial penetration, radial penetration, normal penetration, and spray angle. For
injector-based analysis, you need to specify the origin and direction of the axis for the whole injector.
The liquid and vapor penetration length thresholds can be customized as well.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
142 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
Figure 3.24: Illustration of axial and radial penetrations (assuming the liquid mass threshold
"cutoff" is 100%)
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 143
Modeling Guide
Figure 3.25: Illustration of normal penetration (assuming the liquid mass threshold "cutoff"
is 100%)
Figure 3.26: Illustration of spray angle (assuming the liquid mass threshold "cutoff" is 100%)
For each port flow monitor, you can select which valve(s)/port(s) to monitor by drawing either a
bounding box or a bounding sphere that completely encompasses them. If the bounding box option
is selected, a reference frame can be used to define the orientation of the box. The length, width,
and height of the box are assumed to be aligned with the x, y, z-axes of the local reference frame.
The specified location marks the center of the box. If the bounding sphere option is selected, the
specified location marks the center of the sphere.
In a multicylinder simulation, if port flow monitors are used, an output file called
port_flow_monitor_n.csv will be created for each cylinder, in which n corresponds to the
cylinder index. Within each port_flow_monitor_n.csv, mass flow rate and accumulated mass
flow through all the monitored valves/ports will be reported. The reported values follow the same
sign convention as the one used by flow_into_cylinder.csv: positive if flow goes into the
cylinder; negative if flow goes out of the cylinder.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
144 of ANSYS, Inc. and its subsidiaries and affiliates.
Output Controls Node
• Write Restart File at Last Simulation Step: Always write a restart file at the last simulation step.
The restart file will be written when the final simulation time is reached or if the simulation is
stopped by the user through the Run Simulation interface.
• Interval Based Restart: Write a restart file at specified intervals, based on crank angle, time, or the
number of fluid time steps that have been taken.
• User Defined Restart Points: Specific discrete crank angles (for engine simulations) or times for
writing restart files. For CA-based restart controls used in engine cases, you can select the Adjust
Profile to Cyclic Boundaries option to convert the CA values to fit in the range of [0, 720) °CA (for
4-stroke engines) or [0, 360) °CA (for 2-stroke engines), and they will be treated as cyclic and repeated
on a 720-degree schedule (4-stroke) or 360-degree schedule (2-stroke). You may choose to Use
Global Crank Angle Limits to impose a global crank angle range for the cyclic repetition of these
CA values. If the Adjust Profile to Cyclic Boundaries option is not selected, then the CA values
will not be converted to cyclic. Note that in a multi-cylinder engine simulation, the user-defined
CA values will be checked in all cylinders' local time frames to determine when to write restart
points.
The advantages of this format over Forte standard output formats are:
• Optimized loading in EnSight (reduced time to load and reduced time stepping through transient
solution points).
• Smaller file sizes.
• Better performance during solution writing, especially for cluster runs with large numbers of pro-
cesses.
To utilize the EnSight DVS format, add one or more instances of a DVS output available on the Addi-
tional Output editor panel's icon bar.
The output settings follow the same structure as Forte’s native spatially resolved outputs.
Note:
DVS output can be enabled independently from Forte’s spatially resolved output. It
therefore often makes sense to disable Forte’s spatially resolved output when using DVS.
The DVS results will be contained in a subfolder of the run directory, named according to the user-
supplied name of the DVS output added to the workflow tree. To load the results in EnSight, within
an EnSight session choose File > Open and select the .dvs file from this directory, or use the EnSight
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 145
Modeling Guide
launcher shortcut on Forte’s Run panel, which will search for and provide a list of available .dvs files
in the analysis directory that can be preselected and passed to the newly launched EnSight instance.
This section reviews the options available for setting up the various types of monitor probes. To create
a probe, click the New Monitor Probe icon on this panel. A probe can be set up to monitor instant-
aneous, spatially averaged data within specified regions. In this case, the probe can monitor:
• a boundary-condition-based region.
• an initialization region.
• an injection source.
Alternatively, a probe can be set up as a point cloud to monitor time-averaged, spatially resolved data.
In this case, the probe can be either:
• Wall sampling, in which the point clouds are distributed on a wall boundary to monitor wall heat
transfer, or
• General data sampling, in which the point clouds are distributed in the fluid domain to monitor gas-
phase solutions in general.
Monitored solutions are inquired at a fixed and user-specified frequency, based on either time or crank
angle, or a set of user-specified discrete times or crank angles. The Inquiry Frequency need to be set
on this panel (Monitor Probes Panel) and applied to all the probes. For probes for instantaneous and
spatially averaged data, the inquiry frequency is also the data output frequency. For probes for time-
averaged and spatially resolved data, the inquiry frequency is the frequency to inquire solutions and
perform time-averaging numerically. In this case, more frequent inquires would make time-averaging
more accurate.
To set a fixed, interval-based inquiry frequency, you may choose the Frequency Option as either Time
or Crank Angle, and set the Output Every interval. Select User Defined Monitor Inquiry Points to
set specific discrete crank angles (for engine simulations) or times by using a profile. If the user-defined
frequency is based on crank angle, you may select the Adjust Profile to Cyclic Boundaries option to
convert the CA values to fit in the range of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for 2-stroke
engines), and they will be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-
degree schedule (2-stroke). You may choose to Use Global Crank Angle Limits to impose a global
crank angle range for the cyclic repetition of these CA values. If the Adjust Profile to Cyclic Boundaries
option is not selected, then the CA values will not be converted to cyclic.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
146 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
The following sections describe each type of monitor probe in more detail.
(I) If the probe Monitor Type is set as Geometric: the probe region is defined by an enclosed geo-
metric shape, which could take the form of sphere, annulus and box. In this case, the probe can be
used to monitor instantaneous, spatially averaged solutions of both the gas phase and of spray
droplets within the region.
• When the Geometric Shape is Spherical, you may specify the Locations of the sphere center
and the sphere Radius. When the sphere radius is larger than 0, all the inquired solutions will
be averaged over the cells, vertices, or spray droplets within the specified spherical region. If
the sphere radius is 0, the spherical region reduces to its center. In this limiting case, the gas
phase solutions closest to the center will be reported, and spray-related solutions will be aver-
aged over the spray droplets within the region centering at this location and with a default
radius of 1 mm.
• When the Geometric Shape is Annulus, you may set the Outer Radius, Inner Radius, and Height
of the annulus region. If the inner radius is zero, the annulus region becomes a cylinder. Use
the Local Coordinate System to define the location and orientation of the annulus region.
Refer to Reference Frames (p. 34) for how to set up a local coordinate system. Note that the
Z-axis defines the axial direction of the annulus region. The location of the annulus region is
defined at the center of the ring and half height. The annulus region is reduced to this location
if the outer radius or the height is zero. The treatment of this limiting case is similar to that
of the spherical region.
• When the Geometric Shape is Bounding Box, you may set the Side Length X, Y and Z of the
box. Also, use the Local Coordinate System (refer to Reference Frames (p. 34) ) to define the
location and orientation of the bounding box region. The location is defined as the center of
the bounding box. In the limiting case of any side length becoming zero, the box region reduces
to the center. The treatment of this limiting case is similar to that of the spherical region.
Note: You can visualize the geometric region in the 3-D View Panel by activating the bulb icon
ahead of the monitor probe created in the Workflow Tree.
(II) If the probe Monitor Type is set as a Boundary Condition, the probe region is defined as the
gas phase region in the closest proximity of the boundary. In this case, only the gas phase solution
variables are to be monitored. You must select one specific boundary from the Boundary Conditions
list (as described in Boundary Conditions Node (p. 81)). In this case, the inquired solution variables
are averaged over the CFD cells adjacent to the boundary and/or the vertices on the boundary.
(III) If the probe Monitor Type is set as an Initialization Region, the probe region is defined to be
equivalent as the initialization region. Both the gas phase and the sprays' solution variables within
the region could be monitored. You must specify one specific initialization region from the Initial
Conditions list, as introduced in Initial Conditions Node (p. 97).
(IV) If the probe Monitor Type is set as an Injection Source, the probe region is defined as the liquid
sprays coming out of the injection source. Therefore, only sprays’ solution variables will be monitored.
"Injection source" refers to injectors and nozzles that are defined on the Spray Model Workflow tree
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 147
Modeling Guide
item, as introduced in Spray Model (p. 65). An injection source may contain one or multiple nozzles,
and you must select the nozzle(s) of interest from a list based on the defined nozzles listed on the
Nozzles Editor panel. Droplets that come from any of the selected nozzles will be included in this
particular analysis, and all the other droplets will be excluded from the analysis.
(V) If the probe Monitor Type is set as a Plane and Injection Source, the probe region is defined
as the spray droplets coming out of the injection source and passing through certain plane. Only
sprays' solution variables will be monitored. The plane is set as infinitely large and can be defined by
any point on it and its normal direction. The normal direction can be set in a variety of ways using
the reference frames introduced in Reference Frames (p. 34). When the probe makes the requested
inquiry, all the spray droplets passing through the plane within that particular time step will be
monitored. In addition, you may specify that the injection source should include or exclude the
droplets from any nozzle.
As mentioned, with these types of probes, you can monitor a number of solution variables for the
gas phase and the spray droplets (see Table 3.10: Solution variables that can be monitored by
probes (p. 148)), and they can be selected from the Solution Variables list. You can also monitor any
species data for the gas phase, selected from the Species list. For each selected species, its species
density, mole fraction, and mass fraction are monitored.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
148 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
For each of the selected spray parameters, both instantaneous and accumulated
values will be reported. The instantaneous value is calculated based on the parcels
crossing the monitor plane during the current time step, while the accumulated
value considers all the parcels that have ever crossed the monitor plane.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 149
Modeling Guide
The output from the monitor probe is stored in <probe_name>.csv, where <probe_name> is the
probe’s name. Figure 3.27: An example of data output from a typical instantaneous and spatially av-
eraged monitor probe (p. 150) shows an example of the output file. The columns of data include
"Crank Angle" and "Time", and a number of monitored solution variables. In this example, the solution
variables include gas phase temperature ("T"), density ("Rho"), spray droplets’ Sauter-Mean-Diameter
("SMD"), and the species density and mole and mass fractions of n-tetradecane ("nc14h30") in the gas
phase. Each row of data corresponds to these solutions at a particular crank angle and time inquired
by the probe. As simulation progresses, this output file is updated with more rows of data added,
based on the Inquiry Frequency in the Monitor Probes Panel.
Figure 3.27: An example of data output from a typical instantaneous and spatially averaged
monitor probe
For certain types of monitor probes, in addition to the monitoring of spatially averaged spray droplet
data, you can set up a histogram analysis. A histogram reports the probability distribution of spray
droplets with respect to a spray-related response variable. This provides additional useful information
for the spray droplets within the probe region. Check (turn ON) the Particle Histogram option, and
choose a Particle Response Variable. The available options are droplet diameter and velocity. Create
a table for the histogram bins to specify the monitored data range and the lower and upper bounds
for each bin. Use the Averaging Weight option to specify whether the distribution is based on droplet
mass or number.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
150 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
type of the particle-responsible variable ("diam" for diameter and "vel" for velocity) and its unit. Fig-
ure 3.28: An example of data output from a typical histogram analysis using droplet diameter (unit:
micron) as the response variable (p. 151) shows an example of the output file using droplet diameter
(unit: micron) as the response variable. The columns of data include "Crank Angle" and "Time", and
a number of bins for the response variable. In this example, the range of the response variable is
from 0 to 50 microns, and is divided equally into 10 bins. The lower bound of each bin is shown in
the header of each column. Since the bins are consecutive, the upper bound of bin i is the lower
bound of bin i+1. The data shown in each bin’s column are the portions of droplets that fall into this
bin with respect to the whole collection of droplets in the probe region. Each row of data corresponds
to the droplet distribution at a particular crank angle and time inquired by the probe, and can be
used to plot a probability density distribution function at that moment. As the simulation progresses,
this output file is updated with added rows of data, based on the Inquiry Frequency in the Monitor
Probes Panel.
Figure 3.28: An example of data output from a typical histogram analysis using droplet diameter
(unit: micron) as the response variable
Note:
For each probe Monitor Type, you can specify the probe to be always active during the
simulation, or active only within a user-specified time or crank angle interval. For the CA-
interval-based activation option, you can select the Crank Angle Option as Cyclic or
Global. The Cyclic option is helpful in specifying probe activation that is repetitive in a
multi-engine-cycle simulation. In this case, the user-supplied start and end CA values will
be converted to fit in the range of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for
2-stroke engines). The CA interval will then be treated as cyclic and repeated on a 720-
degree schedule (4-stroke) or 360-degree schedule (2-stroke). You may choose to Use
Global Crank Angle Limits to impose a global crank angle range for the cyclic repetition,
beyond which the probe is not active. If the Crank Angle Option is Global, no cyclic
conversion is made on the user-supplied crank angle values.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 151
Modeling Guide
in the Monitor Probe Panel is the frequency of data inquiry, which also defines the discrete time
interval used for time-averaging.
This feature is designed to collect the spatially varying and time-averaged heat transfer data on the
walls. Such data can be useful in a number of ways. For example, in engine simulations, the time-av-
eraged and spatially resolved heat transfer data can be used in a Conjugate Heat Transfer analysis,
coupling Forte’s in-cylinder flow and combustion simulation with an external thermal analysis of the
engine's solid parts. To use this type of probe, set Monitor Type as Wall Sampling. Then set up a
point cloud on any wall boundary for monitoring heat transfer between wall and fluid at these loca-
tions. To accurately capture the spatially varying heat transfer effects, Ansys Forte provides the following
two options for Point Cloud Specification on a wall.
Option (A) Specify the point cloud directly from the surface mesh: select the Generate From Surface
option. The points will be automatically generated from any surface-mesh clip plane, the same clip
planes that are defined under the Geometry node of the Workflow tree (see Geometry Node (p. 41)).
In this case, the points are always collocated on the surface mesh nodes during the simulation and
follow the motion of the surface mesh if a moving wall boundary condition is defined. Note that this
option is only available for the simulations that use automatic mesh generation.
In general, if the surface mesh has a reasonably good resolution, the mesh nodes (therefore points
cloud) will be sufficient in number and well distributed on the surface. Figure 3.29: Example of surface
mesh on the piston (orange color) used for point cloud (p. 152) shows an example of surface mesh
on the piston (orange color), which has good resolution. Here, the piston is at its Top Dead Center
(TDC) location, while the cylinder liner wall surface in touch with the in-cylinder gas is displayed as
purple.
Figure 3.29: Example of surface mesh on the piston (orange color) used for point cloud
Caution is needed when generating point clouds from the surface mesh of the engine cylinder liner,
which is usually defined at the piston's Top Dead Center (TDC) location. (See the liner surface colored
purple in Figure 3.29: Example of surface mesh on the piston (orange color) used for point cloud (p. 152)).
During the simulation, the liner surface can be extended as the piston moves between its TDC and
Bottom Dead Center (BDC) locations. If the point clouds are expected to cover the full liner surface,
including the piston's swept area between its TDC and BDC locations, you must select the Extend
along a moving edge option and select the moving boundary condition of the piston from the list
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
152 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
of Boundary Conditions. In such cases, Ansys Forte will predict the full liner surface based on the
stroke and the piston's direction of motion, and automatically add points to the point cloud and
distribute them on the full liner surface. Figure 3.30: Example showing surface mesh on a full liner
surface used for point cloud (p. 153) shows the outcome of the point cloud extension. The liner surface
has been extended to account for the piston’s limiting location at BDC. While using the surface mesh
nodes as the point cloud, certain points (such as Point (1)) are always in contact with the in-cylinder
gas regardless of the piston’s location, other points (such as Point (n)) are in contact with the in-cyl-
inder gas only during part of the engine cycle. The point cloud on the full liner surface is assumed
to be static.
Figure 3.30: Example showing surface mesh on a full liner surface used for point cloud
Option (B) Alternatively, use the Specify Points option to set up the points by explicitly describing
their coordinates. To specify the point locations, create a table with the Point Cloud Editor, and
input x-, y-, and z- Cartesian coordinates (in cm) in columns 1, 2, and 3, respectively. Several input
methods are available: Picking with the mouse, inputting coordinates in the point cloud table, or
importing a .csv file of coordinates (see Point Cloud Editor (p. 30)). By default, user-specified points
are static. However, when using automatic mesh generation, you may choose to make the points
follow the motion of a wall by activating Attach to Moving Wall and attaching them to the selected
moving wall boundary condition from the Boundary Condition list.
In either of the above cases, a Surface Tolerance is allowed in case the points are not exactly, but
reasonably, specified on the wall surface. If the points are too far away from the wall, they are con-
sidered inactive (see the next several paragraphs).
Note:
A good practice is to set the Surface Tolerance to a value greater than half of the CFD
mesh size near the wall so that effective monitoring is possible.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 153
Modeling Guide
The wall sampling monitor probe can monitor three heat-transfer-related variables, as listed in
Table 3.10: Solution variables that can be monitored by probes (p. 148):
• near-wall temperature
As in any type of monitor probe's setting, you can set the wall sampling probe to be always active
during the simulation or active only within a user-specified time period or crank angle duration. Note
that for the CA-interval-based activation option, you can select the Crank Angle Option as Cyclic or
Global. The Cyclic option is helpful in specifying probe activation that is repetitive in a multi-engine-
cycle simulation. In this case, the user-specified start and end CA values will be converted to fit in the
range of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for 2-stroke engines). The CA interval will
then be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree schedule
(2-stroke). You may choose to Use Global Crank Angle Limits to impose a global crank angle range
for the cyclic repetition, beyond which the probe is not active. If the Crank Angle Option is Global,
no cyclic conversion is made on the user-supplied crank angle values.
For a wall sampling probe, an additional activation control affects each individual local probe point
in the point cloud. Specifically, a probe point is considered active when the local wall surface is exposed
to the simulated fluid. The point becomes inactive if the local wall surface is not exposed to the sim-
ulated fluid. This happens when valves seal with the ports, or when the cylinder liner touches the
piston wall or the crank case gas not simulated by Forte. The point may also be considered inactive
when it is too far away from any wall. To account for this activation control, Forte defines an activation
function, , such that:
in which is the elapsed time of the simulation. The time-averaged heat transfer flux , heat
transfer coefficient , and near-wall gas temperature are defined as:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
154 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
in which and are the instantaneous heat transfer flux and coefficient, respectively, and is
the wall temperature. The near-wall gas temperature is defined such that . The
time integration is calculated in its discrete form, and the time step is determined by the Inquiry
Frequency specified in the Monitor Probe Editor panel.
Output file creation varies with the method of point cloud creation:
• If the points are generated from a surface-mesh clip plane, each wall-sampling probe provides two
separate output data files, both containing the same x-, y-, z- Cartesian coordinates (in cm) of the
points and the same monitored time-averaged heat transfer variables (in SI units). The difference
is that one data file also contains the point connectivity information, which facilitates its import
into a post-processing software such as CFD-Post for visualization of the monitored solutions on
the wall surface, while the other data file does not contain this additional point connectivity inform-
ation. These two output files are named as wall_sampling_<probe_name>_at_sur-
face_<surface_name>_w_connectivity.csv and
wall_sampling_<probe_name>_at_surface_<surface_name>_w_o_connectiv-
ity.csv, respectively, where <probe_name> is the probe’s name and <surface_name> is the
name of the surface mesh used to generate the point cloud.
• If the points are generated by user-specified coordinates, one data file that contains the x-, y-, z-
Cartesian coordinates of the points and the time-averaged heat transfer variables without the point
connectivity information is created. The output file is named as:
wall_sampling_<probe_name>.csv, where <probe_name> is the probe’s name.
Figure 3.31: Example of the output file from a wall sampling probe, with 20 points in the point
cloud (p. 156) provides an example of output from a wall sampling probe. The probe’s name is
wall_sampling_moving and the name of the surface used for point cloud specification is Moving_0.
This output file keeps being updated during the simulation as time-averaging is performed simultan-
eously. The time when this file was last updated is shown in the second row of the file as t=0.25E-2
(sec), which is the elapsed time of simulation (t). In the following rows, the X-, Y- and Z-coordinates
of the points and their effective inquiry time ( ) and time-averaged heat transfer flux ("HTFlux")
and near-wall temperature ("nearWallT") are shown. It is noted that if , it means that the local
probe point has always been active during the simulation. If , it means that the local probe
point was not always active, and the active time duration is .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 155
Modeling Guide
Figure 3.31: Example of the output file from a wall sampling probe, with 20 points in the point
cloud
This feature is designed to monitor local flow solutions over time and calculate meaningful statistical
information if the flow solutions fluctuate. It is particularly helpful in analysis of turbulent flow field
simulated by Large-eddy Simulation. Unlike Wall Sampling, which queries solutions on the wall
boundaries, the General Data Sampling is designed to query solutions in the interior of the simulation
domain. It also offers more types of statistical data for calculation other than time-averaged, such as
the root-mean-square (RMS) and co-variance.
To use this type of monitor probe, set the probe Monitor Type as General Data Sampling. You can
use a point cloud to monitor data within any locations in the flow domain. There are two ways of
specifying the point cloud. The first way is to edit the Point Cloud option to explicitly describe the
points' x-, y-, z-coordinates. Several input methods are available: Picking with the mouse, inputting
coordinates in the point cloud table, or importing a .csv file of coordinates (see Point Cloud Edit-
or (p. 30)). The second way is to choose the Control Surface option, and automatically populate a
point cloud on any clip plane inside the simulation domain. You can choose to use an existing control
surface, or create a new one using the Control Surface Editor (see Control Surface Editor (p. 31)). The
mesh nodes on the control surface will be used as a point cloud. Note that in both options, the points
are always static during the simulation, despite that the local CFD mesh might change.
As in any type of monitor probe's setting, you can set the general data sampling probe to be always
active during the simulation or active only within a user-specified time period or crank angle duration.
Note that for the CA-interval-based activation option, you can select the Crank Angle Option as
Cyclic or Global. The Cyclic option is helpful in specifying probe activation that is repetitive in a
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
156 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
multi-engine-cycle simulation. In this case, the user-specified start and end CA values will be converted
to fit in the range of [0, 720) °CA (for 4-stroke engines) or [0, 360) °CA (for 2-stroke engines). The CA
interval will then be treated as cyclic and repeated on a 720-degree schedule (4-stroke) or 360-degree
schedule (2-stroke). You may choose to Use Global Crank Angle Limits to impose a global crank
angle range for the cyclic repetition, beyond which the probe is not active. If the Crank Angle Option
is Global, no cyclic conversion is made on the user-supplied crank angle values.
Similarly to the wall sampling probe behavior, an additional activation control affects each individual
local probe point in the point cloud. A probe point is considered active when it is within the flow
domain. The point becomes inactive if it is outside the flow domain. the activation function is
used to define a probe point’s activation status, and the effective inquiry time ( ) is the accumulated
active time of the point. Time-averaging of a certain solution variable is denoted as and defined
as:
Using the general data sampling probe, you can monitor any gas-phase solution variables that are
listed in Table 3.10: Solution variables that can be monitored by probes (p. 148). In addition to the in-
stantaneous data and time-averaging data, the general data sampling probe can output two additional
types of statistical data:
or equivalently,
The naming of an output file of a general data sampling probe follows the pattern gener-
al_data_sampling_<probe_name>.csv, in which <probe_name> is the probe’s name. This
file is created in the working directory at the beginning of the simulation, and is updated as simulation
time progresses until the end of the simulation.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 157
Modeling Guide
Figure 3.32: Example of the output file from a wall sampling probe, with 20 points in the point
cloud
• Plane Tangential Direction: The tangential vector is used to define the "width" direction of the
rectangular plane. Since this tangential vector is parallel to the plane (or within the plane), it must
be orthogonal to the normal vector of the plane. If their mutual orthogonality is not satisfied, the
Forte run will report this error and stop.
• Width and Height of the plane: By convention, the width direction is aligned with the tangential
vector.
• Number of grid points along the Width and Height directions: Used to specify the resolution of
the discretized 2-D plane.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
158 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitor Probes Panel
Spray patternation results can typically be saved at a lower output frequency compared to other
types of monitor probes, so Forte allows a customized output timing control to be specified for each
patternator. If the Custom Output Timing box is checked, the output schedule of this patternator
will follow the custom timing instead of the top-level monitor probe output timing.
The Activation options are used to control when a spray patternator becomes active. The patternator
will stop accumulating the spray parcels crossing the monitor plane when becoming inactive.
The patternator output files will be saved in a sub-directory called spray_patternator under the
Run directory. Results are reported in Ansys EnSight gold casefile format. At each result-writing step,
one set of output files is created for each patternator, including a .case file, a .geo file, and N+1
.var* files, where N is the number of nozzles monitored in this patternator. The base-name of these
output files follows the same convention as the one used by .ftres files. An example is T_1.00E-
03_100_Patt_1.case, in which 1.00E-3 is time and 100 is time step. The .case file serves as
an index file, which contains references to the .geo and .var* files. The first N .var* files contain
the areal mass densities (g/cm2) of accumulated liquid mass crossing each 2D cell from each individual
monitored nozzle, and the last .var* file contains the total areal mass densities (g/cm2) from all
monitored nozzles.
To visualize the patternation results in EnSight, open the .case file in EnSight, and a part called
Patternator Plane will be created. By default, the Patternator Plane is shown as a point field. To
change the view to a plane, right click the Patternator Plane part, select Edit, and on the Editor
panel, change the Mesh option under Creation from Original dataset mesh to Height surface,
projecting points onto XY plane. Then you can render the plane using the areal mass density vari-
ables.
If needed, you can overlay additional .case files or the .ftind file in the same EnSight viewport.
To do so, choose Keep current loaded data when you open the additional .case or .ftind files.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 159
Modeling Guide
These are annotation options for you to record any information that may help you remember specifics
about the case you are running. The Simulation Notes icon bar has 1 icon: New Note . Click the
icon to create and then name the new note. In the Editor panel you can use the icons to copy, paste,
or delete the note, or record items about the simulation or set a test index.
Boundary Motion icon bar are: Play , Loop , Stop , and Reset . You can specify the
duration of the animation and a point at which to preview, by entering a crank angle or picking a
point in a plot of the cycle.
This option displays the "background" Cartesian mesh in the Setup interface, during the Setup workflow.
This mesh display can look rough-edged, or untrimmed. The actual computation is based on the to-
pology of this Cartesian mesh but takes into account the actual trimmed nature of the cells in various
ways.
In addition to the boundary motion preview in the 3-D View window, the Boundary Motion Editor
panel contains an optional display under Simulation Preview that provides a rough plot of various
events and motions that have been set up in the project, including simulation start and stop, piston
motion, valve motion, sparks, injection, and areas of dynamic mesh refinement (for automatic meshing).
This option is only available for engine simulations, where a slider-crank motion has been defined
for at least one boundary surface. By entering a crank angle in the Simulation Preview text box, a
dashed line will be drawn indicating that location in the displayed cycle for reference purposes.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
160 of ANSYS, Inc. and its subsidiaries and affiliates.
Preview Simulation Node
for previewing automatic mesh generation that takes advantage of EnSight’s Dynamic Data capability,
allowing Forte to send a preview mesh directly for processing in EnSight, without saving to disk, and
with some added features such as the ability to preview only surface mesh motion and to detect in-
tersections in the geometry.
Data Options: Data Set Name provides a user-editable name for the data set, such as "IVC-to-EVO".
The Save Output to Disk option will cause the mesh preview to be written to disk instead of being
sent directly to a new EnSight instance. The data set will persist in a folder named "Preview" in the
simulations analysis directory and may be loaded manually in EnSight.
The Check for Surface Intersections option will cause additional checks to be performed on the
surface mesh that will detect surface intersections and will create point parts in the EnSight data
set where they are detected.
The Include Volume Mesh option tells the mesh preview generator that a full surface and volume
mesh are to be created. If not selected, the mesh preview generator will only produce surface mesh
motion. Unlike the quick Boundary Motion animation, this surface motion will include any deform-
ations to the surface mesh that may occur during the requested range, and can run efficiently on
a single MPI process. We recommend starting with a surface-only preview to verify that motion is
set correctly, and then including volume mesh to verify refinement settings. The volume mesh
creation employs MPI parallelism, and all available or desirable processes should be used.
Clicking the Generate Mesh button from the toolbar panel will start the mesh creation process.
If Save Output to Disk is not selected (the default), then a dialog will be launched, prompting you
to select a data set to load into Ansys EnSight. Select the named data set to start EnSight and begin
post-processing the preview mesh, similar to post-processing a complete solution in EnSight.
If Save Output to Disk is selected, then the mesh preview process will begin and write the mesh
directly to disk. Launch EnSight from the Mesh Preview toolbar or other method to load the
data set.
Note:
Processing mesh preview data in EnSight when using direct data transfer
When creating a range of preview mesh data with the Save Output to Disk option OFF,
Forte will continuously update the EnSight instance with new meshes as they are available.
You may find it useful to have EnSight jump to the new mesh data as soon as it becomes
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 161
Modeling Guide
available. To do this, configure the time set options in EnSight to jump to end (or other
options as desired).
Caution:
If Preview Mesh is canceled while EnSight is running, you must use the operating system's
option to terminate the EnSight instance.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
162 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 4: Built-in Fluid-Structure Interaction (FSI)
Beginning in release 2021 R1, Ansys Forte provides a capability to allow pressure loads from the fluid
simulation to interact with boundaries causing them to translate or deform.
To enable Built-in Fluid Structure Interaction (FSI) in Forte, enable the component in the Workflow tree
under Simulation Controls. Then add one or more FSI components available from the toolbar, such as
springs and beams.
4.1. Rigid Body Translation Based on Spring Mass System With Damping
This type of FSI component can be used to model a check valve. The pressure load is integrated over
the selected boundary to provide a force acting on the body. An additional resistive force is applied
proportional to the velocity of the body, with a user-supplied proportionality constant.
A threshold and maximum displacement may be specified, and an option may be set to limit the spring
motion to travel in only the positive direction. The mass of the body, damping coefficient, spring constant,
and direction must be provided.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 163
Built-in Fluid-Structure Interaction (FSI)
4.2. Rigid Body Rotation Based on Spring Mass System With Damping
This type of FSI component can be used to model a rigid reed valve or other torsionally activated
moving body. The pressure load is integrated over the selected boundary to provide a torque value
about the specified axis with which an angular version of Hooke's Law (T = k ) will be used to compute
an angular applied torque. A resistive torque proportional to the angular velocity of the body is also
applied, with a user-supplied proportionality constant.
A threshold and maximum displacement may be specified, and an option may be set to limit the spring
motion to travel in only the positive direction with respect to the specified axis of rotation. The mass
moment of inertia of the body about the rotating axis, damping coefficient, spring constant, and rotation
axis must be provided.
where is the net torque applied on the beam with respect to the anchoring axis, is the
restorative torque caused by the beam's stiffness, is the torque from external pressure applied
on the beam surface, is a damping coefficient, and is the mass moment of inertia of the beam.
In the actual bending beam, the deflection angle varies at different locations along the beam. In the
present model, the deflection angle is defined as an averaged quantity. The change of is related to
the change of the tip deflection through the following equation:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
164 of ANSYS, Inc. and its subsidiaries and affiliates.
Cantilever Deformation According to Euler's Beam Equations
The restorative torque is correlated with the deflection distance of the tip of the beam based on the
statics analysis using Euler's beam equations. This correlation is derived for three different load models:
point load, distributed load, and partially distributed load.
In the point load model, the static deflection distribution along the beam is given by:
(4.1)
where is the point force, is Young's modulus, is the area moment of inertia of the beam, is the
distance from the deflecting point being calculated to the anchoring end of the beam.
The restorative torque is correlated with the tip deflection through the following equation:
In the distributed load model, the static deflection at location along the beam is given by
(4.2)
The restorative torque is correlated with the beam tip deflection through the following equation:
In the partially-distributed load model, the static deflection at the location along the beam is given
by:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 165
Built-in Fluid-Structure Interaction (FSI)
(4.3)
where:
The restorative torque is correlated with the beam tip deflection through the following equation:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
166 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 5:Workflows: Preparing and Executing Runs
Ansys Forte supports job preparing and running from either:
This chapter describes preparing and running jobs using a variety of workflows and how to monitor
jobs once they are running.
5.1. Introduction
5.2. Prerequisites to Preparing Runs
5.3. Preparing Runs
5.4. Resource Management
5.5. Executing Runs
5.6. Monitoring Runs
5.7. Calculation of Knock and Phi-T
5.8. Restarting Runs
5.9. User-defined Functions (UDF)
5.1. Introduction
The steps to execute a Forte job are:
Forte supports the workflows illustrated in Figure 5.1: Workflow choices for Prepare and Run steps (p. 168)
for these two steps.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 167
Workflows: Preparing and Executing Runs
Note:
You cannot prepare the job using the Forte Command Line Interface and then run from the
Forte User Interface.
Deciding which of these workflows to follow may depend on the compute resources you have available
to prepare and run your job.
Single machine in parallel: A single Windows or a single Linux machine, where MPI uses shared memory
message passing locally on that machine.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
168 of ANSYS, Inc. and its subsidiaries and affiliates.
Introduction
Distributed parallel: A Linux distributed cluster, where MPI uses distributed message passing[1] between
nodes in the cluster and shared memory between the MPI processes on each node in the cluster.
The flowchart in Figure 5.2: Workflow choices for Single machine and Distributed Parallel steps (p. 170)
illustrates the possible workflows for running your job, including links to the sections that describe each
approach.
[1] A distributed cluster should have a fast interconnect, such as Infiniband, between all nodes
in the cluster to ensure the best performance.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 169
Workflows: Preparing and Executing Runs
Figure 5.2: Workflow choices for Single machine and Distributed Parallel steps
• See Executing Runs Using the Forte User Interface (p. 179) and Executing Runs Using the Command
Line Interface (p. 180)
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
170 of ANSYS, Inc. and its subsidiaries and affiliates.
Prerequisites to Preparing Runs
For distributed parallel runs on the Linux platform, you have the option to either specify the resources
within the cluster by defining the hosts directly (see Distributed Parallel on Linux Using a Hostfile (p. 177))
or to use a job queuing system (such as SLURM or UGE) which itself manages and assigns the hosts
(see Distributed Parallel Using a Queuing System (p. 178).)
This chapter describes the following Forte workflows for specific run types:
This chapter describes only the three run types in the list above: single run, restart run, or parameter
study. Parameter studies are most easily prepared using the Forte User Interface and that workflow is
explicitly described in this chapter. It is also possible to use the Command Line Interface to prepare
and run parameter study runs, although we recommend only using the Command Line Interface to
perform the execution of the runs and do the preparation using the User Interface
Other specialized Forte workflows are also available. These are described in the linked sections in the
associated chapters, as listed below:
• Forte as a participant within a System Coupling run – see System Coupling (p. 211)
• Using a replay file – see Commands for Replay Scripting (p. 203)
The next section describes how to set the appropriate Run Settings prior to preparing and submitting
the job.
In Appendix B: Prerequisites for Parallel MPI Environment (p. 229) we describe the prerequisites for running
Forte in parallel.
The Forte User Interface's prepare step creates some scripts which are described in Run Preparation
Using the Command Line Interface (p. 176) and also in Additional Scripts - Background Information (p. 231).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 171
Workflows: Preparing and Executing Runs
Ansys Forte uses a directory structure to organize scripts and data files for the run. The descriptive
names for these directories are Working directory, Analysis directory, and Run directory.
• No-hydro Mode: When selected, this option forces the simulation to run in mesh-movement-only
mode. In this mode, there will be no solution of the governing equations for flow or chemistry,
which is useful in verifying the engine settings and in diagnosing mesh-motion problems.
The Default Run Type option defines the default value used for the Serial/Parallel buttons in the
Run Simulation panel. You can update this as a global preference for all new projects by setting your
preference. The actual run type of the scripts generated depends on the Serial/Parallel setting in
the Run Simulation panel. (See Run Preparation Using the Forte User Interface (p. 174).)
The Submit Action option allows you to operate in interactive or preparation-only mode. The default
interactive mode means that the job will be submitted immediately on the machine where the Ansys
Forte user interface is running. Prepare Batch Scripts Only allows preparation of files for batch
processing on a remote compute server, or for processing at a later time. See Executing Runs Using
the Forte User Interface (p. 179) for more on preparing scripts for delayed or remote submission.
The Number of Parameter Study Queues value governs how many parameter study jobs are run
in parallel. The number being run in parallel multiplied by the number of cores being used per job
(an MPI argument you specify when submitting the jobs) should not exceed the number of cores
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
172 of ANSYS, Inc. and its subsidiaries and affiliates.
Prerequisites to Preparing Runs
available on your computing system (host or cluster if using multiple machines in MPI cluster). And,
of course, you are also limited by the number of Ansys Forte and FORTE_MPI licenses you have
available. For example, if you have a quad-core machine, you may want to submit 4 jobs at once. If
you want to run each job in parallel using 2 processors each, then you may want to submit 2 jobs at
once. If the Batch number is less than the total number of runs listed, then just the number of runs
specified will be submitted at a time. As soon as a job is complete, the next job will be submitted.
The Default MPI Arguments string is used in populating the Run Simulation panel. By default, the
value is 2. This value is ultimately used when generating the job script files, but the meaning of the
argument(s) depends on the MPI execution command, as explained in the Windows and Linux Settings
panels below.
On a Windows system, you can use the DOS Windows parameter to specify how many DOS windows
are created while your jobs are running. We suggest One Window per Job Queue, but you can ex-
periment with the other options.
Analysis and Run Directory Names: Use these options to change the name of the analysis directory
created to contain the run directories. The default is project-name.analysis. Use the Run Name
Prefix option to control naming the parameter study run directories. The default prefix is "Run" and
the parameter studies are numbered.
Note:
In addition to the Windows and Linux settings described in the next sections, Advanced
Settings are described in Advanced Settings for Linux or Windows Systems (p. 231).
These settings can be used to further customize the scripts used when your job runs,
which is rarely needed. The default scripts are set up to run on most typical Windows
or Linux parallel architectures.
Parallel Execution (MPI) Settings: This text string provides the command syntax for the MPI mpirun,
mpiexec command. The default value for the Parallel Execution command is
mpiexec -n @1 -localonly @FORTE
The @1 value is the 1st token (tokens are separated by spaces; spaces can be included in the token
value if the string is enclosed in double quotes) in the MPI Arguments string provided in the Run
Simulation panel when you submit your job. You can use up to 9 tokens @1..@9. The mpiexec -
n <arg> syntax means use N parallel processes to run the job. The -localonly argument restricts
mpiexec to only run processes on the local computer. The @FORTE argument fills in the Forte-spe-
cific command syntax that is ultimately executed by mpiexec. The exact syntax the @FORTE token
generates depends on whether you are submitting Ansys Forte from the beginning of the run or using
a restart option to pick up from a specific crank angle or time.
Environment Variables: This is a table of environment variables defined for the Windows environment.
By default, we define MKL_NUM_THREADS to the value of 1. This restricts some of our numeric al-
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 173
Workflows: Preparing and Executing Runs
gorithms to only use 1 core per process. Since you are using MPI to control how many processes are
being used, this prevents competition for core compute cycles from multiple processes. We strongly
encourage you to leave this value as defined. The following environment variables are needed if the
corresponding models are activated.
Select the Run Simulation node after you have finished editing the setup panels on the Workflow
tree to define the project, including defining any parameter-study variations desired. The Run Simu-
lation items can be used to submit, monitor, and manage the run jobs.
The Run Simulation Editor panel is shown in Figure 5.3: Run Simulation Editor panel with and without
parameter study (p. 175), with a parameter study of two runs in the top example and a single run in
the second panel. If a parameter study has been set up for a simulation, as described in Parameter
Studies (p. 33), single or multiple jobs from that study can be run from here. In Figure 5.3: Run Simu-
lation Editor panel with and without parameter study (p. 175), the top panel shows a parameter study
with two runs.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
174 of ANSYS, Inc. and its subsidiaries and affiliates.
Preparing Runs
Figure 5.3: Run Simulation Editor panel with and without parameter study
To prepare a run in the Forte User Interface, choose a Run Submit Action of Prepare-only, then
you will see Prepare and Clean (delete) buttons in the table row. Similarly, you will see Prepare
Selected and Clean Selected buttons at the bottom.
To run from the Forte User Interface, choose Prepare Build Scripts and run, then you will see
Start and Stop buttons in the table row. Similarly, you will see Submit Selected and Stop Selected,
and Clean Selected buttons at the bottom. Continuing with runs in the Forte User Interface is de-
scribed in Executing Runs (p. 179).
With Prepared job scripts, you can copy or move the prepared files (the entire project.analysis
directory and subdirectories) to another location and run in batch mode (see Executing Runs Using
the Command Line Interface (p. 180) for command-line batch-job instructions.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 175
Workflows: Preparing and Executing Runs
For a non-parameter study job, the only difference between using the table row buttons and the
buttons below the table is an internal difference in how the script files that run the job are created.
Using the table-row buttons creates the job scripts only in the run directory (named Nominal).
Using the panel-bottom buttons creates master job scripts in the analysis directory that then invoke
run scripts in the run directories. This overhead makes sense for parameter studies but is not required
when only a single job is being run.
Assuming that you have made all required changes to settings (see Prerequisites to Preparing
Runs (p. 171)) and have saved your project in the Forte User Interface and are you are ready to prepare
your job from your MyProject.ftsim, use the following Command Line Interface command to
prepare the run directory:
Windows
run_forte.bat CLI -project MyProject.ftsim --prepare -mpi_args number_of_MPIprocesses
Linux
sh forte.sh CLI -project MyProject.ftsim --prepare -mpi_args number_of_MPIprocesses
where /path/to/dir is the path to your run directory. If this option is omitted, then the default
of MyProject.analysis/Nominal (see Table 5.1: Ansys Forte standard directory organiza-
tion (p. 172) is used.
Tip:
Use –mpi_args none when you are preparing a job for a queuing system that will de-
termine the number of MPI processes from the job submission script. For more details, see
Distributed Parallel Using a Queuing System (p. 178).
Regardless of whether the job is being prepared using the Forte User Interface or using the Command
Line Interface, the following files are created in the run directory:
which are used to run the job which call the additional scripts
respectively, on the Windows or Linux platform, which set the Ansys Forte runtime environment and
additional environment variables specified in the Run Settings panel, and also define the Intel MPI
runtime environment that is part of the Ansys installation.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
176 of ANSYS, Inc. and its subsidiaries and affiliates.
Resource Management
Each of these methods requires you to add additional arguments to the mpirun command in the
run_env.sh file. There are two ways to do this:
A. Modify the Linux run settings options in the Forte User Interface before preparing the project.
(see Windows Settings Panel (p. 173) and Linux Settings Panel (p. 174)).
B. Modifying via the Forte Command Line Interface prepare command to include the hostfile as fol-
lows:
Create a Forte Command Line Interface settings file, for example run_settings.txt. with the
following content:
mpi_command_l = <modified mpirun line as described in section (1), (2) or (3) below>
For example:
mpi_command_l = "mpirun -machine $HOME/machines.txt @FORTE"
END
Then include this settings file as part of the Forte Command Line Interface prepare step:
sh forte.sh CLI -project <MyProject.ftsim> --prepare -mpi_args <number of MPI processes> \
-import run_settings.txt
We recommend you use one of these supported approaches instead of manually editing the run_mpi
script directly yourself.
The following are examples of how you can modify the mpirun command to define your distributed
parallel host resources:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 177
Workflows: Preparing and Executing Runs
• 4 processes on NodeB
Below are examples of Forte job scripts for both of these systems. These examples should be sufficient
to get you started on such systems, though you may need to contact your IT department to find out
which resources (parallel environments or partitions, etc.) are available to you.
Note:
It may be possible to run Forte using other queueing systems, such as, for example, PBS,
but we have not tested them and therefore do not support other systems.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
178 of ANSYS, Inc. and its subsidiaries and affiliates.
Executing Runs
cd $SLURM_SUBMIT_DIR
/bin/sh ./run_mpi.sh
Figure 5.4: Submitting runs from the runs table of the Submit Runs panel
You can alternatively submit a selected run using the Submit Selected button at the bottom of
the Run Simulation panel.
Figure 5.5: Submitting runs using the Submit Selected button of the Run Simulation panel
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 179
Workflows: Preparing and Executing Runs
To submit multiple jobs, check the box next to each job and press the Submit Selected button.
Use the right-mouse button on this check-box column to activate a context menu offering Select
All or Deselect All or Toggle Selected. If you are running in MPI mode, the default value set in
Run Options is filled in to the MPI Args column. You can change this value in each row or right-
click to obtain the context menu offering Fill Down or Clear Down to speed entering the same
value in each row. Each job runs in its own directory. Therefore, within the Analysis folder alongside
the Nominal folder, there will also be the Run_00x folders.
The next 3 columns allow you to restart the job from a previous full or partial solution. These
columns are described above for the single-run case. In addition, right-mouse clicking will activate
a context menu in the Restart File and Previous Results File columns allowing you to more quickly
populate values that are the same for multiple runs.
Note:
These job rows contain individual controls for starting and stopping (or preparing and
cleaning) each run that can be used to run jobs not selected even while the overall
parameter study is also running. But, using these buttons for jobs also selected in the
parameter study may interfere with the parameter study runs if you use them in a row
that was selected for the parameter study.
If you want to run the job on a different compute resource to the one on which you prepared the
job by the Forte User Interface or Command Line Interface, see section Running On a Remote Serv-
er (p. 181).
Once you are ready to run the job, cd to the run directory and run the job using
Windows
call run_mpi.bat
Linux
sh run_mpi.sh
and then monitor the progress of your run (see Monitoring Runs (p. 181) for details). These scripts will
exit when the run finishes.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
180 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitoring Runs
• Prepare the job using the Forte User Interface and then run on a different compute resource.
• Prepare the job using the Forte Command Line Interface and then run on a different compute
resource.
• Prepare the job using the Forte User Interface or Forte Command Line Interface on one disk and
then run on a different disk.
Since Ansys Forte generates both Windows and Linux job scripts, it is very easy to prepare your
jobs on your local computer and then transfer them to a remote computer for execution. The line
endings for the scripts are generated correctly for their target platforms; but individually FTP’ing
those files could result in undesired line-ending conversions, so some care transferring files is
needed to ensure that line endings are preserved appropriately.
Tip:
We recommend that you compress the entire run directories into a single zip or tarball
and then transfer that to the remote system.
You should transfer the entire prepared run folder and its files to the remote machine.
The following two sections (Distributed Parallel on Linux Using a Hostfile (p. 177) and Distributed
Parallel Using a Queuing System (p. 178) ) describe how to run your job on a Linux distributed par-
allel cluster (for this case, you may need to transfer the run folder from the machine it was prepared
on to a machine on the distributed cluster).
The Forte.log file reports many data items. The following symbols in the Forte.log file rep-
resent the number of various iterations. The solver control parameters listed under Simulation
Controls > Transport Terms corresponds to the terms listed below, except for the nflux for fluxing.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 181
Workflows: Preparing and Executing Runs
The fluxing control is exposed under time step control, listed as Max. Convection Subcycles.
Hovering the mouse over the labels in the User Interface displays tool tips that provide more detailed
information about these parameters.
– y: mass diffusion
– t: heat diffusion
– nflux: number of subcycling steps in fluxing calculation, including fluxing of cell centered
quantities and momentum
• MONITOR: Text file, displayed in user interface monitor tab, with "stdout" and "stderr" of the Ansys
Forte executable. Similar contents to FORTE.log. If the job was submitted with "Verbose" (or
greater) level of output, then the stdout and stderr of sourcing the run_env script is also captured.
• Copy_restart.log: Results of the copying of restart files performed by the Forte User Interface.
This would show any invalid file paths or other runtime issues with copying the restart (and previous
results) files into the Run directories. For the single run, this file is in the Run directory. For Submit
Selected, this file is in the Analysis directory.
• Queue_runner_N.log (where N is 1, 2, ...): Results of the queue script processing by the Forte
User Interface. Look here if some runs were unexpectedly skipped or not all selected runs were
processed. This file is only produced when the Submit Selected option is used. (No queue runner
is used if only one job is being submitted.)
Output Files: During an Ansys Forte simulation, several output files are created.
• .ftind: Ansys Forte results index file that contains a list of the names of the .ftres solution
file(s) together associated with each crank angle/time point. This file is an ASCII file written by Forte
during the run and can be used to view the spatially resolved solutions in post processors such as
Ansys EnSight or Ansys CFD-Post. For both of these, open the .ftind file to view all the results
indexed in this file. The file is also modified during a restart run to index (using relative paths) the
existing solutions before the restart point and the new ones generated after the restart point.
• .ftres: Ansys Forte solution files containing spatially resolved solutions for one or more crank
angles/time points. Controlled using the File Size Control option (see Spatially Resolved Panel (p. 109)).
• .csv: Comma-separated values files containing groups of related spatially average solutions for
the entire simulation, for example, thermo.csv and dynamic.csv (see Spatially Averaged and
Spray Panel (p. 118) for details).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
182 of ANSYS, Inc. and its subsidiaries and affiliates.
Monitoring Runs
• .ftrsp: Ansys Forte restart project file—temporary file used to store project information written
into Ansys Forte restart files. Do not modify or delete during a simulation.
• .ftrst: Ansys Forte restart file that can be used to restart a simulation from a specific crank angle
or time - see Restart Data Panel (p. 145) for details.
In addition to the project file, the chemistry mechanism files and fuel library file are extracted from
the project and pre-processed so the Ansys Forte executable is completely ready to start. You will
see chem.* (or the gas chemistry file you have named in your mechanism) and fuel_lib_* file
and also xml.out and therm.dat (or the name of the thermodynamics file in the mechanism you
are using).
If a restart file has been specified in the Forte User Interface, that file will have been copied to the
Run directory and named selected.ftrst. If corresponding results files (.ftres files, .ftind
index file) have also been specified, they are copied to the Run directory and also named selected.*.
These files are copied to avoid any file contention issues if you are running parallel jobs. These copies
are deleted from the Run directory once the job has completed.
Finally, you will see some job-control and status files. For a single run, you will see a file named
PREPARED. For a parameter study, you will see PREPARED and SELECTED. These files are removed
as the job runs and are replaced by other job-status files. The batch scripts look for these files to exist
when determining whether to run Ansys Forte simulation in that Run directory. This allows multiple
queues to work in parallel without re-running the same jobs.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 183
Workflows: Preparing and Executing Runs
While the simulation jobs are running, they are writing results into the solution file (.ftind and
.ftres) and also writing to several .csv files that can be used for plotting intermediate results.
You can display partial results, such as a pressure trace, using the Monitor panel, launched by pressing
the Monitor Runs icon, on the left end of the Run Simulation panel in Figure 5.6: Run Simulation
panel 's icon bar with Monitor Results icon (p. 184), and on the Launcher dialog illustrated in Fig-
ure 5.7: Launcher dialog with Monitor Results icon (p. 184).
Figure 5.6: Run Simulation panel 's icon bar with Monitor Results icon
For jobs that are running, several comma-separated value (CSV) files are being updated with results
that can be plotted. The job's output is also displayed in the tab shown below the plot area. One tab
is shown for each running or completed job in the Analysis directory. When the Monitor is run from
the Launcher, select the location of the .ftsim project file that has generated some output to
monitor.
Plots can be generated by expanding the twistie for one or more of the .csv files shown as folders
on the left panel and clicking on the check-box for any plot desired. The plots can be resized or re-
positioned. To remove a plot, clear the same check box that triggered it to be displayed. If you have
several plots, you can reformat the overall display to put them in either horizontal tiles or a stacked
display using the two buttons that control views .
To modify which runs in a parameter study are plotted, click the Select Runs to Plot icon. By
default, the plots in the monitor window are automatically updated every 5-10 seconds. This updating
may be turned ON or OFF by selecting the or icons. By default, the X axis of each plot is set
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
184 of ANSYS, Inc. and its subsidiaries and affiliates.
Calculation of Knock and Phi-T
to be the first variable listed in the CSV data. To use a different value for the X axis, right-click the
desired variable in the tree and select the Set x Axis option.
Once the desired runs have completed, view available parameter study solution files by clicking the
Open in EnSight button on the Run Simulation icon bar. This program comes packaged in the
Ansys installation.
Note:
When using Ansys EnSight's SOS option (Server of Servers) to exploit parallel loading of
Forte results, only temporal parallelism should be used, otherwise results may contain
visual artifacts.
The example in Figure 5.8: Examples of computational times for CFD and detailed chemistry (p. 185)
is from a simulation run with 8 MPI processes. The total amount of computing time spent on the
simulation is 1 h, 2 m, with 11 m spent on chemistry calculations.
When running Ansys Forte in parallel, the total CPU time will be greater than the wall-clock (elapsed)
time. The ratio of is the same as the wall clock
time when the work load is evenly distributed on each MPI process and no wait is involved for I/O
or other resources. For this example, the ratio is 1h 2m, which is equal to the Total wall-clock time,
showing the run is evenly distributed.
Figure 5.8: Examples of computational times for CFD and detailed chemistry
================================================================================
Summary of computational times:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 185
Workflows: Preparing and Executing Runs
• Phi-T plot, a contour overlay plot that is used typically to plot soot or soot-precursor and NO x
contours as a function of equivalence ratio (phi or φ) and temperature (T).
To do this, create a line plot using sampled data, such as probed data.
The probed data can then be run through a selection of Infinite Impulse Response filters, which are
set up to isolate the knocking behavior sampled at a probe point. In Figure 5.9: Knock intensity as
determined with the Butterworth high pass filter (p. 186) , the Butterworth high pass filter is applied
to the probed pressure data to determine the knock intensity.
The Knock Intensity Index is calculated from a Butterworth high pass filter applied to a pressure trace.
It is the maximum peak-to-peak signal in the resulting signal.
(5.1)
where P(BWHP) is the Butterworth filtered pressure and the delta represents the maximum peak to
valley value.
Figure 5.9: Knock intensity as determined with the Butterworth high pass filter
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
186 of ANSYS, Inc. and its subsidiaries and affiliates.
Calculation of Knock and Phi-T
To create the underlying map (for example, the Phi-T contour overlay for soot and NO x), you first
must import a CSV data file that contains data that is a function of two independent variables (for
example, equivalence ratio and temperature), which is required for the Contour Overlay. A sample
CSV file, diesel_phi_T_contour.ckcsv, is provided in the Ansys Forte data/phi_T_maps
directory. Once the source file is opened and the data has been read in, you can then create a Contour
Overlay plot. In the Phi-T Plot Editor panel, you may specify one or more Z variables for the displayed
contours in the Background Contour sub-panel. For example, with the sample Phi-T plot, we would
select A4 (pyrene) to represent soot and NO to represent NO x, as a function of equivalence ratio on
the X axis and Temperature on the Y axis. Since these contours will be overlaid on the same plot, it
is helpful to use a different color for the contours of each variable. Right-clicking on any entry in the
Z variable list will allow you to select the contour color. Once the Background Contours have been
established, you can then select the Ansys Forte solution points to plot on this map. For the Phi-T
example, you can plot scatter points for all cells in the Ansys Forte solution, based on the equivalence
ratio and temperature of each cell. How these cells intersect with the "islands" representing soot or
NO x from a detailed kinetics simulation, for example, will give some indication of where and when
soot is formed. In the Scattered Points tab, you can select one, a range of, or all solution time points
in the solution to plot on the Contour Overlay. An example of a compound Phi-T plot is shown in
Figure 5.10: Phi-T map with both A4 and NO chosen as contours, with each cell representing a single
point overlaid (p. 188) .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 187
Workflows: Preparing and Executing Runs
Figure 5.10: Phi-T map with both A4 and NO chosen as contours, with each cell representing a
single point overlaid
A mechanism of 3806 species, and 15718 reactions developed for the Model Fuels Consortium 17 in
2009 was used to generate this input file. The surrogate fuel used in this instance was developed by
Naik et al. 25 which contains a mixture of heptamethylnonane, n-hexadecane, methyl cyclohexane,
decalin, n-propyl benzene, hexene, and methyl naphthalene.
The content of the file uses reactor initial conditions of Temperature and Equivalence Ratio ranging
from 500–2500 K, and 0.2–3.0, respectively. Typical representatives of NO x and soot are NO and
pyrene; these are the defaults chosen by the Phi-T Plot wizard utility.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
188 of ANSYS, Inc. and its subsidiaries and affiliates.
Restarting Runs
Note that when you select a previous results index (.ftind) in the restart run, the previous .ftres
files will be indexed in the file using relative paths to the location of those .ftres files from your
previous restart run(s). It is also possible to edit the results index file manually if you want to combine
results files from different runs in different folders.
You can run with specific result files using the Forte User Interface or Command Line Interface. Both
workflows are described in the next two sections (Restarting from the Forte User Interface (p. 189)
and Restarting from the Forte Command Line Interface (p. 192)).
The Run Simulation section of the set-up allows you to specify one of these saved restart files
(.ftrst) when the Use Restart check box is selected. The Browse button will open a file browser
to help specify the Restart File column. To set up a restart file, first make sure that the Use Restart
item is checked in the Run Simulation panel shown in Figure 5.11: Run Simulation Panel with Use
Restart checked and three additional columns for Restart (p. 189). This action adds three columns
to the run table: Restart File, Browse, and Previous Results File.
Figure 5.11: Run Simulation Panel with Use Restart checked and three additional columns for
Restart
Clicking Browse opens a file browser for locating a .ftrst restart file. Once that is selected, the
"Previous Results File" column is populated by the associated .ftind results index file in that same
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 189
Workflows: Preparing and Executing Runs
directory. If no such results file exists in that directory, then this column remains blank. A blank
entry for the "Previous Results File" does not cause any errors, but the results will only contain
solutions after the restart point. A "Previous Results File" provides an option to include solution
data written before the restart point.
Providing this existing results file to prepend to the new results is optional. If you do not need the
results prepended, you can still use the restart file and omit the prior results file.
Since you may want to run a variety of simulations from an existing restart point, Ansys Forte
generates the job scripts to specify uniquely named files for each run— by looking at the existing
restart and results files in the Run directory. Distinct file names are generated by using a different
root name that includes a sequential number, allowing the subsequent runs to be identified and
grouped. Of course, if those files are on a remote node and you are generating the scripts for pur-
poses of transferring the files to a compute cluster, then the Forte User Interface will not know of
any existing runs. (Forte examines the directory; this information is not saved in the project file itself.)
You can modify the run name root in the Run Settings panel to avoid any conflicts, or you can edit
the generated scripts using the information provided below.
Within the run*.bat/sh file in the Run directory, the forte executable is invoked with arguments
that specify the names generated using -rn <file name root>.
• Restart run:
selected.ftrst and selected.ftind are local copies of the restart and results index files.
The solution files associated with the index files also need to be copied into the working directory.
You must use the cgns_util restartcopy command to make sure these files are internally
consistent. See restartcopy Utility (p. 262) for details on the using the utility.
The restart files naming is designed to give the best sort order.
Due to the solver crank-angle or time-step incrementing, the restart files may not be generated at
exactly the precise point you request. For instance, the restart files in Figure 5.12: Restart points at
CA = -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 (p. 191) were generated based on a custom setting of creating
a restart file at these crank angles: -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
190 of ANSYS, Inc. and its subsidiaries and affiliates.
Restarting Runs
As you can see, there is only 1 results file and the simulation ended before the crank angle 5
threshold was reached. The format of the file names uses the Run name (Run_001) and then "CA"
for crank angle or "T" for time step. Next is the numeric value with either "n" or "p" prefix (in addition
to a minus sign) that was added to force consistent sorting in the 5 different viewing scenarios
described earlier. Finally, in addition to the crank angle or time step, the final numeric value is the
specific simulation step at which the restart was generated. This is done to allow a case in which
the restart files are generated so frequently that the same name would otherwise be generated.
For instance, if 2 distinct restart files were generated at CA of 0.04, the names might be
Run_001_CA_p_0.04_42.ftrst and Run_001_CA_p_0.04_43.ftrst.
Note:
When the File Size Control option is used to split the spatially resolved solutions across
more than one .ftres file, then the same naming format is used in both the .ftres
files and the .ftrst files, to help identify the range of crank angles in each .ftres.
The listing in Figure 5.12: Restart points at CA = -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 (p. 191) is for an initial
run that generated restart files. The next listing, in Figure 5.13: Restart using
Run_001_CA_p_0.04_42.ftrst (New files highlighted) (p. 192), shows rerunning the same
simulation, but using Run_001_CA_p_0.04_42.ftrst as the restart file. As you can see, none
of the existing restart or results files are modified by this second run. Distinct file names are gener-
ated by using a different root name that includes a sequential number purely to distinguish and
group these subsequent runs. The new files created are highlighted. If a 3rd run was performed
using restart, then you would see Run_001_2.ftres and any associated restart files.
Note:
If a subsequent run is performed not using restart, then the original file names are used
and overwritten.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 191
Workflows: Preparing and Executing Runs
Save Restart Point: While a job is running, the Save Restart button (which was the Start button
before the run started) allows you to signal the job to save a solution and a restart file at the current
crank angle during the run.
Figure 5.14: Run Simulation panel showing Start/Save button in Save mode after run has
started
Windows
Call run_forte.bat CLI-project myProject.ftsim --prepare -mpi_args 8 -restart_file\
restart.ftrst -restart_results restart.ftind
Linux
forte.sh CLI-project myProject.ftsim --prepare -mpi_args 8 -restart_file restart.ftrst\
-restart_results restart.ftind
which will create a run_mpi.bat/.sh that will use the specified result file restart.ftrst
and index file restart.ftind.
You may need to modify the restart.ftind file when performing a restart run where the ori-
ginal run was performed on a different compute resource and/or disk.
[2] From Figure 5.12: Restart points at CA = -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 (p. 191) as restart file.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
192 of ANSYS, Inc. and its subsidiaries and affiliates.
User-defined Functions (UDF)
Forte supports usage of three computer programming languages, namely Fortran, C, and C++, to build
a user-defined function shared-object library (a file with extension "dll" on Windows systems and with
extension ‘so’ on the Linux operating system). Each module (category listed above) builds into a corres-
ponding shared-object library file.
The detailed instructions on how to build the library and various functionalities available are documented
in the README.txt file. On Windows systems, this file is located in the In-
stallDir\forte.win64\user_defined_functions, where the default location for the install-
ation directory is InstallDir. (For example, on Windows systems, this location is C:\ANSYS
Inc\vNNN\reaction where NNN is a particular version number, such as 221). Also, there are descript-
ive comments in each program-source file that provide details on input, output, and the intended usage.
Note:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 193
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
194 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 6: Command-line Interface
This chapter describes the Ansys Forte command line interface or “CLI”. First, it explains how to set up
your environment before using the CLI, then the operations you can perform using the CLI.
To set up the environment on Windows, from a DOS prompt run the run_forte_env_setup.bat
file located in the installation bin directory:
> call "C:\Program Files\ANSYS Inc\V221\reaction\forte.win64\bin\run_forte_env_setup.bat"
To set up the environment on Linux (csh and tcsh users), from a terminal source the forte_setup.sh
file located in the installation bin directory:
> source $HOME/ansys_inc/v221/reaction/forte.linuxx8664/bin/forte_setup.sh
Note:
The instructions above assume that you have installed Ansys Forte in your Linux home dir-
ectory. If you have installed into a different location, replace "$HOME" in the above instructions
with the actual (absolute) path to your installation.
The workflow most commonly used for the CLI is to prepare your Forte project file and then run it. The
steps to accomplish this are described in Run Preparation Using the Command Line Interface (p. 176).
1. Loads a project
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 195
Command-line Interface
Which steps are actually performed depends on the options passed to the utility. The steps are always
executed in the order listed above, regardless of the order of the options passed. The options are passed
to the utility as arguments with the following conventions:
• Argument names that are preceded with a single dash require a value specified immediately after a
space.
Example:
• Argument names that are preceded with two dashes do not require a value; they imply a boolean
TRUE value by their presence.
Example:
Syntax for file names: Regardless of platform, file names should be specified using a forward slash
"/" as a path separator.
Utility usage: Any combination of the steps listed in the primary sequence may be specified; any
omitted step will not be performed.
6.2.1. Commands
-project ProjectFile.ftsim
Load a replay file: If present, will load the replay file before processing further steps.
-replay ReplayFile.ftrpl
Load project data from text: Specifies project data in text format to be imported into the project.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
196 of ANSYS, Inc. and its subsidiaries and affiliates.
Command Line Interface
-import TextFileToImport.txt
Save project data: If present, the utility will save the project before exit. -save_as specifies an
alternate file name to save; must be used along with --save option.
--save
-save_as NewProjectName.ftsim
Export project data to text: Specifies a file name to export project data to.
-export TextFileToExport.txt
Validate project data: The utility will validate the project before exiting, reporting any errors to
the console.
--validate
Prepare the project for execution: The utility will prepare a run for execution. Additional arguments
are required, as in the following list.
--prepare
MPI processes: Specify the number of MPI processes to use with the mpi command
(specify -1 to omit the -n argument from the mpirun command).
-mpi_args 8
Parameter study name: Specify the name of the parameter study run, if omitted
Nominal is assumed.
-run Nominal
-restart_file
Restart results: (Optional) Specify a results file with which to append a restarted
run.
-restart_results
Print project data to console: The utility will print a text representation of the project data to the
console.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 197
Command-line Interface
Geometry:
geometry_source = “/path/to/geometry.stl”
END
The appropriate geometry import command will be invoked based on the file extension.
Chemistry:
chemistry_set=”/path/to/chemistry.cks”
END
Project elements are divided into sections, with each section beginning with a name followed by a
colon. If a section has an id attribute, it is specified as a quoted string following the colon. Sections
are terminated with END. Sections are nested within other sections according to the project layout
as seen in the workflow tree in the user interface. White space (new line, space, tabs) is ignored, except
within quoted strings. C-style comments are supported. Single line comments are made with // and
block comments can be started with /* and ended with */.
Within a section, project data is specified with key-value pairs. Keys are always one-word strings, with
no spaces, and values are one of the following types:
• Numeric entry: Can be dimensioned or dimensionless. Dimensioned units are given in square
brackets: [cm].
• List of other data types: Lists are always enclosed in braces with commas separating elements, as
in: { "Patch1", "Patch2" } and may contain any of the other data types, including lists.
Users are free to specify as little or as much project data as they wish, provided all key-value pairs
are contained within an appropriate section.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
198 of ANSYS, Inc. and its subsidiaries and affiliates.
Command Line Interface
Import project data from a text file and save the project
Import project data from a text file, save the project under a new name
Load a project, load a replay file, load project data from a text file, prepare a parameter study
run for execution, specify restart parameters
The -prep_dir keyword allows you to specify where the prepared/extracted files go. If the directory
specified does not exist, it will be created as will any higher-level directories along the specified path.
The prepared files are then extracted/created in this specified location. If the specified location is the
directory containing the project file, then a copy of the project file is made first to avoid the prepared
version of the project file overwriting the existing project file.
Note:
--prep_force
The --prep_force keyword is needed if the location you specify already has project run results
that would be deleted as part of the preparation task. Using this keyword would allow you to repeatedly
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 199
Command-line Interface
run within the same directory, but would delete/overwrite previous results. If this keyword is not
provided and there are results, then the project preparation will not proceed.
Note:
Ansys Chemkin-Pro sample mechanisms and Model Fuel Library mechanisms use the
@DATA@ macro to reference the location of the folder containing those mechanisms.
The macro typically refers to the data folder under the Ansys installation location:
Program Files\ANSYS Inc\V221\reaction\data. When using these mechan-
isms in Forte, the following message appears, indicating that Forte could not resolve
the location referenced by the macro.
The chemistry set contains one or more @DATA@ references.
This is meant to resolve to a system data directly, typically
the one in which the chemistry set resides.
Please specify the location of the data directory in the browser.
Click OK and a file browser will appear. Provide the correct path to the \reac-
tion\data folder to use the mechanism in Forte.
From the Pre-Processing panel, you can create a new chemistry set, edit an existing chemistry set, or
select a different chemistry set. A chemistry set consists of input files that contain species and reaction
descriptions, as well as thermodynamic data and, in some cases, gas transport-property data. Pre-pro-
cessing these files serves to verify the consistency and completeness of the chemistry set. In addition,
this step provides information about what chemical species are present in the system, and whether
surface chemistry is present.
A chemistry set consists of several input files, each containing a different type of chemical data. The
collection of chemical data in a given chemistry set is often called a reaction mechanism. The major
components of a chemistry set are:
• Gas-phase kinetics file: a file containing a description of the species contained in and the reactions
occurring in the gas phase, often named chem.inp;
• Surface kinetics file: a file containing a description of the reactons occurring at the gas-surface interface
or on the surface, and the species contained in the dispered phase or the bulk liquid phase, often
named surf.inp;
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
200 of ANSYS, Inc. and its subsidiaries and affiliates.
Chemistry Set Pre-Processing Utility
• Thermodynamics data file: a file containing thermochemical data for the chemical species of interest,
often named therm.dat; and
• Gas-phase transport data file: a file containing gas-phase transport data, often named tran.dat.
A set of gas-phase and/or surface reactions are generally developed using specific thermochemical data.
Thus, the gas-phase kinetics, surface kinetics, and thermodynamic data are most reliable when used
together as a set in reacting-flow simulations. Once a chemistry set is defined, it can be saved and ref-
erenced easily in future simulations.
The gas-phase kinetics file (chem.inp) is always required in the chemistry set for any gas-phase flow
simulation. You can define the thermodynamic data in therm.dat, and define transport data in
tran.dat. Alternatively, these data can be included in chem.inp, so that therm.dat and tran.dat
are not needed. For more details on the format of chem.inp, refer to Thermodynamic Data in the
Chemkin-Pro Input Manual.
1. When the Methods of Moment soot model (see Soot Model (p. 75)) is selected. In this case, the
surface kinetics file is required to specify a dispersed particulate bulk phase, and to specify reactions
that occur on the particle surface to initiate the formation of soot particles.
2. When the Eulerian two-phase flow simulation (see Gas-Phase and Eulerian Two-Phase Flow Simu-
lations (p. 59)) is selected. In this case, the surface kinetics file is required to define a bulk phase
with keyword LIQUID and the species contained within. No reaction specification is needed. The
liquid species defined in this file and the gas species defined in the gas-phase kinetics file are used
to specify the two-phase working fluid’s concentrations. The specification of thermodynamic data
for the liquid species must follow certain format requirements, which are detailed in Thermodynamic
Data and Reaction Mechanism Description in the Chemkin-Pro Input Manual.
Note:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 201
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
202 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 7: Commands for Replay Scripting
Ansys Forte provides a scripting capability so fundamental operations are exposed as commands. Create
a script file by logging the commands of an interactive session or create one manually. The commands
offer a concise and flexible way of interacting with project data.
This chapter describes the scripting command set and how to use the commands.
Examples:
/project
/project/geometry
/project/models/spark_ignition
/project/models/spray
/project/run_settings
Every command must execute within a context. The context is specified as an attribute-value pair, where
the attribute name is path:
command_name path="/project/models/spark_ignition"
Some commands are valid within any context. Other commands are valid only in a specific project
context. For example, the command set_attribute is available within any context, but the command
add_spark is only available within the /project/models/spark_ignition context.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 203
Commands for Replay Scripting
-DLoadReplay java vm
Following is a replay script that, among other things, loads geometry from an STL, imports chemistry,
adds boundary conditions, and submits the run:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
204 of ANSYS, Inc. and its subsidiaries and affiliates.
Replay File Example
run="Nominal"
submit_run file="C:\Users\auser\test_project.analysis\test_project.ftsim" mpi_args="8" path="/project/run_simulation
run="Nominal"
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 205
Commands for Replay Scripting
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
206 of ANSYS, Inc. and its subsidiaries and affiliates.
Replay File Example
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 207
Commands for Replay Scripting
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
208 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 8: Forte Simulation in Workbench
Within Ansys Workbench, you can use the Forte tool to set up a workflow for Ansys Forte CFD. This
approach mainly reduces the manual effort in preparing the geometry in Ansys DesignModeler and the
surface mesh in Ansys Meshing. The transient volume meshes are handled during the simulation in
Ansys Forte CFD. Additionally the workflow includes the basic setup for simulation with Ansys Forte
CFD and post-processing in EnSight or CFD-Post. The workflow is customized for cold flow and combus-
tion simulations. For combustion simulations, different approaches are applicable, with full-engine
simulations and sector simulations using the automated mesh generation approach (AMG). Additionally
sector geometries can be meshed with body fitted meshes using the FORTE Sector Mesh Generator
(SMG).
Note:
8.1.1. Geometry
You can use one of two methods for geometry assignments:
• Use the native Ansys Forte Geometry features, accessible under Geometry on the Ansys Forte
Workflow tree.
For information on Geometry details in the Ansys Forte interface, see Geometry Node (p. 41).
• Edit: Opens the Ansys Forte interface. See the chapter on Modeling Guide (p. 41) and other
chapters in this manual for details on setting up the case.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 209
Forte Simulation in Workbench
• Import Mesh: If desired, select an .stl or ANSYS mesh .msh file for the case, or use Forte
Automated Mesh Generation to mesh on-the-fly.
• Import a Forte project: Allows you to select a Forte .ftsim file and opens the Ansys Forte
interface for further processing and analysis.
• Monitor Run: Opens the Ansys Forte Monitor Run interface. See the other chapters in this
manual for details on setting up the case.
To view results in Ansys CFD-Post, double-click or drag Results under Component Systems in the
Toolbox, the new Results system appears in the Project Schematic. Click and drag from the Solution
cell in the Forte system to the Results cell in the new Results system to create a connection.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
210 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 9: System Coupling
In addition to working as a stand-alone CFD application, Ansys Forte 2022 R1 can also work as a parti-
cipant of a "coupled simulation" using System Coupling. The coupled simulation can involve multiple
Ansys tools to collaboratively solve a multiphysics problem. In a coupled simulation, participants interact
with each other via data transfer on the coupling interfaces and make progress on solutions iteratively.
The coupled simulation is managed by Ansys System Coupling in a convenient and user-friendly manner.
In internal combustion (IC) engine simulations, one of the highest-interest areas for System Coupling
is Conjugate Heat Transfer Analysis. While this section introduces information about how Forte works
with System Coupling in general, you also can use tutorials ( see Forte Tutorials, System Coupling tutorials)
specifically introducing Forte and System Coupling for Conjugate Heat Transfer simulations.
Forte supports command-line System Coupling, which enables you to run the coupled simulation from
the command line. This type of analysis involves preparing the project files of Forte and other participants
and putting them in a working directory. In the working directory, you open a command line prompt
and execute a series of commands, which may be put into a Python script. The commands typically
include loading participants, specifying controls for the coupling-related analysis settings, and starting
the coupled simulation. In this chapter, we describe detailed steps for setting up a command-line System
Coupling simulation with Forte as one of its participants. For more general information about using
command-line system coupling, see Using the System Coupling Command-Line Interface (CLI) in the
System Coupling User's Guide .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 211
System Coupling
• Performs thermal data transfer on the boundary condition selected for System Coupling. Heat
Transfer Rate (or Heat Transfer Coefficient and Near-wall Temperature) can be provided to
other coupling participants, and temperature can be received from them. Here, the heat transfer
data refer to those of convective heat transfer.
• Performs fluid structure interaction (FSI) on the boundary condition selected for System Coupling.
Force can be provided to other coupling participants, and displacement can be received from them.
• In a Conjugate Heat Transfer analysis, Forte initializes the data being transferred at the coupled
boundaries.
• In a Fluid Structure Interaction analysis, the initialization follows the default system coupling rules.
The following are known limitations when using System Coupling analysis with Forte:
• To be a participant for System Coupling, Forte must have the System Coupling node checked
(turned ON) with at least one coupled surface selected.
• In Forte, a wall boundary condition that is selected for System Coupling must be associated
with one and only one surface patch of the simulation domain.
• The output variables from Forte for a Steady State System Coupling (that is, Heat Transfer
Rate, or Heat Transfer Coefficient and Near-wall Temperature) are spatially resolved but
time-averaged. The time average frequency is controlled by a Monitor Probe’s inquiry frequency.
If no Monitor Probe is set, the spatially averaged output frequency is used.
• Analogously, for a Transient System Coupling analysis the output variables are still spatially
resolved and their time averaging is performed over each time step instead of over the entire
simulation time.
• The heat transfer rate and coefficient are for convective heat transfer only. Radiation effects
are not included even if the radiation heat transfer model is turned on.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
212 of ANSYS, Inc. and its subsidiaries and affiliates.
Setting Up a Coupled Simulation
Forte Settings
The Forte project file (.ftsim) contains all the information needed for System Coupling to accept
it as a participant. Unlike some other participants, which must export a System Coupling participant
(.scp) file, Forte does not need to export a .scp file. The System Coupling command can load Forte
as a participant by directly reading the .ftsim project file.
As mentioned, Forte must have a wall boundary condition listed under the System Coupling node in
the Forte Workflow tree. Enable System Coupling under Simulation Controls to make this boundary
a coupling interface. Also, select the output variable on the coupling interface as Heat Rate, or altern-
atively, Heat Transfer Coefficient and Near Wall Temperature for a Conjugate Heat Transfer analysis
or as Force for a Fluid Structure Interaction analysis.
The Force applied by the fluid on the structure in FSI analysis is calculated using the gauge pressure
of the fluid in Forte. The Reference Pressure input on the user interface panel is used to convert
absolute pressure to gauge pressure: .
1. Set up your Forte project specifically for System Coupling. Ensure System Coupling (under Simulation
Controls on the Workflow tree) is enabled.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 213
System Coupling
4. Create the System Coupling python script to set up and launch the coupled simulation.
Note:
A distinct license is required for each coupling participant product, but no additional licenses
are required for the System Coupling infrastructure itself. For more information on applicable
licenses, see Coupled Analysis Licensing Requirements in the System Coupling User's Guide.
Tip:
When a boundary condition is selected for System Coupling, the output of solution variables
is handled as an implicit wall sampling monitor probe. (To see how a wall sampling mon-
itor probe works in general, refer to Probes for Time-Averaged and Spatially Resolved
Data (p. 151) ). The output data provided at the coupling interface are spatially resolved
solutions distributed on the selected wall boundary and time-averaged. As in a wall sampling
probe, it is good practice to ensure sufficient surface mesh resolution on the boundary,
which is used as the spatially resolved output resolution. Forte outputs data automatically,
in the sense that you do not need to manually set up a wall sampling monitor probe in
the user interface for this purpose. There is a sampling frequency used for time averaging,
which is implicitly set as the inquiry frequency on the Monitor Probes Editor panel (Monitor
Probes Panel (p. 146) ). If there is no monitor probe present, the sampling frequency is im-
plicitly set as the spatially averaged output frequency, specified in the Spatially Averaged
Editor panel (Spatially Averaged and Spray Panel (p. 118) ). It is good practice to specify a
sufficiently refined sampling frequency to produce accurate time-averaged output.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
214 of ANSYS, Inc. and its subsidiaries and affiliates.
Setting Up a Coupled Simulation
Once the desired coupling surfaces are selected, the System Coupling Method option allows selection
between a Steady State (as in the example above) or a Transient simulation. Note that in both cases
Forte will run in a transient mode, providing spatially resolved output variables on the coupled
boundaries. The differences are:
• In a steady state coupled analysis, those variables will be time-averaged over the entire simulation
time and transferred at the end of each iterative cycle to the other participant(s)
• In a transient coupled analysis the data will be averaged and transferred at the end of each
coupling time-step, in other words, per each Δt.
To learn how to set the coupling time step through the python script or System Coupling user interface,
see Step 4a: Create a System Coupling Python Run Script (p. 217) and Step 4b: Use the System Coupling
Graphical User Interface (p. 218) in this chapter or consult Choosing the Mesh-Related Timescale in
the System Coupling User's Guide.
If the system coupling simulation is run as steady-state, the Generate System Coupling Reuse Point
option can be activated, and a specific time/crank angle must be defined. When activated, the first
Forte run will be a complete run from initial to final specified time/crank angle and generate a Forte
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 215
System Coupling
restart file at the specified reuse time/crank angle point. Subsequent Forte runs for each System
Coupling steady state iteration will instead begin from the Reuse restart point to the final time/crank
angle, thus reducing the turn-around time per iteration. The reuse-point option is particularly beneficial
when the portion between the start of the simulation and the generated restart point can be neglected
from an energy viewpoint, that is, during the gas exchange phase of an engine cycle.
The lower section of the System Coupling panel is dedicated to the selection of the Output Variables
to be transferred and, if needed, initialized. For example, to initialize the Heat Rate on the boundary
wall, click Add Boundaries to Initialize > Wall > Ok, and then add the desired value in Watts. Altern-
atively, if the same case has been previously run, click Import from previous Forte run, select the
file wall_sampling_Wall_system_coupling.csv and the heat rate will be set as the average
over the wall and over an entire iterative cycle. Additionally, at the bottom of the initialized data
table, you can select the Default Heat Rate value to be applied to all the other boundaries not expli-
citly initialized in the table.
Tip:
On a coupling interface of a Conjugate Heat Transfer analysis, Forte can output Heat Rate,
or alternatively, Heat Transfer Coefficient and Near Wall Temperature, and receives the
wall temperature from System Coupling. The wall temperature is used to update the thermal
boundary condition in the coupled iteration. When Fluent is the other Participant in the
System Coupling run, we recommend using Heat Rate as the output variable.
Click Apply and save the project with File > Save. Your Forte project .ftsim file is now ready for
use in System Coupling.
In general, the participant’s project used for System Coupling is very similar to the one used for a
stand-alone CFD application. The difference is that the boundary conditions for the coupling interfaces
should be listed under the System Coupling node in the Workflow tree. Refer to that participant’s
manual for more detailed instruction on this (at ansyshelp.ansys.com). Certain participants (such as
Ansys Fluent and MAPDL) need to export a System Coupling participant file (.scp) from their projects,
which are to be placed in the working directory and used by System Coupling for setup. (For more
information, see Participant Setup File in the System Coupling User's Guide .)
9.2.3. Step 3: Set Up a Working Folder for the System Coupling Run
Now create a working directory where you will run the System Coupling run. Create in this directory:
1. A subfolder for the Forte runs driven by System Coupling. This folder must contain the Forte
.ftsim project file for System Coupling.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
216 of ANSYS, Inc. and its subsidiaries and affiliates.
Setting Up a Coupled Simulation
2. A subfolder for the other Participants in this System Coupling run. For example, fluent.
3. A System Coupling python script that defines and controls the run (see Step 4a: Create a System
Coupling Python Run Script (p. 217)). Alternatively the System Coupling Graphical User Interface
can be used (see Step 4b: Use the System Coupling Graphical User Interface (p. 218)).
4. This directory may also contain System Coupling participant files (.scp) that are required by
other Participants, such as a Fluent .scp file.
Note:
Forte does not use an .scp file; everything that is required for a System Coupling run is
already contained in the Forte project file that you already prepared.
Below is an example run script where Fluent and Forte are both Participants. In this example, subfolders
for Fluent and Forte have been created with the Forte prepared project forte.ftsim in the Forte
folder and a Fluent System Coupling file fluent.scp placed in the working directory where this
script exists. In Forte, the Wall boundary is coupled to the wall_internal boundary in Fluent.
The number of processes used by the run is specified using the -t option on the command line (see
Coupling Participant Parallel Arguments in the System Coupling Settings and Commands Reference).
Tip:
1) You must use at least 2 MPI processes when using Forte. Therefore, ensure that
you specify enough MPI processes using the -t option and the appropriate fraction
via ParallelFraction so that each Forte System Coupling Participant will be using
at least 2 MPI processes.
2) In the following example the ParallelFraction option is set to 0.125 so that Fluent
will use an 8th of the processes that Forte will. So if 8 processes are used for the System
Coupling run, then Forte will use 8 and Fluent 1.
import os
# Forte is a Participant
forte = AddParticipant(InputFile = os.path.join('forte', 'forte.ftsim'))
# Fluent is a Participant
fluent = AddParticipant(InputFile = 'fluent.scp')
# Fluent will run on 1 process, while Forte will run on 8 processes if -t8 is used
DatamodelRoot().CouplingParticipant[fluent].ExecutionControl.ParallelFraction = 0.125
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 217
System Coupling
SideTwoParticipant = forte,
SideTwoRegions = ['Wall'])
The commands used in the script are fully documented in the System Coupling documentation at
System Coupling Settings and Commands Reference . In addition to the commands used in the above
Python script, there are commands that control the convergence between the participants, such as
ramping and relaxation; in some cases these may be needed to ensure stable and rapid convergence
to a coupled solution. See Best Practices for System Coupling in the System Coupling User's Guide and
the System Coupling tutorial examples in the Forte Tutorials at the Help site for examples of using
these options.
For a Transient coupled analysis the python run script must also contain two additional lines to set
the final time of the simulation 'SolutionControl.EndTime' and the time step size 'Solution-
Control.TimeStepSize' at which the participants will be exchanging their data, the Δt of the
coupled simulation. For example:
DatamodelRoot().SolutionControl.EndTime =
'0.1 [s]'
DatamodelRoot().SolutionControl.TimeStepSize =
'0.01 [s]'
Tip:
Note that the System Coupling syntax for certain commands have changed, starting at
release 2021 R2. So if you want to run a previously set-up case, you can manually modify
the python script following the system coupling user guide, or you can simply launch the
system coupling UI and re-save the project.
When using a cluster queuing environment for your System Coupling run, such as Univa Grid Engine
(see information about Queuing Systems on the Platforms Support page at https://www.ansys.com/
solutions/solutions-by-role/it-professionals/platform-support ) you do not need to use the -t option
on the command line to specify the number of processes since those will be allocated by your cluster
environment.
Once you have set up the working directory and created the python script, you are ready to start the
System Coupling run.
9.2.5. Step 4b: Use the System Coupling Graphical User Interface
Another option to set up a System Coupling simulation is to use the System Coupling Graphical User
Interface (GUI) following this workflow:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
218 of ANSYS, Inc. and its subsidiaries and affiliates.
Setting Up a Coupled Simulation
• Start the System Coupling GUI and select the working directory.
• Right-click Setup and choose Add Participant, select the .ftsim file and the other .scp parti-
cipant file.
• Open the Parallel Partitioning dialog through Coupling Participant > Parallel solve setup and
apply partitioning to coupling participants; such as: Fluent weight = 0.125 so that Fluent will
use1/8th of the processes.
• On the Coupling Control > Analysis Type, choose the Duration and the Step Control. In case of
a transient analysis, select Transient instead and define the End Time of the simulation and the
Time Step Size.
• Add coupling interfaces by right-clicking the Setup, and configure them to match the settings from
the python_script.py.
• Right-click the newly created coupling interface and add data transfer options.
For more detailed documentation of the System Coupling GUI, see Using System Coupling's Graphical
User Interface (GUI) in the System Coupling User's Guide.
Windows:
-R <python_script.py>
Linux:
$HOME/ansys_inc/v221/SystemCoupling/bin/systemcoupling" -t<n>
-R <python_script.py>
where python_script.py is the System Coupling run script you created in Step 4a: Create a
System Coupling Python Run Script (p. 217) and -t specifies the number of processes you wish the
run to use, for example, -t8 specifies 8 processes.
If the System Coupling user interface is used instead, extend the Outline pane, right-click Solution
and select Solve.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 219
System Coupling
9.2.7. Workflow and File Structure of Forte Runs During System Coupling
Runs
When your System Coupling run starts up, the Forte runs will be performed in the directory specified
by WorkingDirectory\forte in your python script. In this folder, your Forte project file will be
prepared for running in the same way as the "Prepare" step in the Forte Simulate interface with the
chemistry files extracted and pre-processed.
During the System Coupling run, a number of subdirectories will be created within the forte folder
to allow you to monitor the progress of the Forte runs for each System Coupling iteration. The name
and contents of these sub-directories depend on whether the System Coupling run is steady state or
transient as described below.
By default, all solution files (Forte.log file, spatially resolved solution files and spatially averaged
files, Forte .ftind file, and Forte restart files) from the ith Forte run are stored in each SC_Run_<i>
subdirectory. However, you can use the following Forte command-line option to control this:
You can combine multiple options by using "+" for example csv+log would backup csv files and
log files only. To use this option, you use the System Coupling AdditionalArguments option
and add the following line to your python script
for example
Transient analysis
A copy of the original Forte project file will be created inside the Forte main folder, named <original
name>_backup.ftsim. The final solution can be inspected in the main Forte folder.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
220 of ANSYS, Inc. and its subsidiaries and affiliates.
Setting Up a Coupled Simulation
At the end of either a Steady State or Transient System Coupling run, the final Forte solution (spatially
averaged and spatially resolved solution files) will be in the forte folder.
To have a successful coupled simulation, it is important to make sure that coupling interfaces, which
are common surfaces shared by the simulation domains of participants, are defined consistently in
the participants. Once the participants are loaded and before the first coupled iteration starts, you
can check whether the coupling interface’s mapping between the participants is successful. As shown
in Figure 9.2: Information on mapping the coupling interface written to standard output (p. 221) , the
percentages of mapped area, elements, and nodes for "Interface-1" are printed in the output. It is
desirable to have greater than 95% mapping of area, elements, and nodes, for all the coupling interfaces
defined. If the mapping is less than 95% for a certain coupling interface, we suggest checking its
geometry and boundary condition setup in the relevant participants. Find any problems and fix them,
before running the coupled simulation.
Figure 9.2: Information on mapping the coupling interface written to standard output
You can monitor the coupled simulation in scLog.scl or the standard output by checking the
status of data transferred on the coupling interface in each iteration or coupling time step. Fig-
ure 9.3: Status of a coupled iteration in standard output (p. 222) shows the information written for it-
eration #10, which is the final iteration to reach convergence in our example. On the coupling interface
("Interface-1"), the RMS change of two-way data transfer (for "heatflow" and "Temperature") are dis-
played. The "RMS Change", which stands for "Root Mean Squared change", is the averaged and nor-
malized iteration-by-iteration change of data transferred on the coupling interface. By default, coupled
simulation is regarded as converged when the RMS changes on the coupling interfaces are reduced
to less than 1%. This is satisfied for both "heatflow" and "Temperature" as shown in Figure 9.3: Status
of a coupled iteration in standard output (p. 222) . Also displayed are the Weighted Averaged or the
Summed values of the data on the coupling interface, depending on which type of solution data is
transferred. The standard scLog.scl output can also be displayed as a chart by activating the beta
features (Forte Edit > Preferences) and adding to the python_script.py the following lines:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 221
System Coupling
dm.ActivateHidden.BetaFeatures = True
DatamodelRoot().OutputControl.GenerateCSVChartOutput = True
If the System Coupling graphical user interface is used instead, type on the System Coupling console
the line:
WriteCsvChartFiles()
When the run has converged and completed, you can open the usual Forte spatially averaged and
spatially resolved solution files to view the final solution in Forte (as well as the solution in the other
participants).
Solve()
During a restart run, Forte will leave the existing results prior to the restart point intact and will create
new subfolders that continue the progression after the restart.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
222 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 10: Getting Help and Support
Several resources are available to provide you further help when using Ansys Forte. Starting points for
these resources are described here.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 223
Getting Help and Support
To access a product's documentation and tutorials, use the Ansys Forte Help menu or visit the Ansys
Help site.
Note:
Users of various combinations of Linux and remote terminal programs may encounter
intermittent failures when trying to open Ansys Help from the Forte user interface or
the Sector Mesh Generator. If this occurs, access Help by manually opening a browser
and going to the Ansys Help website at ansyshelp.ansys.com. Information about remote
display with Ansys products is available at General Information in the Using Remote
Display Technologies with Ansys Workbench Products
10.3.1. Troubleshooting
The monitor window at the bottom of the Ansys Forte screen includes a list of executed commands
and messages, and will indicate the cause of an error. A more detailed log output of commands and
actions can be found in the RDApplicationManager.log file found in the installation bin dir-
ectory.
When you contact Technical Support, include the following information in your support request:
• The name and email address of the Licensee, if different from yourself.
• Program outputs and/or screen prints showing the error message(s) you are receiving.
• The FORTE.log file found in your run directory (if your problem is the CFD run itself has problems)
• The plot recreation XML file(s) created using File > Save As (or the Save As toolbar button).
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
224 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix A. Setting Up Environment, Launching
Depending on your operating system, certain setup tasks may be required after installing the Ansys
Forte simulation package, but before you are ready to run the software. These tasks are described below.
Note:
Before launching any Ansys Forte interface component, several environment settings must
be in place, as described in Java Memory Settings (p. 226).
Ansys Forte and related products require a few environment variables that help them to operate
properly. These environment variables are shown in Table 1: Ansys Forte environment variables (p. 226).
The UNIX installation script creates two files, forte_setup.csh (C-shell) and forte_setup.ksh
(K-shell), which define variables and aliases based upon the selections chosen during the install. They
are located in the bin directory.
You can source the product environment variables in a C-Shell using the command line. For example,
if your installation is in the $HOME/ansys_inc directory, and you have installed v221, then you would
use this command to set up Ansys Forte:
source $HOME/ansys_inc/v221/reaction/forte.linuxx8664/bin/forte_setup.csh
You can source the product environment variables in a Korn or Bourne shell using the command line.
For example, if your installation is in the $HOME/ansys_inc directory, and you have installed v221,
then you would complete the following steps to set up Ansys Forte:
1. Source the Ansys Forte environment variables with the following command. Remember that the
period and space are required at the beginning of the command line.
. $HOME/ansys_inc/v221/reaction/forte.linuxx8664/bin/forte_setup.ksh
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 225
Setting Up Environment, Launching
source $HOME/ansys_inc/v221/reaction/forte.linuxx8664/bin/forte_setup.csh
Note:
The shell scripts used to run the user Interface are Bourne shell scripts and use the
forte_setup.ksh file to source the environment. Therefore, even if all users work in the
C shell environment, the forte_setup.ksh file is used also.
Variable Description
$REACTION_DIR This is a required variable. It points to a subdirectory
where the Ansys Chemkin-Pro and Ansys Forte are
installed and a mechanism data directory exists. An
example would be (where NNN is the ANSYS release
number code):
$HOME/vNNN
$FORTE_BIN Required by Ansys Forte. It points to the location of
the bin directory for the Ansys Forte installation.
$PATH The value $FORTE_BIN should be prepended to the
$PATH variable.
(LD_LIBRARY_PATH) This is a required variable.
$FORTE_USER This is an optional FORTE variable. This is not
automatically defined. The variable is used in the
naming of the preferences file.
$FORTE_MEMORY Optional variable defining how much memory to
allocate to the Java Virtual Machine running the Ansys
Forte interface. If not defined, you are prompted for
this value.
The amount of memory Ansys Forte will use can be configured by editing the Launcher preferences.
To do this, click the Edit Launcher Preferences button from the Ansys Forte Launcher (see
Figure 2: Launcher icon with Edit Launcher Preferences button (p. 228)).
After clicking the Edit Launcher Preferences button, select either the Simulate or Monitor application
item and expand the Memory Settings panel. You may configure the default memory limit (in MB) and
optionally choose to have the Launcher prompt for a memory limit (with the preferred setting as the
default) before new instances of either the Simulate or Monitor interface are opened.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
226 of ANSYS, Inc. and its subsidiaries and affiliates.
Launching Ansys Forte on Linux
Note that the memory limit specified is only an upper limit on the amount of memory that may be
consumed by the application; in practice the actual memory consumption may be significantly less.
However, to avoid interfering with other system processes and resources, we recommend specifying a
value that is below your total system RAM by at least 500 MB to 1 GB.
Also note that the memory usage will be cumulative with respect to multiple instances of Simulate and
Monitor windows, so if you have 3 windows open, each with a maximum memory setting of 8 GB, your
system could potentially require 24 GB of system RAM.
Cygwin-X: http://x.cygwin.com/
Exceed-3D: http://connectivity.opentext.com/products/exceed-3d.aspx
• FORTE alias: Type FORTE and press the Enter key to launch the Ansys Forte interface. This will display
the Launcher with Simulate and Monitor options. Click the Simulate button to start working with
an Ansys Forte project. In the following cases, type the command and press the Enter key to launch
the desired interface:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 227
Setting Up Environment, Launching
Note:
The Simulate interface either will use the default memory setting you have specified in the
Launcher (see Java Memory Settings (p. 226)) or it will prompt you to specify a memory limit.
For auto-mesh cases, 8 GB is recommended. Larger cases could require even more memory.
Note:
On some Linux operating systems, particularly those running a variant of gnome-3, certain
dialogs may not display window decorations as expected (such as the 'x' or close button and
the minimize button). These dialogs can be closed by right-clicking in the title bar, which
will present a context menu containing the window-control actions.
To launch Ansys Forte on a Windows system, double-click the shortcut on the desktop, or go to
Start > Ansys 2022 R1 > Forte 2022 R1. This displays the Launcher with Simulate and Monitor options.
Click the Simulate button to start working with an existing Ansys Forte project.
Note:
The Simulate and Monitor interfaces either will use the default memory setting you have
specified in the Launcher (see Java Memory Settings (p. 226)) or they will prompt you to
specify a memory limit. For auto-mesh cases, 8 GB is recommended. Larger cases could require
even more memory.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
228 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix B. Prerequisites for Parallel MPI Environment
On Windows systems, the Ansys Forte Simulate interface generates an Ansys Forte script that contains
the –localonly flag, which allows Intel MPI to run on a single node using shared memory for com-
munication. This is faster than running with socket-based communication and avoids needing to install
and start the mpiexec_hydra service. It also avoids the need for mpiexec -–register.
I_MPI_AUTH_METHOD=delegate
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 229
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
230 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix C. Advanced Settings and Scripts
Run Initialization Commands is a text block where you can specify any commands that you want ex-
ecuted prior to the start of the overall run (single job or parameter study). You can use this section if
you need to receive a node list from a batch queuing system and construct a hosts file for use by MPI
or otherwise configure a cluster on-the-fly for use by your Ansys Forte runs. You can also use this to
perform any time or date logging or other job submission logging activities.
Run Forte Environment Setup Path (Override) can be specified if you generate the run scripts on
one computer, but then plan to zip everything (analysis directory and run directories) and copy to an-
other machine or cluster to run. This gives you the ability to specify the Ansys Forte setup location
(forte_setup.ksh or run_forte_setup.bat) on the target machine or cluster. This location will
be used when generating the scripts.
Run Finalization Commands is a text block where you can specify any commands that you want ex-
ecuted at the completion of the overall run (single job or parameter study). You can use it for logging,
stopping MPI daemons, or other cleanup activities that may be required on your computer servers or
to automate harvesting of results and transfer of results to another computer for post-processing.
• run_selected_mpi.bat/run_selected_mpi.sh
• copy_restart_files.bat/copy_restart_files.sh
• queue_runner.bat/queue_runner.sh
—Used by the Forte User Interface when it is running the jobs and any restart files are copied. The
queue_runner examines all the subdirectories looking for PREPARED and SELECTED flag files
and submitting the corresponding run script in the Run directory. When you specify running multiple
jobs at the same time, Nqueue_runner script instances are started, where N is the number of jobs
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 231
Advanced Settings and Scripts
that you want run at the same time. The default is to run the jobs sequentially, which results in only
1 queue_runnerscript being executed.
These scripts also exist when a parameter study has been prepared by the Forte User Interface and you
should not directly invoke them in that situation because they depend on some prerequisite processing
by the parameter-study master script.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
232 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix D. Fuel Library
Ansys Forte employs a fuel library file to obtain the liquid thermophysical properties and the thermody-
namics and transport data for the fuel vapor species employed in simulations. The library default fuel
library (fuel_library.inp in the data directory at the top level of the Ansys Forte installation)
consists of element and species information and species properties, for common fuels and fuel additives.
Note:
If necessary, users can modify the existing fuel properties as well as add new fuel species to
the fuel library. We recommend that new species be appended at the end of the species list
to maintain the existing ordering of the species in the library.
Chemkin standard thermodynamic data format is used for the Fuel Library. This format is augmented
with special tags that provide the physical properties of the fuel components.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 233
Fuel Library
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
234 of ANSYS, Inc. and its subsidiaries and affiliates.
Temperature-Dependent Properties
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 235
Fuel Library
For the fuel species listed in Table 1: Fuel species (p. 233), the coefficients are included in the Fuel Library
file within the installation data directory.
(1)
where the values for the 3 coefficients A, B, and D are given in a fuel’s LiquidDensity property
tag, while C is the Critical Temperature, and is included in the CriticalTemperature tag.
where the values for the 5 coefficients A through E are given in a fuel’s VaporPressure property
tag.
The first number in the tag is an integer indicating the type of the correlation and the next five
numbers are the five correlation coefficients: A through E. The liquid specific heat calculation uses
two types of correlations (mutually exclusive). The type of correlation is determined based on the
first ID tag that is either 1 or 2. The Type 1 correlation ( Equation 3 (p. 236)) is most commonly used.
However, a few components, such as n-butane and n-heptane, use the Type 2 correlation ( Equa-
tion 4 (p. 236)).
(3)
(4)
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
236 of ANSYS, Inc. and its subsidiaries and affiliates.
Temperature-Dependent Properties
(5)
where the first 5 numbers in a fuel’s LiquidViscosity property tag are values for the 5 coefficients
A through E and the 6th and 7th numbers are lower and upper temperature bounds for the correlation.
The surface tension calculation uses two types of correlations (mutually exclusive). The type of correl-
ation is determined based on the first ID tag of either 1 or 2. The Type 1 correlation (Equation 6 (p. 237)
) is most commonly used. However, a few components, such as methanol and ethanol, use the Type
2 correlation ( Equation 7 (p. 237)).
(6)
where the values for the 5 coefficients A through E are given in a fuel’s LiquidThermalConduct
ivity property tag.
where the values for the 5 coefficients A through E are given in a fuel’s HeatVaporization property
tag. is a reduced temperature, .
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 237
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
238 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix E. Fuel Chemistry Sets Included with Ansys Forte
Sample chemistry set files are located in the system data folder installed with Ansys Forte. These files
can be accessed directly by browsing to the .cks file from the Import Chemistry button on the
Chemistry Set tab (see Chemistry (p. 56)). A description of each of the provided chemistry sets is provided
in this section, including reference to the source of the chemistry mechanism, the reduction method
used and the expected applicable range of conditions.
While these mechanisms can serve as a starting point in exploring detailed fuel kinetics with Ansys
Forte, they should not be applied outside of the range of applicability suggested. ANSYS builds such
mechanisms from a large database of full mechanisms for over 60 model-fuel components and different
surrogate-fuel blends. These full mechanisms have been carefully validated over a wide range of engine-
relevant conditions, under work sponsored by the Model Fuels Consortium 17. The Ansys Model Fuel
Library (MFL) Manual (available in the Ansys Chemkin-Pro installation) includes the mechanism validation
plots. Skeletal mechanisms for use in Ansys Forte are generated by setting up an Ansys Chemkin-Pro
project that represents the specific range of conditions of interest and for a specific model-fuel blend
and then applying a variety of automated mechanism-reduction methods to achieve specific targets
within specific error tolerances. In this way, ANSYS can provide services or additional software tools to
assist in the tailoring of mechanisms to a specific application. The mechanisms are reduced using the
targeted automated mechanism reduction facility in Ansys Chemkin-Pro Reaction Workbench. Several
methods, including Directed Relation Graph (DRG), DRG with Error Propagation (DRGEP), DRG with Path
Flux Analysis (DRGPFA), sensitivity analysis, and automatic isomer, are used in an iterative fashion to
create the reduced mechanisms from the full mechanisms in the Ansys MFL.
For the mechanisms included with Ansys Forte, review the application range and the targets / error
tolerances used in the reduction to make sure they are appropriate for your application. There are two
types of mechanisms included with Forte. As shown in Table 1: Summary of the Ansys MFL-based pre-
reduced reaction mechanisms included with Forte (p. 240), 1-component mechanisms are provided for
natural gas, gasoline, and diesel. Note that for diesel, it is listed as n-heptane + methane that is also
applicable for dual fuel engines. These 1-component mechanisms are smaller in size and provide a quick
and reliable engine simulation. They can be used to perform initial calibrations of the baseline case.
They also can be used with an empirical acetylene-based soot model. For more accurate results, 2- or
3-component surrogates for gasoline and diesel should be used. For gasoline, we provide the mechanism
for TPRF fuels containing toluene/iso-octane/n-heptane. The mechanism contains a chemistry of ethanol
for modeling gasoline-ethanol blends. Diesel fuel can be modeled using 2 components: n-decane/ 1-
methyl naphthalene. Two versions of soot models are included for the multi-component mechanisms:
a pseudo-gas soot model, and a detailed soot-surface mechanism. The pseudo-gas soot model is a
multi-step model that uses benzene-based precursors for soot formation. It provides soot mass and
treats "soot" as a gas-phase species. For the most accurate prediction of soot mass and size distribution,
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 239
Fuel Chemistry Sets Included with Ansys Forte
use a detailed soot-surface mechanism. It uses heavier PAH species, such as coronene, for the nucleation
and growth steps. Soot is tracked using the Particle Tracking model in Ansys Forte.
Table 1: Summary of the Ansys MFL-based pre-reduced reaction mechanisms included with Forte
The mechanisms listed in Table 1: Summary of the Ansys MFL-based pre-reduced reaction mechanisms
included with Forte (p. 240) are specifically created for the surrogates and their compositions described
in the following sections. The same multi-component mechanisms can be used for a slightly different
composition. For a brief description on creating a surrogate to match a specific test fuel, refer to Creating
a Surrogate for a Specific Test Fuel (p. 249). If a higher level of accuracy in fuel models is required to
capture fuel effects and emissions, more complex surrogates with additional components may be required.
For additional multi-component surrogates and their mechanisms, refer to the Ansys Model Fuel Library
Manual.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
240 of ANSYS, Inc. and its subsidiaries and affiliates.
Reduced Mechanisms for Diesel Engine Applications
The mechanism has been validated against fundamental data for the following conditions:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 241
Fuel Chemistry Sets Included with Ansys Forte
4. EGR of 0-50%.
This mechanism has been reduced from the Gasoline_PAH_NOx mechanism from the Ansys MFL that
consists of more than 2500 species. As documented in the MFL Manual, which has been thoroughly
validated against fundamental experimental data for the operating conditions of interest in engines.
The mechanism was reduced from this comprehensive "full" mechanism using Ansys Chemkin-Pro
Reaction Workbench software 34, for the conditions listed above.
For the emissions, the following species predictions are expected to be accurately predicted:
1. CO.
The species names in the chemistry file: for the n-heptane fuel species is nc7h16; for the methane
fuel species is ch4.
The mechanism has been validated against fundamental data for the following conditions:
4. EGR of 0%.
5. This mechanism was assembled for a cetane number of 55, with a composition of 33 wt% AMN/67
wt% n-decane.
This mechanism has been reduced from the Diesel_PAH_NOx mechanism from the Ansys MFL that
contains more than 5000 species. As documented in the Ansys Model Fuel Library (MFL) Manual,the
mechanism has been thoroughly validated against fundamental experimental data for the operating
conditions of interest in engines. The mechanism was reduced from this comprehensive "full" mech-
anism using Ansys Chemkin-Pro Reaction Workbench software 34, for the conditions listed above.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
242 of ANSYS, Inc. and its subsidiaries and affiliates.
Reduced Mechanisms for Diesel Engine Applications
For the emissions, the following species predictions are expected to be accurately predicted:
1. Soot-precursor species:
a. acetylene (c2h2)
b. propargyl (c3h3)
c. benzene (c6h6)
d. phenyl (c6h5)
e. toluene (c6h5ch3)
f. naphthalene (naph)
g. acenaphthalene (a2r5)
h. pyrene (a4)
i. coronene (coronene)
2. CO.
The species names in the chemistry file for the fuel species are:
1. n-Decane is nc10h22.
2. AMN is a2ch3.
The pseudo-gas soot model includes soot nucleation pathways through benzene and phenyl, and
growth dominated by HACA pathways. It also includes soot oxidation through O2 and OH.
The mechanism has been validated against fundamental data for the following conditions:
4. EGR of 0%.
5. This mechanism was assembled for a cetane number of 55, with a composition of 33 wt% AMN
/ 67 wt% n-decane.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 243
Fuel Chemistry Sets Included with Ansys Forte
This mechanism has been reduced from the Diesel_PAH_NOx mechanism from the Ansys MFL that
contains more than 5000 species. As documented in the Ansys Model Fuel Library (MFL) Manual,the
mechanism has been thoroughly validated against fundamental experimental data for the operating
conditions of interest in engines. The mechanism was reduced from this comprehensive "full" mech-
anism using Ansys Chemkin-Pro Reaction Workbench software 34, for the conditions listed above.
For the emissions, the following species predictions are expected to be accurately predicted:
1. Soot-precursor species:
a. acetylene (c2h2).
b. benzene (c6h6).
c. phenyl (c6h5).
2. CO.
The species names in the chemistry file for the fuel species are:
1. n-Decane is nc10h22.
2. AMN is a2ch3.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
244 of ANSYS, Inc. and its subsidiaries and affiliates.
Reduced Mechanisms for Gasoline SI Engine Applications
Figure 2: Decision flowchart for selecting Forte gasoline mechanism. (*The MFL mechanism referred
to in the figure can be accessed if Model Fuels Library has been installed.)
The mechanism has been validated against fundamental data for the following conditions:
1. Equivalence ratios of 0.4-3. This range is to capture both GDI and port-fuel injection engine local
environments.
4. EGR of 0-40%.
This mechanism has been reduced from a larger gasoline kinetics mechanism consisting of ~2600
species, which has been thoroughly validated against fundamental experimental data for the operating
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 245
Fuel Chemistry Sets Included with Ansys Forte
conditions of interest in engines, under the Model Fuels Consortium 23. The Ansys Model Fuel Library
(MFL) Manual includes the mechanism validation plots. The mechanism was reduced from this com-
prehensive "full" mechanism using the Reaction Workbench software 34, for the conditions listed
above.
For the emissions, the following species predictions are expected to be accurately predicted:
1. CO.
The species name in the chemistry file for the fuel species iso-octane is ic8h18.
The mechanism has been validated against fundamental data for the following conditions:
1. Equivalence ratios of 0.4-3. This range is to capture both GDI and port-fuel injection engine local
environments.
4. EGR of 0-40%.
5. Octane numbers of ~85-100. The composition used for mechanism reduction had a composition
of 39/30/21/10 wt% toluene/iso-octane/n-heptane /ethanol. n-Heptane and iso-octane compositions
can be modified to change the octane number within the range listed above.
This mechanism has been reduced from a larger gasoline kinetics mechanism consisting of ~2600
species, which has been thoroughly validated against fundamental experimental data for the operating
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
246 of ANSYS, Inc. and its subsidiaries and affiliates.
Reduced Mechanisms for Gasoline SI Engine Applications
conditions of interest in engines, under the Model Fuels Consortium 23. The Ansys Model Fuel Library
(MFL) Manual includes the mechanism validation plots. The mechanism was reduced from this com-
prehensive "full" mechanism using the Ansys Chemkin-Pro Reaction Workbench software 33, for the
conditions listed above.
For the emissions, the following species predictions are expected to be accurately predicted:
1. Soot-precursor species:
a. acetylene (c2h2).
b. propargyl (c3h3).
c. benzene (c6h6).
d. phenyl (c6h5).
e. toluene (c6h5ch3).
f. naphthalene (naph).
g. acenaphthalene (a2r5).
h. pyrene (a4).
i. coronene (coronene).
2. CO.
The species names in the chemistry file for the fuel species are:
1. iso-Octane is ic8h18.
2. n-Heptane is nc7h16.
3. Toluene is c6h5ch3.
4. Ethanol is c2h5oh.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 247
Fuel Chemistry Sets Included with Ansys Forte
reactions. Since this mechanism includes low-temperature reaction pathways, it can be used for pre-
dicting knocking.
The mechanism has been validated against fundamental data for the following conditions:
1. Equivalence ratios of 0.4-3. This range is to capture both GDI and port-fuel injection engine local
environments.
4. EGR of 0-30%.
5. Octane numbers of ~85-100. The composition used for mechanism reduction had a composition
of 39/30/21/10 wt% toluene/iso-octane/n-heptane/ethanol. n-Heptane and iso-octane compositions
can be modified to change the octane number within the range listed above.
This mechanism has been reduced from a larger gasoline kinetics mechanism consisting of ~2600
species, which has been thoroughly validated against fundamental experimental data for the operating
conditions of interest in engines, under the Model Fuels Consortium 23. The Ansys Model Fuel Library
(MFL) Manual includes the mechanism validation plots. The mechanism was reduced from this com-
prehensive "full" mechanism using the Reaction Workbench software 33, for the conditions listed
above.
For the emissions, the following species predictions are expected to be accurately predicted:
1. Soot-precursor species:
a. acetylene (c2h2).
b. benzene (c6h6).
c. phenyl (c6h5).
2. CO.
The species names in the chemistry file for the fuel species are:
1. iso-Octane is ic8h18.
2. n-Heptane is nc7h16.
3. Toluene is c6h5ch3.
4. Ethanol is c2h5oh.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
248 of ANSYS, Inc. and its subsidiaries and affiliates.
Creating a Surrogate for a Specific Test Fuel
4. EGR of 0-20%.
This mechanism has been reduced from the Ansys MFL full GaseousFuels_C0-C6_NOx_MFL2017
mechanism. It has been thoroughly validated against fundamental experimental data for the operating
conditions of interest in engines. Validation details are provided in the Ansys Model Fuel Library (MFL)
Manual. The mechanism was reduced from this comprehensive "full" mechanism using Ansys Chemkin-
Pro Reaction Workbench software 34, for the conditions listed above.
For the emissions, the following species predictions have been validated as accurate:
1. CO.
The species name in the chemistry file for the fuel species methane is ch4.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 249
Fuel Chemistry Sets Included with Ansys Forte
ponents to represent fuels with different characteristics. Using the Surrogate Blend Optimizer tool in
Ansys Chemkin-Pro Reaction Workbench can help in creating the best surrogate blend to match the
important known properties of the test fuel. It can create multi-component surrogates ranging from
two-component to much more complex versions, to match one or more properties, including:
• density
• viscosity
• heating value
• distillation curve
An example of the SBO Select Targets tab, for specifying the known properties of the test fuel is shown
in Example of Surrogate Blend Optimizer (p. 251). For example, if the goal is to obtain a surrogate than
can model an E10-gasoline sample, we can start with the existing TPRF-Ethanol mechanism. That
mechanism is an input to the Surrogate Blend Optimizer (on the Operation Setup and Select Fuels tab)
to identify the component options available in the mechanism. Any one or more known properties of
E10-gasoline can be used as Targets. Here, the ethanol volume fraction target is set to 0.1 to have 10%
ethanol in the blend. In addition, RON and MON of 94 and 88, respectively, are used as targets as shown
in Example of Surrogate Blend Optimizer (p. 251). An optimized composition that includes 4 components
will be generated to match those targets. If additional properties are available, they can be used as
targets, as needed. Note that components in addition to TPRF-ethanol may be required if the goal is
to create a more realistic surrogate that can match ignition, chemical, and physical properties of the
test fuel.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
250 of ANSYS, Inc. and its subsidiaries and affiliates.
Creating a Surrogate for a Specific Test Fuel
In general, the reduced mechanisms can be used without additional validation if the following charac-
teristics are true:
• Percentage of any component in the desired surrogate is within 20% of the original surrogate for
which the mechanism has been reduced.
• If the desired Octane or Cetane numbers are within 20 numbers of those of the original surrogate.
More information about the Surrogate Blend Optimizer and model-fuel mixtures is available in the
Chemkin-Pro Reaction Workbench User's Manual and an example in the SBO tutorial in the Reaction
Workbench Tutorial Guide.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 251
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
252 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix F. Flame-Speed Tables Installed with Ansys Forte
For spark-ignited engines, a flame front propagates through the unburned mixture according to the
local turbulent flame speed of the mixture. The model used for this purpose is the G-equation, as de-
scribed in Spark Ignition (p. 73) under Models Node (p. 55). This flame-propagation model may also
be used for pilot-spray auto-ignited dual-fuel engines, when the option is turned ON in the Chemistry
Solver panel, as described in Chemistry Solver Panel (p. 104). The local turbulent flame speed used by
the G-equation model is calculated based on a correlation to the laminar flame speed, which is a
chemical property of the gas mixture. In Ansys Forte, you have three options to describe the laminar
flame speed:
1. The recommended option is the Table Library, which contains pre-built laminar flame speed tables
for 54 surrogate fuels that have been calculated from detailed kinetics simulations.
2. Table Lookup contains pre-built laminar flame speeds that you can assemble externally.
With increasing fuel variability, the effects of fuel composition on flame speeds need to be captured
accurately. Gasoline, for example, consists of hundreds of components; representing the behavior of
gasoline may require 3–8 components. Ansys Forte comes installed with pre-built laminar flame-speed
tables for 54 surrogate fuels as part of the Table Library option. The fuels covered in the Table Library
option represent several classes: families of n-alkanes, iso-alkanes, cyclo-alkanes, alkenes, cyclo-alkene,
iso-alkene, aromatics, ethers, cyclo-ethers, alcohols, and methyl esters. The fuels are listed in Table 1: Fuels
for which prebuilt laminar flame speeds are available as part of the Table Library option (p. 253).
Table 1: Fuels for which prebuilt laminar flame speeds are available as part of the Table Library
option
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 253
Flame-Speed Tables Installed with Ansys Forte
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
254 of ANSYS, Inc. and its subsidiaries and affiliates.
Table Library Option
In addition to fuel effects, the operating conditions of equivalence ratio, temperature, pressure, and
EGR affect flame speeds. With wider operating regimes, including fuel stratification and boosted condi-
tions, it is difficult to predict the correct trends of flame speeds using correlations. For the 54 surrogate
fuels that are part of the Table Library option, flame speeds have been calculated over a wide range
of operating conditions. The Ansys Forte laminar flame-speed tables were generated using the Ansys
Chemkin-Pro 5 Flame-speed Table Generator. This Chemkin-Pro option uses an adiabatic, premixed,
laminar flame-speed calculator to determine the flame speeds over a range of conditions for a particular
fuel component, employing detailed (high-temperature) kinetics for the fuel-combustion.
The conditions that can be varied include: fuel-air equivalence ratio, initial temperature of the unburned
gas, pressure, and dilution rate (for simulated EGR). For the pre-built flame speed tables available as
part of the Table Library option, the conditions covered for the built-in tables are summarized in
Table 2: Mixture conditions covered by the built-in laminar flame-speed tables available in the Table
Library option (p. 255).
Table 2: Mixture conditions covered by the built-in laminar flame-speed tables available in the
Table Library option
When conditions are encountered outside of the range described in Table 2: Mixture conditions covered
by the built-in laminar flame-speed tables available in the Table Library option (p. 255), the flame speed
is determined by sampling points within the table, and creating a linear-least-square fit of a power law
/ Gulder equation that can be used to extrapolate to the given conditions.
Using pure-fuel flame speeds and local fuel composition in the CFD simulation, multicomponent-fuel
flame speeds are calculated on-the-fly using non-linear blending of the single-component values 29.
This Table Library option provides:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 255
Flame-Speed Tables Installed with Ansys Forte
• Simplicity in the user input required for the CFD simulation (only fuel composition is required).
• A high degree of accuracy afforded by the Ansys Chemkin-Pro-generated flame-speed library for an
extensive range of fuel components.
Table 3: Mixture conditions covered by the built-in laminar flame-speed tables available in the
Table Lookup option
Details on the validation history of the full mechanism database are available for the C1-C4 components,
as reported by Naik et al. 26. Sample comparisons to data for higher carbon-number alkanes are reported
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
256 of ANSYS, Inc. and its subsidiaries and affiliates.
Reaction Mechanisms Used in the Table Generation
by Puduppakkam et al. 30. In all cases the detailed mechanism provides predictions that agree with
the available measured values within experimental uncertainty.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 257
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
258 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix G. CGNS Utilities
The Ansys Forte installation includes a command-line utility for manipulating CGNS files. The utility is
included in the installation bin directory as an executable file named cgns_util. The utility consists
of the subprograms detailed in Table 1: CGNS Utility subprograms and descriptions (p. 259).
To display usage information for each utility program, type the utility name with no arguments. For
example, to print usage information for the harvest program enter the following command:
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 259
CGNS Utilities
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
260 of ANSYS, Inc. and its subsidiaries and affiliates.
cgns_util Subprograms
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 261
CGNS Utilities
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
262 of ANSYS, Inc. and its subsidiaries and affiliates.
cgns_util Subprograms
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 263
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
264 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix H. File Formats
(Advanced Data Format) The underlying format used for Ansys Forte files up to and including release
18.2.
• CGNS
Open source CFD file format used to import geometry for use in automatic meshing. The SIDS data
format definition for CGNS is found at CGNS. See Appendix G: CGNS Utilities (p. 259) for information
on working with CGNS files.
• CKCSV
An Ansys Chemkin-Pro solution file format that results from a parameter study run in Chemkin-Pro
and that can be used to populate a 2-D contour plot for use in phi-T map generation.
• CKTBL
Ansys Chemkin-Pro look-up table. Ansys Forte has an option to use look-up tables for laminar flame
speeds (see Flame-Speed Table Editor (p. 27)).
• CKS
Chemistry set file; this is an Ansys Chemkin-Pro file. It consists of file paths to chemistry mechanism
input files. A chemistry set can be used in multiple projects.
• CSV
(Comma Separated Value) ASCII-formatted data file. ANSI is a supported encoding format for .csv
files. Other encodings (UTF8, UTF8 BOM, UCS-2 BE BOM, and UCS-2 LE BOM) are not supported.
• FMSH
• FTBL
Structured data file for initial conditions and boundary conditions (see Initial Conditions Table Edit-
or (p. 25)). An ASCII CSV (comma separated value) format file. The first line is the number of manifold
dimensions, followed by the names of the manifold dimensions. The third line is the total number
of scalars, followed by the names of all of the scalars. Subsequent lines are the corresponding data
points in the table, one data point per line. Units are in cgs (centimeter gram second) and mass
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 265
File Formats
fractions for composition. See Example 2.1: Excerpt from flame-speed table file demonstrating .cktbl
format (p. 28).
• FTIND
Ansys Forte index file. Contains a list of the results files generated by each run.
• FTIVC
Ansys Forte IVC session file that saves composition data from the IVC utility.
• FTRES
Ansys Forte spatially resolved results file format, in CGNS format. This results file contains saved plot
and charts properties; it is created by Ansys Forte for a single run and by the Harvester for multiple
runs.
• FTSIM
The FTSIM file is the project file that stores all of the Ansys Forte project settings. It is in a CGNS-file
format. The SIDS data format definition for CGNS is found at CGNS
• HDF5
(Hierarchical Data Format 5) The underlying format used for Ansys Forte files from release 19.0 onwards.
See https://www.hdfgroup.org/.
• PNG/GIF
Export formats for visualized image data. Static image is exported to .png; animation is exported to
.gif.
• SMG
• STL
Triangulated surface mesh format used to import geometry for use in automatic meshing.
• XML
EXtensible Markup Language file format, a text-based self-documenting file standard. Ansys Forte
uses XML for plot replay files for regenerating plots. For details, see http://www.w3.org/XML/
• Header line: These are comment lines for memo or information purposes. More than one line is al-
lowed, but they must begin with "#". Header lines must start from the first line of the file and they
are only allowed at the beginning of the file.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
266 of ANSYS, Inc. and its subsidiaries and affiliates.
VOF Input File Format
• VOF data sets at a series of time points: A data set for a given time starts with the time value (unit:
second), followed by the integral data and per-cell data for each nozzle hole. The time value line
must start with string "Time", followed by the time value. In the example shown in the figure and
example,Figure 1: VOF input data file components (p. 267) and Example 1: VOF input data file (p. 267),
respectively, the VOF injector involves two nozzles. For each nozzle, the integral data include the
total mass (liquid and vapor) and total liquid mass crossing the coupling plane since the previous
time point, cavitation coefficient, nozzle diameter, turbulent kinetic energy (TKE), dissipation rate
(EPS), and liquid temperature. The per-cell data include the total number of VOF cells, coordinates
and velocity components, liquid volume fraction, liquid mass, TKE, EPS, and temperature defined at
each cell. SI units should be used for all parameters.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 267
File Formats
VOF_Cell_Count 5
X Y Z U V W Liqui
-8.8370733e-06 -3.2454459e-04 -7.2560857e-05 9.2406905e-01 -5.4026733e+00 -6.4823196e+00 9.221170
-1.3395302e-05 -3.2425355e-04 -7.2523058e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 2.610478
-4.4274276e-06 -3.2411916e-04 -7.2505604e-05 4.7351952e-01 -5.4671380e+00 -6.4779342e+00 8.769406
-2.1012405e-04 4.0950838e-04 -1.7015111e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 2.300442
8.0342647e-16 -3.2297042e-04 -7.2356408e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 2.483205
Time 1.0000000e-05
Nozzle_Index 1
Total_Mass 1.1136990e-09
Total_Mass_Liquid 1.2575164e-09
Ca 7.4073743e-01
Diameter 1.4000000e-04
Tke 8.7188988e+03
Eps 3.3230207e+05
Temp 2.9500000e+02
VOF_Cell_Count 5
X Y Z U V W Liqui
-4.2048808e-12 -4.6180439e-04 -9.0387788e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 3.258346
4.9879000e-06 -4.6162772e-04 -9.0364840e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 3.312473
9.9504638e-06 -4.6109936e-04 -9.0296217e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 3.530238
-3.9162086e-22 -3.2396214e-04 -7.2485208e-05 -3.6266783e-05 -5.4858435e+00 -6.4249156e+00 8.070786
-8.9609662e-06 -3.2354180e-04 -7.2430619e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 7.234873
Nozzle_Index 2
Total_Mass 1.1282285e-09
Total_Mass_Liquid 1.1495893e-09
Ca 7.6863241e-01
Diameter 1.6500000e-04
Tke 8.6705386e+03
Eps 3.0170659e+05
Temp 2.9400000e+02
VOF_Cell_Count 5
X Y Z U V W Liqui
-8.8370733e-06 -3.2454459e-04 -7.2560857e-05 9.2406905e-01 -5.4026733e+00 -6.4823196e+00 9.221170
-1.3395302e-05 -3.2425355e-04 -7.2523058e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 2.610478
-4.4274276e-06 -3.2411916e-04 -7.2505604e-05 4.7351952e-01 -5.4671380e+00 -6.4779342e+00 8.769406
-2.1012405e-04 4.0950838e-04 -1.7015111e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 2.300442
8.0342647e-16 -3.2297042e-04 -7.2356408e-05 0.0000000e+00 0.0000000e+00 0.0000000e+00 2.483205
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
268 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix I. References
1. Callahan, C. V., T. J. Held, F. L. Dryer, R. Minetti, M. Ribaucour, and L. R. Sochet, "Experimental data
and kinetic modeling of primary reference fuel mixtures," 26th Symposium (International) on Com-
bustion, 1996.
6. Colket, M. B., III, and L. J. Spadaccini, "Scram jet Fuels Autoignition Study," Journal of Propulsion
Power, 17, 2001.
7. Dagaut, P., M. Reuillon, and M. Cathonnet, "Experimental study of the oxidation of n-heptane in a
jet stirred reactor from low to high temperature and pressures up to 40 atm," Combustion and Flame,
101: 132-140, 1995.
9. DIPPR Diadem, DIPPR Information and Data Evaluation Manager for the Design Institute for Physical
Properties, BYU, 2006.
10. Fieweger, K., R. Blumenthal, and G. Adomeit, "Self-ignition of S.I. engine model fuels: A shock tube
investigation at high pressure," Combustion and Flame, 109: 599-619, 1997.
11. Garner, S., R. Sivaramakrishnan, and K. Brezinsky, "The high-pressure pyrolysis of saturated and un-
saturated C7 hydrocarbons," Proceedings of the Combustion Institute, 32: 461-467, 2009.
12. Gauthier, B. M., D. F. Davidson, and R. K. Hanson, "Shock tube determination of ignition delay times
in full-blend and surrogate fuel mixtures," Combustion and Flame, 139: 300-311, 2004.
13. Griffiths, J. F., P. A. Halford-Maw, and D. J. Rose, "Fundamental features of hydrocarbon autoignition
in a rapid compression machine," Combustion and Flame, 95: 291-306, 1993.
14. Gülder, O. L. "Correlations of Laminar Combustion Data for Alternative S.I. Engine Fuels, SAE Paper
841000," SAE Technical Paper Series, 841000, 1984
15. Held, T. J., A. J. Marchese, and F. L. Dryer, "A semi-empirical reaction mechanism for n-heptane oxid-
ation and pyrolysis," Combustion Science and Technology, 123: 107-146, 1997.
16. Kaario, O., Antilla, E., Larmi, M., "Applying Soot Phi-T Maps for Engineering CFD Applications in
Diesel Engines, SAE Paper 2005-01-3856," SAE Technical Paper Series, 2005-01-3856, 2005.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 269
References
17. Liang, L., Naik, C. V., Puduppakkam, K. Wang, C., Modak, A., Meeks, E., Ge, H.-W., Reitz, R. D., and
Rutland, C. J., "Efficient Simulation of Diesel Engine Combustion Using Realistic Chemical Kinetics in
CFD, SAE Paper 2010-01-0178," SAE Technical Paper Series, 2010-01-0178, 2010.
18. Lu, T., and Law, C. K., "A directed relation graph method for mechanism reduction," Proceedings of
the Combustion Institute, 30: 1333-1341, 2005.
19. Lu, T., and Law, C. K., "Linear time reduction of large kinetic mechanisms with directed relation graph:
n-heptane and iso-octane," Combustion and Flame, 144: 24-36, 2006.
21. Metghalchi, M, and Keck, J. C. "Burning Velocities of Mixtures of Air with Methanol, Isooctane, and
Indolene at High Pressures and Temperatures," Combustion and Flame, 48: 191-210, 1982.
22. Minetti, R., M. Carlier, M. Ribaucour, E. Therssen, and L. R. Sochet, "A rapid compression machine in-
vestigation of oxidation and auto-ignition of n-heptane: Measurements and modeling," Combustion
and Flame, 102: 298-309, 1995.
25. Naik, C. V., Puduppakkam, K., Wang, C., Kottalam, J., Liang, L., Hodgson, D., Meeks, E., "Applying De-
tailed Kinetics to Realistic Engine Simulation: The Surrogate Blend Optimizer and Mechanism Reduction
Strategies, SAE Technical Paper 2010-01-0541," SAE Technical Paper Series, 2010-01-0541, 2010.
26. Naik, C. V., Puduppakkam, K., and Meeks, E., "An Improved Core Reaction Mechanism for Saturated
C0-C4 Fuels," Journal of Engineering for Gas Turbines and Power, 134, 2011.
27. Patel, A., S.-C. King, and R. D. Reitz, "Development and Validation of a Reduced Reaction Mechanism
for HCCI Engine Simulations," SAE Technical Paper 2004-01-0558, SAE Technical Paper Series, 2004-
01-0558, 2004.
28. Peters, N. Turbulent Combustion. Cambridge University Press, Cambridge, UK, 2000.
29. Puduppakkam, K.V., Wang, C., Hodgson, D., Naik. C.V. and Meeks, E., "Accurate and Dynamic Account-
ing of Fuel Composition in Flame Propagation During Engine Simulations", submitted for SAE World
Congress, 2015.
30. Puduppakkam, K. V., Naik, C. V., and Meeks, E, "Validation Studies of a Detailed Kinetics Mechanism
for Diesel and Gasoline Surrogate Fuels," SAE Technical Paper 2010-01-0545, SAE Technical Paper
Series, 2010-01-0545, 2010.
31. Puduppakkam, K.V., Liang, L., Shelburn, A., Naik, C. V., Meeks, E., and Bunting, B., "Predicting Emissions
Using CFD Simulations of an E30 Gasoline Surrogate in an HCCI Engine With Detailed Chemical
Kinetics," SAE Technical Paper 2010-01-0362, SAE Technical Paper Series, 2010-01-0362, 2010.
33. Reaction Workbench with CHEMKIN-PRO, Reaction Design: San Diego, 2011.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
270 of ANSYS, Inc. and its subsidiaries and affiliates.
35. Rhodes, D. B. and Keck, J., "Laminar Burning Speed Measurements of Indolene-Air-Diluent Mixtures
at High Pressures and Temperatures," SAE Technical Paper 850047, SAE Technical Paper Series, 850047,
1985.
36. Silke, E. J., H. J. Curran, and J. M. Simmie, "Influence of fuel structure on combustion as demonstrated
by the isomers of heptane: a rapid compression machine study," Proceedings of the Combustion Insti-
tute, 30: 2639-2647, 2005.
37. Wenzel, H., "Turbulent premixed combustion in the laminar flamelet and the thin reaction zones
regime," Annual Research Briefs, Center for Turbulence Research, 1997: 237-252, 1997.
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 271
Release 2022 R1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
272 of ANSYS, Inc. and its subsidiaries and affiliates.