Chapter 3: Turbo Postprocessing

This tutorial demonstrates the turbomachinery postprocessing capabilities of CFD-Post.

In this example, you will read Fluent case and data files (without doing any calculations) and perform a number of turbomachinery-specific postprocessing operations.

This tutorial demonstrates:

3.1. Problem Description

This tutorial considers the problem of a centrifugal compressor shown schematically in Figure 3.1: Problem Specification. The model is composed of a single 3D sector of the compressor to take advantage of the circumferential periodicity in the problem. The flow of air through the compressor is simulated and the postprocessing capabilities of CFD-Post are used to display realistic, full 360° images of the solution obtained.

Figure 3.1: Problem Specification

Problem Specification

If this is the first tutorial you are working with, it is important to review Introduction to the Tutorials before beginning.

3.2. Preparing the Working Directory

  1. Create a working directory.

    CFD-Post uses a working directory as the default location for loading and saving files for a particular session or project.

  2. Download the turbo.zip file here .

  3. Unzip turbo.zip to your working directory.

    Ensure that the following tutorial input files are in your working directory:

    • turbo.cas.gz

    • turbo.cdat.gz

3.3. Setting the Working Directory and Starting CFD-Post

Before you start CFD-Post, set the working directory. The procedure for setting the working directory and starting CFD-Post depends on whether you run CFD-Post stand-alone, from the Ansys CFX Launcher, or from Ansys Workbench:

  • To run CFD-Post stand-alone

    • On Windows:

      1. From the Start menu, right-click All Programs > ANSYS 2024 R2 > Fluid Dynamics > CFD-Post 2024 R2 and select Properties.

      2. Type the path to your working directory in the Start in field and click OK.

      3. Click All Programs > ANSYS 2024 R2 > Fluid Dynamics > CFD-Post 2024 R2 to launch CFD-Post.

    • On Linux, enter cfdpost in a terminal window that has its path set up to run CFD-Post. The path will be something similar to /usr/ansys_inc/v242/CFD-Post/bin.

  • To run Ansys CFX Launcher

    1. Start the launcher.

      You can run the launcher in any of the following ways:

      • On Windows:

        • From the Start menu, select All Programs > ANSYS 2024 R2 > Fluid Dynamics > CFX 2024 R2.

        • In a Command Prompt that has its path set up correctly to run CFX, enter cfx5launch. If the path is not set up correctly, you will need to type the full pathname of the cfx command, which will be something similar to C:\Program Files\ANSYS Inc\v242\CFX\bin.

      • On Linux, enter cfx5launch in a terminal window that has its path set up to run CFX. The path will be something similar to /usr/ansys_inc/v242/CFX/bin.

    2. Set the working directory.

    3. Click the CFD-Post 2024 R2 button.

  • Ansys Workbench

    1. Start Ansys Workbench.

    2. From the menu bar, select File > Save As and save the project file to the directory that you want to be the working directory.

    3. Open the Component Systems toolbox and double-click Results. A Results system opens in the Project Schematic.

    4. Right-click the A2 Results cell and select Edit. CFD-Post opens.

3.4. Display the Solution in CFD-Post

3.4.1. Prepare the Case and Set the Viewer Options

  1. Load the CDAT file (turbo.cdat.gz) from the menu bar by selecting File > Load Results. In the Load Results File dialog box, select turbo.cdat.gz and click Open.

  2. If you see a message that discusses Global Variables Ranges, it can be ignored. Click OK.

    The turbo blade appears in the viewer in an isometric orientation. The Wireframe appears in the 3D Viewer and there is a check mark beside Wireframe in the Outline workspace; the check mark indicates that the wireframe is visible in the 3D Viewer.

  3. Set CFD-Post to display the units you want to see. These display units are not necessarily the same types as the units in the results files you load; however, for this tutorial you will set the display units to be the same as the solution units.

    1. Right-click the viewer and select Viewer Options.

    2. In the Options dialog box, select Common > Units.

    3. Set System to SI and click OK.


    Note:  The display units you set are saved between sessions and projects. This means that you can load results files from diverse sources and always see familiar units displayed.


  4. Double-click Wireframe in the Outline workspace to see the details view. To display the mesh, set Edge Angle to 0 degrees and click Apply. The edge angle determines how much of the surface mesh is visible. If the angle between two adjacent faces is greater than the edge angle, then that edge is drawn. If the edge angle is set to 0°, the entire surface mesh is drawn. If the edge angle is large, then only the most significant corner edges of the geometry are drawn.


    Tip:  With the mouse focus on CFD-Post and the mouse over the Details of Wireframe editor, press F1 to see help about the Wireframe object.


    On the Wireframe details view, click Defaults and Apply to restore the original settings.

  5. Optionally, set the viewer background to white:

    1. Right-click the viewer and select Viewer Options.

    2. In the Options dialog box, select CFD-Post > Viewer.

    3. Set:

      • Background > Color Type to Solid.

      • Background > Color to white. To do this, click the bar beside the Color label to cycle through 10 basic colors. (Click the right-mouse button to cycle backwards.) Alternatively, you can choose any color by clicking   icon to the right of the Color option.

      • Text Color to black (as above).

      • Edge Color to black (as above).

    4. Click OK to have the settings take effect.

