149
ANSYS CFX-Mesh Tutorials ANSYS Workbench Release 9.0 November 2004 ANSYS, Inc. is a UL registered ISO 9001: 2000 Company

Mesh , Rice University

  • Upload
    clauddu

  • View
    107

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Mesh , Rice University

ANSYS CFX-MeshTutorials

ANSYS Workbench Release 9.0

November 2004

ANSYS, Inc. is aUL registeredISO 9001: 2000Company

Page 2: Mesh , Rice University
Page 3: Mesh , Rice University

Table of ContentsIntroduction to the CFX-Mesh Tutorials .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1. List of Features ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42. Legal Notices ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Tutorial 1: Static Mixer ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91. Introduction to CFX-Mesh ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Tutorial 2: Static Mixer (Refined Mesh) ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271. Modifying the Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272. Geometry Modification ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303. Updating the Geometry in CFX-Mesh ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Tutorial 3: Process Injection Mixing Pipe ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Tutorial 4: Circular Vent ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Tutorial 5: Blunt Body ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

Tutorial 6: Butterfly Valve ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Tutorial 7: Catalytic Converter .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 711. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

Tutorial 8: Annulus ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 812. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Tutorial 9: Mixing Tube ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 871. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Tutorial 10: Heating Coil .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 931. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 932. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

Tutorial 11: Airlift Reactor ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1031. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1042. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

Tutorial 12: Room with Air Conditioning ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1131. Geometry Creation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1132. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

Tutorial 13: Can Combustor ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1211. Geometry Import .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1222. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

Tutorial 14: CAD Cleanup and Meshing ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1271. Mesh Generation ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 4: Mesh , Rice University

vi

Page 5: Mesh , Rice University

Introduction to the CFX-Mesh TutorialsThe CFX-Mesh Tutorials are a set of tutorial examples which demonstrate how to set up the geometry and meshfor a variety of different problems. The tutorials cover most of the meshing functionality available in CFX-Meshtogether with some of the most commonly-used geometry features from DesignModeler. Each example resultsin the creation of CFX-5 GTM file, which can be imported directly into CFX-Pre. You will find instructions for settingup CFD simulations using these meshes in the CFX-5 Tutorials which are part of the main on-line help for CFX-5.

A few of these tutorials require the use of Parasolid or DesignModeler files as a starting point for the geometrycreation. Where such a file is required, the introduction to the tutorial explains this. If you have not already obtainedthese files, they should be readily available from the CFX Community Website: go to http://www-waterloo.an-sys.com/cfxcommunity. This site is available to all registered CFX users. If you have not already got a usernameand password, go to http://www-waterloo.ansys.com/cfx/community/apply.htm to apply.

These tutorial instructions are based on ANSYS Workbench 9.0. Some of the tutorials will not work in earlierversions of ANSYS Workbench since they rely on new features, and other tutorials may be hard to follow. If youstill have ANSYS Workbench 8.1 then you can find tutorial instructions explicitly for this version on the CFXCommunity Website using the following link: http://www-waterloo.ansys.com/cfxcommunity/technotes/docu-mentation/CFX-Mesh_8.1/index.html.

If you want to print out the tutorials, then we recommend that you follow the link to the CFX Community Websiteto download a package in pdf format, and use this for printing.

Note that if you create the mesh by following the instructions given in these examples, you may not be able toset up the physics in CFX-5 by using the CFX-Pre session file without getting errors which you need to fix up afterthe session file has finished playing. You can always follow the CFX-5 tutorial instructions manually instead. Thisis because the CFX-Pre session files are set up to use the mesh files provided with CFX-5, and some face and bodyidentifications are different to the ones which you would get by creating meshes by following these instructions.In most cases, you can use the CFX-Pre session file to set up the physics, and then manually apply the locationof the domain and any sub-domains if required. In addition, in the Combustor tutorial, you will also need to setup the “Vane Surfaces” location manually, and in the Catalytic Converter tutorial, you may need to delete andrecreate the two Domain Interfaces manually.

Can I Skip the Geometry Creation?

If you are only interested in the meshing parts of the tutorials and want to skip all of the geometry creation, thenyou should follow the link to the CFX Community Website above to download the DesignModeler .agdb filesfor the tutorials of interest. You can then use these for each tutorial as follows:

1. Open ANSYS Workbench, and create a new empty project. Save the project with the name suggestedby the tutorial.

2.At the left side of the Project Page, click on Browse (under Link to Geometry File). Select the ap-propriate .agdb in the file browser which opens up.

3. In the left-hand column, near the top, click on Generate CFX Mesh. Then continue with the tutorial fromthe beginning of the Mesh Generation section, ignoring the instructions on opening CFX-Mesh.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 6: Mesh , Rice University

What if I Don't Have DesignModeler?

If you don't have DesignModeler or don't have a license to run DesignModeler, then you can still work throughthe meshing parts of these tutorials as follows:

1. Follow the link to the CFX Community Website above to download the Parasolid <name>Geom.x_tfiles for the tutorials of interest.

2. If you have a license to do direct Parasolid import, then these files can be imported into CFX-Mesh directly,following the instructions below.

3. If you don't have a license for direct Parasolid import but do have a license to import files from anotherCAD package, then import the Parasolid files into that CAD package, and then use the resulting CAD filesin CFX-Mesh by following the instructions below.

4. If your CAD package does not support the import of Parasolid files either, please contact your supportrepresentative to obtain a set of geometry files that you can import.

The instructions for importing the relevant CAD files (Parasolid or otherwise) into CFX-Mesh are as follows:

1. Open ANSYS Workbench, and create a new empty project. Save the project with the name suggestedby the tutorial.

2.At the left side of the Project Page, click on Browse (under Link to Geometry File). Select the ap-propriate CAD filename in the file browser which opens up.

3. In the left-hand column, near the top, click on Generate CFX Mesh. Then continue with the tutorial fromthe beginning of the Mesh Generation section, ignoring the instructions on opening CFX-Mesh.

If you import the Parasolid files into your CAD package and then import the resulting CAD file into CFX-Meshyou may occasionally find that whilst the geometry still looks the same afterwards, certain features may changesubtly due to differences in the geometry representation in your CAD package.

Specific tutorials will need minor adaptations as a result of importing Parasolid files (or other CAD files) directly:

• Tutorial 2: Static Mixer (Refined Mesh) - You will not to be able to continue with the tutorial beyond thepoint at which you write the file StaticMixerRefMesh.gtm as this relies on being able to modify thegeometry in DesignModeler. It is recommended that you read through the section called “Updating theGeometry in CFX-Mesh” if you want to see how to update your geometry in CFX-Mesh, as this is notcovered by any other tutorial.

• Tutorial 6: Butterfly Valve - The units after you import the Parasolid file are always meters, but the tutorialinstructions expect the geometry to be in millimeters. You will need to enter all given values in the correctunits of meters i.e. when the tutorial asks you to set a Default Body Spacing of 4.5 mm, you must enter0.0045 m.

• Tutorial 7: Catalytic Converter - The units after you import the Parasolid file are always meters, but thetutorial instructions expect the geometry to be in centimeters. You will need to enter all given values inthe correct units of meters i.e. when the tutorial asks you to set a Default Body Spacing of 1.0 cm, youmust enter 0.01 m.

• Tutorial 8: Annulus - The units after you import the Parasolid file are always meters, but the tutorial instruc-tions expect the geometry to be in feet. You will need to enter all given values in the correct units ofmeters i.e. when the tutorial asks you to set a Default Body Spacing of 0.02 ft, you must enter 0.006 m.Conversions for the other values are given in the tutorial instructions.

Introduction to the CFX-Mesh Tutorials

CFX-Mesh Tutorials . . © SAS IP, Inc.2

Page 7: Mesh , Rice University

• Tutorial 9: Mixing Tube - The units after you import the Parasolid file are always meters, but the tutorialinstructions expect the geometry to be in millimeters. You will need to enter all given values in the correctunits of meters i.e. when the tutorial asks you to set a Default Body Spacing of 0.6 mm, you must enter0.0006 m.

• Tutorial 10: Heating Coil

– The DesignModeler geometry puts both solid bodies into one part and creates shared faces betweenthem, so that CFX-Mesh can create one mesh containing both bodies. The result of the direct Parasolidimport will be to have two bodies each in a separate part, so CFX-Mesh will create one file Heating-CoilMesh.gtm which contains two separate meshes, and hence two separate assemblies in CFX-Pre.This file can be used in CFX-Pre as usual; an example of how to deal with having multiple assembliesin CFX-Pre is detailed in the CFX-5 example “Tutorial 10: Flow in a Catalytic Converter” (although youmust use Fluid-Solid Interfaces for this example since you are connecting a fluid domain to a soliddomain).

– You are advised that if you wish to work through the CFX-5 example after creating your mesh, youshould use the CFX-Pre Mesh file HeatingCoilMesh.gtm provided by your CFX-5 installation, sincethe tutorial instructions were written expecting one mesh containing both bodies.

– In addition, since you have two separate parts in the CFX-Mesh session, you should NOT enable SurfaceProximity as suggested by the tutorial instructions: if surface proximity is enabled on a multi-partgeometry, then the mesher sees the faces in each part as being very close together but not coincident,and so attempts to refine the mesh in this region far more than is required for this tutorial.

– The tutorial instructions ask you to suppress one of the Bodies contained in Part 3. Instead, you shouldclick on the name of each part in turn, and see which one corresponds to the coil and which one tothe container. Then right-click over the part which corresponds to the coil, and select Suppress. Later,in order to see which 2D Regions you have selected, suppress the other part in the same way. After-wards, unsuppress both parts by right-clicking on their names and selecting Unsuppress.

• Tutorial 11: Airlift Reactor

– The units after you import the Parasolid file are always meters, but the tutorial instructions expect thegeometry to be in centimeters. You will need to enter all given values in the correct units of metersi.e. when the tutorial asks you to set a Default Body Spacing of 1.0 cm, you must enter 0.01 m.

– The DesignModeler geometry puts both solid bodies into one part and creates shared faces betweenthem, so that CFX-Mesh can create one mesh containing both bodies. The result of the direct Parasolidimport will be to have two bodies each in a separate part, so CFX-Mesh will create one file Bubble-ColumnMesh.gtm which contains two separate meshes, and hence two separate assemblies in CFX-Pre. This file can be used in CFX-Pre as usual; an example of how to deal with having multiple assembliesin CFX-Pre is detailed in the CFX-5 example “Tutorial 10: Flow in a Catalytic Converter”.

– You are advised that if you wish to work through the CFX-5 example after creating your mesh, youshould use the CFX-Pre Mesh file BubbleColumnMesh.gtm provided by your CFX-5 installation, sincethe tutorial instructions were written expecting one mesh containing both bodies.

– When you create the Composite 2D Region DraftTube, you may find that the selection rectanglesappear in the order (from left to right): outside of the column, draft tube face (inside), draft tube face(outside), face from symmetry plane, instead of the order listed in the tutorial instructions. You cantell which order they appear in, since the selection rectangle corresponding to the draft tube (outside)will be the same color as the outside of the column. This is the one which you require.

• Tutorial 13: Can Combustor

3CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 8: Mesh , Rice University

The units after you import the Parasolid file are always meters, but the tutorial instructions expect thegeometry to be in centimeters. You will need to enter all given values in the correct units of metersi.e. when the tutorial asks you to set a Default Body Spacing of 1.6 cm, you must enter 0.016 m.

– The DesignModeler geometry puts all five solid bodies into one part and creates shared faces betweenthem, so that CFX-Mesh can create one mesh containing all of the bodies. The result of the directParasolid import will be to have five bodies each in a separate part, so CFX-Mesh will create one fileCombustorMesh.gtm which contains five separate meshes, and hence five separate assemblies inCFX-Pre. This file can be used in CFX-Pre as usual; an example of how to deal with having multiple as-semblies in CFX-Pre is detailed in the CFX-5 example “Tutorial 10: Flow in a Catalytic Converter”.

– You are advised that if you wish to work through the CFX-5 example after creating your mesh, youshould use the CFX-Pre Mesh file CombustorMesh.gtm provided by your CFX-5 installation, sincethe tutorial instructions were written expecting one mesh containing all of the bodies.

1. List of Features

The following table shows you which geometry features are covered in which tutorial.

1413121110987654321

Sketching Mode

••••••••••••Draw Toolbox

•••••Modify Toolbox

••••••Dimensions Toolbox

••Constraints Toolbox

•••••Settings Toolbox

3D Features

••••••••••••Extrude

•••••Revolve

••Sweep

•Skin/Loft

Other Features

••Parasolid Import

•••Multiple Bodies

••••Freeze/Unfreeze/Add Frozena

•••Body Operationsb

••••Plane Creation from Facesc

•••Imprint Facesd

•Enclosure

aFreeze/Unfreeze/Add Frozen: for multiple bodies and for creating bodies which enclose another bodybBody Operations: for copying, moving, and subtracting bodies from other bodiescPlane Creation from Faces: for 3D Feature operations on existing surfacesdImprint Faces: for Boundary Condition Surfaces

The following table shows you which meshing features are covered in which tutorial.

Introduction to the CFX-Mesh Tutorials

CFX-Mesh Tutorials . . © SAS IP, Inc.4

Page 9: Mesh , Rice University

1413121110987654321

••••••••••••••2D Region Groups

•••••Face Spacinga

••Curvature-Sensitive Meshing

•Controlsb

•Periodicity

••••••••••••Inflationc

•Stretch

•••Proximityd

••••••••••Preview Groupse

•Extruded 2D Meshing

Parallel Volume Meshing

•Geometry Update

•CAD Check

•Virtual Faces and Edges

•Short Edge Removal

aFace Spacing: for refining the mesh on a particular face or facesbControls: for refining the mesh near a point, line or trianglecInflation: for producing prism elements along a boundary in order to resolve the boundary betterdProximity: for refining the mesh when two faces or two edges are close but not joinedePreview Groups: for previewing part or all of the surface mesh

2. Legal Notices

Copyright and Trademark Information

Copyright © 2004 SAS IP, Inc. All rights reserved. Unauthorized use, distribution or duplication is prohibited.

ANSYS, DesignSpace, CFX, DesignModeler, DesignXplorer, ANSYS Workbench environment, AI*Environment,CADOE and any and all ANSYS, Inc. product names referenced on any media, manual or the like, are registeredtrademarks or trademarks of subsidiaries of ANSYS, Inc. located in the United States or other countries. ICEM CFDis a trademark licensed by ANSYS, Inc. All other trademarks and registered trademarks are property of their re-spective owners.

ANSYS, Inc. is a UL registered ISO 9001: 2000 Company.

ANSYS Inc. products may contain U.S. Patent No. 6,055,541.

Microsoft, Windows, Windows 2000 and Windows XP are registered trademarks of Microsoft Corporation.Inventor and Mechanical Desktop are registered trademarks of Autodesk, Inc.SolidWorks is a registered trademark of SolidWorks Corporation.Pro/ENGINEER is a registered trademark of Parametric Technology Corporation.Unigraphics, Solid Edge and Parasolid are registered trademarks of Electronic Data Systems Corporation (EDS).ACIS and ACIS Geometric Modeler are registered trademarks of Spatial Technology, Inc.

FLEXlm License Manager is a trademark of Macrovision Corporation.

This product contains the following licensed software:

5CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Legal Notices

Page 10: Mesh , Rice University

PCGLSS: Linear Equations Solver © Copyright 1992-1995CA&SI, 2004 S.Wright Street, Urbana, IL 61821.Copyright © 1992-1995 Computational Applications and System Integration Inc. All rights Reserved.Ph. 217.244.7875/Fax 217.244.7874CA&SI DOES NOT GUARANTEE THE CORRECTNESS OR USEFULNESS OF THE RESULTS OBTAINED USING PCGLSS.CA&SI IS NOT LIABLE FOR ANY CONCLUSIONS OR ACTIONS BASED ON THE RESULTS. IT IS THE RESPONSIBILITYOF THE USER TO CONFIRM THE ACCURACY AND USEFULNESS OF THE RESULTS.Computational Applications and System Integration Inc. All Rights Reserved

Tcl/Tk/BLT: The Tcl/Tk scripting and GUI system was developed by John Ousterhout at the University of Californiaat Berkeley, and is now being maintained by the Tcl/Tk group at Sun. The BLT extensions to Tcl/Tk were developedby George Howlett of Lucent Technologies and others, and provide table, graph, and other utilities.

Tk and Tcl is copyrighted by the Regents of the University of California, Sun Microsystems, Inc., Scriptics Corpor-ation, and other parties. The authors hereby grant permission to use, copy, modify, distribute, and license thissoftware and its documentation for any purpose, provided that existing copyright notices are retained in allcopies and that this notice is included verbatim in any distributions. No written agreement, license, or royaltyfee is required for any of the authorized uses. Modifications to this software may be copyrighted by their authorsand need not follow the licensing terms described here, provided that the new terms are clearly indicated onthe first page of each file where they apply. IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TOANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THEUSE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVEBEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIMANY WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,FITNESSFOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN “AS IS” BASIS,AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,ENHANCEMENTS, OR MODIFICATIONS

TIFF: Copyright (c) 1988-1997 Sam Leffler, Copyright (c) 1991-1997 Silicon Graphics, Inc. - Permission to use, copy,modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee,provided that (i) the above copyright notices and this permission notice appear in all copies of the software andrelated documentation, and (ii) the names of Sam Leffler and Silicon Graphics may not be used in any advertisingor publicity relating to the software without the specific, prior written permission of Sam Leffler and SiliconGraphics.

libpng version 1.0.8 - July 24, 2000 Copyright (c) 1998-2000 Glenn Randers-Pehrson Copyright (c) 1996, 1997 Andreas Dilger Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.

This software is based in part on the work of the Independent JPEG Group.

PVM version 3.4: Parallel Virtual Machine System, University of Tennessee, Knoxville TN., Oak Ridge NationalLaboratory, Oak Ridge TN., Emory University, Atlanta GA., Authors: J. J. Dongarra, G. E. Fagg, G. A. Geist, J. A. Kohl,R. J. Manchek, P. Mucci, P. M. Papadopoulos, S. L. Scott, and V. S. Sunderam, C) 1997 All Rights Reserved - NOTICE- Permission to use, copy, modify, and distribute this software and its documentation for any purpose and withoutfee is hereby granted provided that the above copyright notice appear in all copies and that both the copyrightnotice and this permission notice appear in supporting documentation.

This software is provided with a standard distribution of Perl v5.8.0. Additional modules are included under theterms of the Perl Artistic License. For further information, see http://www.perl.com. Per v5.8.0 Copyright 1987-2002 Larry Wall.

ACIS® Geometric Modeler and ACIS InterOp from Spatial Technology, Inc.

Introduction to the CFX-Mesh Tutorials

CFX-Mesh Tutorials . . © SAS IP, Inc.6

Page 11: Mesh , Rice University

Parasolid and Parasolid IGES from EDS.Parasolid Bodyshop from Unigraphics Solutions2D DCM from D-Cubed Ltd.GHS3D meshing technology by P. L. George, INRIA, France.Visual MainWin®Copyright 2002 Mainsoft Corporation. All rights reserved. Mainsoft, Mainwin, the software porting company,e-porting, the e-porting company, and Visual MainWin are trademarks or registered trademarks of MainsoftCorporation in the United States and/or foreign countries.ZLIB 1.1.3 Copyright (C) 1995-1998 Jean-loup Gailly and Mark AdlerMeschach Library Copyright (C) 1993 David E. Steward & Zbigniew Leyk, all rights reserved.DesignSpace contains Simulation Wizard, Patent Pending.

Disclaimer Notice

Information in this Information System is subject to change without notice. Complying with all applicablecopyright and exporting laws is the responsibility of the user. No part of this system may be reproduced ortransmitted in any form or by any means, electronic or mechanical, without prior written permission of ANSYS,Inc.

This document has been reviewed and approved in accordance with ANSYS, Inc. Documentation Review andApproval Procedures.

This ANSYS, Inc. software product and program documentation are furnished by ANSYS, Inc. under an ANSYSsoftware license agreement that contains provisions concerning non-disclosure, copying, length and nature ofuse, warranties, disclaimers and remedies, and other provisions. The Program and Documentation may be usedor copied only in accordance with the terms of that license agreement.

THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE SECRETS OF SAS IP, INC. USE, DISCLOSURE,OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SAS IP, INC.

Warning: This computer program is protected by copyright law and international treaties. Unauthorized repro-duction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, andwill be prosecuted to the maximum extent possible under the law.

The above legal notices for Third Party Software are required to be reproduced by the third party licensors.

U.S. GOVERNMENT RIGHTS

Use, duplication, or disclosure by the U.S. Government is subject to restrictions set forth in the ANSYS, Inc. licenseagreement and as provided in DFARS 227.7202-1(a) and 227.7202-3(a) (1995), DFARS 252.227-7013(c)(1)(ii) (OCT1988), FAR 12.212(a) (1995), FAR 52.227-19, or FAR 52.227-14 (ALT III), as applicable.

7CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Legal Notices

Page 12: Mesh , Rice University

8

Page 13: Mesh , Rice University

Tutorial 1: Static Mixer

This example shows geometry creation and meshing for a simple static mixer. It assumes that you have neverused ANSYS Workbench before and gives detailed instructions on every step needed to construct the example.The following geometry and meshing features are illustrated:

• basic geometry creation including Revolve and Extrude operations; and

• basic meshing operations.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials. However, even if you are not going to work through the geometry creation section, it maybe worth reading through it if you have not used ANSYS Workbench before, since it contains some backgroundinformation which is also applicable to CFX-Mesh.

1. Introduction to CFX-Mesh

In order to create a mesh using CFX-Mesh, the steps are as follows.

1. Create the Geometry.

2. Define Regions.

3. Define the Mesh Attributes.

4. Create the Surface Mesh (this is optional).

5. Create the Volume Mesh.

You can create the geometry either in ANSYS Workbench or by importing it from a CAD package. The geometrycreation tool in ANSYS Workbench is DesignModeler, a parametric feature-based solid modeler. Most of the CFX-Mesh Tutorial Examples include instructions on creating geometry in DesignModeler, although for full document-ation you should consult the DesignModeler Help.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 14: Mesh , Rice University

The remaining four steps are all carried out within CFX-Mesh. The creation of the surface mesh is optional; if itis not created explicitly, then it will be generated as part of the creation of the volume mesh.

