Introduction to CFX
2-1
Training Manual
For most situations the Workbench GUI is divided into 2 primary sections (there are other optional sections well see in a moment):
The Toolbox
2-2
The Toolbox
The toolbox contains 4 subgroups: Analysis systems:
Predefined templates that can be placed in the schematic.
Training Manual
Component systems:
Various applications that can be accessed to build, or expand, analysis systems.
Custom Systems:
Predefined analysis systems for coupled applications (FSI, thermalstress, etc.). Users can also create their own predefined systems.
Design Exploration:
Parametric management and optimization tools.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
2-3
The Toolbox
The systems and components displayed in the toolbox will depend on the installed products.
Using the check boxes in the View All / Customize window, the items displayed in the toolbox can be toggled on or off. The toolbox customization window is normally left closed when not in use.
Training Manual
2-4
Training Manual
The Workbench project schematic is a graphical representation of the workflow defining a system or group of systems.
The workflow in the project schematic is always left to right. There are currently several applications which are native to Workbench, meaning they run entirely in the Workbench window:
Project Schematic, Engineering Data and Design Exploration
2-5
Training Manual
In this example a Static Structural analysis type is selected for the project schematic. From the toolbox the selection can be dragged and dropped onto the schematic or simply double clicked.
2-6
Training Manual
By dropping applications and/or analyses into various locations in the schematic, an overall analysis project is defined.
2-7
Training Manual
By completing the operation from the previous page, notice the linkage here is only at the Model level and above.
In this case there would be no thermal/structural coupling.
Notice too each system block is given an alphabetic designation (A, B, C, etc.).
2-8
Training Manual
By dropping the structural system at the Solution level we obtain a structural system that is coupled to the thermal solution.
Notice, the candidate drop location indicates data will be shared from fields A2 to A4, and transferred from A6.
2-9
Training Manual
A schematic can also be constructed by RMB and choosing to Transfer Data To New or Transfer Data From New. In using the RMB transfer feature all transfer possibilities (upstream and downstream) are displayed. These selections will vary depending on which cell in a particular system you highlight.
2-10
Training Manual
Refresh required: upstream data has changed. Need to refresh cell. An update will also refresh the cell and regenerate any output data (e.g. mesh, results). Update required: the data has changed and the output of the cell must be regenerated. Up to date. Input changes pending: cell is locally up to date but may change when the next update is performed due to upstream changes. Interrupted: solver was manually stopped before it finished. Can use Resume or Update to continue to solving. Pending: a batch process is in progress
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
2-11
Training Manual
The View menu (and RMB) allows additional information to be displayed in the Workbench environment.
Below, the geometry is highlighted and the properties are displayed.
2-12
Training Manual
Workbench creates a project file and a series of subdirectories to manage all associated files. Users should allow Workbench to manage the directories.
Please do NOT manually modify the content or structure of the project directories.
When a project is saved a project file is created (.wbpj), using the user specified file name (e.g. MyFile.wbpj). A project directory will be created using the project name. In the above example the directory would be MyFile_files. A number of subdirectories will be created in the project directory.
2-13
Training Manual
2-14
Training Manual
2-15
Starting CFX
CFX can be launched from:
The CFX 12.0 Launcher
Start > All Programs > ANSYS 12.0 > CFX > ANSYS CFX 12.0
Training Manual
2-16
Try It Yourself!
Now launch Workbench on your training machine
Start > All Programs > ANSYS 12.0 > ANSYS Workbench
Training Manual
Expand the Component Systems toolbox and add a CFX system to the Project Schematic
Drag a second CFX system onto the Project Schematic, dropping it onto the Solution cell of the first
The first Solution is used as the starting point for the second Solution, e.g. a steady-state run followed by a transient run
Right-click on the Setup cell in the first system and select Edit
This will open CFX-Pre You can leave CFX-Pre open for now
2-17
Training Manual
Geometry, Mesh, Setup, Solution and Results steps shown on the Project Schematic Easier to update a project when a change is made
E.g. after a geometry change a single click updates the Mesh, Setup, Solution and Results
Allows you to easily link to other Analysis Systems and Components Is necessary when performing DesignExploration (parametric studies)
2-18
Training Manual
But no direct association between geometry, mesh, setup and results files
Each component must be updated No built-in automation for parametric studies
Less automation
E.g mesh needs to be manually imported into CFX-Pre
2-19
Training Manual
2-20
Setup / CFX-Pre
In WB Edit the Setup entry to start CFX-Pre
Four types of simulation are available
CFX-Pre CFX-Solver
Training Manual
CFD-Post
General mode is the general purpose mode for defining all types of CFD simulations
When running in Workbench CFX-Pre will automatically start in this mode
Turbomachinery mode simplifies the setup for rotating machines Quick Setup mode greatly simplifies the physics setup for a simulation by assuming many default parameters and basic physics Library Template mode provides a predefined setup for complex physics
Boiling, cavitation, coal & oil combustion,
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002598
2-21
CFX-Pre Workspace
Main Menu
Training Manual
CFX-Pre
CFX-Solver
CFD-Post
Message Window
2-22
CFX-Pre Workflow
Mesh and region control Import, delete, transform meshes View & edit mesh regions Analysis Type Steady State / Transient Domain Right-click to insert boundary conditions Boundary Conditions Initialisation Starting point for the solver in the absence of a previous solution Solver settings Convergence controls Results files controls Numerical schemes Monitor points
Training Manual
CFX-Pre
CFX-Solver
CFD-Post
To define your simulation, generally follow the Outline tree from top to bottom
Library objects Optional. Referenced elsewhere in the setup Import Materials & Reactions from libraries provided Insert Expressions, AVs, Fortran routines
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
2-23
Useful Shortcuts
Training Manual
Rotate
Pan Zoom Box Zoom Rotate
(on screen plane)
+ CTRL + SHIFT
(Hold while tracing a box)
Viewer Toolbar
+ CTRL
2-24
Training Manual
CFD-Post
1. Load Mesh
Right-click on Mesh
A Default Domain is automatically created when the mesh is imported. It contains all 3D regions in the mesh. Every domain contains a default boundary condition.
2-25
Training Manual
CFD-Post
Right-click on the domain and pick Edit Or right-click on Flow Analysis 1 to insert a new domain
When editing an item a new tab panel opens containing the properties. You can switch between open tabs.
Sub-tabs contain various different properties Complete the required fields on each sub-tab to define the domain
2-26
Training Manual
CFD-Post
After completing the boundary condition, it appears in the Outline tree below its domain
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002598
2-27
Training Manual
CFD-Post
2-28
Training Manual
CFX-Pre
CFX-Solver
CFD-Post
Right-click to solve
2-29
CFX-Solver Manager
Defining a Run
CFX-Pre will have written a .def file and this is automatically selected as the Solver Input File
CFX-Pre CFX-Solver
Training Manual
CFD-Post
Can enable Initial Values check box if you have a previous solution to use as the starting point
Parallel settings are defined here
Allows you to divide a large CFD problem so that it can run on more than one processor/machine
Start Run!
2-30
CFX-Solver Manager
Workspace
Create new monitors
Training Manual
CFX-Pre
CFX-Solver
CFD-Post
Solution Monitors Monitor the convergence of the solver Plot residuals, imbalances, monitor points, forces, fluxes
Text output from the Solver Lots of info in here Can also view the .out file in a text editor
2-31
CFX-Solver Manager
When the Solver finishes, start CFD-Post:
Just close the Solver Manager
Check mark shown next to Solution
Training Manual
CFX-Pre
CFX-Solver
CFD-Post
2-32
CFD-Post
Workspace
CFX-Pre CFX-Solver
Training Manual
CFD-Post
Editor Tabs
Outline Variables Expressions Calculators Turbo
Outline tree displays all postprocessing objects. Right-click or double-click to edit in the Details Pane
Outline Tree
2-33
CFD-Post
General Workflow
CFX-Pre CFX-Solver
Training Manual
CFD-Post
4. Generate Reports
2-34
CFD-Post
1. Create Locations
CFX-Pre CFX-Solver
Training Manual
CFD-Post
Use the Location drop-down menu in the toolbar to create locations inside the domain
Discussed in the Post-processing lecture along with more details on creating locations
2-35
Training Manual
CFX-Pre
CFX-Solver
.res (Results File) .def, .cmdb
(Mesh Files)
CFD-Post
2-36
Training Manual
.def files contain mesh and physics data and can be run in the Solver
.res files contain mesh, physics and results data and can be opened in CFD-Post
CFX-Pre
.cfx
(CFX-Pre Database)
CFX-Solver
.res (Results File) .def, .cmdb
(Mesh Files)
.out
(Solver Output File)
CFD-Post
.cst .cse
CFX-Pre can also open .def and .res files to recover the mesh and physics. Some unused data (e.g. unused Materials) is not written to the .def / .res files and is therefore not recovered. The CFX-Solver can use .res files to continue a run or as an initial guess CFD-Post can also open .def and .cmdb files to view the mesh
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002598
2-37
Training Manual
CFX-Solver
C:\Filename_001.out C:\Filename_001
CFX-Solver
Second Time Solving Filename.def
2-38
Training Manual
When running CFX standalone, files are saved to your current working directory
As noted on the previous side, some solver files are saved to a solver run directory
When running in Workbench only the project file (.wbpj) is saved to the current working directory
All other files are saved to a name_files subdirectory
C:\StaticMixer.wbpj C:\StaticMixer_files Project files and folders. Do not edit directly
2-39
License Preferences
Training Manual
Workbench license control is handled through the user interface shown below, activated from the Workbench project page (Tools > License Preferences . . . ).
2-40
License Preferences
0 = off, 1 = on License order represents the preference order for license use.
Training Manual
With the available licenses displayed, the activation and use order can be specified using the up/down arrows.
The license control allows Workbench users to specify whether a single license is used when multiple applications are open, or if all open applications access their own license.
2-41
License Preferences
Training Manual
In the example shown, a user could have 3 Mechanical models open simultaneously. Using the license control they may choose to open 3 licenses or use only 1 that is shared. In the shared scenario, only the active Mechanical session uses the license (the remaining will be read only).
2-42
2-43
Workflow Demo
Training Manual
Your instructor will now perform a quick demonstration of the workflow in a simple CFX project This simulation sets up the Static Mixer simulation the first of the tutorials supplied with the ANSYS CFX documentation The mesh for this simulation can be found in the examples directory of your CFX installation and can be imported as a CFX-Solver Input mesh file
By default: C:\Program Files\ANSYS Inc\v120\CFX\examples\StaticMixer.def
2-44