ANSYS Fluent Getting Started Guide
ANSYS Fluent Getting Started Guide
ANSYS Fluent Getting Started Guide
ANSYS, Inc.
Southpointe
275 Technology Drive
Canonsburg, PA 15317
[email protected]
http://www.ansys.com
(T) 724-746-3304
(F) 724-514-9494
Release 15.0
November 2013
ANSYS, Inc. is
certified to ISO
9001:2008.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFIDENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
ANSYS, Inc. is certified to ISO 9001:2008.
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, please contact ANSYS, Inc.
Published in the U.S.A.
Table of Contents
Preface ......................................................................................................................................................... v
1. The Contents of This Manual ................................................................................................................ v
2. The Contents of the Fluent Manuals ..................................................................................................... v
3. Technical Support .............................................................................................................................. vii
1. Introduction to ANSYS Fluent ................................................................................................................. 1
1.1. Program Capabilities ......................................................................................................................... 4
1.2. ANSYS Fluent Documentation ........................................................................................................... 5
1.2.1. Accessing the Documentation Files Using the ANSYS Help Viewer ............................................. 5
1.2.2. Accessing the PDF Documentation ........................................................................................... 6
1.2.2.1. Downloading and Extracting the PDF Documentation Files .............................................. 6
1.2.2.2. Navigating the PDF Files .................................................................................................. 6
1.2.2.3. Printing the PDF Files ....................................................................................................... 6
1.3. Known Limitations in ANSYS Fluent 15.0 ........................................................................................... 6
2. Basic Steps for CFD Analysis using ANSYS Fluent ................................................................................. 13
2.1. Steps in Solving Your CFD Problem .................................................................................................. 13
2.2. Planning Your CFD Analysis ............................................................................................................. 13
3. Guide to a Successful Simulation Using ANSYS Fluent ......................................................................... 19
4. Starting and Executing ANSYS Fluent ................................................................................................... 21
4.1. Starting ANSYS Fluent ..................................................................................................................... 21
4.1.1. Starting ANSYS Fluent Using Fluent Launcher ......................................................................... 21
4.1.1.1. Setting General Options in Fluent Launcher ................................................................... 23
4.1.1.2. Single-Precision and Double-Precision Solvers ................................................................ 25
4.1.1.3. Setting Parallel Options in Fluent Launcher .................................................................... 26
4.1.1.4. Setting Remote Options in Fluent Launcher ................................................................... 27
4.1.1.5. Setting Scheduler Options in Fluent Launcher ................................................................ 28
4.1.1.6. Setting Environment Options in Fluent Launcher ........................................................... 29
4.1.2. Starting ANSYS Fluent on a Windows System .......................................................................... 30
4.1.3. Starting ANSYS Fluent on a Linux System ................................................................................ 30
4.1.4. Command Line Startup Options ............................................................................................. 31
4.1.4.1. Graphics Options ........................................................................................................... 32
4.1.4.2. Meshing Mode Option ................................................................................................... 33
4.1.4.3. Parallel Options ............................................................................................................. 33
4.1.4.4. Postprocessing Option .................................................................................................. 34
4.1.4.5. SGE Options .................................................................................................................. 34
4.1.4.6. LSF Option .................................................................................................................... 34
4.1.4.7. Version and Release Options .......................................................................................... 34
4.1.4.8. System Coupling Options .............................................................................................. 34
4.1.4.9. Other Startup Options ................................................................................................... 35
4.2. Running ANSYS Fluent in Batch Mode ............................................................................................. 35
4.2.1. Background Execution on Linux Systems ................................................................................ 36
4.2.2. Background Execution on Windows Systems .......................................................................... 37
4.2.3. Batch Execution Options ........................................................................................................ 37
4.3. Switching Between Meshing and Solution Modes ............................................................................ 39
4.4. Checkpointing an ANSYS Fluent Simulation ..................................................................................... 39
4.5. Cleaning Up Processes From an ANSYS Fluent Simulation ................................................................ 40
4.6. Exiting ANSYS Fluent ...................................................................................................................... 41
Glossary of Terms ........................................................................................................................................ 43
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
iii
iv
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Preface
This preface is divided into the following sections:
1.The Contents of This Manual
2.The Contents of the Fluent Manuals
3.Technical Support
Preface
Fluent Tutorial Guide contains a number of examples of various flow problems with detailed instructions, commentary, and postprocessing of results.
ANSYS Fluent Meshing Tutorials contains a number of examples of general mesh-generation techniques
used in ANSYS Fluent Meshing.
Tutorials for release 15.0 are available on the ANSYS Customer Portal. To access tutorials and
their input files on the ANSYS Customer Portal, go to http://support.ansys.com/training.
Fluent Text Command List contains a brief description of each of the commands in Fluents solution
mode text interface.
ANSYS Fluent Meshing Text Command List contains a brief description of each of the commands in
Fluents meshing mode text interface.
Fluent Adjoint Solver Module Manual contains information about the background and usage of Fluent's
Adjoint Solver Module that allows you to obtain detailed sensitivity data for the performance of a
fluid system.
Fluent Battery Module Manual contains information about the background and usage of Fluent's
Battery Module that allows you to analyze the behavior of electric batteries.
Fluent Continuous Fiber Module Manual contains information about the background and usage of
Fluent's Continuous Fiber Module that allows you to analyze the behavior of fiber flow, fiber properties,
and coupling between fibers and the surrounding fluid due to the strong interaction that exists
between the fibers and the surrounding gas.
Fluent Fuel Cell Modules Manual contains information about the background and the usage of two
separate add-on fuel cell models for Fluent that allow you to model polymer electrolyte membrane
fuel cells (PEMFC), solid oxide fuel cells (SOFC), and electrolysis with Fluent.
Fluent Magnetohydrodynamics (MHD) Module Manual contains information about the background
and usage of Fluent's Magnetohydrodynamics (MHD) Module that allows you to analyze the behavior
of electrically conducting fluid flow under the influence of constant (DC) or oscillating (AC) electromagnetic fields.
Fluent Population Balance Module Manual contains information about the background and usage of
Fluent's Population Balance Module that allows you to analyze multiphase flows involving size distributions where particle population (as well as momentum, mass, and energy) require a balance
equation.
Fluent as a Server User's Guide contains information about the usage of Fluent as a Server which allows
you to connect to a Fluent session and issue commands from a remote client application.
Running Fluent Under LSF contains information about using Fluent with Platform Computings LSF
software, a distributed computing resource management tool.
Running Fluent Under PBS Professional contains information about using Fluent with Altair PBS Professional, an open workload management tool for local and distributed environments.
Running Fluent Under SGE contains information about using Fluent with Sun Grid Engine (SGE) software, a distributed computing resource management tool.
vi
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Technical Support
3. Technical Support
If you encounter difficulties while using ANSYS Fluent, please first refer to the section(s) of the manual
containing information on the commands you are trying to use or the type of problem you are trying
to solve. The product documentation is available from the online help, or from the ANSYS Customer
Portal. To access documentation files on the ANSYS Customer Portal, go to http://support.ansys.com/
documentation.
If you encounter an error, please write down the exact error message that appeared and note as much
information as you can about what you were doing in ANSYS Fluent.
Technical Support for ANSYS, Inc. products is provided either by ANSYS, Inc. directly or by one of our
certified ANSYS Support Providers. Please check with the ANSYS Support Coordinator (ASC) at your
company to determine who provides support for your company, or go to www.ansys.com and select
Contact ANSYS > Contacts and Locations.
If your support is provided by ANSYS, Inc. directly, Technical Support can be accessed quickly and efficiently from the ANSYS Customer Portal, which is available from the ANSYS Website (www.ansys.com)
under Support > Customer Portal. The direct URL is: support.ansys.com.
One of the many useful features of the Customer Portal is the Knowledge Resources Search, which can
be found on the Home page of the Customer Portal.
Systems and installation Knowledge Resources are easily accessible via the Customer Portal by using
the following keywords in the search box: Systems/Installation. These Knowledge Resources
provide solutions and guidance on how to resolve installation and licensing issues quickly.
NORTH AMERICA
All ANSYS, Inc. Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Toll-Free Telephone: 1.800.711.7199
Fax: 1.724.514.5096
Support for University customers is provided only through the ANSYS Customer Portal.
GERMANY
ANSYS Mechanical Products
Telephone: +49 (0) 8092 7005-55 (CADFEM)
Email: [email protected]
All ANSYS Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
National Toll-Free Telephone:
German language: 0800 181 8499
English language: 0800 181 1565
Austria: 0800 297 835
Switzerland: 0800 546 318
International Telephone:
German language: +49 6151 152 9981
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vii
Preface
English language: +49 6151 152 9982
Email: [email protected]
UNITED KINGDOM
All ANSYS, Inc. Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Telephone: Please have your Customer or Contact ID ready.
UK: 0800 048 0462
Republic of Ireland: 1800 065 6642
Outside UK: +44 1235 420130
Email: [email protected]
Support for University customers is provided only through the ANSYS Customer Portal.
JAPAN
CFX , ICEM CFD and Mechanical Products
Telephone: +81-3-5324-8333
Fax: +81-3-5324-7308
Email:
CFX: [email protected];
Mechanical: [email protected]
Fluent Products
Telephone: +81-3-5324-7305
Email:
Fluent: [email protected];
Polyflow: [email protected];
FfC: [email protected];
FloWizard: [email protected]
Icepak
Telephone: +81-3-5324-7444
Email: [email protected]
Licensing and Installation
Email: [email protected]
INDIA
All ANSYS, Inc. Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Telephone: +91 1 800 209 3475 (toll free) or +91 20 6654 3000 (toll)
Fax: +91 80 6772 2600
Email:
FEA products: [email protected];
viii
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Technical Support
CFD products: [email protected];
Ansoft products: [email protected];
Installation: [email protected]
FRANCE
All ANSYS, Inc. Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Toll-Free Telephone: +33 (0) 800 919 225 Toll Number: +33 (0) 170 489 087
Email: [email protected]
BELGIUM
All ANSYS Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Telephone: +32 (0) 10 45 28 61
Email: [email protected]
Support for University customers is provided only through the ANSYS Customer Portal.
SWEDEN
All ANSYS Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Telephone: +44 (0) 870 142 0300
Email: [email protected]
Support for University customers is provided only through the ANSYS Customer Portal.
SPAIN and PORTUGAL
All ANSYS Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Telephone: +34 900 933 407 (Spain), +351 800 880 513 (Portugal)
Email: [email protected], [email protected]
Support for University customers is provided only through the ANSYS Customer Portal.
ITALY
All ANSYS Products
Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option.
Telephone: +39 02 89013378
Email: [email protected]
Support for University customers is provided only through the ANSYS Customer Portal.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ix
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For more information about ANSYS Fluents parallel processing capabilities, message passing interfaces
(MPI), and so on, refer to Parallel Processing in the User's Guide.
All functions required to compute a solution and display the results are accessible in ANSYS Fluent
through an interactive interface.
For more information, see the following sections:
1.1. Program Capabilities
1.2. ANSYS Fluent Documentation
1.3. Known Limitations in ANSYS Fluent 15.0
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.2.1. Accessing the Documentation Files Using the ANSYS Help Viewer
To start the ANSYS help viewer, go to the following location from the Windows Start menu:
Start > Program Files > ANSYS 15.0 > Help > ANSYS Help
The ANSYS help viewer provides access to documentation for most ANSYS products.
To navigate to the ANSYS Fluent documentation, do the following:
1. Scroll down to ANSYS in the left-hand panel.
2. Expand the ANSYS Fluent documentation set by clicking the icon next to ANSYS.
3. Click a document title to display the table of contents for the selected document.
4. To find specific information, you can do any of the following:
a. In the Table of Contents, click the icon ( ) next to a title to expand the tree hierarchy, or click an
item in the tree hierarchy to display the corresponding information.
b. In the Search option on the toolbar, select either Basic or Advanced Search, enter a keyword or
phrase and click Search.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Newer releases of Linux are known to not have rsh installed which is used by default to spawn remote
processes in parallel. This will cause remote processes to fail to start unless you either select SSH in the
Fluent Launcher or use the -ssh command line option.
Platform support and drivers
ANSYS Fluent is not compatible with the job scheduler on HPC Server 2008 with the packaged version
of Platform MPI. The default MPI (MSMPI) should be used.
The minimum OS requirements for Linux are SLES 10 or Red Hat Enterprise 5.0.
The path name length to the cpropep.so library (including the lib name) is limited to 80 characters.
(Linux Opteron cluster using Infiniband interconnect only.)
On Linux platforms, including a space character in the current working directory path is not supported.
Visit the ANSYS Customer Portal (ANSYS Customer Portal) for the latest Windows graphics FAQ. Version
2.0 or higher of .NET Framework must be installed in order to run ANSYS Fluent on the winx64 platform.
If you are installing ANSYS Fluent 15.0 on a Windows machine that already has one or more previous
versions of ANSYS Fluent, then after installing Platform and Intel MPI libraries from the prerequisites,
make sure to delete the environment variables MPI_ROOT (for Platform MPI) and I_MPI_ROOT (for Intel
MPI). Otherwise there will be a conflict while running previous ANSYS Fluent versions in parallel mode.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
10
Supported Version
Abaqus
6.9
Altair HYPERMESH
5.1
ANSOFT-MAXWELL
15.0
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Supported Version
AVS
5.0
CGNS
2.5.3
CHEMKIN
2.4
Data Explorer
4.2
Ensight
9.1.2
7.6
9.1.2
FAST
1.3
Fieldview
12.2.1
Gambit
2.4
GT-POWER
7.3
HOOPS
17.15
I-DEAS
IDEAS NX Series 11
LSTC-DYNA
970.0
MPCCI
3.0.5
MPI-HP/Platform
8.1.2
MPI-Intel
4.02
MPI-OpenMPI
1.3.3
NASTRAN
PATRAN
3.0
PTC MECHANICA
TECPLOT
VKI
3.6.0
WAVE
2013.1
Other
In parallel, custom vectors cannot be created from components that are custom field functions themselves.
The IRIS Image and HPGL hardcopy formats are no longer supported in ANSYS Fluent.
When using ANSYS Fluent with the Remove Solve Manager (RSM):
Only one copy of a saved project that is in the pending state can reconnect successfully.
System Coupling is not supported.
Ansoft Coupling is not supported.
UDFs are supported with limitations as detailed in Submitting Fluent Jobs to RSM in Workbench
User's Guide.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11
12
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13
14
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15
16
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17
18
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
.
simulation, note if your residuals have decreased by at least 3 orders of magnitude to at least
For the pressure-based solver, the scaled energy residual must decrease to
. Also, the scaled
species residual may need to decrease to
to achieve species balance.
You can also monitor lift, drag, or moment forces as well as pertinent variables or functions (for
example, surface integrals) at a boundary or any defined surface.
7. Run the CFD simulation using second order discretization for better accuracy rather than a faster solution.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
19
20
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
21
Under Dimension, select 2D for two-dimensional problems, or select 3D for the three-dimensional
problems.
The Display Options enable you to change certain settings related to the graphics windows:
You can choose to have ANSYS Fluent automatically display the mesh immediately after reading a mesh
or case file by using the Display Mesh After Reading option (disabled by default). All of the boundary
zones will be displayed, except for the interior zones of 3D geometries. Note that your decision regarding
this option can be overridden after you have launched ANSYS Fluent: simply change the status of the
Display Mesh After Reading option in the Select File dialog box that opens when you are reading in
the mesh or case file.
You can choose to have the graphics windows embedded within the ANSYS Fluent application window
by using the Embed Graphics Windows option (enabled by default), rather than having floating graphics
windows.
You can choose to use the default Workbench Color Scheme in the graphics windows (that is, a blue
background), rather than the classic black background.
Under Options, you can do the following:
You can choose to run ANSYS Fluent in double-precision mode by enabling the Double-Precision option
(by default, you start ANSYS Fluent in single-precision mode).
You can choose to start ANSYS Fluent in meshing mode (rather than the default solution mode) by enabling
the Meshing Mode option. See the Fluent Meshing Users Guide for further details about the meshing
mode.
You can choose to use various job schedulers using the Use Job Scheduler option (for example, the Microsoft Job Scheduler for Windows, or LSF, SGE, and PBS Pro on Linux). For more information about using
22
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
Fluent Launcher also appears when you start ANSYS Fluent within ANSYS Workbench. For
more information, see the separate ANSYS Fluent in Workbench User's Guide.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
23
1.
Specify the version of ANSYS Fluent by selecting the appropriate option in the Version drop-down list.
The drop-down list contains all of the available versions of ANSYS Fluent that exist in your ANSYS Fluent installation.
In addition, you start ANSYS Fluent in full solution mode. You can choose to run ANSYS Fluent where
only the set up or postprocessing capabilities are available by selecting the Pre/Post Only check
box. The full ANSYS Fluent solution mode allows you to set up, solve and postprocess a problem,
while Pre/Post Only allows you to set up or postprocess a problem, but will not allow you to
perform calculations.
24
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Specify the path of your current working directory using the Working Directory field or click
to
browse through your directory structure. Note that a Uniform Naming Convention (UNC) path cannot
be set as a working directory, and you need to map a drive to the UNC path (Windows only).
3.
Specify the location of the ANSYS Fluent installation on your system using the Fluent Root Path field,
or click
to browse through your directory structure to locate the installation directory; try to use
Specify the path and name of a journal file by selecting the Use Journal File check box and entering
the journal file location and name, or click
to browse through your directory structure to locate
the file. Using the journal file, you can automatically load the case, compile any user-defined functions,
iterate until the solution converges, and write results to an output file.
Note
ANSYS Fluent allows only a period to be used as a decimal separator. If your system is set
to a European locale that uses a comma separator (for example, Germany), fields that accept
numeric input may accept a comma, but may ignore everything after the comma. If your
system is set to a non-European locale, numeric fields will not accept a comma at all.
ANSYS Workbench accepts commas as decimal delimiters. These are translated into periods
when data is passed to ANSYS Fluent.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25
26
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
27
28
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
29
30
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Platform
Description
-aas
all
-cc
all
-ccp x
Windows only
-cnf=x
all
-driver
all
-env
all
-fgw
all
-g
all
-gpgpu=ngpgpus
-gr
all
-gu
all
-help
all
-hidden
Windows only
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
31
Platform
Description
-host_ip=host:ip
all
-i journal
all
-lsf
Linux only
-mesher
all
-mpi=
all
-mpitest
all
-nm
all
-pcheck
Linux only
-post
all
-p<ic>
all
-r
all
-rx
all
-schost
all
-scport
all
-scname
all
-sge
Linux only
-sge queue
Linux only
-sgeckpt ckpt_obj
Linux only
Linux only
-tx
all
-tmx
all
32
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
33
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Once ANSYS Fluent loads and the case, initialize the solution using the following command:
(s i i)
Once your case is initialized, start the system coupling by typing the following command in the ANSYS
Fluent text user interface (TUI):
(sc-solve)
For more information, see Performing System Coupling Simulations Using Fluent in Workbench in the
Fluent in Workbench Users Guide, as well as the System Coupling Guide.
where XX and YY are the width and height in pixels, respectively, and +00-50 is the position of the
window.
Therefore, typing fluent 3d -geometry 700x500+20-400 will start the 3D version of ANSYS
Fluent, sizing the ANSYS Fluent console to 700x500 pixels and positioning it on your monitor screen at
+20-400.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
35
or in a Bourne/Korn-shell, type:
fluent 2d -g < inputfile > outputfile 2>&1 &
In these examples,
fluent is the command you type to execute ANSYS Fluent interactively.
-g indicates that the program is to be run without the GUI or graphics (see Starting ANSYS Fluent (p. 21)).
inputfile is a file of ANSYS Fluent commands that are identical to those that you would type interactively.
outputfile is a file that the background job will create, which will contain the output that ANSYS Fluent would normally print to the screen (for example, the menu prompts and residual reports).
& tells the Linux system to perform this task in background and to send all standard system errors (if any)
to outputfile.
The file inputfile can be a journal file created in an earlier ANSYS Fluent session, or it can be a file
that you have created using a text editor. In either case, the file must consist only of text interface
commands (since the GUI is disabled during batch execution). A typical inputfile is shown below:
; Read case file
rc example.cas
; Initialize the solution
/solve/initialize/initialize-flow
; Calculate 50 iterations
it 50
; Write data file
wd example50.dat
; Calculate another 50 iterations
it 50
; Write another data file
wd example100.dat
; Exit Fluent
exit
yes
This example file reads a case file example.cas, initializes the solution, and performs 100 iterations
in two groups of 50, saving a new data file after each 50 iterations. The final line of the file terminates
the session. Note that the example input file makes use of the standard aliases for reading and writing
case and data files and for iterating. (it is the alias for /solve/iterate, rc is the alias for
/file/read-case, wd is the alias for /file/write-data, etc.) These predefined aliases allow you
to execute commonly used commands without entering the text menu in which they are found. In
36
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
or in a Bourne/Korn-shell using:
fluent 2d -g -i inputfile > outputfile 2>&1 &
In these examples,
fluent is the command you type to execute ANSYS Fluent interactively.
-g indicates that the program is to be run minimized in the task bar.
-i journal reads the specified journal file.
-wait is the command you type in a DOS batch file or some other script in a situation where the script
must wait until ANSYS Fluent has completed its run.
-hidden is similar to the -wait command, but also executes ANSYS Fluent completely hidden and noninteractively.
To get an output (or transcript) file while running ANSYS Fluent in the background on a Windows system,
the journal file must contain the following command to write a transcript file:
; start transcript file
/file/start-transcript outputfile.trn
where the outputfile is a file that the background job will create, which will contain the output
that ANSYS Fluent would normally print to the screen (for example, the menu prompts and residual
reports).
See Creating and Reading Journal Files in the User's Guide for details about journal files. See Creating
Transcript Files in the User's Guide for details about transcript files.
37
Important
Batch option settings are not saved with case files. They are meant to apply for the duration
of the current ANSYS Fluent session only. If you read in additional mesh or case files during
this session, the batch option settings will not be altered. As batch options are not saved
with case files, journal files developed for use in batch mode should begin by enabling the
desired batch option settings (if different from the default settings).
38
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
39
The saved case and data files will have the current iteration number appended to their file names.
ANSYS Fluent offers an alternate way to checkpoint an unsteady simulation. While the default behavior is to checkpoint the simulation at the end of the current iteration, for unsteady simulations you
have the option of completing all of the iterations in the current time-step before checkpointing.
This can be set by entering the following Scheme command prior to running the unsteady simulation:
(ckpt/time-step?
#t)
Now when you save the checkpoint file (as described previously), the case and data file will be saved
at the end of the current time-step and named accordingly. To switch back to the default checkpointing mechanism at the end of the current iteration, use the following Scheme command:
(ckpt/time-step? #f)
Important
Note that the (ckpt/time-step? #t) command will have the effect only in the case
of an unsteady simulation.
Note
It is recommended that you do not use checkpointing when using ANSYS Fluent in Workbench.
However, if checkpointing is necessary, the exit-fluent/exit-fluent.txt file can
be used and the file will be checked in its default location (the FFF/FLU system directory
containing the *.set file). If ANSYS Fluent is calculating, then the existence of the file is
equivalent to an interrupt command. Similarly, the check-fluent/check-fluent.txt
file can be used to save the project on demand when ANSYS Fluent is calculating.
40
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Or, if the shell script already has executable permissions, simply type:
cleanup-fluent-thor-32895
To clean up extraneous ANSYS Fluent processes on Windows (serial or parallel), double-click the corresponding batch file (for example, cleanup-fluent-thor-32895.bat) that ANSYS Fluent generates
at the beginning of each session.
Important
During a normal run, this file will be deleted automatically after exiting ANSYS Fluent. In
abnormal situations, you may use this batch file to clean up the ANSYS Fluent processes.
Once an ANSYS Fluent session has been closed, you can safely delete any left over cleanup
scripts from your working directory.
Important
If an ANSYS Fluent session hangs or freezes on Windows, and you want to view the complete
contents of the ANSYS Fluent console output in a transcript file, you should use the taskkill
command through the DOS command prompt, rather than terminating the ANSYS Fluent
application through the Windows Task Manager.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
41
42
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary of Terms
This glossary contains a listing of terms commonly used throughout the documentation.
adaption (p. 43)
case files (p. 43)
cell types (p. 44)
computational fluid dynamics (CFD) (p. 44)
console (p. 45)
convergence (p. 45)
cortex (p. 45)
data files (p. 45)
dialog boxes (p. 45)
discretization (p. 45)
GUI (p. 45)
mesh (p. 45)
models (p. 45)
node (p. 45)
postprocessing (p. 45)
residuals (p. 45)
skewness (p. 45)
solvers (p. 46)
terminal emulator (p. 46)
TUI (p. 46)
adaption
A technique useful in improving overall mesh quality. The solution-adaptive mesh refinement feature of ANSYS Fluent allows you to refine and/or
coarsen your mesh based on geometric and numerical solution data. In
addition, ANSYS Fluent provides tools for creating and viewing adaption
fields customized to particular applications.
case files
Files that contain the mesh, boundary conditions, and solution parameters
for a problem. A case file also contains the information about the user
interface and graphics environment.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
43
Glossary of Terms
cell types
The various shapes or units that constitute the base elements of a mesh.
ANSYS Fluent can use meshes comprised of tetrahedral, hexahedral,
pyramid, wedge, or polyhedral cells (or a combination of these).
Figure 10: Cell Types
44
The science of predicting fluid flow, heat transfer, mass transfer (as in
perspiration or dissolution), phase change (as in freezing or boiling),
chemical reaction (for example, combustion), mechanical movement (for
example, fan rotation), stress or deformation of related solid structures
(such as a mast bending in the wind), and related phenomena by solving
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the mathematical equations that govern these processes using a numerical algorithm on a computer.
console
The console is part of the ANSYS Fluent application window that allows
for text command input and the display of information.
convergence
The point at which the solution is no longer changing with each successive iteration. Convergence criteria, along with a reduction in residuals,
also help in determining when a solution is complete. Convergence criteria are pre-set conditions on the residuals that indicate that a certain
level of convergence has been achieved. If the residuals for all problem
variables fall below the convergence criteria but are still in decline, the
solution is still changing to a greater or lesser degree. A better indicator
occurs when the residuals flatten in a traditional residual plot (of residual
value vs. iteration). This point, sometimes referred to as convergence at
the level of machine accuracy, takes time to reach, however, and may
be beyond your needs. For this reason, alternative tools such as reports
of forces, heat balances, or mass balances can be used instead.
cortex
A utility that manages ANSYS Fluents user interface and basic graphical
functions.
data files
Files that contain the values of the flow field in each grid element and
the convergence history (residuals) for that flow field.
dialog boxes
The separate windows that are used like forms to perform input tasks.
Each dialog box is unique and employs various types of input controls
that make up the form.
discretization
The act of replacing the differential equations that govern fluid flow with
a set of algebraic equations that are solved at distinct points.
GUI
The graphical user interface, which consists of the main ANSYS Fluent
application window, dialog boxes, graphics windows, etc.
mesh
models
node
The distinct points of a mesh (p. 45) at which the equations of fluid
motion are solved.
postprocessing
The act of analyzing the numerical results of your CFD simulation using
reports, integrals, and graphical analysis tools such as contour plots, animations, etc.
residuals
The small imbalance that is created during the course of the iterative
solution algorithm. This imbalance in each cell is a small, non-zero value
that, under normal circumstances, decreases as the solution progresses.
skewness
The difference between the shape of the cell and the shape of an equilateral cell of equivalent volume. Highly skewed cells can decrease accuracy and destabilize the solution.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
45
Glossary of Terms
solvers
terminal emulator
TUI
The text user interface, which consists of textual commands that can be
entered into the terminal emulator.
46
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.