1、2-1ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Chapter 2如何使用如何使用Workbench及及CFX 流体分析流体分析CFX 详解详解Workbench and CFX Workflow2-2ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Workbench EnvironmentFor most situati
2、ons the Workbench GUI is divided into 2 primary sections(there are other optional sections well see in a moment):The ToolboxThe Project SchematicWorkbench and CFX Workflow2-3ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe ToolboxThe toolbox contai
3、ns 4 subgroups:Analysis systems:Predefined templates that can be placed in the schematic.Component systems:Various 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
4、their own predefined systems.Design Exploration:Parametric management and optimization tools.Workbench and CFX Workflow2-4ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe ToolboxThe systems and components displayed in the toolbox will depend on the
5、 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.Workbench and CFX Workflow2-5ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Releas
6、e 13.0December 2010Training ManualThe Project SchematicThe 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 Workbe
7、nch,meaning they run entirely in the Workbench window:Project Schematic,Engineering Data and Design ExplorationNon-native applications(called data-integrated)run in their own window:Mechanical(formerly Simulation),Mechanical APDL(formerly ANSYS),ANSYS Fluent,ANSYS CFX,Etc.Blocks of cells can be dele
8、ted by RMB menu selection.Workbench and CFX Workflow2-6ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Project SchematicIn this example a Static Structural analysis type is selected for the project schematic.From the toolbox the selection can be d
9、ragged and dropped onto the schematic or simply double clicked.Workbench and CFX Workflow2-7ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Project SchematicIn the example shown a structural system is dragged and dropped onto a thermal system at t
10、he Model cell(A4).Before completing the operation notice there are a number of optional“drop”locations that will provide various types of linkage between systems(continued next page).By dropping applications and/or analyses into various locations in the schematic,an overall analysis project is defin
11、ed.“Connectors”indicate the level of collaboration between systems.Workbench and CFX Workflow2-8ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Project SchematicBy completing the operation from the previous page,notice the linkage here is only at
12、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.).Workbench and CFX Workflow2-9ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Project S
13、chematicBy 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.Workbench and CFX Workflow2-10ANSYS,Inc.Proprietary 2010
14、 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Project SchematicA 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.Th
15、ese selections will vary depending on which cell in a particular system you highlight.Workbench and CFX Workflow2-11ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualThe Project SchematicIdentifying cell states:Unfulfilled:missing upstream data.Attentio
16、n required:may need to correct this or upstream cells.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.I
17、nput 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 progressWorkbench and CFX Workflow2-12ANSY
18、S,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualOptional Workbench WindowsThe“View”menu(and RMB)allows additional information to be displayed in the Workbench environment.Below,the geometry is highlighted and the properties are displayed.Workbench and CFX
19、 Workflow2-13ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualWorkbench File ManagementWorkbench 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 m
20、anually 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
21、 of subdirectories will be created in the project directory.Workbench and CFX Workflow2-14ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualWorkbench File ManagementFrom the Workbench“View”menu activate the“Files”option to display a window containing fi
22、le details and locations.Workbench and CFX Workflow2-15ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualWorkbench File ManagementArchive:quickly generates a single compressed file containing all pertinent files.File is zip format and can be opened usin
23、g the“Restore Archive.”utility in WB2 or any unzip program.Several options are available when archiving systems as shown here.Workbench and CFX Workflow2-16ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualCFX can be launched from:The CFX 13.0 LauncherS
24、tart All Programs ANSYS 13.0 Fluid Dynamics CFX ANSYS CFX 13.0Within ANSYS WorkbenchDrag Analysis Systems Fluid Flow(CFX)or Component Systems CFX onto the Project SchematicThe command lineMore common under Linux/UnixStarting CFXWorkbench and CFX Workflow2-17ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All r
25、ights reserved.Release 13.0December 2010Training ManualTry It Yourself!Now launch Workbench on your training machineStart All Programs ANSYS 13.0 ANSYS WorkbenchExpand the Component Systems toolbox and add a CFX system to the Project SchematicDrag a second CFX system onto the Project Schematic,dropp
26、ing it onto the Solution cell of the firstThe first Solution is used as the starting point for the second Solution,e.g.a steady-state run followed by a transient runRight-click on the Setup cell in the first system and select EditThis will open CFX-PreYou can leave CFX-Pre open for nowWorkbench and
27、CFX Workflow2-18ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualRunning Standalone vs WorkbenchRunning CFX inside the Workbench environment:Simplifies the workflowGeometry,Mesh,Setup,Solution and Results steps shown on the Project SchematicEasier to u
28、pdate a project when a change is madeE.g.after a geometry change a single click updates the Mesh,Setup,Solution and ResultsAllows you to easily link to other Analysis Systems and ComponentsIs necessary when performing DesignExploration(parametric studies)Workbench and CFX Workflow2-19ANSYS,Inc.Propr
29、ietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualRunning Standalone vs WorkbenchRunning CFX standalone:Less computational overheadProduces a simpler directory/file structure on diskBut no direct association between geometry,mesh,setup and results filesEach component
30、must be updatedNo built-in automation for parametric studiesLess automationE.g mesh needs to be manually imported into CFX-PreWorkbench and CFX Workflow2-20ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualBefore starting a project you should set the wo
31、rking directoryAvoids files getting saved to Documents and SettingsFrom the CFX Launcher specify the Working Directory before starting Pre/Solver/PostIn Workbench Save the project before adding anything to the Project SchematicSetting the Working DirectoryWorkbench and CFX Workflow2-21ANSYS,Inc.Prop
32、rietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualCFD-PostCFX-PreCFX-SolverSetup/CFX-PreGeneral mode is the general purpose mode for defining all types of CFD simulationsWhen running in Workbench CFX-Pre will automatically start in this modeTurbomachinery mode simpli
33、fies the setup for rotating machinesQuick Setup mode greatly simplifies the physics setup for a simulation by assuming many default parameters and basic physicsLibrary Template mode provides a predefined setup for complex physicsBoiling,cavitation,coal&oil combustion,In WB Edit the Setup entry to st
34、art CFX-PreFour types of simulation are availableWorkbench and CFX Workflow2-22ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualOutline TreeViewer WindowMain MenuMessage WindowViewer ToolbarCFX-Pre WorkspaceMain ToolbarCFD-PostCFX-PreCFX-SolverWorkbenc
35、h and CFX Workflow2-23ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualTo define your simulation,generally follow the Outline tree from top to bottomDouble-click entries in the Outline tree to editRight-click on entries in the Outline tree to insert ne
36、w items or perform operationsSome items are optional,depending on your simulationCFX-Pre WorkflowMesh and region controlImport,delete,transform meshesView&edit mesh regionsLibrary objectsOptional.Referenced elsewhere in the setupImport Materials&Reactions from libraries providedInsert Expressions,AV
37、s,Fortran routinesSolver settingsConvergence controlsResults files controlsNumerical schemesMonitor pointsInitialisationStarting point for the solver in the absence of a previous solutionBoundary ConditionsDomainRight-click to insert boundary conditionsAnalysis TypeSteady State/TransientCFD-PostCFX-
38、PreCFX-SolverWorkbench and CFX Workflow2-24ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualUseful ShortcutsViewer ToolbarRotatePan+CTRLZoom+SHIFTBox ZoomRotate(on screen plane)+CTRL(Hold while tracing a box)Workbench and CFX Workflow2-25ANSYS,Inc.Prop
39、rietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training Manual1.Load MeshRight-click on MeshCFX-Pre Workflow ExampleA 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.CFD-P
40、ostCFX-PreCFX-SolverWorkbench and CFX Workflow2-26ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training Manual2.Define Domain PropertiesRight-click on the domain and pick EditOr right-click on Flow Analysis 1 to insert a new domainCFX-Pre Workflow ExampleWhen edi
41、ting an item a new tab panel opens containing the properties.You can switch between open tabs.Sub-tabs contain various different propertiesComplete the required fields on each sub-tab to define the domainOptional fields are activated by enabling a check boxCFD-PostCFX-PreCFX-SolverWorkbench and CFX
42、Workflow2-27ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training Manual3.Create Boundary Conditions for a DomainRight-click on the domain to insert BCsCFX-Pre Workflow ExampleAfter completing the boundary condition,it appears in the Outline tree below its domain
43、CFD-PostCFX-PreCFX-SolverWorkbench and CFX Workflow2-28ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training Manual4.Define Solver SettingsRight-click on Solver Control and pick EditCFX-Pre Workflow ExampleAll solver controls have default valuesCFD-PostCFX-PreCFX
44、SolverWorkbench and CFX Workflow2-29ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualCFX-Pre Workflow ExampleWhen running in Workbench:Just close CFX-PreFiles are automatically savedCheck mark shown next to SetupRight-click on Solution and select Edit
45、 or RefreshRefresh runs the solver in the background with default settingsEdit opens the Solver ManagerWhen running standalone:You should manually save the CFX-Pre databaseRight-click on Simulation and select Start Solver Define Run opens the Solver ManagerRun Solver runs in the background with defa
46、ult settingsRun Solver and Monitor run with default settings and monitors in the Solver Manager5.Start SolverRight-click to solveCFD-PostCFX-PreCFX-SolverWorkbench and CFX Workflow2-30ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualDefining a RunCFX-P
47、re will have written a.def file and this is automatically selected as the Solver Input FileCan enable Initial Values check box if you have a previous solution to use as the starting pointParallel settings are defined hereAllows you to divide a large CFD problem so that it can run on more than one pr
48、ocessor/machineStart Run!CFD-PostCFX-PreCFX-SolverCFX-Solver ManagerWorkbench and CFX Workflow2-31ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualCFX-Solver ManagerSolution MonitorsMonitor the convergence of the solverPlot residuals,imbalances,monitor
49、 points,forces,fluxes Text output from the SolverLots of info in hereCan also view the.out file in a text editorWorkspaceCreate new monitorsCFD-PostCFX-PreCFX-SolverWorkbench and CFX Workflow2-32ANSYS,Inc.Proprietary 2010 ANSYS,Inc.All rights reserved.Release 13.0December 2010Training ManualCFX-Solv
50、er ManagerWhen the Solver finishes,start CFD-Post:When running in Workbench:Just close the Solver ManagerCheck mark shown next to SolutionRight-click on Results and select Edit to start CFD-PostWhen running standalone:Enable Post-Process Results on the solver finished notification windowOr select th