3.4.2. Initialize the Turbomachinery Components

Before you can start using the Turbo workspace features, you need to initialize the components of the loaded case (such as hub, blade, periodics, and so on). Among other things, initialization generates span, a (axial), r (radial), and Theta coordinates for each component.

You need to initialize Fluent case and data files manually (automatic initialization is available only for CFX files produced by the Turbo wizard in CFX-Pre). To initialize the components:

  1. Click the Turbo tab in the upper-left pane of the CFD-Post window. The Turbo workspace appears as does a Turbo initialization dialog box that offers to auto-initialize all turbo components. Click No.

  2. In the Turbo workspace under Initialization, double-click fluid (fluid). The details view of Fluid appears.

  3. On the Definition tab, the regions of the geometry are listed under Turbo Regions. However, not all regions are listed; correct this as follows:

    1. Click Location editor   to the right of the Hub region.

    2. Hold down the Ctrl key and in the Location Selector select wall diffuser hub, wall hub, and wall inlet hub.

    3. Click OK.

      The Hub field now lists all three hub locations.

    4. Repeat the previous steps for the Shroud region, selecting wall diffuser shroud, wall inlet shroud, and wall shroud.

    5. Repeat the previous steps for the Blade region, selecting only wall blade.

    6. Repeat the previous steps for the Inlet region, selecting only inlet.

    7. Repeat the previous steps for the Outlet region, selecting only outlet.

    8. Repeat the steps for the Periodic 1 region, selecting periodic.33, periodic.34, and periodic.35.

      You do not need to initialize the periodic.*shadow regions; the periodic.* nodes provide the information that the turbo reports require.

  4. Click the Instancing tab.

    1. Ensure that Number of Graphical Instances is set to 1.

    2. Ensure that Axis Definition is set to Custom, that Method is set to Principal Axis, and that Axis is set to Z.

    3. Set Instance Definition to Custom.

    4. Select Full Circle.

  5. Click Initialize. This generates variables that you will use later to create reports.


    Tip:  If the turbo topology is not correctly defined, an error message is generated and the initialization does not occur. To resolve such an error:

    1. Ensure that the rotational axis is correct.

    2. Ensure that the turbo regions are correctly set, and that they enclose the passage without any gaps.


  6. Double-click Initialization at the top of the Turbo tree view. The Initialization editor appears.

  7. Click the Calculate Velocity Components button. This generates velocity variables that you will also use in your reports.

The initialization process has created a variety of plots automatically; you will access these from the Turbo tab in the sections that follow.

3.4.3. Compare the Blade-to-Blade, Meridional, and 3D Views

To compare the Blade-to-Blade, Meridional, and 3D Views:

  • In the Turbo workspace, select the Three Views option at the bottom of the Initialization editor. In the 3D Viewer you can see the Turbo Initialization View, the Blade to Blade View, and the Meridional View.

The CFD-Post Blade to Blade View is equivalent to the Fluent "2D contour on a spanwise surface". By default, the variable shown is Pressure. To change this to velocity and to make the image more like the default Fluent equivalent:

  1. In the Blade to Blade View, right-click the colored area shown in the viewport and select Edit.

  2. In the details view for the Blade-to-Blade Plot, change the Plot Type from Color to Contour (this changes the continuous gradation found in Color to the discrete color bands found in Contour).

  3. Change Variable to Velocity.

  4. Change the # of Contours to 21.

  5. Click Apply.