ANSYS Workbench helps you to manage all of the files created by DesignModeler and CFX-Mesh by the use ofthe Project Page. Your first step after opening ANSYS Workbench will be to create a new project, and by returningto the Project Page (which is available at any point during your ANSYS Workbench session) you can switchbetween DesignModeler and CFX-Mesh, add new files to the project, and so on. We recommend that you createeach new project in a new directory so that all the files for each project are kept separate. You can also then runthe CFX-5 software from the same directory after generating the mesh.

2. Geometry Creation

Creating the Project

The first step for any new case is to create the project.

1. Open ANSYS Workbench. On Windows, this can be done by going to the Start Menu>Programs sectionand selecting ANSYS 9.0>ANSYS Workbench. On UNIX, this can be done by running /an-sys_inc/v90/aisol/startpage if your installation used the default settings. Otherwise, you should runinstall_dir/ansys_inc/v90/aisol/startpage.

2. Start a new project from scratch by selecting Empty Project from the New section of the Start windowin the middle of the ANSYS Workbench window. (Depending on which modules are available, you mayfind that you need to scroll down to see Empty Project icon.) The Project Page will appear, containingUnsaved Project.

3. The next setting is to tell ANSYS Workbench where you want your project files to be created. SelectFile>Save, and save the project as StaticMixer.wbdb in a new directory of your choice. This directorywill be the default location for all of the project files which you will create during the tutorial.

You can then open DesignModeler in order to start creating the geometry.

1.At the left side of the Project Page, click on New geometry (under Create DesignModeler Geo-metry).

2. In the popup window, select Meter as the desired length unit.

Overview of DesignModeler

Once DesignModeler opens up, you will be able to see four main areas to the window.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.10

Page 15: Mesh , Rice University

• The Model View displays the geometry. The geometry can be manipulated using the mouse buttons. Forexample, holding down the middle mouse button and moving the mouse over the Model View will rotatethe geometry. Clicking the right mouse button over the Model View will bring up a menu which includesvarious options for manipulating the model as well as other options which are particular to what geometryoperation you are performing or what objects are selected. To put the model into a particular view, youcan also use the Triad which is displayed at the bottom right corner of the Model View: click on one of theaxes or on the cyan-colored ball to move the model. You can zoom out to view the entire model by right-clicking over the Model View and selecting Zoom to Fit. You can zoom in to a selected area by clickingwith the right mouse button and dragging the mouse over the required area whilst holding down thebutton.

• The Details View shows the details for the selected object. No object is selected when DesignModeler isfirst opened, so it is blank in the picture above. It can be used to edit the details (including the name ofthe object) by simply typing over the information to be updated.

• The Tree View shows all of the features of the geometry, and their states. When DesignModeler is firstopened, only the three default planes (XYPlane, ZXPlane, and YZPlane) are present, together with anentry which shows you that there are currently 0 Parts, 0 Bodies. As you perform geometry creation op-erations, the structure of the tree will expand to show these. The geometry operations such as Extrudeand Revolve are applied from the top of the tree downwards. For example, in the tree shown below, Ex-trude2 was the first operation, followed by Revolve2.

11CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Geometry Creation

Page 16: Mesh , Rice University

The symbols next to the operations and features indicate their status:

MeaningSymbol

Everything is OK.

The item is suppressed i.e. not taking any effect (it can be unsuppressed later).

Something is wrong with the item e.g. you tried to generate it before you had fully specified it, or youmodified one of the features above it which makes the specifications of the item invalid. (You can seethe error messages by right-clicking on the object and selecting Show Errors and Warnings.)

The item needs to be generated or re-generated (because changes to the settings have been made sinceit was last generated).

The sketch will remain visible even when not selected.

The Body has been hidden (made invisible).

• The top part of the window contains the various menus and toolbars.

DesignModeler has two main modes of operation, and you will have to switch between them as you build upyour model. In Modeling Mode, the Tree View is shown, as in the picture above. However, DesignModeler usessketches (collections of edges in a plane) to build up solid models, and to create these sketches, you need to bein Sketching Mode. To switch between the two modes, the tabs (Sketching and Modeling) at the bottom of theTree View are used: simply click on the appropriate tab to switch between the two modes.

The area which is occupied by the Tree View when you are in Modeling Mode is taken up with the sketchingtoolboxes (Draw, Modify, Constraints, Dimensions and Settings) when in Sketching Mode. To switch betweenthem, simply click on their names.

Recovering from Mistakes

You are certain to make mistakes as you build up your geometry, so it is important to know how to recover fromthese.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.12

Page 17: Mesh , Rice University

If you are in Sketching Mode, then the Undo button in the Undo/Redo Toolbar towards the top of the windowcan be used to undo sketching operations. The Back button (accessed by right-clicking over the Model View)can be used to undo the selection of (for example) the last point in a polyline, whilst sketching.

If you are in Modeling Mode, and you have not yet generated your feature (such as Extrude) you can either justmake further changes in the Details View, or you can delete it by right-clicking on its name in the Tree View andselecting Delete.

After generating a feature, you can delete it by selecting it in the Tree View and using the Delete on the rightmouse menu. If you have generated a feature e.g. Extrude and then realize (for example) that you selected thewrong sketch to define it, you will need to use the Edit Selections feature. This is accessed by selecting right-clicking over the name of the feature in the Tree View and selecting Edit Selections: you will then be able toedit the selections by using the Details View as usual.

Creating the Solid

You need to start creating the Static Mixer geometry by creating a sketch to make the main body of the mixer.

1. Click on ZXPlane in the Tree View towards the top left of the screen.

2. Click on the Sketching tab (underneath the Tree View) to work on the sketch.

Each sketch is created in a plane. By selecting the ZXPlane immediately before going into sketching mode, youensure that the sketch you are about to create is based on the ZXPlane.

Before starting to create your sketch, it helps to set up a grid of lines on the plane in which the sketch will bedrawn. The presence of the grid allows the precise positioning of points (when Snap is enabled).

1. Click on Settings (in the Sketching tab) to open the Settings Toolbox.

2. Click on Grid and turn ON Show in 2D and Snap.

3. Click on Major Grid Spacing and set it to 1.

4. Click on Minor-Steps per Major and set it to 2.

5. You now need to zoom in to see the effect of changing the Minor-Steps per Major. Click the right mousebutton to the top left of the plane center in the Model View and drag a box across it to zoom into themiddle of the grid. When you release the mouse button the model will be magnified to show the selectedarea.

13CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Geometry Creation

Page 18: Mesh , Rice University

You now have a grid of squares with the smallest squares being 50 cm across. Because Snap is enabled, you willonly be able to select points that are on this grid to build your geometry, and this can often help to positionobjects correctly.

1. Select the Draw Toolbox from the Sketching tab.

2. Click on Polyline and then create the shape shown below:

