You are on page 1of 44

Chapter 2

Introduction to Workbench
and CFX Workflow

Introduction to CFX


     ||
|
    |     | 
¢  
 ¢  
Œhe Workbench Environment Œ 

è For most situations the Workbench GUI is divided into 2 primary


sections (there are other optional sections we¶ll see in a moment):

Œhe Œoolbox Œhe Project Schematic


     ||
|
    ||     | 
¢  
 ¢  
Œhe Œoolbox Œ 

è Œhe toolbox contains 4 subgroups:


è Analysis systems:
ü Predefined templates that can be
placed in the schematic.

è Component systems:
ü arious applications that can be
accessed to build, or expand,
analysis systems.

è Custom Systems:
ü Predefined analysis systems for
coupled applications (FSI, thermal-
stress, etc.). Users can also create
their own predefined systems.

è *esign Exploration:
ü Parametric management and
optimization tools.

     ||
|
    |!     | 
¢  
 ¢  
Œhe Œoolbox Œ 

è Œhe systems and components


displayed in the toolbox will
depend on the installed
products.

è Using the check boxes in the


³iew All / Customize´
window, the items displayed
in the toolbox can be toggled
on or off.

è Œhe toolbox customization


window is normally left closed
when not in use.


     ||
|
    |"     | 
¢  
 ¢  
Œhe Project Schematic Œ 

è Œhe Workbench project schematic is a graphical representation of the


workflow defining a system or group of systems.

è Œhe workflow in the project schematic is always left to right.

è Œhere are currently several applications which are native to


Workbench, meaning they run entirely in the Workbench window:
ü Project Schematic, Engineering *ata and *esign Exploration

è Von-native applications (called data-integrated) run in their own


window:
ü £echanical (formerly Simulation), £echanical AP* (formerly AVSYS),
AVSYS Fluent, AVSYS CFX, Etc . . .

è 6locks of cells can be deleted by R£6 menu selection.


     ||
|
    |     | 
¢  
 ¢  
Œhe Project Schematic Œ 

è 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.


     ||
|
    |#     | 
¢  
 ¢  
Œhe Project Schematic Œ 

è 6y dropping applications and/or analyses into various locations in


the schematic, an overall analysis project is defined.

è ³Connectors´ indicate the level of collaboration between systems.

è In the example shown a


structural system is dragged and
dropped onto a thermal system
at the £odel cell (A4).

è 6efore completing the operation


notice there are a number of
optional ³drop´ locations that
will provide various types of
linkage between systems
(continued next page).


     ||
|
    |$     | 
¢  
 ¢  
Œhe Project Schematic Œ 

è 6y completing the operation from the previous page, notice the


linkage here is only at the £odel level and above.

è In this case there would be no thermal/structural coupling.

è Votice too each system block is given an alphabetic designation (A,


6, C, etc.).


     ||
|
    |     | 
¢  
 ¢  
Œhe Project Schematic Œ 

è 6y dropping the structural system at the ³Solution´ level we obtain a


structural system that is coupled to the thermal solution.

Votice, the candidate


³drop´ location
indicates data will be
shared from fields A2
to A4, and
transferred from A6.


     ||
|
    |     | 
¢  
 ¢  
Œhe Project Schematic Œ 

è A schematic can also be constructed by R£6 and choosing to


³Œransfer *ata Œo Vew´ or ³Œransfer *ata From Vew´.
è In using the R£6 transfer feature all transfer possibilities (upstream
and downstream) are displayed.
è Œhese selections will vary depending on which cell in a particular
system you highlight.


     ||
|
    |      | 
¢  
 ¢  
Œhe Project Schematic Œ 

è Identifying cell states:

è Unfulfilled: missing upstream data.

è Attention required: may need to correct this or upstream cells.

è Refresh required: upstream data has changed. Veed to refresh cell. An update
will also refresh the cell 
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


     ||
|
    |      | 
¢  
 ¢  
Õptional Workbench Windows Œ 

è Œhe ³iew´ menu (and R£6) allows additional information to be


displayed in the Workbench environment.
ü 6elow, the geometry is highlighted and the properties are displayed.


     ||
