You are on page 1of 4

Draft

Draft

Chapter 1. Introduction to the CFX Tutorials


The CFX tutorials are designed to introduce general techniques used in CFX and to provide tips on advanced modeling. The initial tutorials introduce general principles used in CFX, including setting up the physical models, running CFX-Solver and visualizing the results in CFD-Post; the later tutorials highlight specialized features of CFX.

Preparing a Working Directory


ANSYS CFX uses a working directory as the default location for loading and saving les for a particular session or project. Before you run a tutorial, you must create a working directory. If you plan to run through the whole tutorial, copy the les that are listed near the beginning of the tutorial to your working directory. These les are located in <CFXROOT>/examples and <CFXROOT>/etc/model-templates, where <CFXROOT> is the installation directory for ANSYS CFX. By working with copies of the example les in a new directory, you prevent accidental changes to any of the les that came with your installation. If you plan to run the provided tutorial session le so that you can immediately run the simulation in CFX-Solver, there is no need to copy any les. If you were directed here at some point during a tutorial, return to that location.

Setting the Working Directory and Starting ANSYS CFX


Before you start CFX-Pre, CFX-Solver Manager, or CFD-Post, set the working directory. The procedure for setting the working directory and starting ANSYS CFX depends on how you run ANSYS CFX: Workbench 1. 2. Start ANSYS Workbench. In Microsoft Windows, select Start > All Programs > ANSYS 12.0 > ANSYS Workbench. From the tool bar, click Save As and use the Save in eld to set the directory to which you want to save the project le. This directory will be referred to as the working directory. Set the project name in the File name eld and click Save. Right-click on the Setup cell and select Edit to launch CFX-Pre. If you were directed here at some point during a tutorial, return to that location.

3. 4.

Standalone 1. Start the ANSYS CFX Launcher. You can start the ANSYS CFX Launcher in any of the following ways: On Windows: 2. 3. From the Start menu, go to All Programs > ANSYS 12.0 > CFX > ANSYS CFX 12.0. In a DOS window that has its path set up correctly to run CFX, enter cfx5 (otherwise, you will need to type the full pathname of the cfx5 command).

On UNIX, enter cfx5 in a terminal window that has its path set up to run CFX.

Select the Working Directory on the ANSYS CFX Launcher window. Click the CFX-Pre 12.0 button.

Release 12.0 - 2009 ANSYS Canada Ltd. All rights reserved. Contains proprietary and condential information of ANSYS, Inc. and its subsidiaries and afliates.

23

Draft

Playing a Tutorial Session File

Draft

4.

If you were directed here at some point during a tutorial, return to that location.

Playing a Tutorial Session File


Every tutorial involves instructions for setting up a simulation in CFX-Pre. If you want to skip past those instructions and have CFX-Pre set up the simulation automatically, you can run the tutorial session le specied in the tutorial1.

Note
Session les and tutorial session les can be played only in ANSYS CFX standalone, not in ANSYS Workbench To play a tutorial session le: 1. 2. 3. If required, launch CFX-Pre. Select Session > Play Tutorial. Select the required tutorial session le (.pre) for the tutorial. This le is located in <CFXROOT>/examples and <CFXROOT>/etc/model-templates, where <CFXROOT> is the installation directory for ANSYS CFX. Click Open. If an Information dialog box appears, click OK. CFX-Pre writes a CFX-Solver input le (lename.def) in the directory set as your Working Directory. This le is written in the background while CFX-Pre remains open. On the CFX-Pre menu bar, select File > Quit. On the ANSYS CFX Launcher click the CFX-Solver Manager 12. button. On the CFX-Solver Manager menu bar, select File > Dene Run. The Dene Run dialog box appears. On the Dene Run dialog box, click the browse button choose the filename.def le and click Open. . In the CFX-Solver File dialog box that appears,

4. 5. 6. 7. 8. 9.

10. If you were directed here at some point during a tutorial, return to that location.

Changing the Display Colors


If viewing objects in ANSYS CFX becomes difcult due to contrast with the background, you can change the colors for improved viewing. The color options are set in different places, depending on how you run CFX: 1. Select Edit > Options. The Options dialog box appears. The Options dialog box appears. 2. 3. 4. Adjust the color settings under CFX-Pre > Graphics Style (for CFX-Pre) or CFD-Post > Viewer (for CFD-Post). Click OK. If you were directed here at some point during a tutorial, return to that location.

Editor Buttons
The ANSYS CFX interface uses editors to enter the data required to set up and post-process a simulation. The editors have standard buttons, which are described next: Apply applies the information contained within all the tabs of an editor.

Some tutorials have more than one tutorial session le; each covers a particular set of CFX-Pre setup instructions.

24

Release 12.0 - 2009 ANSYS Canada Ltd. All rights reserved. Contains proprietary and condential information of ANSYS, Inc. and its subsidiaries and afliates.

Draft

Using Help

Draft

OK is the same as Apply, except that the editor automatically closes. Cancel and Close both close the editor without applying or saving any changes. Reset returns the settings for the object to those stored in the database for all the tabs. The settings are stored in the database each time the Apply button is clicked. Defaults restores the system default settings for all the tabs of the edited object.

Using Help
To invoke the help browser, select Help > Master Contents. You may also try using context-sensitive help. Context-sensitive help is provided for many of the object editors and other parts of the interface. To invoke the context-sensitive help for a particular editor or other feature, ensure that the feature is active, place the mouse pointer over it, then press F1. Not every area of the interface supports context-sensitive help. If context-sensitive help is not available for the feature of interest, select Help > Master Contents and try using the search or index features in the help browser.

Release 12.0 - 2009 ANSYS Canada Ltd. All rights reserved. Contains proprietary and condential information of ANSYS, Inc. and its subsidiaries and afliates.

25

Release 12.0 - 2009 ANSYS Canada Ltd. All rights reserved. Contains proprietary and condential information of ANSYS, Inc. and its subsidiaries and afliates.

You might also like