The CFD-Post Meridional View is equivalent to the Fluent "contour averaged in the circumferential direction". To make the image more like the default Fluent equivalent:

  1. In the Meridional View, right-click the colored area shown in the viewport and select Edit.

  2. In the details view for the Meridional Plot, change the Plot Type from Color to Contour.

  3. Change the # of Contours to 21.

  4. Click Apply.

3.4.4. Display Pressure on Meridional Isosurfaces

In this example you will define six meridional isosurfaces colored by pressure.

  1. Return to the original orientation of the case:

    1. In the Tree view, double-click Plots and select Single View.

    2. Double-click 3D View.

  2. From the menu bar select Insert > Location > Isosurface and accept the default name.

  3. Set the following values on the details view for the isosurface:

    Tab

    Field

    Value

    Geometry

    Domains

    fluid

    Variable

    Linear BA Streamwise Location

    [a]

    Value

    .01

    Color

    Mode

    Variable

    Variable

    Pressure

    Range

    User Specified

    Min

    72800 [Pa]

    Max

    186000 [Pa]

    Render

    Lighting

    (Cleared)

    1. Click the Variable Editor   to access this variable.

  4. Click Apply to define the isosurface.

  5. Right-click Isosurface 1 in the Tree view and select Duplicate, then change Geometry > Value to .2 and click Apply.

  6. Create other duplicates for geometry values .4, .6, .8, and .99.


    Note:  You can set locator variables other than Linear BA (Blade Aligned) Streamwise Location. For example, edit Isosurface 5 and change Linear BA Streamwise Location to M Length Normalized to see how the isosurface changes.


3.4.5. Display a 360-Degree View

To display a 360° view of the turbomachinery:

  1. In the Outline tree view, right-click any object under User Locations and Plots that has a visibility check box, then select Hide All.

  2. Under User Locations and Plots, ensure that the check box beside Wireframe is selected.

  3. Under Cases > turbo, double-click fluid to edit that domain.

  4. On the Instancing tab:

    1. Set Number of Graphical Instances to 20.

    2. Ensure that Instance Definition is set to Custom and that Full Circle is selected.

    3. Ensure that Axis Definition is set to Custom, that Method is set to Principal Axis, and that Axis is set to Z.

  5. Click Apply.

  6. If necessary, click the Fit View   icon so that you can see the whole case.

3.4.6. Calculate and Display Values of Variables

You can calculate the values of variables at locations in the case and display these results in a table. First, use the Function Calculator to see how to create a function.

  1. From the menu bar, select Tools > Function Calculator. The Calculators tab appears with the Function Calculator displayed.

  2. Use the Function Calculator to calculate the mass flow average of pressure at the inlet as follow:

    1. Use the Function drop-down arrow to select massFlowAve.

    2. Use the Location drop-down arrow to select inlet.

    3. Use the Variable drop-down arrow to select Pressure.

    4. At the bottom of the Function Calculator select Show equivalent expression.

    5. Click Calculate and the expression and results appear:

      The Function Calculator not only makes it easy to create and calculate a function, it also enables you to see the syntax for functions, which you will use in the subsequent steps.

  3. To display functions like this in a table, click the Table Viewer tab (at the bottom of the viewer area). The Table Viewer appears.

  4. In the toolbar at the top of the Table Viewer, click New Table  . The New Table dialog box appears. Type in Inlet and Outlet Values and click OK.

  5. Type the following text to make cell headings:

    • In cell B1: Inlet

    • In cell C1: Outlet

    • In cell A2: Mass Flow

    • In cell A3: Average Pressure

  6. Now, create functions:

    1. Click in cell B2, then in the Table Viewer toolbar, select Function > CFD-Post > massFlow. The definition =massFlow()@ appears.

    2. With the text cursor after the @ symbol, click Location > inlet.

    3. Press Enter; the value of the mass flow at the inlet appears.

    4. Repeat the above steps for cell C2, but use Location > outlet.

    5. For cell B3, select Function > CFD-Post > massFlowAve. With the text cursor between the parentheses, select Variable > Pressure. With the text cursor after the @ symbol, click Location > inlet. Press Enter; the value of the mass flow average of pressure at the inlet appears.

    6. Repeat the previous step for cell C3, but use Location > outlet.

    Your table should be similar to this:

  7. Format the cells to make the table easier to read.

    1. Click in cell A1 and, while holding down Shift, click in cell C1. Now the operations you perform will apply to A1 through C1.

    2. Click   to make the heading font bold, then click   to center the heading text. Click   to apply a background color to those cells.

    3. Click in cell A2 and, while holding down Shift, click in cell A3. Click   to make the row description bold, then click   to right-align the text.

    4. Manually resize the cells.

      Your table should be similar to this:

  8. Click the Report Viewer tab and then click Refresh in the Report Viewer toolbar. The table data appears at the bottom of the report.