|
    | |     | 
¢  
 ¢  
Workbench File £anagement Œ 

è 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 VՌ 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. £yFile.wbpj).
è A project directory will be created using the project name. In the
above example the directory would be £yFile_files.
è A number of subdirectories will be created in the project directory.


     ||
|
    | !     | 
¢  
 ¢  
Workbench File £anagement Œ 

è From the Workbench ³iew´ menu activate the


³Files´ option to display a window containing file
details and locations.


     ||
|
    | "     | 
¢  
 ¢  
Workbench File £anagement Œ 

è Archive: quickly generates a single


compressed file containing all pertinent files.

ü File is zip format and can be opened using the


³Restore Archive . . . ´ utility in W62 or any
unzip program.

ü Several options are available when archiving


systems as shown here.


     ||
|
    |     | 
¢  
 ¢  
Starting CFX Π

è CFX can be launched from:


ü Œhe CFX 12.0 auncher
è Start > All Programs > AVSYS
12.0 > CFX > AVSYS CFX 12.0
ü Within AVSYS Workbench
è *rag µ?  

   or µ  
  onto the
  
ü Œhe command line
è £ore common under
inux/Unix


     ||
|
    | #     | 
¢  
 ¢  
Œry It Yourself! Œ 

è Vow launch Workbench on your training machine«


ü  ?  ?  !"#$?  ¢ 

è Expand the  toolbox and add a system to


the   

è *rag a second system onto the   , dropping it


onto the    cell of the first
ü Œhe 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  cell in the first system and select %



ü Œhis will open CFX-Pre
ü You can leave CFX-Pre open for now


     ||
|
    | $     | 
¢  
 ¢  
Running Standalone vs Workbench Π

è Running CFX inside the Workbench environment:

ü Simplifies the workflow


è % &''  (')   *


%

è  ' *


) 
 %
ü   + % 
  

,'&'' 
 ('

ü Allows you to easily link to other ?  and


 

ü Is necessary when performing *esignExploration (parametric


studies)


     ||
|
    |      | 
¢  
 ¢  
Running Standalone vs Workbench Π

è Running CFX standalone:

ü ess computational overhead

ü Produces a simpler directory / file structure on disk

ü 6ut no direct association between geometry, mesh, setup and


results files
è 

%  %'-'
è -'  '% +  % 
'

ü ess automation
è  % -% '%  ./0 


     ||
|
    |      | 
¢  
 ¢  
Setting the Working *irectory Π

è 6efore starting a project you should set the working directory


ü Avoids files getting saved to µ*  
¶
è From the CFX auncher specify the ¢ *  before starting
Pre / Solver / Post
è In Workbench  & the project before adding anything to the  
 


     ||
|
    | |     | 
¢  
 ¢  
Setup / CFX-Pre Π

CFX-Pre CFX-Solver CF*-Post


è In W6 %
 the  entry to start
CFX-Pre
ü Four types of simulation are available

è General %  ' %+ +  


+./1%' 
ü ¢  '   ¢ ,-
./0 )'%
 
 %

è Œurbomachinery %%+'+   


%
 

è Quick Setup % %+


'+ 
%' -'% % +' %  
-



è ibrary Œemplate %  + '+ 



%2

ü 6 
 
3
%-' 4

     ||
|
    | |     | 
¢  
 ¢  
CFX-Pre ± Workspace Œ 

CFX-Pre CFX-Solver CF*-Post


£ain £enu

£ain Œoolbar

iewer Œoolbar

Õutline Œree

iewer Window

£essage Window


     ||
|
    | ||     | 
¢  
 ¢  
CFX-Pre ± Workflow Œ 

£ 
    CFX-Pre CFX-Solver CF*-Post
è ' (
(
  
è )*

 
? 1 è Œo define your simulation,
è 
 21 
generally follow the Õutline
*  
è -0 
tree from top to bottom
 
 
 
è *ouble-click entries in the
/ 
 
  Õutline tree to edit
'   
è     & è Right-click on entries in the
   &  Õutline tree to insert new
  
items or perform operations
 &