a. Click on the grid in the position where one of the points from the shape needs to be placed (itdoesn't matter which point).

b. Then click on each successive point to make the shape.

c. If at any point you click on the wrong place, just click with the right mouse button over the ModelView and select Back from the right mouse button menu to undo the point selection.

d. To close the polyline after selecting the last point, click with the right mouse button to bring up amenu and choose Closed End.

Note that the longest straight line (4 m long) in the diagram below is along the z-axis (located at x = 0m).

You will now create the main body of the mixer by revolving the new sketch around the Z-axis.

1.Select Revolve from the 3D Features Toolbar. This toolbar is located above the Model View.

2. Details of the Revolve operation are shown in the Details View at the bottom left of the window. Leavethe name of the Revolve as the default, Revolve1.

3. The Base Object is the name of the sketch to be revolved. It defaults to the sketch which you have justcreated, Sketch1, so this setting does not need to be changed.

4. The Axis for the rotation does not have a default setting. In the Model View, click on the grid line whichruns along the Z-axis and then click on Apply in the Details View. You should find that the text next toAxis now changes to Selected. If instead it changes to Not Selected with a yellow background, click onthe text Not Selected and then try selecting the axis again in the Model View, remembering to pressApply in the Details View after you have selected it.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.14

Page 19: Mesh , Rice University

5. Leave Operation set to Add Material since you need to create a solid. (The other options allow you tomodify existing solids and to deal with multiple solids.)

6. The sketch needs to be revolved by a full 360 degrees, so change Angle from 30 degrees to 360 degrees.Leave the other settings as default.

7.To activate the revolve operation, you need to click on Generate. This can be selected from themenu which appears when you click with the right mouse button almost anywhere in the window, orfrom the 3D Features Toolbar towards the top of the window.

After generation, you should find you have a solid as shown below.

Now you need to create the two side pipes. This involves creating and extruding two new sketches. To make iteasier to see the grid when creating the sketches, the first step is to make the solid invisible for now.

1. In the Tree View, click on the plus sign next to 1 Part, 1 Body to open up the tree structure.

2. Position your cursor over the text Solid and then click with the right mouse button and select Hide Body.

3. Select ZXPlane in the Tree View again, and create a new sketch based on this plane by using the New

Sketch ( ) button on the Active Plane/Sketch Toolbar, which is located above the Model View.

4. Select the Sketching tab.

5. Create a circle as shown in the picture below:

a. Select the Draw Toolbox.

b. Select Circle, click on the grid at the center of the circle and then drag the mouse to define the ra-dius.

15CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Geometry Creation

Page 20: Mesh , Rice University

Now you need to extrude this sketch to make the first side-pipe.

1.Select Extrude from the 3D Features Toolbar. This toolbar is located above the Model View.

2. In the Details View at the bottom left of the window, change Direction to Reversed, in order to extrudein the opposite direction to the plane normal.

3. Change the Depth to 3 m. The rest of the settings can be left as their default. The Add Material settingwill mean that material is added to the existing solid, rather than a new solid being created.

4.To activate the extrude operation, you need to click on Generate as before.

In order to see the result of this, you will have to make the solid visible again:

1. In the Tree View, position your cursor over the text Solid and then click with the right mouse button andselect Show Body.

2. Click the middle mouse button over the middle part of the Model View and drag the mouse about withthe button held down to rotate the model. Check that the Solid looks like the picture below when rotatedinto a viewing position so that the side-pipe is clearly visible.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.16

Page 21: Mesh , Rice University

3. In the Tree View, position your cursor over the text Solid and then click with the right mouse button andselect Hide Body.

To create the other side pipe, the same operations are used.

1. Select ZXPlane in the Tree View again, and create a new sketch based on this plane by using the New

Sketch ( ) button on the Active Plane/Sketch Toolbar, which is located above the Model View.

2. Select the Sketching tab.

3. Right-click over the Model View and select View>Isometric View to put the sketch back into a sensibleviewing position. Then right-click again and select Zoom to Fit to zoom into the sketch, if it appears toosmall.

4. From the Draw Toolbox, select Circle and then create the second circle shown in the picture below:

1.Select Extrude from the 3D Features Toolbar.

2. In the Details View, set Direction to Normal, in order to extrude in the same direction as the plane normal.

17CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Geometry Creation

Page 22: Mesh , Rice University

3. Change the Depth to 3 m.

4.To activate the extrude operation, you need to click on Generate as before.

5. In the Tree View, position your cursor over the text Solid and then click with the right mouse button andselect Show Body.

The geometry is now complete.

1. Select File>Save and accept the default filename.

Before moving on, practise using the mouse to manipulate the model in the Model View. This is essential to beable to move the model into positions which are good for selecting or looking closely at particular parts of themodel.

1.Ensure that Rotate mode is selected from the Rotation Modes Toolbar at the top of the window.This is the default mode.

2. Click the middle mouse button over the middle part of the Model View and drag the mouse about withthe button held down to rotate the model. You have already met this way of moving the model around(“free rotation”) earlier in the tutorial. It is the most common way to move the model.

3. Now move the mouse button towards the top left of the Model View. As you get near to the top left, the

cursor should change from to . If you now click the middle mouse button (with the newcursor showing) and drag the mouse about with the button held down, you will be able to rotate themodel about an axis which points out of the screen (“roll”). This can be useful if you are trying to get themodel into a particular position.

4. There are two more types of rotation. Move the cursor back towards the left of the screen. Very close to

the left edge of the Model View, you will find that the cursor changes to . If you click the middlemouse button with this cursor showing, then the rotation is constrained to be around a vertical axis inthe plane of the screen. If you move the cursor to the top of the Model View, you get the other cursor

. If you click the middle mouse button with this cursor showing, then the rotation is constrainedto be around a horizontal axis in the plane of the screen.

Which type of rotation mode you get always depends on the position of the cursor. The picture belowshows the areas of the Model View which correspond to each type of rotation. Note that the circular regionwhere you get free rotation will always fill the smallest dimension of the window.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.18

Page 23: Mesh , Rice University

5. Put the model back into the Isometric View by clicking on the cyan-colored ball in the Triad at the bottomright of the Model View.

Now suppose that you wanted to zoom in on one of the pipe ends.

1. Right-click on the Model View to the top left of the pipe end which is visible and drag a box across it.When you release the mouse button, the model will expand so that the contents of the box are visibleacross the whole Model View.

2. Try rotating the model. You will find that the model by default rotates around the model center, so thepipe end quickly moves out of view. You can change this as follows. Bring the pipe end back into view,and click once with the left mouse button on the pipe end. DesignModeler will place a small red spherewhere you clicked, and then move the model so the small red sphere moves to the middle of the ModelView. If you now try rotation, you will find that the model rotates around the small red sphere, not themodel center, so the pipe end is always in view. (To change back to rotating around the model center,click once with the left mouse button anywhere in the Model View that is away from the model itself.)

3. Zoom out again by holding down the Shift key on the keyboard, pressing the middle mouse button anddragging the mouse downwards. You can zoom in by dragging the mouse upwards instead. An altern-

19CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Geometry Creation

Page 24: Mesh , Rice University

ative way of enabling the Zoom functionality is to select Zoom mode from the Rotation ModesToolbar. Once this is enabled, zooming in and out is done by clicking and dragging with the left mousebutton. If Zoom mode is selected, then most of the ways that you just tried rotating the model are no

longer available; you must select Rotate mode again to use them.

There are two more useful ways to manipulate the model in the Model View.

1. Pan (or Translate) the model by holding down the Ctrl key on the keyboard, pressing the middle mousebutton and dragging the mouse around. An alternative way of enabling the Pan functionality is to select

Pan mode from the Rotation Modes Toolbar. Once this is enabled, panning is done by clicking and

dragging with the left mouse button. Again, you must reselect Rotate mode to use most of thedifferent rotation methods.

2. Finally, center the model in the Model View and resize it so that it is all visible by selecting Zoom to Fit

from the Rotation Modes Toolbar.

In the rest of this tutorial and all of the subsequent tutorials, you should use the functionality described aboveto manipulate the model in any way which is convenient.

3. Mesh Generation

In order to set up the mesh, you must first move out of DesignModeler and into CFX-Mesh.

1. At the top of the ANSYS Workbench window, you should be able to see two tabs: StaticMixer [Project]and StaticMixer [DesignModeler]. Click on StaticMixer [Project] to return to the Project Page.

2. In the left-hand column, near the top, you should now see an entry Generate CFX Mesh. Click on this.

3. CFX-Mesh will open up. At first glance it looks very similar to DesignModeler.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.20

Page 25: Mesh , Rice University

Overview of CFX-Mesh

CFX-Mesh is designed to have the same look and feel as DesignModeler. In particular, this means that you canuse the same mouse controls to manipulate the model.

One important difference between DesignModeler and CFX-Mesh is connected to the order of the items in theTree View. In DesignModeler the Tree View shows items in the order that they were created, and the order affectsthe final geometry. In CFX-Mesh the order of the items in the Tree View are not important and all items of thesame type are grouped together, independent of when they were created.

You will be able to see that various items are already present in the Tree View in DesignModeler; these are thedefault items and contain default settings. Some of the symbols next to items in the Tree View have slightly dif-ferent implications in CFX-Mesh than they did in DesignModeler. In CFX-Mesh, the meanings are as follows:

MeaningSymbol

Everything is valid.

Everything is valid but the item has been automatically changed and you may wish to double-check the settings.This may occur, for example, if you have performed a geometry update which has resulted in a face no longerexisting: if that face appeared in the location list for any mesh feature, then it will have been removed automat-ically as part of the update and so the mesh feature will be marked with this status symbol.

This means that there is something invalid about the definition of the item or one of its sub-items (which willalso be marked with the same symbol). Often this will be because no required selection has been made.

21CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 3: Mesh Generation

Page 26: Mesh , Rice University

MeaningSymbol

The item is suppressed (inactive).

The item is suppressed and will be invalid when it is unsuppressed.

These status symbols only apply to Preview Groups.

If the symbol underneath the yellow flash is a green tick, then the Preview Group is valid but either the meshhas not been generated or the generated mesh is out-of-date i.e. it does not reflect the current mesh settings.To generate an up-to-date mesh for the Preview Group, right-click over its name and choose Generate ThisSurface Mesh. To generate an up-to-date mesh on all Preview Groups, right-click over Preview in the Tree Viewand choose to Generate All Surface Meshes.

If the symbol shows the yellow lightning bolt but the symbol underneath it is a yellow tick, then the PreviewGroup is both out-of-date (see above) and automatically changed. Refer to the table entry for a yellow ticksymbol for details of what might cause an automatic change to a Preview Group.

If the symbol shows the yellow lightning bolt but the symbol underneath it is a red exclamation mark, then thePreview Group is both out-of-date (see above) and invalid. You must make the Preview Group valid (by makinga valid selection for its Location) before you can generate or regenerate it.

This indicates that an item contains associated sub-items . Left-click on the symbol to expand the item anddisplay its contents.

Left-click on the symbol to close the item so that its contents are not visible in the tree.

The generation of the surface and volume mesh is controlled by the various features that you can access in CFX-Mesh. The type of controls available depend on the mesher used. By default, you are using the Delaunay SurfaceMesher for surface meshing and Advancing Front Volume Mesher for volume meshing.

In this first example, you will only set up the most basic features for controlling the mesh generation. Only thebasic length scale of the mesh will be specified.

Setting up the Regions

The first step is to define some regions on the geometry. Composite 2D Regions are created from the solid faces(primitive 2D Regions) of the geometry. They can be used in CFX-Pre to assign boundary conditions, such as inletsand outlets, to the problem. You do not need to create Composite 2D Regions at all in CFX-Mesh, but it is easierto name and group faces into Composite 2D Regions in CFX-Mesh than it is to select the corresponding meshin CFX-Pre. This example uses an inlet boundary condition at the entrance to each of the two side pipes, anoutlet boundary condition on the end of the funnel outlet and a wall boundary condition for the remainingsurfaces.

Note — There is an important distinction between primitive 2D Regions and the underlying solid faces,which applies when the model has more than one solid. This is explained in the Mesh Generation sectionof the Heating Coil tutorial.

If you look at the Tree View, you can see that under Regions, one Composite 2D Region is defined already, calledDefault 2D Region. This region will always contain all of the faces of the model which you have not explicitlyassigned to another Composite 2D Region.

Create the Composite 2D Region for the first inlet:

1. Right-click over Regions in the Tree View.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.22

Page 27: Mesh , Rice University

2. Select Insert>Composite 2D Region.

3. A new object, Composite 2D Region 1, is inserted under Regions in the Tree View. In the Details View,there will be two buttons, Apply and Cancel, next to Location, and this means that you are ready toselect the face from the Model View.

4. In the Model View, click on the circular face at the end of the side pipe which is at the position with thelowest value of the Y-coordinate. This will turn green to show that it has been selected, as in the picturebelow. You can rotate the model to make it easier to select the appropriate face by holding down themiddle mouse button and moving the mouse over the geometry.

5. Click on Apply in the Details View.

6. Change the name of the region to in1: right-click over the name, select Rename and then type over theexisting name.

Now create the second inlet:

1. Right-click over Regions in the Tree View.

2. Select Insert>Composite 2D Region.

3. A new object, Composite 2D Region 1, is inserted under Regions in the Tree View. In the Model View,click on the circular face at the end of the side pipe which is at the position with the highest value of theY-coordinate.

4. Click on Apply in the Details View.

5. Change the name of the region to in2 by right-clicking over the existing name.

Finally, create the region for the outlet:

1. Right-click over Regions in the Tree View and select Insert>Composite 2D Region.

2. Select the circular face at the bottom of the mixer vessel, with the lowest value of the Z-coordinate.

3. Click on Apply in the Details View.

4. Change the region name to out.

It is not necessary to create a fourth Composite 2D Region for the walls of the static mixer. This is because anyremaining faces which are not explicitly assigned to a Composite 2D Region are automatically assigned to the2D Region named Default 2D Region. You can use this region in CFX-Pre to define the location of your wallboundary condition.

23CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 3: Mesh Generation

Page 28: Mesh , Rice University

Setting up the Mesh

You will only set a single size for all of the elements, in this tutorial. The next tutorial will then improve upon thiscoarse mesh.

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.3 m. This is a coarse length scale for this model, butis reasonable for a first run to generate an approximate solution and to test that the model is workingcorrectly.

3. Press Enter on the keyboard to set this value.

The remaining settings will be left as their default.

Generating the Surface Mesh

You will now have a look at the surface mesh to see the effect of the chosen length scale.

1. Click on the plus sign next to Preview in the Tree View to open it up.

2. Right-click over Default Preview Group and select Generate This Surface Mesh. The Default PreviewGroup always contains all faces in the geometry, so the mesh will be generated everywhere.

During the generation of the surface mesh, the progress will be displayed using the slider bar which appears tothe bottom left of the CFX-Mesh window.

1. You can modify the way that the mesh is displayed by clicking on Preview in the Tree View and changingthe options shown in the Details View. For example, by changing the Display Mode you can switch todisplay the mesh in Wire Mesh rather than with solid faces. Simply click on the name Default PreviewGroup to redisplay the surface mesh using the new settings.

It is not necessary to create the surface mesh within CFX-Mesh, since if it has not been created explicitly it willbe automatically generated when you create the volume mesh. However, in many of these tutorials, you willcreate the surface mesh first, to demonstrate the effect of various mesh settings. It is generally a good idea tocheck the surface mesh before creating the volume mesh, to ensure that any settings you have made have thedesired effect.

Tutorial 1: Static Mixer

CFX-Mesh Tutorials . . © SAS IP, Inc.24

Page 29: Mesh , Rice University

Generating the Volume Mesh

The volume mesh and all of the region information required for CFX-Pre is stored in a CFX-Pre Mesh file *.gtm.The CFX-Pre Mesh File is read into CFX-Pre at the start of the simulation definition.

Generate the volume mesh as follows.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Choose to save the CFX-Pre Mesh File as StaticMixerMesh.gtm.

During the generation of the volume mesh, the progress will be displayed using the slider bar which appears tothe bottom left of the CFX-Mesh window. When the volume mesh is complete, the slider bar will disappear andyou will be able to take control of the user interface again.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database as StaticMixer.cmdb in the same directory as theother project files.

2. At the top of the ANSYS Workbench window, you should be able to see three tabs: StaticMixer [Project],StaticMixer [DesignModeler] and StaticMixer [CFX-Mesh]. Click on StaticMixer [Project] to returnto the Project Page.

3. Select File>Save to save the project.

If you want to continue by working through the CFX-5 example “Tutorial 1: Flow in a Static Mixer” using thenewly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then follow thesesteps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on StaticMixerMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as StaticMixer.

3. Select Tools>Quick Setup Mode... to enter the Quick Setup Mode that this tutorial uses.

4. Work through the CFX-5.7.1 tutorial, missing out the instructions in the section “Creating a New Simula-tion”. Note that you do not need to copy the sample file StaticMixerMesh.gtm to your working directoryif you have just created the mesh in CFX-Mesh, since you will want to use your new mesh and not theone supplied with CFX-5. For the “Importing a Mesh” section, the only action that you need to carry outis to select Assembly from the Select Mesh drop-down list, as the mesh is loaded automatically whenyou start CFX-Pre in the manner described above.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

25CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 3: Mesh Generation

Page 30: Mesh , Rice University

26

Page 31: Mesh , Rice University

Tutorial 2: Static Mixer (Refined Mesh)

This example modifies the mesh and geometry for the static mixer example created in the previous example,and assumes that you have access to the files created as part of that example. The following geometry andmeshing features are illustrated:

• modifying an existing mesh setup;

• Inflation, and

• geometry update.

1. Modifying the Mesh Generation

Opening the Existing Project

1. Open ANSYS Workbench.

2. In the main part of the window, click on the existing StaticMixer project. If it does not appear in the listof recent projects (perhaps because you moved the files), then use Browse to locate the project fileStaticMixer.wbdb instead.

3.To open CFX-Mesh, double-click on StaticMixer.

CFX-Mesh will now be opened with the geometry and mesh settings from the previous tutorial.

Modifying the Mesh Settings

The first step is to create a refined mesh size over the whole geometry.

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.2 m. This is a smaller length scale for the model thanset previously (0.3 m).

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 32: Mesh , Rice University

3. Press Enter on the keyboard to set this value.

The next step is to create an Inflated Boundary on the walls of the mixer. Creating inflated boundaries generatesprismatic elements from the surface by inflating triangular elements into the solid. As a result, near the wallboundaries there will be layers of flat prismatic (wedge-shaped) elements which provide a smaller mesh lengthscale in the direction perpendicular to the wall. This provides better resolution of the velocity field near the wall,where it changes rapidly.

Inflation can greatly improve accuracy, particularly in a model with a high aspect ratio, such as a long narrowpipe, or in a model where turbulence is significant. Inflation should always be used when you are interested inlift, drag or pressure drop in the model.

Away from the wall boundaries, the mesh elements will be tetrahedral as they were in Tutorial 1.

First, you will set the parameters used to control the inflation process, and then you will create the InflatedBoundary itself.

1. Click on Inflation in the Tree View.

2. In the Details View, set Number of Inflated Layers to 5. This will give five layers of prism elements.

3. Set Expansion Factor to 1.3. This controls how fast the thickness of the prism elements grows in suc-cessive layers away from the wall.

4. Leave the other settings as their default values.

5. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

6. Click on Default 2D Region in the Tree View to select the faces which are in the Default 2D Region forthe Inflated Boundary. Click on Apply in the Details View. The text should change to read 1 Composite.

7. Set Maximum Thickness to 0.2 m.

This creates an Inflated Boundary that uses all the faces in the Default 2D Region. If you later change the 2D Regionsettings so that the Default 2D Region contains different faces, the Inflated Boundary will automatically updateto always use the faces in the Default 2D Region at the time when the mesh is generated.

Generating the Surface Mesh

You will now have a look at the surface mesh to see the effect of the chosen length scale and the inflation,compared to the mesh you generated for the previous example. You can use the existing Preview Group to displaythe surface mesh.

1. Right-click over Default Preview Group and select Generate This Surface Mesh.

Tutorial 2: Static Mixer (Refined Mesh)

CFX-Mesh Tutorials . . © SAS IP, Inc.28

Page 33: Mesh , Rice University

You should be able to see that this mesh is finer (has more surface elements) that the mesh you generated inthe first example. Also, note that there are triangular prism elements near the walls of the mixer vessel, the edgesof which can be seen when you look at mesh on the two inlets or outlet.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as StaticMixerRefMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

From this point, you could go straight into the CFX-5 example “Tutorial 2: Flow in a Static Mixer (Refined Mesh)”using the newly-generated mesh. However, this tutorial continues by modifying the geometry in order to illustratehow to set dimensions on geometry objects and how to tell CFX-Mesh to use the updated geometry. Settingdimensions is essential when creating geometry features which have dimensions which are not simple fractionsof the model units, and so cannot use the grid for positioning the points and lines in the sketches.

29CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Modifying the Mesh Generation

Page 34: Mesh , Rice University

2. Geometry Modification

In this section, you will change the radius of the inlet pipes to 0.4 m from the initial 0.5 m, without using the gridto position the circle. You will then extend the outlet pipes.

1. At the top of the ANSYS Workbench window, you should be able to see two tabs: StaticMixer [Project]and StaticMixer [CFX-Mesh]. Click on StaticMixer [Project] to return to the Project Page.

2.To open DesignModeler, double-click on StaticMixer.

3. Once DesignModeler has opened, click on the plus sign next to ZXPlane and then select Sketch2 in theTree View, noting which circle it contains. Choose the Sketching tab.

4. Click on Dimensions (in the Sketching tab) to open the Dimensions Toolbox.

5. Click on Radius and then select the circle which forms Sketch2 from the Model View.

6. Click somewhere in the Model View to choose where the label for this dimension will be placed (thisdoes not affect the model in any way, it is purely for display purposes).

7. If you now look in the Details View at the bottom left of the screen, you will find a section headed Dimen-sions, which contains the radius R1, set to 0.5 m. For now, change the radius to be 0.4 m .

8.Click on Generate to activate the change.

You will see that both of the side pipes now have a reduced radius as required. The radius of both the pipeschanged simultaneously as the property of AutoConstraints is turned on by default. This automatically detectsdimensions which are equal and constrains them to be equal so that when one changes, the other does also.See the DesignModeler documentation for more details.

You have now explicitly defined the dimension (radius) of the inlet pipe radii and can easily change it again ifneeded, perhaps if you change the geometry or if you made a mistake when originally specifying the radius.Whenever you are asked in later tutorials to create a geometry object of a particular size, you can either set upthe grid to enable precise positioning of the geometry, or create the geometry at approximately the right sizeand then use the Dimensions Toolbox to specify the dimension exactly.

Now you can extend the outlet pipe. The first part of the extension requires a Revolve operation. However, youneed to revolve the end surface of the existing outlet pipe, which isn't currently defined as a sketch or plane, sofirst you need to construct the appropriate plane from which to revolve.

1.Create a new plane by using the New Plane ( ) button on the Active Plane/Sketch Toolbar, which islocated above the Model View.

2. In the Details View, set Type to be From Face and Subtype to be Outline Plane.

3. In the Details View, click in the box next to Base Face. There will now be two buttons, Apply and Cancel,and this means that you are ready to select the face from the Model View.

4. In the Model View, click on the circular face at the end of the outlet pipe, which is at the position withthe lowest value of the Z-coordinate. Click on Apply in the Details View.

5.Click on Generate to create the plane.

The Revolve operation requires the specification of a rotation axis. Since this rotation will not be around any ofthe main coordinate axes, a sketch containing a single line to act as the required axis will be created.

Tutorial 2: Static Mixer (Refined Mesh)

CFX-Mesh Tutorials . . © SAS IP, Inc.30

Page 35: Mesh , Rice University

1. Select the new plane Plane4 in the Tree View again, and create a new sketch based on this plane by using

the New Sketch ( ) button on the Active Plane/Sketch Toolbar, which is located above the ModelView.

2. Select the Sketching tab.

3. Click on Settings (in the Sketching tab) to open the Settings Toolbox.

4. Click on Grid and turn ON Show in 2D and Snap.

5. Click on Major Grid Spacing and set it to 1.

6. Click on Minor-Steps per Major and set it to 2.

7. From the Draw Toolbox, select Line and then create a line which is parallel to the Y-axis and is positionedat x = 2 m. You can use the grid settings to position this line. The length of the line and the exact positionof its end points are not important since it is only going to be used to define a rotation axis.

8.Select Revolve from the 3D Features Toolbar.

9. In the Details View, click next to Base Object and then click on the name of the plane that you have justcreated (Plane4) in the Tree View. Click Apply in the Details View.

10. In the Details View, click next to Axis and then click on the name of the sketch that you have just created(Sketch4) in the Tree View. Click Apply in the Details View.

11. Set Angle to 60 degrees.

12.Click on Generate to create the revolve.

One more operation is needed to add another straight section of pipe to the outlet. This follows a very similarprocedure to the one that you have just used to create the first extension.

1.Create a new plane by using the New Plane ( ) button on the Active Plane/Sketch Toolbar, which islocated above the Model View.

2. In the Details View, set Type to be From Face and Subtype to be Outline Plane.

3. In the Details View, click in the box next to Base Face. There will now be two buttons, Apply and Cancel,and this means that you are ready to select the face from the Model View.

4. In the Model View, click on the circular face at the end of the newly revolved pipe section, which is inthe position with the lowest value of the Z-coordinate.

31CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Geometry Modification

Page 36: Mesh , Rice University

5.Click on Generate to create the plane.

6.Select Extrude from the 3D Features Toolbar.

7. In the Details View, click next to Base Object and then click on the name of the plane that you have justcreated (Plane5) in the Tree View. Click Apply in the Details View.

8. Set Depth to 2 m.

9.Click on Generate to create the extrude.

3. Updating the Geometry in CFX-Mesh

In this section you will make CFX-Mesh use the new geometry.

1. At the top of the ANSYS Workbench window, you should be able to see three tabs: StaticMixer [Project],StaticMixer [DesignModeler] and StaticMixer [CFX-Mesh]. Click on StaticMixer [CFX-Mesh] to returnto the CFX-Mesh setup.

Look closely at the Tree View. You should be able to see that many of the settings, including the top item(Model), have a green tick status symbol next to them, which means that the setup is completely valid. Thereare no yellow ticks and no red marks which indicate potential problems or an invalid setup. Any Preview Groups

will have either a green tick ( ) or a green tick with a yellow flash ( ). In each case the green tick indicatesthat the setup is completely valid. The addition of the yellow flash indicates that the mesh which is displayedwhen you click on that Preview Group's name may not be up-to-date with the latest mesh settings i.e. you mayhave modified a setting since you last generated this surface mesh.

1. Right-click over Geometry in the Tree View. Select Update Geometry and click on Yes on the popupmessage to continue with the update.

The Model View will refresh to show the new geometry, with the smaller radius pipes and the longer outlet. Also,the Tree View will be updated to account for the fact that whilst most geometry faces which were originallypresent are still there, one no longer exists (the original end of the outlet pipe) and there are some new ones(the sides and end of the new section of pipe).

1. Notice that the Tree View now shows that you have an invalid setup: various items show red exclamation

marks ( ). The problem is that the specification for the 2D Composite Region “out” is invalid since theface it was applied to no longer exists.

Tutorial 2: Static Mixer (Refined Mesh)

CFX-Mesh Tutorials . . © SAS IP, Inc.32

Page 37: Mesh , Rice University

2. Click on out in the Tree View. Select the circular face at the bottom of the mixer vessel, with the lowestvalue of the Z-coordinate.

3. Click on Apply in the Details View.

The model setup is now valid - the red status symbols have all gone from the Tree View.

When you do a Geometry Update, any new faces are automatically added to the Default Preview Group and tothe Default 2D Region. This means that you do not need to update Inflated Boundary 1 to include any newfaces because it was set up to use the Default 2D Region as its location and the new faces will have been auto-matically added to this region.

Sometimes when you do a Geometry Update, you will find that one or more yellow tick marks appear in the TreeView. This means that one or more faces was automatically removed from the corresponding meshing featuresas a result of the Geometry Update, because those faces no longer exist in the new geometry. The setup is stillvalid, however, because there is still at least one valid face used for that meshing feature. It is recommendedthat if you see yellow tick marks in your Tree View, you should check that the locations for the correspondingfeatures are what you expect.

The geometry has been successfully updated and the CFX-Mesh setup is ready to re-mesh. At this point youcould create a new surface mesh or volume mesh. However, note that the CFX-5 example expects to use theoriginal geometry, so you should ensure that you don't overwrite the original GTM File when creating the volumemesh.

1. Select File>Save to save the CFX-Mesh database.

If you want to continue by working through the CFX-5 example “Tutorial 2: Flow in a Static Mixer (Refined Mesh)”using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then followthese steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on StaticMixerRefMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as StaticMixerRef.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit. Choose to save all highlighted files.

33CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 3: Updating the Geometry in CFX-Mesh

Page 38: Mesh , Rice University

34

Page 39: Mesh , Rice University

Tutorial 3: Process Injection Mixing Pipe

This example shows how to create a simple pipe junction, using Sweep to create the pipe profile. The followinggeometry and meshing features are illustrated:

• Face Spacing, for refining the mesh on a particular face;

• Inflation; and

• full surface mesh generation, to preview the full surface mesh.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, create a new empty project, and save it as InjectMixer.wbdb. If you need to,refer to the instructions in the Geometry Creation section of the Static Mixer tutorial for more details onhow to do this.

2. Choose New Geometry to open DesignModeler, and specify the units as meters.

Creating the Main Pipe

To create the main pipe, you will use the Sweep operation. Sweep requires the use of two sketches: one definesthe profile to be swept (in this case, a circle) and the other defines the path through which the profile is swept.The profile will be created first.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 40: Mesh , Rice University

1. Create a new plane as follows. Select the XYPlane in the Tree View and then click on the New Plane

icon ( ) from the Active Plane/Sketch Toolbar, near the top of the ANSYS Workbench window.Clicking on XYPlane first ensures that the new plane is based on the XYPlane.

2. In the Details View, set Transform 1 (RMB) to Offset Z, and set the Value of the offset to -4 m.

3.Click on Generate to create the plane.

4. Create a new sketch as follows. Select Plane4 in the Tree View and then click on the New Sketch icon

( ) from the Active Plane/Sketch Toolbar, near the top of the ANSYS Workbench window. Clickingon the plane first ensures that the new sketch is based on Plane4.

5. Use Grid from the Settings Toolbox of the Sketching tab to set Show in 2D and Snap to ON.

6. Set Major Grid Spacing to 1.0 m and Minor-Steps per Major to 2.

7. Zoom in to the center of the grid, so that you can see the gridlines clearly. You can do this by dragginga box over the desired viewing area with the right mouse button held down.

8. Use Circle from the Draw Toolbox of the Sketching tab to draw a circle of radius 0.5 m, centered on X =0 m, Y = -2 m. The grid settings you have just set up will help you to position the circle and set its radiuscorrectly.

Now create the path:

1.Create a new sketch ( ) based on the YZPlane: as before, make the YZPlane active first by clickingon it, and then use the New Sketch icon to create the sketch based upon it.

2. Use Grid from the Settings Toolbox of the Sketching tab to set Show in 2D and Snap to ON.

3. Set Major Grid Spacing to 1.0 m and Minor-Steps per Major to 2.

4. Use Line from the Draw Toolbox of the Sketching tab to draw two straight lines on the sketch, as shownin the picture below.

5. Click on Arc by Center from the Draw Toolbox, and click once on the origin (center of the Arc shown inthe picture below). Now select one of the end points of the arc, and then move the mouse round to theother end point and click on it to draw the quarter-circle. If the wrong part of the arc is drawn (i.e. a 270degree segment instead of a 90 segment) then click on Undo (from the Undo/Redo Toolbar at the topof the ANSYS Workbench window) and try again, making sure that after you click on the first end point,you move the mouse in the correct direction for the arc that is to be drawn.

Tutorial 3: Process Injection Mixing Pipe

CFX-Mesh Tutorials . . © SAS IP, Inc.36

Page 41: Mesh , Rice University

Now make the pipe itself.

1.Select Sweep from the 3D Features Toolbar.

2. Set the Profile to be Sketch1: click on Sketch1 in the Tree View and then click on Apply in the DetailsView at the bottom-left of the screen.

3. Set the Path to Sketch2: click on the Not selected text next to Path, click on Sketch2 in the Tree View,and then click on Apply.

4.Click on Generate to create the pipe.

Creating the Side Pipe

1.Create a new plane ( ), based on the ZXPlane: as before, make the ZXPlane active first by clicking onit, and then use the New Plane icon to create the plane based upon it.

2. In the Details View, set Transform 1 to Offset Global Z, and set the Value of the offset to 2 m.

3. Set Transform 2 to Offset Global Y. Set the Value of the offset to -3 m.

4.Click on Generate to create the plane.

37CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 42: Mesh , Rice University

5.Create a new sketch ( ) based on the new plane.

6. Use Circle from the Draw Toolbox of the Sketching tab to create the circle centered on the origin witha radius of 0.15 m. Create the circle initially with any convenient radius, and then use Radius from theDimensions Toolbox of the Sketching tab to specify the radius more precisely, as described in the GeometryModification section of the Static Mixer tutorial.

7.Select Extrude from the 3D Features Toolbar.

8. Set Base Object to be the new sketch (Sketch3), and set Operation to Add Material.

9. Set Direction to Normal and Type to Fixed. Set Depth to 3 m.

10.Click on Generate to create the side-pipe.

Note that the extrusion of Sketch3 has to reach the main pipe body, but that it does not matter if it extends intothe body. It is possible to extrude To Next, which means that the extrusion will stop when it meets anothergeometry object, but the net effect would be no different than using the Fixed extent.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window.

2.Click on the name of the DesignModeler entry, InjectMixer, and then Generate CFX Mesh to theleft of the Project Page.

Setting up the Regions

As before, you need to set up some 2D Regions.

Create the region for the side inlet:

1. Right-click over Regions in the Tree View and select Insert>Composite 2D Region. Change its nameto side inlet.

2. Select the circular face at the end of the small side pipe.

3. Click on Apply in the Details View.

Create the region for the main inlet:

1. Create a Composite 2D Region called main inlet.

2. Select the circular face at the end of the main pipe, with the lowest Z-coordinate.

3. Click on Apply in the Details View.

Create the region for the outlet:

Tutorial 3: Process Injection Mixing Pipe

CFX-Mesh Tutorials . . © SAS IP, Inc.38

Page 43: Mesh , Rice University

1. Create a Composite 2D Region called outlet.

2. Select the circular face at the other end of the main pipe, with the highest Y-coordinate. Click on Applyin the Details View.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.25 m, and press Enter on the keyboard to set thisvalue.

It is desirable to have a reasonably fine mesh in the region of the side pipe, since the features of the flow in thisregion are likely to be smaller than the Maximum Spacing that you just set. To do this, you will set a Face Spacingto concentrate nodes and elements in this region. You can specify how quickly the mesh elements grow as youmove away from the selected face using an expansion factor.

Face Spacings act like sources, determining the size and distribution of elements in the region around that face.They affect both the triangular surface mesh and the volume mesh. It is also possible to create Controls, whichhave a similar effect but are applied to points, lines or triangles instead of faces.

In this tutorial, you will define a Face Spacing on the exterior of the side pipe to control the size of the elementsgenerated in the vicinity.

1. Right-click on Spacing and select Insert>Face Spacing

2. Select the cylindrical face of the side pipe. Click on Apply in the Details View.

3. In the Details View, set Face Spacing Type to Constant, and set the Constant Edge Length to 0.05 m.This sets the mesh length scale for the Face Spacing.

4. Set the Radius of Influence to 0.0 m. The mesh control is applied only to the surface and not to a volumesurrounding the surface.

5. Set the Expansion Factor to 1.2. This specifies how quickly the mesh elements grow as you move awayfrom the face. As you move away, each element will be approximately 1.2 times as big as the previousone in the region in which the expansion takes place, until the mesh length scale reaches the MaximumSpacing of 0.25 m which was set in the last section.

Generating the Surface Mesh

You will now have a look at the surface mesh to see the effect of the chosen length scale.

1. Click on the plus sign next to Preview in the Tree View to open it up.

2. Right-click over Default Preview Group and select Generate This Surface Mesh.

You should be able to see that the mesh is finer around the side pipe than it is elsewhere in the geometry.

39CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 44: Mesh , Rice University

Setting up Inflation

The velocity gradients near the pipe wall surfaces can vary significantly, so it is advisable to apply inflation inthese areas.

1. Click on Inflation in the Tree View.

2. In the Details View, check that Number of Inflated Layers is set to 5.

3. Leave the other settings as their default values.

4. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

5. Click on Default 2D Region in the Tree View to select the faces which are in the Default 2D Region forthe Inflated Boundary. Click on Apply in the Details View.

6. Leave Maximum Thickness as the default setting.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as InjectMixerMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

Tutorial 3: Process Injection Mixing Pipe

CFX-Mesh Tutorials . . © SAS IP, Inc.40

Page 45: Mesh , Rice University

If you want to continue by working through the CFX-5 example “Tutorial 3: Flow in a Process Injection MixingPipe” using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine,then follow these steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on InjectMixerMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as InjectMixer.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

41CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 46: Mesh , Rice University

42

Page 47: Mesh , Rice University

Tutorial 4: Circular Vent

This example creates the geometry and mesh for a simple chimney stack. The following geometry and meshingfeatures are illustrated:

• Controls, for refining the mesh along a line;

• Inflation; and

• Preview Groups, for previewing part of the surface mesh.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as CircVent.wbdb.

2. Choose New Geometry to open DesignModeler, specifying the units as meters.

Creating the Solid

The geometry consists of a cylindrical pipe which is placed in the center of a cylindrical region.

1.Create a new sketch ( ) based on the XYPlane.

2. Use Circle from the Draw Toolbox of the Sketching tab to draw a circle in the new sketch, centered onthe origin and with radius 10 m.

If you just extruded this circle, you would get a cylinder which consisted of three faces: circular top, circularbottom and the curved cylindrical face. However, you will need to apply a boundary condition in the CFD simu-lation to just half of the curved cylindrical face. The only way to do that effectively is to create the cylindrical facein two parts. This means that you need to modify the circle before extruding.

1. Select Construction Point at Intersection from the Draw Toolbox. This is located right at the bottomof the list.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 48: Mesh , Rice University

2. Select the Y-axis and then select the circle somewhere near where it intersects the Y-axis. You shouldfind that a point appears at the intersection.

3. Now select the Y-axis again, and select the circle somewhere near where the other intersection of it andthe Y-axis occurs. A second construction point should appear.

4. Select Split from the Modify Toolbox of the Sketching tab. Right-click over the Model View and selectSplit Edge at All Points.

5. Click on the circle to perform the split.

6.Select Extrude from the 3D Features Toolbar.

7. Set Base Object to be the new sketch (Sketch1), and set Operation to Add Material. Set Depth to be10 m.

8. Set Merge Topology? to No. This stops DesignModeler from optimizing the surfaces created by com-bining them where possible, which would prevent the splits in the circle from having any effect.

9.Click on Generate to create the cylinder.

Now you will cut material from this cylinder to form the vent itself.

1.Create another new sketch ( ) based on the XYPlane.

2. Use Circle from the Draw Toolbox of the Sketching tab to draw a circle in the new sketch, centered onthe origin and with radius 1 m.

3.Select Extrude from the 3D Features Toolbar.

4. Set Base Object to be the new sketch (Sketch2), and set Operation to Cut Material.

5.Set Depth to be 5 m, and click on Generate to cut the pipe out of the large cylindrical region.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

Tutorial 4: Circular Vent

CFX-Mesh Tutorials . . © SAS IP, Inc.44

Page 49: Mesh , Rice University

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

Create the region for the wind inlet:

1. Create a Composite 2D Region called Wind.

2. Select the large curved face with the lowest X-coordinates. Click on Apply in the Details View.

Create the region for the opening to the atmosphere:

1. Create a Composite 2D Region called Atmosphere.

2. Select the other large curved face and the top of the large cylinder (highest Z-coordinate) to apply it to.

Create the region for the vent opening to the atmosphere:

1. Create a Composite 2D Region called Vent.

2. Select the small circular face at the top of the vent to apply it to. This can be slightly tricky to select directlysince from most viewing positions it is behind another face. Either:

• Click over the axes in the bottom right corner of the Model View in the position shown in the picturebelow. As you move the cursor into this position, the black “-Z”-axis will appear (it is not shown bydefault). This will put the geometry into a good position for picking the required face.

• This viewing position allows you to view the bottom of the geometry and you can look up the ventitself to see the small circular face at the top of the vent without it being behind another face. Youcan now select it directly.

or

• Click over the required face even though it is behind another face. The face at the front will be selectedand a stack of Selection Rectangles (shown below) will appear at the bottom left of the Model View.Note that exactly how many selection rectangles there are will depend on exactly what the viewingposition of your model was when you clicked over the face.

• Each rectangle represents a face which was under the cursor when you clicked, with the left-mostrectangle representing the front face. You will be able to see from the selection rectangles that thisfront face is outlined in red, which means that it is currently selected. Click on the rectangle whichrepresents the face which you want. As you click on the rectangle, the corresponding face in thegeometry will highlight. You may need to experiment to get the correct face.

45CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 50: Mesh , Rice University

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 2.0 m, and press Enter on the keyboard to set thisvalue.

Create inflated surfaces for the vent and ground surfaces:

1. Click on Inflation in the Tree View.

2. In the Details View, set Number of Inflated Layers to 4.

3. Leave the other settings as their default values.

4. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

5. Select the faces for the boundary. The two surfaces which it should be applied to are the side of the ventand the bottom of the large cylinder (lowest Z-coordinate).

6. Set Maximum Thickness to 0.2 m.

Create a Control in the center of the vent to refine the mesh in this region of the simulation. You will use a LineControl, which refines the mesh in the region around a line.

Point, Line and Triangle Controls all make use of the Point Spacing object. This defines a set of spacing values,which can be applied to the various Controls as desired.

1. Right-click on Controls in the Tree View, and select Insert>Point Spacing.

2. In the Details View, set Length Scale to 0.33 m. Set Radius of Influence to 1.0 m, and Expansion Factorto 1.15.

3. Right-click on Controls in the Tree View, and select Insert>Line Control.

4. In the Details View, there will now be two buttons, Apply and Cancel. Click on Cancel without selectinganything in the Model View, and then right-click in the same place and choose Edit. Enter 0 0 0 to setthe coordinates of the first Point.

5. Set the coordinates of the second Point to be [0 0 4], in the same way.

6. You want the specified Point Spacing to apply to both points, so leave Spacing Definitions set to Uniform.

7. Click in the box next to Spacing, and then click on Point Spacing 1 in the Tree View to select the appro-priate Point Spacing for the Control. Press Apply to complete the selection.

8. In order to better see the inside of the vent, click on Geometry in the Tree View, and in the Details View,set Transparency to 40 %.

If you ensure that the new Line Control is selected in the Tree View, and look at the vent in the Model View, youshould be able to see where the Control has been created, as shown below. The line itself should be clearly visible,and the two spheres at each end show the Radius of Influence.

Tutorial 4: Circular Vent

CFX-Mesh Tutorials . . © SAS IP, Inc.46

Page 51: Mesh , Rice University

Generating the Surface Mesh

To get a clear view of how the Control affects the mesh, it is convenient to generate just part of the surface mesh.

1. Right-click over Preview in the Tree View, and select Insert>Preview Group.

2. Change the name of the Preview Group to Ground.

3. For Location, select the large circular face (with a hole in) at the bottom of the geometry (lowest Z-co-ordinate).

4. Now right-click over the Preview Group Ground in the Tree View, and select Generate This SurfaceMesh. The surface mesh will be generated on just the corresponding face.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as CircVentMesh.gtm.

47CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 52: Mesh , Rice University

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 4: Flow from a Circular Vent” using thenewly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then follow thesesteps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on CircVentMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as CircVent.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

Tutorial 4: Circular Vent

CFX-Mesh Tutorials . . © SAS IP, Inc.48

Page 53: Mesh , Rice University

Tutorial 5: Blunt Body

This example creates the geometry and mesh for a simulation of flow over a vehicle body shape. Due to thesymmetry of both the geometry and the flow pattern, only half of the body needs to be modeled. The followinggeometry and meshing features are illustrated:

• Face Spacing, for refining the mesh on a particular face;

• Inflation;

• Proximity, for refining the volume mesh where two faces are close together; and

• Preview Groups, for previewing part of the surface mesh.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as BluntBody.wbdb.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 54: Mesh , Rice University

2. Choose New Geometry to open DesignModeler, specifying the units as meters.

Creating the Body

To create the body shape, you will create a sketch and then extrude it. A Cut Material operation will then be usedto shape the rounded end of the body.

1.Create a new sketch ( ) based on the ZXPlane.

2. Use Rectangle from the Draw Toolbox of the Sketching tab to draw a rectangle as shown below (notethe orientation of the axes). The required dimensions are: H1 = 1.44 m, V2 = 5.22 m.

3. Select Fillet from the Modify Toolbox of the Sketching tab, and enter 0.5 m for the Radius in the boxwhich opens to the right of the word Fillet.

4. Select the two corners of the geometry that are on the Z-axis, to create the two fillets, as shown below.

5. Select Chamfer from the Modify Toolbox, and enter 1.11 m for the Length in the box which opens tothe right of the word Chamfer.

6. Select the top right corner of the geometry to create the chamfer, as shown below.

Tutorial 5: Blunt Body

CFX-Mesh Tutorials . . © SAS IP, Inc.50

Page 55: Mesh , Rice University

7. Use Angle from the Dimensions Toolbox to specify the angle between the chamfer and the top of thesketch to be 25 degrees, as shown below. If the wrong angle is displayed just after you click on the secondedge, then (before you click to position the dimension) right-click and choose Alternate Angle until thecorrect angle is displayed. After you have selected both of the edges which form the angle, rememberto click once to position the label before typing the angle, 25 degrees, into the Dimensions box in theDetails View.

8. Use Length from the Dimensions Toolbox to specify the length of the slanted edge to be 1.11 m, asshown below.

The sketch is now complete, and can be extruded to form the body.

1.Select Extrude from the 3D Features Toolbar.

2. Set Base Object to be the new sketch (Sketch1), and set Operation to Add Material. Set Direction toReversed.

51CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 56: Mesh , Rice University

3.Set Depth to be 0.9725 m, and click on Generate to create the solid.

The front end of the blunt body is already rounded; however, some more material needs to be cut away from itto get the correct shape.

1.Create a new sketch ( ) based on the XYPlane.

2.Click on the Look At Face/Plane/Sketch icon ( ) to move the model to get a good view of the newsketch. This icon will always place the currently-selected object (a plane, face or sketch) in the center ofthe Model View, and rotate the model so that you are viewing the object perpendicularly (or, in the caseof a non-planar face, so that you get a reasonable view of it). Right-click on the Model View and drag abox over the Solid to zoom into it.

3. You need to create the sketch shown in the picture below. One way to do this is as follows:

a. Use Polyline from the Draw Toolbox of the Sketching tab to draw the two straight lines of approx-imately the right length. After you have clicked to place the third point (at the end of the secondline), then right-click and select Open End to finish the polyline.

b. Select Equal Length from the Constraints Toolbox and then click on the two straight lines. Thisensures that they will always remain the same length, so if one changes, the other one will alsochange.

c. Use Arc by Tangent from the Draw Toolbox to draw the quarter-circle, select the two end pointsof the polyline. If the wrong part of the arc is being drawn (i.e. a 270 degree segment instead of a90 segment) just before you click on the second end point, then right-click and select Reverse tocorrect it.

d. Use Vertical and Radius from the Dimensions Toolbox to fix the two dimensions shown. The valuesrequired are: V1 = 0.9725 m, R2 = 0.5 m.

4.Select Extrude from the 3D Features Toolbar.

5. Set Base Object to be the new sketch (Sketch2), and set Operation to Cut Material.

6.Set Depth to be 1.5 m, and click on Generate to cut away the material.

The end of your blunt body should now look the same as in the picture below.

Tutorial 5: Blunt Body

CFX-Mesh Tutorials . . © SAS IP, Inc.52

Page 57: Mesh , Rice University

Creating the Containing Box

The next step is to create the box around the blunt body to form the region for the fluid flow simulation. To stopthe new solid from merging with the blunt body, first you must freeze it, and you will also give it a name toidentify it more easily later on.

1. In the Tree View, click on the plus sign next to “1 Part, 1 Body” and then select Solid from the tree under-neath this entry. In the Details View, you will now see the information relating to the body. Click on theword “Solid” in this information, and change it to read “Blunt Body”. Pressing Enter on the keyboard willlet the name change take effect.

2. Select Tools>Freeze from the Menu Toolbar to freeze the body.

3.Create a new sketch ( ) based on the ZXPlane.

4. Use Rectangle from the Draw Toolbox of the Sketching tab to draw a rectangle as shown below. Notethat the rectangle extends below the bottom of the body (below the XYPlane). The required dimensionsare: V5 = 12.39 m, V6 = 17.61 m, H7 = 4.75 m, H8 = 0.25 m.

5.Select Extrude from the 3D Features Toolbar.

6. Set Base Object to be the new sketch (Sketch3), and set Operation to Add Material.

7.Set Direction to Reversed and Type to Fixed. Set Depth to be 5.15 m, and click on Generate tocreate the solid.

You can now cut out the blunt body from the containing box, to leave just the region of interest for the CFDsimulation.

53CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 58: Mesh , Rice University

1. Select Create>Body Operation from the Menu Toolbar.

2. Set Type to Cut Material and Bodies to the blunt body. To select the blunt body, you can click on BluntBody in the Tree View, under “2 Parts, 2 Bodies”.

3.Click on Generate to remove the blunt body from its containing box.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

Create the region for the inlet:

1. Create a Composite 2D Region called Inlet.

2. Select the rectangular face of the solid with the lowest X-coordinate to apply it to.

Create the region for the outlet:

1. Create a Composite 2D Region called Outlet.

2. Select the rectangular face of the solid with the highest X-coordinate to apply it to.

Create the region for the top free-slip wall:

1. Create a Composite 2D Region called Free1.

2. Select the rectangular face of the solid with the highest Z-coordinate to apply it to.

Create the region for the side free-slip wall:

1. Create a Composite 2D Region called Free2.

2. Select the rectangular face of the solid with the lowest Y-coordinate to apply it to.

Create the region for the symmetry plane:

1. Create a Composite 2D Region called SymP.

2. Select the rectangular face of the solid with the highest Y-coordinate to apply it to.

It is a good idea to create a separate region on the surface of the blunt body for visualization purposes and forsetting mesh controls.

1. Create a Composite 2D Region called Body.

2. You need to select the nine faces of the blunt body to apply this to. This can be done using Box Select:whilst holding down the left mouse button, drag a box across the body surfaces (as shown in the picture

Tutorial 5: Blunt Body

CFX-Mesh Tutorials . . © SAS IP, Inc.54

Page 59: Mesh , Rice University

below) to select them. All the surfaces which are fully enclosed in this box will be selected. Press Applyin the Details View to accept the selection.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.8 m, and press Enter on the keyboard to set thisvalue.

It is desirable to have a reasonably fine mesh around the surfaces of the blunt body. You can create a Face Spacingto concentrate nodes and elements in this region.

1. Right-click on Spacing and select Insert>Face Spacing

2. Select the Body Composite 2D Region by clicking on its name in the Tree View. Click on Apply in theDetails View.

3. In the Details View, set Face Spacing Type to Constant, and set the Constant Edge Length to 0.15 m.This sets the mesh length scale for the Face Spacing.

4. Set the Radius of Influence to 0.0 m, and Expansion Factor to 1.2.

You can use Inflation to produce a thin layer of prismatic elements around the body external surface and alongthe ground.

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

2. Set Expansion Factor to 1.3.

3. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

4. For Location, select both Body and Default 2D Region from the Tree View. Hold down the Ctrl key inorder to select the second of these.

5. Set Maximum Thickness to 0.1 m.

Generating the Surface Mesh

Obtain a view of the surface mesh over the surface of the blunt body using a Preview Group:

55CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 60: Mesh , Rice University

1. Right-click over Preview in the Tree View, and select Insert>Preview Group. Change the name of thePreview Group to Body.

2. For Location, select the Composite 2D Region Body from the Tree View.

3. Now right-click over the Preview Group Body in the Tree View, and select Generate This Surface Mesh.The surface mesh will be generated on just the corresponding faces.

Next, take a look at the mesh on the symmetry plane:

1. Right-click over Preview in the Tree View, and select Insert>Preview Group. Change the name of thePreview Group to SymP.

2. For Location, select the Composite 2D Region SymP from the Tree View.

3. Now right-click over the Preview Group SymP in the Tree View, and select Generate This Surface Mesh.The surface mesh will be generated on just the corresponding faces.

4. Click on the green Y-axis in the triad at the bottom right of the Model View to put the geometry into agood viewing position to inspect this mesh, and click on the Preview Group in the Tree View to displayit.

5. Zoom into the region of mesh near the front of the Blunt Body (as shown in the picture below), usingthe right mouse button to drag a box to define the required viewing area.

If you look at the inflation layers between the Body and the Ground (bottom), then you will see that there wasnot enough space for the mesher to add the full five layers of inflation (you may need to zoom in more to beable to see this). To see why this happens, display the mesh as it was before the inflated layers were generated.

1. Click on Preview in the Tree View, and in the Details View, set Display Mesh to Mesh Before Inflation.Re-display the Preview Group by clicking on its name in the Tree View.

Tutorial 5: Blunt Body

CFX-Mesh Tutorials . . © SAS IP, Inc.56

Page 61: Mesh , Rice University

You can now see that the gap between the Body and the ground is only around one to two elements thick, giventhe mesh spacing round the Body. Since the total height of the Inflation Layers would be approximately oneelement thick on each side of the gap, this explains why there is not enough room for the full 5 layers of inflationthat you set.

To avoid this problem without having to explicitly set a Face Spacing in the location of the small gap, you canuse Surface Proximity. Surface Proximity is a meshing feature that detects close surfaces, such as the base of thebody and the ground, and then refines the mesh so that a minimum number of mesh elements span the gap.The default number of elements across the gap is 4, and this is the minimum recommended when both faceshave inflation, such as in this case.

You can turn on Surface Proximity as follows:

1. Click on Proximity in the Tree View.

2. Set Surface Proximity to Yes and change the Number of Elements Across Gap to 3.

The value of 3 is lower than is generally recommended, in order to keep the mesh small for the tutorial.

1. Regenerate the mesh on the Preview Group SymP by right-clicking on its name in the Tree View andselecting Generate This Surface Mesh.

57CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 62: Mesh , Rice University

You will see that 3 elements now span the gap. The surface mesher has detected the close proximity of the twosurfaces and refined the mesh in this region, leading to elements of a higher quality.

Surface Proximity is an automatic method that produces higher quality meshes for many geometries. However,you should always check the size of the mesh produced, as it can dramatically increase the number of nodes. Insome cases it is important to use a minimum edge length to prevent over-refinement of the mesh; see the CFX-Mesh Help under Surface Proximity for more details.

Set the Preview options back to show the inflated layers:

1. Click on Preview in the Tree View, and in the Details View, set Display Mesh to Mesh After Inflation.Re-display the Preview Group by clicking on its name in the Tree View.

Tutorial 5: Blunt Body

CFX-Mesh Tutorials . . © SAS IP, Inc.58

Page 63: Mesh , Rice University

You can now see that the full five layers of inflation are present. A better quality mesh would have been achievedif the default setting of Number of Elements Across Gap (4) had been retained.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as BluntBodyMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 5: Flow Around a Blunt Body” using thenewly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then follow thesesteps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on BluntBodyMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as BluntBody.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

59CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 64: Mesh , Rice University

60

Page 65: Mesh , Rice University

Tutorial 6: Butterfly Valve

This example creates the geometry and mesh for a butterfly valve in a pipe. The following geometry and meshingfeatures are illustrated:

• Parasolid import of the valve geometry;

• splitting the geometry along a line;

• curvature-sensitive meshing;

• Face Spacing, for refining the mesh on a particular face;

• Inflation;

• Proximity, for refining the volume mesh when two faces are close together; and

• Preview Groups, for previewing part of the surface mesh.

This tutorial requires you to have a copy of the Parasolid file PipeValve.x_t. If you do not already have this file,then:

• On a Windows machine, download it here (you will need to execute the downloaded file to extract therequired Parasolid file).

• On a UNIX machine, download it here (you will need to use “gunzip” to extract the required Parasolid file).

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as PipeValve.wbdb.

2. Choose New Geometry and open up DesignModeler, specifying the units as millimeters.

Setting up the Valve Geometry

The first step is to import the valve geometry.

1. Select File>Import External Geometry File... from the Menu Toolbar.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 66: Mesh , Rice University

2. In the file browser which opens, locate the file PipeValve.x_t and choose to Open it. (If you have notalready got this file, refer to the introduction to this tutorial for details of where to find it.)

3.Click on Generate to import the valve.

The valve is imported with its flat faces parallel to the ZXPlane. For the simulation, it needs to be tilted at an angleof 35 degrees, so the next step is to move it. In DesignModeler, the way to move a body is to move it from oneplane to another. So first you need to create the new plane, and then use a Body Operation to transform thevalve.

1.Create a new plane ( ), based on the ZXPlane.

2. In the Details View, set Transform 1 to Rotate about Global X, and set the Value of the rotation to -35degrees.

3.Click on Generate to create the plane.

4. Select Create>Body Operation from the Menu Toolbar.

5. Set Type to Move and select the valve as Bodies. To select the valve, you can click on it in the ModelView.

6. Set Source Plane to ZXPlane and Destination Plane to Plane4.

7.Click on Generate to move the valve.

8. Click on ZXPlane to show the original plane, so that you can see how the valve has moved.

Creating the Pipe

You now need to create the pipe which surrounds the valve, in which the fluid flows. To stop the new solid frommerging with the valve, first you must freeze the valve solid, and you will also give it a name to identify it moreeasily later on.

1. In the Tree View, click on the plus sign next to “1 Part, 1 Body” and then select Solid from the tree under-neath this entry. In the Details View, you will now see the information relating to the body. Click on theword “Solid” in this information, and change it to read “Valve”. Pressing Enter on the keyboard will letthe name change take effect.

Tutorial 6: Butterfly Valve

CFX-Mesh Tutorials . . © SAS IP, Inc.62

Page 67: Mesh , Rice University

2. Select Tools>Freeze from the Menu Toolbar to freeze the valve.

3.Create a new plane ( ), based on the XYPlane.

4. In the Details View, set Transform 1 to Offset Z, and set the Value of the offset to -100 mm.

5.Click on Generate to create the plane. You may need to zoom out from the valve geometry to seethe new plane.

6.Create a new sketch ( ) based on the new plane, Plane5.

7. Use Circle from the Draw Toolbox of the Sketching tab to draw a circle in the new sketch, centered onthe origin and with radius 20 mm.

8.Select Extrude from the 3D Features Toolbar.

9. Set Base Object to be the new sketch (Sketch1), and set Operation to Add Material.

10.Set Depth to be 200 mm, and click on Generate to create the pipe.

Now you can subtract the solid material in the valve from the pipe, to leave a valve-shaped hole in the pipe. Theremaining solid is exactly the volume in which fluid flows, ready to set up a simulation of fluid flow past the valve.

1. Select Create>Body Operation from the Menu Toolbar.

2. Set Type to Cut Material and Bodies to the valve. To select the valve, you can click on Valve in the TreeView, under “2 Parts, 2 Bodies”.

3.Click on Generate to remove the valve material from the pipe.

Although it is not easy to see, the pipe now has a valve-shaped hole in it.

Splitting the Solid

Since this model exhibits symmetry about the YZPlane, you can divide it in two using a slice operation, and thenrun the simulation on only one half, to reduce the computing resources required. The slice operation can onlybe used on geometry which is frozen.

1. Select Tools>Freeze from the Menu Toolbar.

63CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 68: Mesh , Rice University

2. Create a new sketch based on Plane5.

3. Use Line from the Draw Toolbox of the Sketching tab to draw a single vertical line in the new sketch,along the Y-axis. The exact dimensions of the line are not important but the line must extent above thetop of the geometry (Y = 20 mm) and below the bottom of the geometry (Y = -20 mm).

4.Select Extrude from the 3D Features Toolbar.

5. Set Base Object to be the new sketch (Sketch2), and set Operation to Slice Material.

6.Set Depth to be 200 mm, and click on Generate to split the pipe.

7. Select Create>Body Operation from the Menu Toolbar.

8. Set Type to Delete and Bodies to the half of the pipe which has its X-coordinate positive, by clickingon it in the Model View.

9.Click on Generate to remove the unwanted half of the pipe.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

Create the region for the inlet:

1. Create a Composite 2D Region called inlet.

2. Select the semi-circular face of the pipe with the lowest Z-coordinate to apply it to.

Tutorial 6: Butterfly Valve

CFX-Mesh Tutorials . . © SAS IP, Inc.64

Page 69: Mesh , Rice University

Create the other regions:

1. Create a Composite 2D Region called outlet on the semi-circular face of the pipe with the highest Z-co-ordinate.

2. Create a Composite 2D Region called symP on the plane with the highest X-coordinate.

3. Create a Composite 2D Region called pipe wall on the semi-cylindrical pipe wall.

The remaining faces, the faces which form the valve, will be grouped into the Default 2D Region.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 4.5 mm, and press Enter on the keyboard to set thisvalue.

A fine mesh is required around the hinge of the valve and at the top and bottom of the valve plate. In this tutorial,you will use curvature-sensitive meshing. Using this utility, the mesh will automatically be refined in regionswhere the edges of the surfaces have a large curvature.

1. Click on Default Face Spacing in the Tree View, which is contained in Mesh>Spacing. This is a FaceSpacing object which is applied to all faces which do not have a Face Spacing explicitly defined.

2. Set Face Spacing Type to Angular Resolution and set the Angular Resolution to 18 degrees. Themesh will be refined wherever two adjacent surface mesh faces make an angle of more than the numberof degrees set by the Angular Resolution setting.

3. Set Minimum Edge Length to 0.5 mm. This prevents over-refinement in areas which have a very largecurvature.

4. Set Maximum Edge Length to 4.5 mm and leave the other parameters set to the default settings.

The Face Spacing settings above will produce a fine mesh around the highly-curved parts of the valve. You alsoneed to create another Face Spacing to increase the mesh density in the region near the valve hinge, where thefaces are flatter and therefore not refined so much by the Angular Resolution setting.

The four faces which are required for the location are the large flat faces of the valve. These can be quite trickyto select by just rotating the model and clicking on the faces, so try the following steps:

1. In order to better see the inside of the valve, click on Geometry in the Tree View, and in the Details View,set Transparency to 40 %.

2. Right-click on Spacing and select Insert>Face Spacing.

3. Put the model into the isometric view by clicking on the cyan ball in the triad at the bottom right of theModel View. Zoom into the valve itself by holding down the Shift key on the keyboard and the middlemouse button, and moving the mouse over the Model View. Position your cursor over the top valve faceas shown in the picture below.

65CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 70: Mesh , Rice University

4. Now click with the left mouse button as if you wanted to select this face. However, instead you get thesymmetry plane selected, since it was that face which was on top. Note that when you click, four rectanglesappear in a stack at the bottom left of the model view, as highlighted in the picture below.

5. The rectangles represent all of the faces which were under your cursor when you clicked. The top-mostone, at the left side of the stack, represents the top face and it is colored red to indicate that this face isselected. You actually wanted to select the next face down, which is represented by the second rectanglefrom the left. Click on this rectangle to select the top face of the valve.

Tutorial 6: Butterfly Valve

CFX-Mesh Tutorials . . © SAS IP, Inc.66

Page 71: Mesh , Rice University

6. Select the three flat faces on the other side of the valve by holding down Ctrl and clicking on them. Youmay need to rotate the model slightly to make it possible to pick all three.

7. Press Apply in the Details View. You should see that the text next to Location now reads 4 2D Regions.

8. In the Details View, set Face Spacing Type to Constant, and set the Constant Edge Length to 2 mm.

9. Set the Radius of Influence to 0.0 m, and Expansion Factor to 1.3.

This tutorial uses Surface Proximity to automatically refine the mesh where two faces are close to each otherwithout intersecting.

1. Click on Proximity in the Tree View.

2. Set Surface Proximity to Yes and change the Number of Elements Across Gap to 3.

In general, a value of 3 elements across a gap is not recommended when you want to produce a high qualitymesh. A small value is used in this case to minimize the size of the mesh for the tutorial.

Set up Inflated Boundaries on the walls:

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

2. Set Expansion Factor to 1.35. This is a large expansion factor. In general a value of 1.2 is recommended.

67CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 72: Mesh , Rice University

3. Change Inflation Option to First Layer Thickness, and set the First Prism Height to 0.5 mm.

The pipe wall is to be modeled as a rough wall with an equivalent sand grain roughness of 0.2 mm. Tomaintain the validity of the assumptions used in modeling rough walls, it is important that the thicknessof the first element off the wall is not much smaller than the equivalent roughness height. In general, avalue equal to the roughness height is recommended, which would be 0.2 mm here. It is also importantthat the mesh length scale does not increase dramatically in the transition from the last inflation layerto the rest of the volume mesh. The value chosen here for the first prism height, combined with the highexpansion factor, allows the elements in the inflation layers to expand to a reasonable size before thetransition to the rest of the volume mesh. To produce a good mesh for this geometry, a much smallerMaximum Spacing is required, allowing a First Prism Height of 0.2 mm to be used and a smooth transitionfrom the last inflation layer to the bulk volume mesh.

4. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

5. For Location, select both pipe wall and Default 2D Region from the Tree View. Hold down the Ctrl keyin order to select the second of these.

Generating the Surface Mesh

Next, take a look at the mesh on the pipe wall:

1. Right-click over Preview in the Tree View, and select Insert>Preview Group. Change the name of thePreview Group to pipe wall.

2. For Location, select the Composite 2D Region pipe wall from the Tree View.

3. Now right-click over the Preview Group pipe wall in the Tree View, and select Generate This SurfaceMesh. The surface mesh will be generated on just the corresponding faces.

4. Click over the axes in the bottom right corner of the Model View in the position shown in the picturebelow. As you move the cursor into this position, the black “-X”-axis will appear (it is not shown by default).This will put the geometry into a good position for viewing the mesh.

Tutorial 6: Butterfly Valve

CFX-Mesh Tutorials . . © SAS IP, Inc.68

Page 73: Mesh , Rice University

Notice how the nodes are concentrated around the valve.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as PipeValveMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 9: Flow Through a Butterfly Valve” usingthe newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then followthese steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on PipeValveMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as PipeValve.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

69CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 74: Mesh , Rice University

70

Page 75: Mesh , Rice University

Tutorial 7: Catalytic Converter

This example shows how to create the geometry and mesh for the inlet pipe and flange for a catalytic converter.The following geometry and meshing features are illustrated:

• the Skin/Loft operation to extrapolate between sketch profiles;

• Sketch Instances (copying and pasting an entire sketch); and

• Inflation.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as CatConv.wbdb.

2. Choose New Geometry to open DesignModeler, specifying the units as centimeters.

Creating the Sketches for the Inlet Flange

The first geometry operation will be to create four sketches to define the profile of the inlet flange. Two of thesketches are circles, and the other two consist of a more elongated shape constructed from eight edges (linesand curves). You will then use the Skin/Loft operation to connect the sketches. This operation requires that allsketches have the same number of edges, so the two circles will also have to be constructed with eight edges,and at an orientation which gives the smoothest connecting surface when the Skin/Loft operation is applied.

1.Create a new sketch ( ) based on the XYPlane.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 76: Mesh , Rice University

2. Use Circle from the Draw Toolbox of the Sketching tab to create the circle centered on the origin witha radius of 2.5 cm.

3. To break the circle into eight edges, use the Modify Toolbox of the Sketching tab. Click on Split, thenright-click on the Model View and select Split Edge into n Equal Segments.

4. Back on the Sketching tab, next to where you clicked on Split, you will now find a box which allows youto specify how many segments to break the circle into. Set it to 8 and select the circle in the Model Viewto perform the Split operation.

To re-orient the circle to give a smoother final surface, you will move it round by 22.5 degrees.

1. Select Move from the Modify Toolbox. In the two boxes which appear, set the rotation angle r to be 22.5degrees and leave the scale factor f unchanged.

2. Select all eight curves by clicking on them in turn (you don't need to hold down any mouse button todo this).

3. Right-click over the Model View and choose End/Use Plane Origin as Handle. This tells DesignModelerthat you have finished selecting the edges to copy, and that you want to use the origin of the plane asa reference point for the rotation and the paste action which follows.

4. Right-click in the Model View and select Rotate by r Degrees to perform the rotation (you won't seeany effect of this yet since it is only actually applied when you paste the circle into its new position).

5. Right-click again and select Paste at Plane Origin. You should see the original circle move round by22.5 degrees. No translation took place since you pasted the reference point (the origin of theplane/center of the circle) back at the Plane Origin.

6. Right-click again and select End.

The second sketch, Sketch2, is the second circle, placed in a different plane and made slightly bigger. Ratherthan constructing it from scratch and having to perform the Split and Move as you did for Sketch1, you will justcopy it from Sketch1.

1.Create a new plane ( ), based on the XYPlane.

2. In the Details View, set Transform 1 to Offset Z, and set the Value of the offset to 1 cm.

3.Click on Generate to create the plane.

Tutorial 7: Catalytic Converter

CFX-Mesh Tutorials . . © SAS IP, Inc.72

Page 77: Mesh , Rice University

4. Right-click on Plane4 in the Tree View and select Insert>Sketch Instance. A Sketch Instance is just acopy of an ordinary sketch.

5. In the Details View, set Base Sketch to Sketch1.

6. Set Scale to 1.05.

7.Click on Generate to create the Sketch Instance.

8. To be able to see both sketches, right-click on each in turn in the Tree View, and select Keep Visible.

You should now be able to see clearly both sketches, offset from each other and with the second one slightlylarger than the first.

The next sketch, Sketch3, is a different shape constructed of straight edges and quarter-circles.

1.Create a new plane ( ), based on the XYPlane.

2. In the Details View, set Transform 1 to Offset Z, and set the Value of the offset to 5 cm.

3.Click on Generate to create the plane.

4. Use Grid from the Settings Toolbox of the Sketching tab to set Show in 2D and Snap to on.

5. Set Major Grid Spacing to 5 cm and Minor-Steps per Major to 5.

6.Click on the Look At Plane/Face/Sketch icon ( ) to move the model to get a good view of the newplane. Zoom out a little by holding down the Shift key on the keyboard, pressing the middle mousebutton and dragging the mouse downwards.

7. Use the Draw Toolbox of the Sketching tab to construct the shape shown below. For reference, the shapeis 20 cm long and 12 cm high, and is orientated with the X-axis along the long axis of the shape.

a. Use Line to draw the four straight edges.

b. Use Arc by Tangent to draw the four quarter-circles. In each case, select the two end points of thearc. If the wrong part of the arc is being drawn (i.e. a 270 degree segment instead of a 90 segment)just before you click on the second end point, then right-click and select Reverse to correct it.

Sketch4 is just a copy of Sketch3.

1.Create a new plane ( ), based on the XYPlane.

73CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 78: Mesh , Rice University

2. In the Details View, set Transform 1 to Offset Z, and set the offset to 6 cm.

3.Click on Generate to create the plane.

4. Right-click on Plane6 in the Tree View and select Insert>Sketch Instance.

5. In the Details View, set Base Sketch to Sketch3.

6. Set Scale to 1.05.

7.Click on Generate to create the Sketch Instance.

8. To be able to see all four sketches, right-click on the last two in turn in the Tree View, and select KeepVisible.

Creating the Inlet Flange

Having created all four profiles, you can now create the solid which connects them by using the Skin/Loft oper-ation.

1. Click on the blue Z-axis in the triad at the bottom right of the Model View to put the geometry into agood viewing position for the selection.

2.Select Skin/Loft from the 3D Features Toolbar.

3. Either:

• Select the four profiles from the Model View by selecting the four edges shown in the picture below.You will need to hold down the Control key whilst selecting the second and subsequent edges. Selectthe edges in the correct order by taking the inside one first and then working outwards: the orderof the profiles is important because the Skin/Loft operation will make a surface which smoothly in-terpolates between them in the order which you specify.

or:

• Select the four profiles from the Model View by holding down the left mouse button and placing thecursor in approximately the middle of the center circle. Whilst still holding down the left button,move the mouse slowly outwards towards the top left of the model view. As you pass over eachsketch, it is selected and the edge that you passed the cursor over is highlighted. This automaticallyselects the sketches in the correct order (from inside to outside) which is important because theSkin/Loft operation will make a surface which smoothly interpolates between them in the orderwhich you specify.

Tutorial 7: Catalytic Converter

CFX-Mesh Tutorials . . © SAS IP, Inc.74

Page 79: Mesh , Rice University

4. Click on Apply after selecting the four profiles.

You will now be able to see some gray lines connecting the vertices of the profiles, one vertex from each. (Yourgray lines may be in slightly different places, depending on exactly which edges you created first in the differentsketches.) These lines are called guide lines, and give you a preview of how the Skin/Loft operation will connectthese vertices. Unfortunately, the gray lines in the picture above indicate that the wrong vertices are beingconnected: if you went ahead and created the solid without fixing this, then the resulting shape would be verytwisted. The correct way to join the vertices is shown in the picture below.

Unless your vertices happen to be connected like the ones in the picture above, you will need to fix the problem,as described below.

75CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 80: Mesh , Rice University

1. Right-click and select Fix Guide Line.

2. Select different edges on the sketches until the gray lines look correct.

Now continue to specify the settings for the Skin/Loft operation.

1. In the Details View for the Skin/Loft, set Merge Topology? to Yes. If you leave it as the default (No), thenthe solid which is created has 26 surfaces (a planar surface from the edges in Sketch1, a planar surfacefrom the edges in Sketch4, and 24 surfaces for the smooth curved surfaces interpolated between theprofiles). If you were to put a mesh onto this solid, then you would have to use a small mesh size to geta good quality mesh on and near the smallest surfaces. However, if you choose to Merge Topology directlyin DesignModeler, then the resulting solid only has three surfaces: the smooth curved surface is createdin one piece rather than 24 pieces. This solid can be meshed more evenly even with a coarser mesh size.

2.Click on Generate to create the Skin/Loft.

The solid should look like the picture below when appropriately orientated. See the notes below if the solid doesnot look correct or if you get error messages when you generate it.

If your solid is not correct, try the following.

• Check that each of the four sketches has exactly eight edges, particularly if you get messages about profilesnot having an equal number of edges. You can easily do this by selecting each sketch in the Tree Viewand reading the number of edges in the sketch from the Details View.

• Check that you have selected the profiles in the right order, particularly if you get messages about self-intersecting geometry. You can check the order by viewing the Details View for the Skin/Loft; the profilesare listed in the order of selection. Only the order 1-2-3-4 or 4-3-2-1 will allow the solid to be generatedcorrectly. If your profiles are in the wrong order, then fix this as follows:

1. Right-click on Skin1 in the Tree View and choose Edit Selections.

2. In the Details View, right-click on the name of the profile which is in the wrong order (e.g. Profile2),and use the commands Move to Top, Move up, Move down, and Move to Bottom to change theposition of the profile.

3.Click on Generate to modify the Skin/Loft.

• If you get a solid created which is very twisted, then check that the guide lines are correct: see above fordetails.

Tutorial 7: Catalytic Converter

CFX-Mesh Tutorials . . © SAS IP, Inc.76

Page 81: Mesh , Rice University

• If your solid is generated but looks to be the wrong shape, then you will have to check that each profileis correctly positioned, and that the planes you created (Plane4, Plane5 and Plane6) have the correct offsetsand are all based on the XYPlane. You should also check that you have selected all four profiles and haven'tmissed one.

Creating the Inlet Pipe

You can now create the inlet pipe which attaches to the flange which you have just created. This is in two sections:a curved section and an extruded straight section.

The curved section of the pipe is a Revolve operation based on Sketch1. However, you need to create a line toact as the axis for the rotation first.

1.Create a new sketch ( ) based on the XYPlane.

2. Use Line from the Draw Toolbox of the Sketching tab to draw a line which is parallel to the Y-axis, at X= 15 cm. The length of the line is unimportant.

3.Select Revolve from the 3D Features Toolbar.

4. Set Base Object to Sketch1 and Axis to the line which you have just drawn (which will be selected bydefault).

5. Set Direction to Reversed and Angle to 45 degrees.

6.Click on Generate to extrude the inlet pipe.

Finally, you can extrude to make the straight section of the pipe. However, you need to extrude from the endsurface of the pipe, which isn't currently defined as a sketch or plane, so first you need to construct the appropriateplane.

1.Create a new plane ( ).

2. Set Type to be From Face and Subtype to be Outline Plane.

77CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 82: Mesh , Rice University

3. Set Base Face to be the end of the pipe section which you have just created. This can be selected directlyby clicking on it in the Model View.

4.Click on Generate to create the plane.

5.Select Extrude from the 3D Features Toolbar.

6. Set Base Object to be the plane that you have just created (Plane7) and Depth to 10 cm.

7.Click on Generate to create the extrusion.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

In this case, two 2D Regions are required, one on the end of the pipe to allow an Inlet or Outlet Boundary Conditionto be applied and a second on the end of the flange to allow an Interface to be created between the flange andcatalyst housing.

1. Create a Composite 2D Region called PipeEnd on the circular face at the end of the pipe.

2. Create a Composite 2D Region called FlangeEnd on the planar face at the end of the flange, with thehighest Z-coordinate.

The remaining faces will be grouped into the Default 2D Region.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 1.0 cm, and press Enter on the keyboard to set thisvalue.

You can use Inflation to produce a thin layer of prismatic elements along the walls of the converter.

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

2. Leave the rest of the parameters as their default values.

3. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

4. For Location, select Default 2D Region from the Tree View.

5. Set Maximum Thickness to 0.5 cm.

Tutorial 7: Catalytic Converter

CFX-Mesh Tutorials . . © SAS IP, Inc.78

Page 83: Mesh , Rice University

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as CatConvMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 10: Flow in a Catalytic Converter” usingthe newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then followthese steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on CatConvMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as CatConv.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation”. In the section “Importing the Meshes”, you must carry out the instructions to import the hexmesh for the Housing section but the Pipe and Flange mesh, CatConvMesh.gtm will be already imported(from when the simulation was created) and should not be re-imported. You must follow the instructionsto transform the Pipe and Flange mesh, noting that it will be called “Assembly 1” not “Assembly 2” asnoted in the tutorial (since it was imported first).

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

79CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 84: Mesh , Rice University

80

Page 85: Mesh , Rice University

Tutorial 8: Annulus

This is a very simple example which shows how to mesh a two-dimensional geometry. The following geometryand meshing features are illustrated:

• Inflation,

• Extended Layer Growth for Inflation, and

• Extruded 2D meshing.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as NonNewton.wbdb.

2. Choose New Geometry to open DesignModeler, specifying the unit of length to be Foot.

Creating the Solid

1.Create a new sketch ( ) based on the XYPlane.

2. Use Grid from the Settings Toolbox of the Sketching tab to set Show in 2D and Snap to On.

3. Set Major Grid Spacing to 0.5 ft and Minor-Steps per Major to 4.

4. Use Circle from the Draw Toolbox of the Sketching tab to create a circle centered on the origin with aradius of 0.5 ft.

5. Use Circle again to create another circle centered on X = 0 ft, Y = 0.125 ft, with a radius of 0.75 ft.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 86: Mesh , Rice University

6.Select Extrude from the 3D Features Toolbar.

7. Set Base Object to be the sketch that you have just created (Sketch1) and Depth to 0.1 ft.

8.Click on Generate to create the solid.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

Create the 2D Regions:

1. Create a Composite 2D Region called rotwall on the inner wall, which will subsequently be rotating inthe CFD simulation.

2. Create a Composite 2D Region called SymP1 on the planar face with the lowest Z-coordinate.

3. Create a Composite 2D Region called SymP2 on the planar face with the highest Z-coordinate.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.02 feet, and press Enter on the keyboard to set thisvalue. (If you are using geometry which has come from the Parasolid import route, use the value 0.006m.)

This mesh will be used to simulate the flow of a non-Newtonian fluid in CFX-5, with its viscosity depending uponthe shear strain (see the CFX-5 example “Tutorial 11: Non-Newtonian Fluid Flow in an Annulus” for more details).A fine mesh is required on the inner and outer radius walls to resolve the shear layers and accurately predict theviscosity variation in the boundary layer regions. You will use inflation to create layers of prismatic elements onthe Wall boundaries. For this tutorial, you will use the First Layer Thickness option, which allows you to set theheight of the first prism layer (i.e. the one which actually touches the edge of the geometry). Successive prismlayers are then added, each one of thickness equal to the thickness of the previous layer multiplied by the Expan-sion Factor, until the height of the next prism layer is approximately equal to its width/length. Since the lastlayer of prisms have approximately unit aspect ratio (side lengths approximately equal), the transition betweenthe prism elements and the tetrahedral elements is smoother using this option. When the First Layer Thicknessoption is enabled, the Number of Inflated Layers is used as a maximum number of layers rather than an actualnumber of layers.

In addition, this tutorial will enable the Extended Layer Growth parameter. This is only available when the FirstLayer Thickness option is selected, and it allows extra prism layers to be added beyond the point where unitaspect ratio prisms are reached. Each of these extra layers is of the same thickness as the previous layer, so that

Tutorial 8: Annulus

CFX-Mesh Tutorials . . © SAS IP, Inc.82

Page 87: Mesh , Rice University

unit aspect ratio is maintained. The prisms continue to be added until either the Number of Inflated Layers isreached or the prism layers begin to collide with each other or with the geometry boundaries.

The Extended Layer Growth option is being used here to ensure that as much of the geometry as possible isfilled with prisms. This results in a smoother flow pattern for a coarser mesh since the flow is mostly aligned withthe prism layers.

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 40.

2. Set Expansion Factor to 1.3.

3. Set Inflation Option to First Layer Thickness and set First Prism Height to 0.0012 feet (or 0.00037m for Parasolid geometry).

4. Set Extended Layer Growth to Yes.

5. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

6. For Location, select Default 2D Region and rotwall from the Tree View.

7. Expand the Preview item in the Tree View, right-click over Default Preview Group, and select GenerateThis Surface Mesh. You should be able to see that the prism layers almost fill the geometry.

Setting up the Extruded 2D Mesh

CFX-Mesh has an Extruded 2D mesh capability which can be used to mesh two-dimensional geometries (suchas this one) or to extrude a mesh on one face through a specified translation to form an extruded mesh consistingof triangular prisms and hexahedra. In each case, the geometry is created as a normal 3D geometry. Once youactivate the Extruded 2D Meshing capability, then you must specify a Periodic Pair which can be either transla-tional or rotation: this identifies two sets of faces which map onto each other by the specified transformation.When you mesh, the surface mesh (including Inflation) is generated as usual. However, instead of volumemeshing in the normal manner, all the mesh apart from the mesh on one nominated set of faces (Location 1) isremoved, and the mesh on Location 1 is swept through the transformation specified for the Periodic Pair, givingthe 2D or extruded mesh.

In order to set up the Extruded 2D mesh, you must first activate the capability, and then create an Extruded 2DPeriodic Pair to define the direction of the extrusion.

1. Click on Options in the Tree View. In the Details View, set Meshing Strategy to Extruded 2D Mesh.

2. Set Number of Layers to 1. This will give a mesh which is just one layer thick along the Z-axis, so thatthe flow is truly two-dimensional. Higher values for the number of layers would give you an extrudedmesh which could be used for three-dimensional flow, such as a pipe mesh with elements all alignedalong the pipe direction.

After you have selected the Extruded 2D Mesh option, a new item will appear in the Tree View: Extruded 2DPeriodic Pair. At first this shows as being invalid because the locations have not yet been specified.

1. Click on Extruded 2D Periodic Pair.

2. For Location 1, select SymP1 from the Tree View.

3. For Location 2, select SymP2 from the Tree View.

4. Leave Periodic Type set to Translational.

5. Since the sketches which were used to produce this geometry in DesignModeler consist entirely of circleswhich have no vertices, CFX-Mesh is unable to determine the translation vector automatically, and you

83CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 88: Mesh , Rice University

must enter this in the boxes which appear. Set Translation Along Axis X to 0 feet, Translation AlongAxis Y to 0 feet, and Translation Along Axis Z to 0.1 feet (or 0.03048 m for Parasolid geometry).

Previewing the Surface Mesh

Next, take a look at the mesh which is produced.

1. Right-click over Default Preview Group, and select Generate This Surface Mesh.

2. In order to view the mesh clearly, right-click over Preview in the Tree View, and select Insert>PreviewGroup. For Location, select Default 2D Region, rotwall, and SymP2 from the Tree View.

3. Click on Preview in the Tree View, and in the Details View, set Display Mode to Wire Mesh, Face ColorMode to Uniform, and Uniform Color to a dark color (click on the existing color to bring up a color se-lector).

4. Now click on Default Preview Group in the Tree View to make it visible again.

You will be able to see that on the two curved surfaces, there are no triangles in the surface mesh. Instead, themesh on these faces consists of quad elements (four-sided elements) produced by extruding the mesh fromSymP1 to SymP2.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as NonNewtonMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

Tutorial 8: Annulus

CFX-Mesh Tutorials . . © SAS IP, Inc.84

Page 89: Mesh , Rice University

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 11: Non-Newtonian Fluid Flow in anAnnulus” using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine,then follow these steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on NonNewtonMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as NonNewton.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

85CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 90: Mesh , Rice University

86

Page 91: Mesh , Rice University

Tutorial 9: Mixing Tube

This is a simple example which shows how to add extra surfaces to a model which can then be used for boundaryconditions. The picture above shows the geometry: the three circular holes will be used in the final CFD simulationto inject the reactants to be mixed, and they must exist as distinct surfaces to allow the inlet boundary conditionsto be defined in the simulation. The following geometry and meshing features are illustrated:

• Imprint Surfaces, to add surfaces for boundary conditions;

• curvature-sensitive meshing;

• Inflation;

• Stretch, to reduce the number of elements along one axis; and

• Preview Groups, to view part of the surface mesh.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as Reactor.wbdb.

2. Choose New Geometry open DesignModeler, specifying the units as millimeters.

Creating the Solid

The first step is to create the solid for the mixing tube.

1.Create a new sketch ( ) based on the XYPlane.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 92: Mesh , Rice University

2. Use Rectangle from the Draw Toolbox of the Sketching tab to create a rectangle which extends from 0< X < 60 mm and -10 mm < Y < -4 mm.

3.Select Revolve from the 3D Features Toolbar.

4. Set the axis for the rotation as follows. First, click on the line which forms the bottom of the rectangle (Y= -10 mm), and then click on Apply in the Details View.

5. Set Direction to Both - Symmetric and Angle to 15 degrees.

6.Click on Generate to create the solid.

Notice that the curved surface of the solid consists of just one surface, as can be seen by clicking on it.

Breaking up the Curved Surface

You need to break up this surface so that the three circular holes are created as separate surfaces. The basicmethod to do this is to create a sketch containing the three circles, and then to Extrude with Imprint Surfaces toeffectively project the circles onto the full curved surface.

1.Create a new sketch ( ) based on the ZXPlane.

2. Use Circle from the Draw Toolbox of the Sketching tab to create three circles in this sketch, as shownbelow. The circles each have radius 0.75 mm, and their centers are positioned 5 mm, 15 mm and 25 mmfrom the X-axis respectively. The easiest way to do this is to draw the circles in approximately the rightposition. Then use Equal Radius from the Constraints Toolbox of the Sketching tab to set two of thecircles to have the same radius. Repeat to set the third circle to have the same radius as one of the othertwo. Then set the radius of any one of the circles to be 0.75 mm, and the other circles will automaticallytake the same radius. You can then set their distances from the X-axis appropriately.

Note that if you happen to draw the circles sufficiently close to having an equal radius, then DesignModelerwill apply an Auto Constraint to the circles, constraining their radii to be equal. If this happens and youtry to set the radius of both circles explicitly, then you will see a warning: “New dimension makes modelover-constrained.” when you try to dimension the radius of the second or subsequent circle. If you dosee this warning, then click OK to clear the warning and then right-click over the Model View and selectCancel. You will not need to set a dimension on this circle in this case: its radius will always be identicalto the radius that you have already set.

Tutorial 9: Mixing Tube

CFX-Mesh Tutorials . . © SAS IP, Inc.88

Page 93: Mesh , Rice University

Now you can create the Extrude.

1.Select Extrude from the 3D Features Toolbar.

2. Set Base Object to be the new sketch (Sketch2), and set Operation to Imprint Faces.

3. Set Direction to Reversed, Type to be To Faces, and select the curved surface as the Target Face.

4.Click on Generate to break up the surface.

You should now find that if you click on the curved surface of the solid, it consists of four separate surfaces: thethree circles and the remainder.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

Create the 2D Regions:

1. Create a Composite 2D Region called InWater on the nearly-triangular face with the lowest X-coordinate.

2. Create a Composite 2D Region called InAcid on the circular face nearest to the InWater 2D Region whichyou have just created. The circle is part of the curved face of the reactor.

3. Create a Composite 2D Region called InAlkali on the two remaining circular faces.

89CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 94: Mesh , Rice University

4. Create a Composite 2D Region called out on the nearly-triangular face with the highest X-coordinate.

5. Create a Composite 2D Region called sym1 on the planar face with the higher Z-coordinates.

6. Create a Composite 2D Region called sym2 on the planar face with the lower Z-coordinates.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.6 mm, and press Enter on the keyboard to set thisvalue.

A fine mesh is required around the circular inlets. In this tutorial, you will use curvature-sensitive meshing. Usingthis utility, the mesh will automatically be refined in regions where the edges of the surfaces have a large curvature.

1. Click on Default Face Spacing in the Tree View, which is contained in Mesh>Spacing. This is a FaceSpacing object which is applied to all faces which do not have a Face Spacing explicitly defined.

2. Set the Angular Resolution to 18 degrees. The mesh will be refined wherever two adjacent surfacemesh edges make an angle of more than the number of degrees set by the Angular Resolution setting.

3. Set Minimum Edge Length to 0.15 mm. This prevents over-refinement in areas which have a very largecurvature.

4. Set Maximum Edge Length to 0.6 mm and leave the other parameters to the default settings.

Generating the Surface Mesh

To see the effects of curvature-sensitive meshing, preview the surface mesh on the wall of the reactor.

1. Right-click over Preview in the Tree View, and select Insert>Preview Group. Change the name of thePreview Group to wall.

2. For Location, select the Composite 2D Region Default 2D Region from the Tree View.

3. Now right-click over the Preview Group wall in the Tree View, and select Generate This Surface Mesh.The surface mesh will be generated on just the corresponding faces.

4. Zoom into the area around the three circular inlets by clicking with the right mouse button and dragginga zoom box over the area required.

You will see that the mesh has been automatically refined around the three inlets.

Setting up Stretch and Inflation

Since the geometry is long and thin, it is appropriate to generate a stretched mesh to expand the mesh elementsin the X-direction. In practice, the geometry is expanded by the specified factors, meshing takes place and thenthe geometry is contracted back to its original size. This results in fewer elements along the length of the reactorwithout affecting how many elements are present in a cross-section of the tube.

Tutorial 9: Mixing Tube

CFX-Mesh Tutorials . . © SAS IP, Inc.90

Page 95: Mesh , Rice University

1. Click on Stretch in the Tree View.

2. Set Stretch in X to 0.5 and leave the other stretch factors set to 1.

3. Regenerate the mesh by right-clicking on the Preview Group wall and selecting Generate This SurfaceMesh.

It is a good idea to put inflation on the reactor wall.

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

2. Set Expansion Factor to 1.3. Leave the rest of the parameters as their default values.

3. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

4. For Location, select Default 2D Region from the Tree View.

5. Set Maximum Thickness to 0.6 mm.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as ReactorMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 13: Reacting Flow in a Mixing Tube”using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then followthese steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on ReactorMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as Reactor.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

91CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 96: Mesh , Rice University

92

Page 97: Mesh , Rice University

Tutorial 10: Heating Coil

This example creates the geometry and mesh for a heating coil, which consists of a solid copper coil in a vesselcontaining liquid. Two solid bodies are required, one for the coil and one for the containing vessel. The followinggeometry and meshing features are illustrated:

• the Sweep operation to create the coil;

• multiple solid bodies;

• Body Operations;

• Face Spacing, to refine the mesh on a particular face;

• Inflation;

• Proximity; and

• Preview Groups, to view part of the surface mesh.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as HeatingCoil.wbdb.

2. Choose New Geometry to open DesignModeler, specifying the units as meters.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 98: Mesh , Rice University

Creating the Profile and Path

You will use the Sweep action to create the coil, and this requires sketches to define the profile (the circle whichforms the cross-section for the coil) and the path around which it will be swept.

1.Create a new sketch ( ) based on the YZPlane.

2. The sketch needs to contain a circle with radius 0.1 m and centered on Y = 0.75 m, Z = 0.5 m. Set up thegrid to have a Major Grid Spacing of 1 m and Minor-Steps per Major of 4 to help you position thecenter of the circle.

3. Use Circle from the Draw Toolbox of the Sketching tab to create the circle centered on Y = 0.75 m, Z =0.5 m with any convenient radius. Then adjust the radius to 0.1 m by using the Dimensions section ofthe Sketching tab.

4. This example will split the circle into two pieces, for reasons which will be explained later on. To breakthe circle into two pieces, use the Modify Toolbox of the Sketching tab. Click on Split, then right-clickon the Model View and select Split Edge into n Equal Segments.

5. Back on the Sketching tab, next to where you clicked on Split, you will now find a box which allows youto specify how many segments to break the circle into. Set it to 2 and select the circle in the Model Viewto perform the Split operation.

6.Create another new sketch ( ), Sketch2, also based on the YZPlane.

7. Use the Line tool from the Sketching tab to create a single straight line along the Z-axis, from Z = 0.5 mto Z = 1.5 m.

Using Sweep to Make the Coil

1.Select Sweep from the 3D Features Toolbar.

2. Set the Profile to be Sketch1: click on Sketch1 in the Tree View and then click on Apply in the DetailsView at the bottom-left of the screen.

3. Set the Path to Sketch2: click on the Not selected text next to Path, click on Sketch2 in the Tree View,and then click on Apply.

4. Set the Scale to 1.

5. Set the number of Turns to 2.

6.Click on Generate to create the coil.

Tutorial 10: Heating Coil

CFX-Mesh Tutorials . . © SAS IP, Inc.94

Page 99: Mesh , Rice University

Extruding the Bottom End of the Coil

If you look at the full picture of the geometry at the top of this example, you will be able to see that the ends ofthe coil are extruded to the edges of the container. However, the extrusion is not normal to the faces at the endof the coil: if you were to extrude in the normal direction then the coil would look like the picture (a) below,whereas the actual coil is shown in picture (b).

(b)(a)

To create the extrusion in a direction which is not normal to the faces, you need to define a vector which givesthe direction for the extrude. The way that you will create the vector here is to calculate explicitly the angle

at which the extrusion takes place to maintain the smooth gradient from the main coil into the extrusion.Straightforward trigonometry shows that the angle between the path and the horizontal is 6.06 degrees:

95CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 100: Mesh , Rice University

1.Create a new sketch ( ) based on the ZXPlane.

2. Use Line from the Draw Toolbox of the Sketching tab to create the line. To position it, place the firstpoint at Z = 0 m, X = 0 m and then put the second point down at approximately the correct angle, asshown in the picture below.

3. Now specify the exact angle as follows. Use the Dimensions section of the Sketching tab, and chooseAngle. Then click on the line and then on the X-axis. If the wrong angle is displayed after you have selectedthe axis, then right-click and choose Alternate Angle until the correct angle is displayed. Click in theModel View to position the angle label. Finally, type the angle, 6.06 degrees, into the Dimensions boxin the Details View.

The Extrude operation can be used for this extrusion.

1.Select Extrude from the 3D Features Toolbar.

2. Set Base Object to be Sketch1, and set Operation to Add Material.

3. Click on Direction Vector to change it from just being None (Normal). Right-click in the Tree View overSketch3, and select Keep Visible, then click on the single line in Sketch3 which defines the directionvector. Press Apply in the Details View. The text should now read 2D Edge.

4.Set Depth to be 1.2 m and Merge Topology? to No. Click on Generate to extrude the bottomend of the coil.

Extruding the Top End of the Coil

The actions above will be repeated to extrude the top part of the coil. However, there is no existing sketch touse to extrude from. Instead, you will create a new plane from the top circular end of the coil, which can be usedfor this purpose.

1.Create a new plane ( ).

2. Set Type to be From Face and Subtype to be Outline Plane.

3. Set Base Face to be the circular face at the top of the coil. This can be selected directly by clicking on itin the Model View.

Tutorial 10: Heating Coil

CFX-Mesh Tutorials . . © SAS IP, Inc.96

Page 101: Mesh , Rice University

4.Click on Generate to create the plane.

The Extrude operation can again be used for this extrusion.

1.Select Extrude from the 3D Features Toolbar.

2. Set Base Object to be Plane4, and set Operation to Add Material.

3. Click on Direction Vector to change it from just being None (Normal). Click on the single line in Sketch3which defines the direction vector, which is the same as for the previous Extrude. Press Apply in theDetails View. The text should now read 2D Edge.

4.Set Direction to Reversed, Depth to 1.2 m, and Merge Topology? to No. Click on Generate toextrude the top end of the coil.

Trimming the Ends of the Coil

Now trim the ends of the coil as follows.

1. Create a new sketch based on the XYPlane.

2. Use Circle from the Draw Toolbox of the Sketching tab to draw two circles in the new sketch. Both shouldbe centered on the origin, and their radii should be exactly 1 m and at least 1.5 m respectively.

3.Select Extrude from the 3D Features Toolbar.

4. Set Base Object to be the new sketch, and set Operation to Cut Material.

5.Set Depth to be 2 m, and click on Generate to remove the ends of the pipes.

Creation of the Container

You have already created the coil, and the next step is to create the container around the coil. DesignModelerhas an Enclosure feature which allows the easy creation of a cylindrical enclosure around a solid body and gen-erates the cylinder automatically; however, this only works if the solid body is not required to touch the edgesof the enclosure. In this case, the ends of the coil will touch the sides of the container, so although the Enclosurefeature can be used, you will have to construct the cylinder manually first.

The first step is to freeze the coil, so that it is not affected by the next geometry creation actions, and to give ita name, so that it can easily be identified later.

97CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 102: Mesh , Rice University

1. Select Tools>Freeze.

2. In the Tree View, click on the plus sign next to “1 Part, 1 Body” and then select Solid from the tree under-neath this entry. In the Details View, you will now see the information relating to the body. Click on theword “Solid” in this information, and change it to read “Coil”. Pressing Enter on the keyboard will let thename change take effect.

3.Create a new sketch ( ) based on the XYPlane.

4. Use Circle from the Draw Toolbox of the Sketching tab to draw two circles in the new sketch. Both shouldbe centered on the origin, and their radii should be exactly 1 m and 0.5 m respectively. Since a circle ofradius of 1 m already exists in an earlier sketch, you may find that if you try to set the radius of the outercircle to be 1 m using the Dimensions Toolbox, you get a warning: “New dimension makes model over-constrained.” This occurs if DesignModeler has applied Auto Constraints to your new circle, alreadyconstraining the radius to be 1 m to match the existing circle. If you do see this warning, then click OKto clear the warning and then right-click over the Model View and select Cancel. You will not need toset a dimension on this circle in this case.

5.Select Extrude from the 3D Features Toolbar.

6. Set Base Object to be the new sketch, and set Operation to Add Material.

7.Set Depth to be 2.25 m, and click on Generate to create the container.

8. In the Tree View, under where it says “2 Parts, 2 Bodies”, click on Solid. In the Details View, click on the“Solid”, rename it to “Container” and then press Enter on the keyboard.

The next step is to cut the coil out from the container, using the Enclosure feature.

1. Select Tools>Enclosure from the Menu Toolbar.

2. Set Shape to User Defined.

3. Select the container as the User Defined Body. To select it, you can click on Container in the Tree View,under “2 Parts, 2 Bodies”.

4. Set Merge Parts? to Yes. This ensures that the final bodies are all in one part, and saves you from havingto merge them into one part explicitly later on. The Merge Parts operation is able to operate more reliablyif the surfaces which form the interface between the two parts are not just closed loops, and this is thereason for breaking the circle in Sketch 1 into two separate pieces.

5.Click on Generate to cut the coil out from the container.

This operation cuts a coil-shaped hole in the container, without deleting the coil, as required.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Tutorial 10: Heating Coil

CFX-Mesh Tutorials . . © SAS IP, Inc.98

Page 103: Mesh , Rice University

Setting up the Regions

Create the 2D Regions:

1. Create a Composite 2D Region called inflow on the large annular face with the lowest Z-coordinate.

2. Create a Composite 2D Region called outflow on the large annular face with the highest Z-coordinate.

Finally, you need to create a Composite 2D Region on the coil itself. First, you need to understand an importantdistinction between 2D Regions and solid faces which applies when there is more than one Solid Body presentin the model (which is what we have here: one solid is the coil, and the other is the container). Where two SolidBodies meet at a common face, there is just one face present in the geometry; however, there are two 2D Regions,as shown in the example below.

If your model has only one solid, then there is no difference between a face and 2D Region. If your model hasmore than one solid, then all of the external faces will also be 2D Regions. However, two 2D Regions will existfor every internal (shared) face.

So when you create the Composite 2D Region on the coil, you have to be very clear which side of the face youwant to select to include in the 2D Region. Since you are going to be applying Inflation to the 2D Region, youneed to select the 2D Regions on the container side of the faces, so that the Inflation grows into the container(where you have fluid flow and need to resolve the boundary well) and not into the coil itself (where there isonly heat transfer and no particular need to resolve the boundary fields).

To make the selection easier and to ensure that you only pick 2D Regions on the container side and not the coilside, you will first suppress the coil. This ensures that only the container faces can be picked.

1. Click on the plus sign next to Geometry in the Tree View to open it up. Click on the plus sign next toPart 3 to show that the Part contains two Bodies.

2. Click on the name of each Body in turn: this will highlight the appropriate Body in the Model View. Notewhich Body corresponds to the coil and which corresponds to the container.

3. Right-click on the Tree View entry for the coil Body in the Tree View, and select Suppress.

4. Right-click over Regions in the Tree View and select Insert>Composite 2D Region. Change its nameto coil surface.

5. Click on the green Y-axis in the triad at the bottom right of the Model View to put the geometry into agood viewing position for the selection.

6. In order to better see the inside of the coil, click on Geometry in the Tree View, and in the Details View,set Transparency to 40 %.

7. Click back on the new Composite 2D Region in the Tree View, and then select all six of the coil faces,pressing Apply to finalise the selection. These can be most easily selected by using Box Select (drag abox across the Model View which encloses the whole of the coil but not the whole of the cylinder whilstholding down the left mouse button).

99CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 104: Mesh , Rice University

If you only appear to have five or four faces making up the coil surface, then go back to your Design-Modeler tab and check that you set Merge Topology? to No for both of your Extrude operations. If youfind that you did make a mistake in DesignModeler, then fix the problem in DesignModeler (making surethat you press Generate to apply the changes) and then in CFX-Mesh, right-click over Geometry in theTree View and select Update Geometry to update the CFX-Mesh session to use the corrected geometry.

8. In order to see clearly which 2D regions you have selected, right-click over Part 3 in the Tree View underGeometry, and select Suppress. Now click on the new region name coil surface to see exactly whichfaces it contains. The regions selected should look like the picture below.

9. Now right-click on Part 3 and choose Unsuppress. Note that the coil Body is still suppressed. If you wereto leave it suppressed, then it would not be included in the mesh.

10. Right-click on the coil Body and select Unsuppress.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.1 m, and press Enter on the keyboard to set thisvalue.

1. Right-click on Spacing and select Insert>Face Spacing

2. In the Details View, set Face Spacing Type to Constant, and set the Constant Edge Length to 0.07 m.

3. Set the Radius of Influence to 0.0 m, and Expansion Factor to 1.2.

4. For Location, select the Composite 2D Region coil surface from the Tree View.

Note that the Composite 2D Region coil surface only contains one side of the coil faces, not both. However, bysetting a Face Spacing on this region, you are implicitly controlling the face spacing on the both sides of the coilfaces since the surface mesh on both sides of the faces must be identical.

Proximity will greatly improve the mesh for this tutorial. However, in order to keep the number of elements downfor tutorial purposes, the Number of Elements Across Gap is reduced from the recommended number 4 downto 2.

1. Click on Proximity in the Tree View.

2. Set Surface Proximity to Yes and change the Number of Elements Across Gap to 2.

Create an Inflated Boundary on the coil:

Tutorial 10: Heating Coil

CFX-Mesh Tutorials . . © SAS IP, Inc.100

Page 105: Mesh , Rice University

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 4.

2. Leave the rest of the parameters as their default values.

3. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

4. For Location, select coil surface from the Tree View.

5. Set Maximum Thickness to 0.1 m.

Because only one side of the faces which form the boundary between the coil and container are contained incoil surface, Inflation will only take place on the container side of the faces.

Generating the Surface Mesh

You can visualise your inflation layer to see the effect of choosing only one side of the coil faces for Inflation.

1. Right-click over Default Preview Group, and select Generate This Surface Mesh.

Your mesh should show that the inflated layers are all outside the coil. You may see that the inflation layers donot go all the way round the coil ends; this is because the coil meets the container at a very shallow angle andthe inflator cannot easily fill the very narrow gap.

You may also find that the surface mesh generation process produces warnings about poor angles. This indicatesthat the mesh is not of a high quality, and it is the result of meshing this geometry with over-coarse length scales(in order to keep the solution time down for tutorial purposes).

Now create another Inflated Boundary on the wall of the container:

1. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

2. For Location, select the outside and inside walls of the container (the large cylindrical face and the innercylindrical face) from the Model View.

3. Set Maximum Thickness to 0.1 m.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as HeatingCoilMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 14: Conjugate Heat Transfer in a HeatingCoil” using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, thenfollow these steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on HeatingCoilMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as HeatingCoil.

101CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 106: Mesh , Rice University

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

Tutorial 10: Heating Coil

CFX-Mesh Tutorials . . © SAS IP, Inc.102

Page 107: Mesh , Rice University

Tutorial 11: Airlift Reactor

This example creates the geometry and mesh for an airlift reactor or bubble column. The two figures above showthe geometry created in DesignModeler (left) and a schematic picture of the full geometry, not to scale (right).In the CFD simulation, the air is input through a small ring sparger. It then rises up to the top of the geometryand leaves the reactor. A thin draft tube helps to stabilize the rising plume of bubbles. The full geometry is rota-tionally symmetric, so only a 30-degree segment needs to be modeled.

The draft tube will modeled as a “thin surface” (which has no thickness), and so it must be created as an internalface of a separate body, which will need to be created in DesignModeler. The following geometry and meshingfeatures are illustrated:

• multiple solid bodies;

• Imprint Surfaces, to add surfaces for boundary conditions; and

• Face Spacing, to refine the mesh on a particular face.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 108: Mesh , Rice University

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as BubbleColumn.wbdb.

2. Choose New Geometry to open DesignModeler, specifying the units as centimeters.

Creating the Main Solid

The first step is to create the main solid.

1.Create a new sketch ( ) based on the XYPlane.

2. Use Polyline from the Draw Toolbox of the Sketching tab to create a closed polyline in the shape shownbelow (the Y-axis is vertical). To close the polyline, right-click over the Model View after you have selectedthe last point and select Closed End.

3. Use Circle from the Draw Toolbox to create the circle shown in the diagram.

4. Use the Dimensions Toolbox of the Sketching tab to add the dimension labels H1, H2, etc. shown in thepicture. It does not matter if your labels do not have the same names as the ones in the picture. You willneed to use the Horizontal, Vertical and Radius items from this Toolbox to label the “H”, “V” and “R”dimensions, respectively.

5. To ensure that the length of the bottom of the reactor is the same as the length of the top (H1), selectEqual Length from the Constraints Toolbox of the Sketching tab, and then select the top and bottomedges of the sketch. This ensures then when you set (or change) the dimension H1, both top and bottomof the reactor are affected.

6. Now use the table below to assign actual lengths to the dimensions listed in the Details View. Since theoriginal sketch is not to scale, you will find that the geometry changes shape as you apply each one,particularly when you specify the bubble column height.

LengthDimension label in picture above

8.0 cmH1Column radius

Tutorial 11: Airlift Reactor

CFX-Mesh Tutorials . . © SAS IP, Inc.104

Page 109: Mesh , Rice University

2.5 cmH2Distance between draft tube and outside of column

3.0 cmH3Distance between axis and sparger

77.0 cmV4Height of column

3.5 cmV5Distance between top of draft tube and column top

3.5 cmV6Distance between bottom of draft tube and column base

3.5 cmV7Height of sparger above column base

0.4 cmR8Radius of sparger

Now you can use this sketch to create the solid body.

1.Select Revolve from the 3D Features Toolbar.

2. Set the axis for the rotation by clicking on the Y-axis and then clicking on Apply in the Details View.

3. Leave Direction set to Normal and Angle set to 30 degrees.

4.Click on Generate to create the solid.

Breaking the Sparger Surface to form the Inlet

When the CFD simulation is run, the gas is injected through the top of the small circular hole, through a 74-degreesegment. Currently, the hole is defined with just one surface, so this must be broken to allow the boundaryconditions to be appropriately defined. The steps below explain how to modify the solid to achieve this. All ofthis could have been done as part of the original construction of the solid, but this tutorial has split the steps upto make it clear exactly what each step achieves.

1. The display will be clearer for the next step if you hide the solid for now: double-click on 1 Part, 1 Bodyin the Tree View, right-click on Solid, and choose to Hide Body.

2. Select Sketch1 from the Tree View and go to the Modify Toolbox of the Sketching tab.

3. Click on Split, and break the circle into two parts by clicking on it in approximately the positions shownbelow in the picture below. The exact position of the breaks does not matter for the moment, but makesure that you don't choose break points which are exactly at the highest or widest points of the circle.

Simply breaking the circle into two parts and regenerating the solid isn't enough to make the hole have twosurfaces. This is because by default, the Revolve operation is set to use Merge Topology? as Yes. This has theeffect of optimizing the topology of the resulting solid, which in this case means that the hole is always createdas just one surface.

1. Select the Revolve1 object from the Tree View.

105CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 110: Mesh , Rice University

2. Set Merge Topology? to No.

3.Click on Generate to apply the changes to the solid.

4. Show the solid again by right-clicking on Solid in the Tree View, and choosing to Show Body.

You should now find that the hole in the solid has two faces as required.

The final step in the construction of this solid is to position the two breaks in the circle in the correct location.As before, this could have been combined with the earlier steps, but it is clearer to separate it out for the purposesof the tutorial. To position the breaks correctly, you will create a second sketch which is not used to generate asolid directly but acts to constrain the breaks in the circle.

1. Hide the solid again by right-clicking on Solid in the Tree View, and choosing to Hide Body.

2.Create a new sketch ( ) based on the XYPlane.

3. Zoom into the circle from Sketch1 by clicking with the right mouse button somewhere near the circleand dragging a box over it whilst holding down the mouse button.

4. Use Line from the Draw Toolbox of the Sketching tab to draw a vertical line with one endpoint at thecenter of the circle in Sketch1. You can make sure the line starts on the existing center point by ensuringthat as you click the mouse button on it, a letter “P” appears next to the cursor. This tells you that youare choosing an existing point and not creating a new point. For the second point, move the cursor ap-proximately vertically upwards and adjust it until a “V” appears next to the line. If you click whilst the “V”shape is present then the line is automatically constrained to be vertical. The length of the line does notmatter, since you are only going to use it to define a symmetry axis.

5. Now draw two more lines, connecting each of the two vertices on the circle (where you split it) to thecenter of the circle. Again, you can make sure the lines start and finish on the existing points by ensuringthat as you click the mouse button on the appropriate point, a letter “P” appears next to the cursor.

6. The next step is to constrain the points so that they are symmetrically placed on each side of the verticalline. Select the Constraints Toolbox of the Sketching tab, and click on Symmetry. Click first on the ver-tical line to pick the symmetry axis, and then click on the two straight lines to position them symmetrically.

This move the points in the Sketch2 to be symmetric about the vertical line. However, when you created thesepoints you defined them to be coincident points with the breaks in the circle in Sketch1, so this operation willalso move the circle breaks in Sketch1 to be symmetric.

1. Select Angle from the Dimensions Toolbox of the Sketching tab.

2. Set the angle between the two lines to be 74 degrees. If the wrong angle is displayed after you haveselected the second line, then before you click to fix the label, right-click and choose Alternate Angleuntil the correct angle is displayed.

Tutorial 11: Airlift Reactor

CFX-Mesh Tutorials . . © SAS IP, Inc.106

Page 111: Mesh , Rice University

1.Click on Generate to modify the solid.

2. Show the solid again by right-clicking on Solid in the Tree View, and choosing to Show Body.

Creating the Second Solid

Now what remains is to create the second solid, which fills in the gap at the outside of the reactor. If you just askto create another solid, then the operation Add Material will add material to the first solid rather than creatinga second solid as desired. The way to avoid this is to use Add Frozen instead of Add Material. Then the solidcreation operation, Extrude in this case, will add a new, separate solid. A frozen solid is not affected by mostgeometry operations that follow, and will appear by default as slightly transparent.

To create the second solid, you first need to create a plane to extrude from.

1.Make sure that no faces are selected, and then create a new plane ( ).

2. Set Type to From Face and check that Subtype is set to Outline Plane. If Subtype is already set toTangent Plane, then you will not be able to change it: delete the new plane, make sure that no facesare selected (by clicking somewhere in the Model View away from the geometry) and create a new planeinstead.

3. For the Base Face, select the horizontal face at 3.5 cm above the bottom of the reactor - see the picturebelow - and then click on Apply in the Details View.

4.Click on Generate to create the plane.

107CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 112: Mesh , Rice University

1.Select Extrude from the 3D Features Toolbar.

2. Set Operation to Add Frozen.

3. Set Type to To Faces. This will make the Extrude stop when it reaches the selected face(s).

4. Set the Target Face as the horizontal surface which is 3.5 cm below the top of the reactor

5.Click on Generate to create the solid.

Tutorial 11: Airlift Reactor

CFX-Mesh Tutorials . . © SAS IP, Inc.108

Page 113: Mesh , Rice University

The Tree View should now show that you have 2 Parts, 2 Bodies. In order to produce a single mesh on the twobodies, they must be combined into one part.

1.From the Selection Toolbar at the top of the window, turn on Select Bodies ( ). This means that youcan only select Solid Bodies in the next operation, which helps to make the selection process easier.

2. In the Model View, select one of the two Bodies by clicking on them with the left mouse button. Holddown the Ctrl key and then click on the other one in order to add to the original selection.

3. Right-click over the Model View and select Form New Part.

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

109CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 114: Mesh , Rice University

Setting up the Regions

Create the 2D Regions:

1. Create a Composite 2D Region called Sparger on the top part of the small hole (the ring sparger).

2. Create a Composite 2D Region called Top on the very top face of the reactor (highest Y-coordinate).

3. Create a Composite 2D Region called Column on the column walls. You need to select five faces: thethree parts of the outside wall (highest X-coordinate), the bottom face of the reactor (lowest Y-coordinate)and the bottom part of the small hole which forms the ring sparger.

4. Create a Composite 2D Region called Symmetry1 on the two faces which lie in the XYPlane.

5. Create a Composite 2D Region called Symmetry2 on the two faces which are directly opposite the facesused for Symmetry1.

Finally, create a Composite 2D Region on the internal face which will form the draft tube. In order to do this, itis important to understand the difference between faces and 2D Regions when there are multiple solids in thegeometry, and how to use the selection rectangles. If you have not already done so, you are advised to workthrough or at least read the meshing section of Tutorial 6: Butterfly Valve and the meshing section of Tutorial10: Heating Coil.

For the Composite 2D Region which comprises the draft tube, it is appropriate to include only one side of theinternal face. When you come to set up the Thin Surface boundary condition in CFX-Pre, the other side of theface will then be automatically identified as the other side of the thin surface.

1. Right-click over Regions in the Tree View and select Insert>Composite 2D Region. Change its nameto DraftTube.

2. Click on the cyan ball in the triad at the bottom right of the Model View to put the geometry into a goodviewing position for the selection.

3. Place the cursor in the position shown in the picture below and click with the left mouse button.

Tutorial 11: Airlift Reactor

CFX-Mesh Tutorials . . © SAS IP, Inc.110

Page 115: Mesh , Rice University

4. The selection rectangles will appear. The 2D Regions they correspond to are (from left to right): outsideof the column, draft tube face (outside), draft tube face (inside), face from symmetry plane. Click on thesecond one down (draft tube face, outside), to select it.

5. Press Apply in the Details View. You should see that the text next to Location now reads 1 2D Region.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 1.0 cm, and press Enter on the keyboard to set thisvalue.

A maximum edge length of 1 cm will produce a coarse grid of about 4000-5000 nodes, suitable only for instruc-tional and demonstrative uses. With the use of such a coarse mesh, the recirculation flow patterns in the reactorcannot be resolved adequately and some difficulties in convergence may be expected. To create a mesh that isappropriate for formal quantitative analysis of the airlift reactor in this tutorial, the maximum edge length shouldbe 0.5 cm or shorter. The resulting mesh will contain significantly more nodes.

Because the Default Face Spacing is set to use an Angular Resolution of 30 degrees, the mesh around thesparger is automatically refined since the sparger has a high curvature.

111CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 116: Mesh , Rice University

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as BubbleColumnMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 16: Gas-Liquid Flow in an Airlift Reactor”using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then followthese steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on BubbleColumnMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as BubbleColumn.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

Tutorial 11: Airlift Reactor

CFX-Mesh Tutorials . . © SAS IP, Inc.112

Page 117: Mesh , Rice University

Tutorial 12: Room with Air Conditioning

This example creates the geometry and mesh for a room geometry, which can then be used in simulations todetermine the effectiveness of an air conditioning system. In the CFD simulation, the air is input through a smallvent in the roof of the room.

The following geometry and meshing features are illustrated:

• Imprint Surfaces, to add surfaces for boundary conditions;

• Face Spacing, to refine the mesh on a particular face; and

• Inflation.

If you want to skip the geometry creation part of the tutorial, then see the instructions in Introduction to theCFX-Mesh Tutorials.

1. Geometry Creation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as HVAC.wbdb. (“HVAC” is an acronymfor Heating, Ventilation and Air Conditioning.)

2. Choose New Geometry to open DesignModeler, specifying the units as meters.

Creating the Solid

The first step is to create the main solid, which is a simple box.

1.Create a new sketch ( ) based on the XYPlane.

2. Use Rectangle from the Draw Toolbox of the Sketching tab to create a rectangle which has one cornerat the origin and another at X = 3.0 m, Y = 3.0 m

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 118: Mesh , Rice University

3.Select Extrude from the 3D Features Toolbar.

4. Set Base Object to be the new sketch (Sketch1), and set Operation to Add Material.

5.Set Depth to be 2.5 m, and click on Generate to generate the solid.

Breaking the Faces to form the Boundary Conditions

The solid that you have just created has six rectangular faces. Some of these faces need breaking up, so that thefeatures such as windows, door and vents exist as separate faces of the solid. This can be done by using Extrudewith the Imprint Faces option.

Using this option requires sketches of the correct dimensions to be created first. However, when the Extrudeoperation takes place, you cannot choose to have the Imprint Faces action only apply at a specified face; it willapply at all faces between the sketch and the required face. For this reason, the sketches cannot be created onthe existing three planes since then they would always affect the faces of the solids which are co-planar withthese planes. This means that you need to start by creating a new plane.

1.Create a new plane ( ), based on the XYPlane.

2. In the Details View, set Transform 1 to Offset Z, and set the Value of the offset to 1 m.

3.Click on Generate to create the plane.

4.Create a new sketch ( ) based on the new plane (Plane4). Use Rectangle from the Draw Toolbox ofthe Sketching tab to create a rectangle which has one corner at X = 0.05 m, Y = 1.3 m and another at X= 0.15 m, Y = 1.7 m.

5.Select Extrude from the 3D Features Toolbar.

6. Set Base Object to be the new sketch (Sketch2), and set Operation to Imprint Faces.

7.Set Type to be To Next, and click on Generate to break the top face.

Tutorial 12: Room with Air Conditioning

CFX-Mesh Tutorials . . © SAS IP, Inc.114

Page 119: Mesh , Rice University

Notice that in the figure above, the top face has been selected in order to show that it is in two parts.

These operations now need to be repeated to break the faces to form the windows and side vent.

1.Create a new plane ( ), based on the ZXPlane.

2. In the Details View, set Transform 1 to Offset Global Y, and set the Value of the offset to 1 m.

3.Click on Generate to create the plane.

4.Create a new sketch ( ) based on the new plane (Plane5). Use Rectangle from the Draw Toolbox ofthe Sketching tab to create a rectangle which has one corner at X = 1.25 m, Z = 0.75 m and another at X= 1.75 m, Z = 1.75 m.

5. Use Rectangle from the Draw Toolbox of the Sketching tab to create another rectangle, which has onecorner at X = 2.05 m, Z = 0.15 m and another at X = 2.55 m, Z = 0.55 m.

6.Select Extrude from the 3D Features Toolbar.

7. Set Base Object to be the new sketch (Sketch3), and set Operation to Imprint Faces.

8.Set Direction to Reversed, Type to be To Next, and click on Generate to break a side face.

115CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 120: Mesh , Rice University

1.Create a new plane ( ), based on the YZPlane.

2. In the Details View, set Transform 1 to Offset Z, and set the Value of the offset to 1 m.

3.Click on Generate to create the plane.

4.Create a new sketch ( ) based on the new plane (Plane6). Use Rectangle from the Draw Toolbox ofthe Sketching tab to create a rectangle which has one corner at Y = 1.25 m, Z = 0.75 m and another at Y= 1.75 m, Z = 1.75 m.

5.Select Extrude from the 3D Features Toolbar.

6. Set Base Object to be the new sketch (Sketch4), and set Operation to Imprint Faces.

7.Set Direction to Reversed and Type to To Next, then click on Generate to break another sideface.

Tutorial 12: Room with Air Conditioning

CFX-Mesh Tutorials . . © SAS IP, Inc.116

Page 121: Mesh , Rice University

Finally, you need to break one more face to make a face for the door. However, this time, the plane which containsthe sketch to be extruded must be outside the geometry. Otherwise, because the door reaches the edge of theroom, you will find that the rectangular (unbroken) face which shares an edge with the door will be broken.

1.Create a new plane ( ), based on the YZPlane.

2. In the Details View, set Transform 1 to Offset Z, and set the Value of the offset to 4 m.

3.Click on Generate to create the plane.

4.Create a new sketch ( ) based on the new plane (Plane7). Use Rectangle from the Draw Toolbox ofthe Sketching tab to create a rectangle which has one corner at Y = 2.3 m, Z = 0.0 m and another at Y =3.0 m, Z = 2.0 m.

5.Select Extrude from the 3D Features Toolbar.

6. Set Base Object to be the new sketch (Sketch5), and set Operation to Imprint Faces.

7.Set Direction to Reversed and Type to To Next, and click on Generate to break the side face.

117CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Geometry Creation

Page 122: Mesh , Rice University

The geometry is now complete.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Setting up the Regions

Create the 2D Regions:

1. Create a Composite 2D Region called Inlet on the vent in the roof (small rectangular face contained inthe plane with the highest Z-coordinate.

2. Create a Composite 2D Region called Roof on the remaining part of the roof (highest Z-coordinate).

3. Create a Composite 2D Region called Window1 on the rectangular face which is cut out from the ZXPlane.This plane has two cutout rectangular faces, and you need the one which is taller and located at a higherZ-coordinate.

4. Create a Composite 2D Region called Window2 on the rectangular face which is cut out from the YZPlane.

5. Create a Composite 2D Region called VentOut on the rectangular face which is cut out from the ZXPlane.This plane has two cutout rectangular faces, and you need the one which is smaller and located at alower Z-coordinate.

6. Create a Composite 2D Region called Floor on the rectangular face which is in the XYPlane.

7. Create a Composite 2D Region called Door on the tall, thin rectangular face which is cut out from theface with the highest X-coordinate.

Setting up the Mesh

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

Tutorial 12: Room with Air Conditioning

CFX-Mesh Tutorials . . © SAS IP, Inc.118

Page 123: Mesh , Rice University

2. In the Details View, change Maximum Spacing to 0.25 m, and press Enter on the keyboard to set thisvalue.

This is a coarse length scale, suitable only for tutorial purposes. In order to better resolve the flow near the inletand outlet vents, Face Spacings will be applied to these regions to refine the mesh.

1. Right-click on Spacing and select Insert>Face Spacing.

2. In the Details View, set Face Spacing Type to Constant, and set the Constant Edge Length to 0.04 m.

3. Set the Radius of Influence to 0.0 m, and Expansion Factor to 1.3.

4. For Location, select Inlet from the Tree View.

5. Right-click on Spacing and select Insert>Face Spacing, to create another Face Spacing.

6. In the Details View, set Face Spacing Type to Constant, and set the Constant Edge Length to 0.1 m.

7. Set the Radius of Influence to 0.0 m, and Expansion Factor to 1.3.

8. For Location, select VentOut from the Tree View.

Setting up Inflation

It is a good idea to put inflation on the walls.

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

2. Set Expansion Factor to 1.2. Leave the rest of the parameters as their default values.

3. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

4. For Location, select all of the Composite 2D Regions in the Tree View (including the Default 2D Region)except for Inlet and VentOut. The Details View should show 6 Composites after you have made theselection.

5. Set Maximum Thickness to 0.25 m.

Generating the Volume Mesh

Finally, you can generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as HVACMesh.gtm.

The mesh is now complete.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 17: Air Conditioning Simulation” usingthe newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine, then followthese steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on HVACMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as HVAC.

119CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 124: Mesh , Rice University

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

Tutorial 12: Room with Air Conditioning

CFX-Mesh Tutorials . . © SAS IP, Inc.120

Page 125: Mesh , Rice University

Tutorial 13: Can Combustor

This example creates the mesh for a can combustor, which might typically be found in a gas turbine engine. Thegeometry is complex and consists of 5 separate solid bodies. It will be imported complete from a Parasolid file.The diagram above right shows the geometry schematically with part of the outer wall cut away. The followinggeometry and meshing features are illustrated:

• Parasolid import; and

• Inflation.

This tutorial requires you to have a copy of the Parasolid file Combustor.x_t. If you do not already have this file,then:

• On a Windows machine, download it here (you will need to execute the downloaded file to extract therequired Parasolid file).

• On a UNIX machine, download it here (you will need to use “gunzip” to extract the required Parasolid file).

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 126: Mesh , Rice University

If you want to skip the geometry part of the tutorial, then see the instructions in Introduction to the CFX-MeshTutorials.

1. Geometry Import

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as Combustor.wbdb.

2. Choose New Geometry to open DesignModeler, specifying the units as centimeters.

Importing the Geometry

The geometry is imported complete from a Parasolid file.

1. Select File>Import External Geometry File... from the Menu Toolbar.

2. In the file browser which opens, locate the file Combustor.x_t and choose to Open it. (If you have notalready got this file, refer to the introduction to this tutorial for details of where to find it.)

3.Click on Generate to import the combustor.

The Tree View should now show that you have 5 Parts, 5 Bodies. In order to produce a single mesh that containsall of the bodies (rather than one mesh per body), they must be combined into one part.

1.From the Selection Toolbar at the top of the window, turn on Selection Filter: Bodies ( ). This meansthat you can only select Solid Bodies in the next operation, which helps to make the selection processeasier.

2. In the Model View, select all 5 bodies as follows:

•Click on Select Mode ( ) and choose Box Select from the drop-down menu.

• Whilst holding down the left mouse button, drag a box across the whole geometry to select all 5bodies. Once you have released the mouse button, the status bar (the bar along the bottom of theANSYS Workbench window) should change to show that you have selected 5 Bodies.

3. Right-click over the Model View and select Form New Part.

The Tree View should now show that you have 1 Part, 5 Bodies. The geometry does not need any furthermodifications.

1. Select File>Save to save the geometry file.

2. Mesh Generation

First open CFX-Mesh.

1. Switch from DesignModeler to the Project Page using the tabs at the top of the window, and click onGenerate CFX Mesh to open CFX-Mesh.

Tutorial 13: Can Combustor

CFX-Mesh Tutorials . . © SAS IP, Inc.122

Page 127: Mesh , Rice University

Setting up the Regions

Create the 2D Regions:

1. Create a Composite 2D Region for the fuel inlet called fuelin on the six tiny faces on the cone near thebottom of the combustor. The easiest way to select them as follows:

a. Click over the axes in the bottom right corner of the Model View in the position shown in the picturebelow. As you move the cursor into this position, the black “-Z”-axis will appear (it is not shown bydefault). This will put the geometry into a good position for picking the required faces.

b. Zoom into the geometry and select the six faces which are shown in bright green in the picturebelow (note that the colors in your geometry may differ from the picture below).

2. Create a Composite 2D Region for the air inlet called airin on the eight faces at the very bottom of thegeometry (lowest Z-coordinate), as shown below.

3. Create a Composite 2D Region for the secondary air inlet called secairin on the six small circular faceson the main body of the combustor. These introduce extra air to aid combustion.

123CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 128: Mesh , Rice University

4. Create a Composite 2D Region called out on the rectangular face with the highest Z-coordinate.

Setting up the Mesh

This is a complex geometry which will be used to run a simulation with complex physics. In order to keep thecomputational time down for the purposes of the tutorial, a very coarse mesh will be used. If you wanted to getaccurate results on this geometry, a much finer mesh and a much larger solution time would be required.

Set the Maximum Spacing:

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 1.6 cm, and press Enter on the keyboard to set thisvalue.

3. Click on Default Face Spacing in the Tree View, which is contained in Mesh>Spacing.

4. In the Details View, change Face Spacing Type to Volume Spacing. This stops the surface mesh frombeing refined where the faces are highly-curved, which would add too many elements for this coarsetutorial mesh. The Volume Spacing setting simply uses the Default Body Spacing for the surface meshspacing.

Setting up Inflation

It is a good idea to put inflation on the walls.

1. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

2. Set Expansion Factor to 1.3. Leave the rest of the parameters as their default values.

3. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

4. For Location, select Default 2D Region from the Tree View.

5. Set Maximum Thickness to 1.6 cm.

Generating the Volume Mesh

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as CombustorMesh.gtm.

Tutorial 13: Can Combustor

CFX-Mesh Tutorials . . © SAS IP, Inc.124

Page 129: Mesh , Rice University

The mesh is now complete. Note that you may get a warning about poor quality volume elements being presentin the mesh. This is a result of setting up such a coarse mesh. If you wanted to get accurate results in the CFDsimulation, you would need to modify the mesh settings and regenerate the volume mesh in order to improvethe quality of the elements.

1. Select File>Save to save the CFX-Mesh database.

2. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

If you want to continue by working through the CFX-5 example “Tutorial 18: Combustion and Radiation in a CanCombustor” using the newly-generated mesh, and have CFX-5.7.1 in ANSYS Workbench installed on your machine,then follow these steps:

1. On the Project Page, a new entry will have appeared when you generated the file: Advanced CFD. Underthis entry, double-click on CombustorMesh.gtm to open up CFX-Pre.

2. Once CFX-Pre has opened, choose File>Save Simulation As... to save the simulation as Combustor.

3. Work through the CFX-5.7.1 tutorial, missing out the instructions in the sections “Creating a New Simu-lation” and “Importing a Mesh”.

If you do not have CFX-5.7.1 in ANSYS Workbench installed or do not want to work through the CFX-5 example,then:

1. Exit from ANSYS Workbench by selecting File>Exit.

When working through the CFX-5 example, “Tutorial 18: Combustion and Radiation in a Can Combustor”, youwill find that the regions required to create the new region “Vane Surfaces” have different numbers to thosegiven in the CFX-5 tutorial documentation. One possible region list is F130.153, F133.153, F137.153, F139.153,F142.153, F146.153, F148.153 and F151.153.

125CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 2: Mesh Generation

Page 130: Mesh , Rice University

126

Page 131: Mesh , Rice University

Tutorial 14: CAD Cleanup and Meshing

This example shows how to use CFX-Mesh with poor CAD. The geometry supplied is of very poor quality, withbad faces and lots of short edges, and various features of CFX-Mesh enable you to clean it up to produce a good-quality mesh:

• CAD Check;

• Virtual Faces;

• Virtual Edges; and

• Short Edge Removal.

Please note that Virtual Topology is only a beta feature in this release. If you use it for real cases (not just thisexample), you must check the resulting mesh carefully in order to satisfy yourself that it is correct. Beta featuresare not visible in CFX-Mesh or in ANSYS Workbench by default. To activate Virtual Topology, follow these instruc-tions:

1. Select Tools>Options... from the menu bar.

2. Expand the Common Settings section of the Tree which is displayed in the Options window that opens,and then click on the User Interface sub-section.

3. Under Menus/Toolbars, set the Show Beta Options preference to Yes.

By performing these instructions, you will activate all beta options in ANSYS Workbench, not just Virtual Topologyin CFX-Mesh. In general, beta options may not be well-tested or documented, so you should avoid using any ofthe other functionality which is then exposed in other parts of ANSYS Workbench. In general, it is recommendedthat you only activate beta features if you want to use Virtual Topology on a specific CFX-Mesh database, andde-activate them when you have finished using that database.

If you activate beta features and use Virtual Topology in a CFX-Mesh database, then if you re-open that databasewith beta features not active, you will not see the Virtual Topology part of the Tree View. Your Virtual Topologysettings will be retained and used, but you will not be able to view or edit them. You only need to re-activatebeta features in order to continue to modify your Virtual Topology settings.

CFX-Mesh Tutorials . . © SAS IP, Inc.

Page 132: Mesh , Rice University

This tutorial requires you to have a copy of the DesignModeler file CADMeshing.agdb. If you do not alreadyhave this file, then:

• On a Windows machine, download it here (you will need to execute the downloaded file to extract therequired DesignModeler file).

• On a UNIX machine, download it here (you will need to use “gunzip” to extract the required DesignModelerfile).

1. Mesh Generation

Creating the Project

1. Open ANSYS Workbench, and create a new empty project. Save it as CADMeshing.wbdb.

2. At the left of the window, click on Browse... under Link to Geometry File. Choose the DesignModelerfile CADMeshing.agdb in the file browser which comes up.

3. Highlight the new file entry for CADMeshing.agdb on the Project Page, and click on Generate CFXMesh.

Examining the Geometry

The first step is to inspect the geometry and see what features it has that will lead to a poor mesh.

The picture above shows the geometry, rotated to a suitable viewing position. The green highlights show fourvery narrow faces: each of these will result in a very fine mesh as the narrow width is resolved. The blue highlightsshow three faces which have very sharp points (including one which is also very narrow): these faces will give asurface mesh with poor angles and may even make the meshing operations fail, depending on factors such asthe mesh length scale in the region of the point. In addition, many of the edges on these faces are very short(not shown): these will cause regions of very fine mesh as the mesher is constrained to put at least three verticeson every edge. Some of the edges are so short that you will find that the mesher cannot generate a mesh withany reasonable length scale.

1. Zoom in to various parts of the geometry to see the various features highlighted in the picture.

2. Right-click on Geometry in the Tree View, and select Verify Geometry.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.128

Page 133: Mesh , Rice University

This will run the CAD checking utility to have CFX-Mesh show certain geometry features that may cause themesher problems. Once the utility has finished, you should see numerous warnings under Errors in the TreeView. These can be divided into several types.

1. Click on Warning 1 under Errors in the Tree View. This will contain the text CAD model contains faceswith small angles. You should be able to see that the face which the warning refers to is highlightedin the Model View in green. This is one of the faces which has already been identified as having a verysharp point. Zoom into this region of the geometry to see the face more clearly.

2. Click on Warning 2 in the Tree View. This will contain the text Potential sliver edge(s) found. A veryshort edge is highlighted in green in the Model View, but it is so small that it is hard to spot. Zoom in tothe region of the geometry highlighted in the picture below to find the short edge. Note: On someplatforms you may need to click on Warning 3 to find this short edge. Warnings 2 and 3 refer to shortedges which are the same length to within numerical precision, so which order they appear in is arbitrary.

Warnings 2 to 7 all refer to very short edges. Some of these are so short that you will have to zoom in along way to see them. Their locations are marked on the picture below.

3. Click on Warning 8 in the Tree View. This will contain the text Potential sliver face(s) found. This refersto a very narrow face which has already been identified as a problem. Warning 9 is of the same type.

129CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 134: Mesh , Rice University

4. Finally, click on the last error message in the list. This is just a summary of the checks. You will always getthis warning, even if no problems are found.

Next, you will attempt to create a surface mesh, to see how the highlighted problems affect it.

1. Expand the Preview item in the Tree View, right-click over Default Preview Group, and select GenerateThis Surface Mesh.

You will find that in most cases, no mesh will be produced and you will get a popup message telling you to referto the Errors section of the Tree View.

The first message under Errors is just a warning message, telling you about the face with a very small angle thatyou have already identified. The second error is a fatal error which indicates the fact that the mesh length scaleis too large to resolve the small features (very short edges) in the vicinity of the highlighted face (click on theerror in the Tree View to make the face highlight). Although it might be tempting to try to create the mesh againwith a smaller length scale, in practice the very short edges mean that you would have to make such a largemesh that this would be impractical.

Adding Virtual Faces

The first step in improving the geometry to allow it to mesh is to remove some of the narrow and pointed faces,and the very shortest edges. CFX-Mesh includes the ability to create a Virtual Face, which combines severalfaces to make a single face. The mesher only needs to mesh the virtual face and does not need to separatelymesh the constituent faces or any edges which are not on the border of the virtual face.

1. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Face.

2. For Location, start by picking the four narrow faces highlighted in the picture below (don't press Applyyet). These faces are most easily selected by using Box Select (drag a box with the left mouse buttonover each face in turn, holding down the Ctrl key for the second and subsequent faces).

3. Now add a further fourteen faces to the selection, shown in the picture below.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.130

Page 135: Mesh , Rice University

4. Press Apply in the Details View to confirm the selection.

It should now be possible to generate a surface mesh.

1. Right-click over Default Preview Group again, and select Generate This Surface Mesh. This time themesh should generate.

2. Look closely at the surface mesh, noting that although the mesh length scale is set to a coarse value,there are lots of regions of very fine mesh which are caused by the narrow faces and short edges in thegeometry.

3. Zoom into the region of the mesh highlighted in the picture above. You will need to rotate the geometryto be able to see the very narrow face which is tucked under the overhanging part of the geometry inthe picture above. Note how the narrow face has caused the adjacent faces to have a fine mesh whichleads to poor quality triangles (triangles which are far from equilateral) as the mesh size expands awayfrom the narrow face.

131CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 136: Mesh , Rice University

4. Click on the plus sign next to Default Preview Group in the Tree View, to expand it. Click on Mesh Statisticsand check the Details View to see the mesh statistics. You should find that your surface mesh has around8000-9000 triangles.

Now you will create another Virtual Face to remove the narrow face examined above.

1. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Face.

2. For Location, pick the narrow face highlighted in the picture below, using Box Select.

Then add a second face as shown in the next picture:

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.132

Page 137: Mesh , Rice University

3. Press Apply in the Details View to confirm the selection.

4. Right-click over Default Preview Group again, and select Generate This Surface Mesh. Once, again,zoom into the same region of the mesh. Note how the narrow face has now gone and the mesh doesnot have to resolve it. However, there is still a short edge (which used to form the end of the narrow face)and the mesh does still have to resolve this. This short edge will be removed later.

Two more Virtual Faces are needed to remove the remaining narrow faces.

1. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Face.

2. For Location, pick the narrow face highlighted in the picture below, using Box Select.

133CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 138: Mesh , Rice University

Then add three more faces as shown in the next picture:

3. Press Apply in the Details View to confirm the selection.

So far, all of the Virtual Faces you have created have merged faces which meet at a tangent i.e. the resultingVirtual Face is smooth and contains no sharp corners. In this situation, there is no loss of accuracy resulting fromthe creation of the Virtual Face. However, it is possible to create Virtual Faces which do contain sharp corners:in the Virtual Face created below, two of the faces meet at right angles. Where this occurs, the mesher effectivelyrounds off the corner and so the meshed geometry is only an approximation to the original geometry. You shouldonly merge faces into a non-smooth Virtual Face where this approximation is desired i.e. there is a small featurepresent in the geometry which does not need to be included in the CFD simulation.

1. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Face.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.134

Page 139: Mesh , Rice University

2. For Location, pick the narrow face highlighted in the picture below, using Box Select.

Then add a second face as shown in the next picture:

3. Press Apply in the Details View to confirm the selection.

4. Right-click over Default Preview Group again, and select Generate This Surface Mesh. Zoom into theregion of the mesh highlighted below.

135CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 140: Mesh , Rice University

Notice how the mesh in the region of the narrow face is not flat; the corner has been rounded off. Also,there are still two short edges where the ends of the narrow face used to be, which results in largenumbers of small mesh elements as the mesher resolves the short edges.

Adding Virtual Edges

The short edges present in this geometry are causing patches of very fine mesh which is not required. To get ridof short edges, CFX-Mesh offers two distinct methods: Virtual Edges, and Short Edge Removal. In this section,the edges which are suitable to be removed using Virtual Edges are dealt with.

Virtual Edges are created by merging existing edges. The only limitations are that you have to create each oneseparately, the Virtual Edge cannot have gaps in it and that each edge which makes up the Virtual Edge mustbe shared between the same two faces.

1. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Edge.

2. For Location, first zoom into the region of the geometry shown below.

Then pick the short edge highlighted in the picture below.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.136

Page 141: Mesh , Rice University

Then add the edge shown below to the selection.

3. Press Apply in the Details View to confirm the selection.

4. Now generate the surface mesh to check that the patch of fine mesh around this short edge is no longerthere. Right-click over Default Preview Group and select Generate This Surface Mesh.

This geometry can be improved by the creation of 4 more Virtual Edges.

1. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Edge.

2. For Location, first zoom into the region of the geometry shown below.

137CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 142: Mesh , Rice University

Then pick the two short edges highlighted in the picture below.

Then add the two edges shown below to the selection.

3. Press Apply in the Details View to confirm the selection.

4. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Edge.

5. For Location, rotate the geometry to display its back, then zoom into the region of the geometry shownbelow.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.138

Page 143: Mesh , Rice University

Then pick the short edge highlighted in the picture below.

Add the edge shown below to the selection.

6. Press Apply in the Details View to confirm the selection.

7. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Edge.

139CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 144: Mesh , Rice University

8. For Location, zoom into the region of the geometry shown below.

Then pick the short edge highlighted in the picture below.

Add the three edges shown below to the selection.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.140

Page 145: Mesh , Rice University

9. Press Apply in the Details View to confirm the selection.

10. In the Tree View, right-click on Virtual Topology and choose Insert>Virtual Edge.

11. For Location, rotate the geometry to show the front of it again, then zoom into the region of the geometryshown below.

Then pick the short edge highlighted in the picture below.

Add the three edges shown below to the selection.

141CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 146: Mesh , Rice University

12. Press Apply in the Details View to confirm the selection.

13. Once you have finished creating Virtual Edges, then you can generate the surface mesh to check for theeffect that these have. Right-click over Default Preview Group and select Generate This Surface Mesh.Once the mesh has generated, you should be able to see that all of the patches of fine mesh which res-ulted from the short edges have disappeared, except one which is highlighted in the picture below.

Removing the Remaining Short Edge

The one remaining patch of fine mesh is due to the one remaining short edge. Its topology is shown in the picturebelow: edges are shown in blue and vertices in red.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.142

Page 147: Mesh , Rice University

You need to remove this short edge to eliminate the fine mesh which it forces the mesher to create. However,you cannot do so by creating another Virtual Edge. A Virtual Edge can only be created from edges which sharethe same faces, and there is no other edge which shares the same faces as this remaining short edge, as thediagram above shows.

CFX-Mesh allows you to remove short edges using a second method: Short Edge Removal. Using this mechanism,short edges are removed by collapsing them to a single point. As a result (and unlike Virtual Edges), this methodcannot be used if the local mesh length scale is smaller than the length of the edges to be removed, as it leadsto the mesh becoming distorted (see the CFX-Mesh Help for more details). You need to determine how long thisedge is and compare it to the mesh length scale before using Short Edge Removal to remove it.

Also, when using Short Edge Removal, you simply specify a length scale, and all edges in the geometry whichare shorter than this length scale are removed. It is therefore a good idea to make sure that before you use it,you know exactly which edges will be removed.

Both of these things can be checked by using CAD Check again.

1. Click on the plus sign next to Geometry in the Tree View to open it up. Click on Verify Options.

2. In the Details View, you can set the parameters to be used by CAD Check to identify poor geometry. Inthis case, you are only interested in short edges. Set Short Edge Limit to 0.015 m to make CAD Checkidentify all of the edges shorter than this length.

3. Right-click over Geometry and select Verify Geometry to perform the CAD Check operation.

4. Once the CAD Check operation has finished, check under Errors in the Tree View to see its output.

Note that the total number of warnings has decreased from when you ran CAD Check on the original geometry(before creating Virtual Edges and Virtual Faces). There are no longer any warnings about CAD faces with smallangles or potential sliver faces, since all of these faces have been removed by the creation of Virtual Faces. Thereis just one warning about a short edge. There are, however, three new warnings about “Potential poorly para-meterized face”, all concerning Virtual Faces. These warnings will often occur for Virtual Faces but can be safelyignored.

The single message about short edges tells you that there is only 1 edge which is shorter than the specified 0.015m.

1. Click on the warning message about the short edge, and verify that the highlighted edge correspondsto the edge which you have already identified as needing removal. This means that you can ask to removeall edges of less than 0.015 m from the geometry, knowing that it only affects the required edge. Sinceyou are going to use a mesh length scale which is significantly larger than 0.015 m, the short edge canbe safely removed using Short Edge Removal.

143CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation

Page 148: Mesh , Rice University

2. Under Geometry in the Tree View, click on Fix Options. In the Details View, set Remove Short Edgesto Yes, and set Edge Length to 0.015 m.

3. Now regenerate the surface mesh by right-clicking over Default Preview Group and select GenerateThis Surface Mesh. Once the meshing operation has finished, you should be able to see that the remainingpatch of fine mesh has now disappeared.

4. Click on Mesh Statistics under Default Preview Group in the Tree View, and check the Details View tosee the mesh statistics. You should find that your surface mesh has around 2000-2500 triangles. Removingthe narrow faces and short edges has allowed you to create a good-quality mesh with far fewer trianglesthan previously.

Setting up the Finer Mesh

Set a finer Maximum Spacing (note that this should always remain above the 0.015 m that was set as the limitfor Short Edge Removal):

1. Click on Default Body Spacing in the Tree View, which is contained in Mesh>Spacing.

2. In the Details View, change Maximum Spacing to 0.05 m, and press Enter on the keyboard to set thisvalue.

3. Click on Default Face Spacing in the Tree View, which is contained in Mesh>Spacing.

4. In the Details View, change Angular Resolution to 18 degrees.

Setting up Inflation

You will now add inflation onto the walls. First create a Composite 2D Region to allow the appropriate faces tobe selected more easily.

1. Create a Composite 2D Region called NoInflation on the faces highlighted in the picture below.

2. Click on Inflation in the Tree View. In the Details View, set Number of Inflated Layers to 5.

3. Set Expansion Factor to 1.3. Leave the rest of the parameters as their default values.

4. In the Tree View, right-click on Inflation and select Insert>Inflated Boundary.

5. For Location, select Default 2D Region from the Tree View.

6. Set Maximum Thickness to 0.05 m.

Tutorial 14: CAD Cleanup and Meshing

CFX-Mesh Tutorials . . © SAS IP, Inc.144

Page 149: Mesh , Rice University

7. Now regenerate the surface mesh to inspect the refined and inflated mesh. Right-click over DefaultPreview Group and select Generate This Surface Mesh.

Generating the Volume Mesh

You can now generate the volume mesh.

1. Right-click on Mesh in the Tree View and select Generate Volume Mesh.

2. Save the GTM File as CADMeshing.gtm.

3. Select File>Save to save the CFX-Mesh database.

4. Switch to the Project Page using the tabs at the top of the window, and choose File>Save to save theproject.

5. Exit from ANSYS Workbench by selecting File>Exit.

There is no CFX-5 example which uses this mesh. However, you may like to try reading the new CADMeshing.gtmfile into CFX-Post to see how the volume mesh appears.

145CFX-Mesh Tutorials . . © SAS IP, Inc.

Section 1: Mesh Generation