3.4.7. Display the Inlet to Outlet Chart

In CFD-Post, displaying the Inlet to Outlet chart is equivalent to displaying averaged XY plots in Fluent. To display the Inlet to Outlet chart:

  1. In the Turbo workspace's Turbo Charts area, double-click Inlet to Outlet.

  2. Now, change the chart to compare temperature to streamwise location (the latter being called "meridional location" in Fluent) and make the chart look more like the Fluent default:

    1. Set the following:

      Setting

      Value

      Domains

      fluid

      Samples/Comp

      60

      Y Axis

      > Variable

       

      Temperature

    2. Click Apply. The chart appears:

  3. Click the Report Viewer tab at the bottom of the viewer area.

  4. In the Report Viewer toolbar, click the Refresh button. The Inlet to Outlet Chart appears in the User Data section of the report.


Tip:  You can also explore the other Turbo Charts:

  • Blade Loading

  • Circumferential

  • Hub to Shroud


3.4.8. Generate and View a Turbo Report

Turbo reports give performance results, component data summary tables, meanline 1D charts, stage plots, and spanwise loading charts for the blade.


Note:  The Turbo report is generated from the values set when you initialized the case, so if there were any changes required to those values, you would make them now and run the initialization procedure again. For this tutorial, that will not be necessary.


To generate a Turbo report:

  1. Create a new variable that the report expects (which would be available with CFX results files for rotating machinery applications, but which is not available from Fluent case and data files).

    1. From the toolbar, click Variable  . The Insert Variable dialog box appears.

    2. In the Name field, type Rotation Velocity and click OK.

      The details view for Rotation Velocity appears.

    3. In the Expression field, type Radius * abs(omega) / 1 [rad] and click Apply. This expression calculates the angular speed (in units of length per unit time) as a product of the local radius and the rotational speed.

  2. In the 3D Viewer toolbar, click Fit View  . This ensures that the graphics will not be truncated in the report you are about to generate.

  3. In the Outline tree view, right-click Report and select Report Templates. The Report Templates dialog box appears.

  4. Select an appropriate report template; in this case, select Centrifugal Compressor Report.

  5. Click Load. The Report Templates dialog box disappears and you can watch the report's progress in the status bar in the bottom-right corner of CFD-Post.


    Note:  A dialog box appears that warns that hybrid values do not exist and that conservative values will be used. This is expected behavior when using data loaded from Fluent. An error about "Mach Number in Stn Frame" is also mentioned; this prevents a line in the report from appearing. Click OK.


    When the report has been generated, there are new entries in the Outline tree view under Report.

  6. Under User Locations and Plots, double-click fluid Instance Transform. This is an instance transform generated by the report to facilitate showing two blades in the figures that show blade-to-blade views.

  7. Ensure that Number of Passages is set to 20 and click Apply.

  8. Click the Expressions tab. Double-click the expression fluid Components in 360 to edit it. Change the definition to 20 and click Apply.

To view the Turbo report:

  1. In the Report Viewer, click Refresh. The turbo report appears.

  2. Optionally, you can remove pieces from the report by clearing the appropriate check boxes in the Report section of the Outline tree. When you have made your selections, return to the Report Viewer and click Refresh (in the Report Viewer toolbar). The edited version of the turbo report appears.

  3. To produce an HTML version of the report that you can share with others, click Publish (at the top of the viewer area). The report is saved in a filename of your choosing in your working directory (by default).