è &   è Some items are optional,
è -  
è  
depending on your
è £    simulation
+  
è ,  #-

è ' £  *-    
 &


è '%. (?)(   



     ||
|
    | |!     | 
¢  
 ¢  
Useful Shortcuts Π

Rotate

Pan + CŒR iewer Œoolbar

oom + SHIFŒ

(Hold while
6ox oom tracing a box)

Rotate + CŒR
(on screen plane)


     ||
|
    | |"     | 
¢  
 ¢  
CFX-Pre ± Workflow Example Œ 

CFX-Pre CFX-Solver CF*-Post


1. oad £esh
ü Right-click on £

?* *      


 
 
#'
   3* #
%&
    
 
 
 
 #


     ||
|
    ||     | 
¢  
 ¢  
CFX-Pre ± Workflow Example Œ 

2. *efine *omain Properties CFX-Pre CFX-Solver CF*-Post


ü Right-click on the domain and pick %

ü Õr right-click on  ? ! to insert a new domain

¢
    
   # 
   #

0   


&  

 

4


  0 
 

 

,  
 
& 
 
 .


     ||
|
    | |#     | 
¢  
 ¢  
CFX-Pre ± Workflow Example Œ 

·. Create 6oundary Conditions for a CFX-Pre CFX-Solver CF*-Post


*omain
è Right-click on the domain to insert 6C¶s

? 
 

 
 (
 
,
 
 


     ||
|
    | |$     | 
¢  
 ¢  
CFX-Pre ± Workflow Example Œ 

4. *efine Solver Settings CFX-Pre CFX-Solver CF*-Post


ü Right-click on Solver Control and pick %


? &
   &

 & 


     ||
|
    | |     | 
¢  
 ¢  
CFX-Pre ± Workflow Example Œ 

°. Start Solver CFX-Pre CFX-Solver CF*-Post

è When running in Workbench: è When running standalone:


ü ust close CFX-Pre ü You should manually save the CFX-Pre
è / '%
 database
è .
,% ,)  2m  ü Right-click on    and select  
ü Right-click on    and  & >
select %
 or - è *  M   & 
è M   '    è Mm
'  -
, ' )+'
-
, ' )+'   
è    &  è Mm
 ' )+' 
 %    & 

Right-click
to solve


     ||
|
    | |     | 
¢  
 ¢  
CFX-Solver £anager Œ 

è *efining a Run CFX-Pre CFX-Solver CF*-Post

ü CFX-Pre will have written a .def file


and this is automatically selected
as the  &' 

ü Can enable Initial alues 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 CF*
problem so that it can run on more
than one processor/machine

ü  -!


     ||
|
    | !     | 
¢  
 ¢  
CFX-Solver £anager Œ 

è Workspace CFX-Pre CFX-Solver CF*-Post


Create new monitors

Solution £onitors Œext output from the Solver


è £onitor the convergence of è ots of info in here
the solver è Can also view the #  file in
è Plot residuals, imbalances, a text editor
monitor points, forces,
fluxes«


     ||
|
    | !     | 
¢  
 ¢  
CFX-Solver £anager Œ 

è When the Solver finishes, start CFX-Pre CFX-Solver CF*-Post


CF*-Post:
è When running in Workbench: è When running standalone:
ü ust close the Solver £anager ü Enable  0 - on the
è .
,% ,)  2m solver finished notification window
ü Right-click on - and select
%
 to start CF*-Post

ü Õr select the  0 -


icon from the toolbar

Right-click
to start
CF*-Post


     ||
|
    | !|     | 
¢  
 ¢  
CF*-Post Π

è Workspace CFX-Pre CFX-Solver CF*-Post

Editor Œabs
è Õutline
è ariables
è Expressions
è Calculators
è Œurbo

Õutline Œree
Õutline tree
displays all post-
processing objects.
Right-click or
double-click to edit
in the *etails Pane

*etails Pane
iewer Window


     ||
|
    | !!     | 
¢  
 ¢  
CF*-Post Π

è General Workflow CFX-Pre CFX-Solver CF*-Post

1. Prepare locations where data


will be extracted from or ·. i) Generate 4  & data at
plots generated locations
è E.g. Planes, Isosurface

ii) Generate 4  & data at


2. Create variables/expressions locations
which will be used to extract
data (if necessary)
è E.g. drag, pressure ratio

4. Generate Reports


     ||
|
    | !"     | 
¢  
 ¢  
CF*-Post Π

1. Create ocations CFX-Pre CFX-Solver CF*-Post

Use the +   
2* & ·* domain,
drop-down menu in
boundary and
the toolbar to create
mesh regions are
locations inside the
automatically
domain
available

2. ariables / Expressions *iscussed in the Post-processing


·. Qualitative and Quantitative data lecture along with more details on
creating locations
4. Reports


     ||
|
    |!     | 
¢  
 ¢  
Summary of Common File Œypes Œ 

.wbpj -¢ ,-


 *
/5
Import £esh
.cmdb, .cfx°, .def, .res, «

Õpen
CFX-Pre .cfx -./0 1-5
.cfx, .def, .res
.def -  ' 1+  /5

CFX-Solver .out - 6''/5


.res -('/5

.def, .cmdb .cst -./1 /5


CF*-Post .cse -./1  /5
-&/5


     ||
|
    | !#     | 
¢  
 ¢  
Summary of Common File Œypes Œ 

Import £esh
è .cfx files contain mesh and .cmdb, .cfx°, .def, .res, «
physics data and can be opened
by CFX-Pre
Õpen .cfx
.cfx, .def, .res
CFX-Pre -./0 1-5
è .def files contain mesh and .def -  ' 1+  /5
physics data and can be run in
.out
the Solver CFX-Solver - 6''/5
.res - '/5
è .res files contain mesh, physics .def, .cmdb .cst
and results data and can be -&/5
CF*-Post .cse
opened in CF*-Post

è CFX-Pre can also open .def and .res files to recover the mesh and physics.
Some unused data (e.g. unused £aterials) is not written to the .def / .res files
and is therefore not recovered.

è Œhe CFX-Solver can use .res files to continue a run or as an initial guess

è CF*-Post can also open .def and .cmdb files to view the mesh


     ||
|
    | !$     | 
¢  
 ¢  
Solver Files and Folders Π

.78/ % +

CFX-Solver .78/ %9 '

.78/ %9

First Œime Solving .78/ %989+' 


Filename.def .78/ %98 
.78/ %98| 
.78/ %9 

.78/ % +

CFX-Solver .78/ %9| '

.78/ %9|

Second Œime .78/ %9|89+' 


Solving .78/ %9|8 
Filename.def .78/ %9|8| 
.78/ %9| 


     ||
|
    | !     | 
¢  
 ¢  
File Structure in Workbench Π

è 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  5 subdirectory

.78
&2 )-*
.78
&2 9+

*
+ +  1  



     ||
|
    | !     | 
¢  
 ¢  
icense Preferences Π

è Workbench license control is handled through the user interface


shown below, activated from the Workbench project page (³Œools >
icense Preferences . . . ³).


     ||
|
    | "     | 
¢  
 ¢  
icense Preferences Π

è With the available licenses displayed, the activation and ³use order´
can be specified using the up/down arrows.
ü 0 = off, 1 = on
ü icense order represents the preference order for license use.

è Œhe 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.


     ||
|
    | "     | 
¢  
 ¢  
icense Preferences Π

è In the example shown, a user could have · £echanical models open


simultaneously. Using the license control they may choose to open ·
licenses or use only 1 that is shared. In the shared scenario, only the active
£echanical session uses the license (the remaining will be read only).


     ||
|
    | "|     | 
AVSYS CFX 12.0
Workflow *emo


     ||
|
    | "!     | 
¢  
 ¢  
Workflow *emo Π

è Your instructor will now perform a quick demonstration of the workflow in a


simple CFX project

è Œhis simulation sets up the Static £ixer simulation ± the first of the tutorials
supplied with the AVSYS CFX documentation

è Œhe 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
ü 6y default: 67   7?  '7&!"$7 7. 7 £.#



     ||
|
    | ""     |