Chapter 31: Time Transformation Method for an Inlet Disturbance Case

31.1. Tutorial Features

In this tutorial you will learn about:

Component

Feature

Details

CFX-Pre

User Mode

Turbo Wizard

General Mode

Analysis Type

Transient Blade Row

Fluid Type

Air Ideal Gas

Domain Type

Single Domain

Stationary Frame

Turbulence Model

k-Epsilon

Heat Transfer

Total Energy

Boundary Conditions

Inlet (Subsonic)

Outlet (Subsonic)

CFD-Post

Plots

Contour

Animation

31.2. Overview of the Problem to Solve

The goal of this tutorial is to set up a transient blade row calculation to model an inlet disturbance (frozen gust) using the Time Transformation model. The tutorial uses an axial turbine to illustrate the basic concepts of setting up, running, and monitoring a transient blade row problem in Ansys CFX.

In this tutorial, the full geometry of the axial rotor-stator stage contains 21 stator blades and 28 rotor blades. The schematic below shows three stator blades along with the profile boundary showing a disturbance in the total temperature of the flow:

Rotational periodicity boundaries are used to enable only a small section of the full geometry to be modeled.

In your model, you should always try to obtain a pitch ratio as close to unity as possible to minimize approximations, but this must be weighted against computational resources. For this disturbance/passage geometry, 1/7 of the full wheel (4 disturbance pulses and 3 passages) would produce a pitch ratio of 1.0, but this would require a model about 3 times larger than in this tutorial example.

Using the Time Transformation method, you can work with pitch ratios near unity in order to minimize computational requirements, with little loss of accuracy. The acceptable range of pitch ratios varies, depending on the case. In this tutorial, the geometry that will be modeled consists of just a single blade passage from the stator, which is a 17.14° section (360°/21 blades). With only one stator blade, the rotor-stator pitch ratio is 4:3, which happens to fall within the acceptable range (as can be confirmed in the "Time Transformation stability limits" section of the CFX-Solver Output file for the second part of this tutorial).

The rotor is upstream of the stator, and creates a disturbance in the total temperature of the flow. The rotor will be modeled by applying a moving profile boundary condition at the inlet of the stator blade passage. In this case, the profile is of total temperature in a Gaussian distribution with a maximum that is 20% higher than the baseline value, and a pattern that repeats in the theta direction every 12.86° (360°/28 blades). To create a moving disturbance, the profile boundary is applied on a moving coordinate frame that rotates about the machine axis at 6300 rev/min. In this case, the machine axis is the Z axis. The rotation direction is positive using the right-hand rule as applied to the machine axis. The total temperature profile is implemented via CEL expressions that are provided in a .ccl file.

The outlet boundary condition is a static pressure profile, provided in a .csv file. It was obtained from a previous simulation of a downstream stage.

The flow is modeled as being turbulent and compressible.

The overall approach to solving this problem is:

  1. Define the simulation using the Turbomachinery wizard in CFX-Pre.

  2. Import the stator mesh, which was created in Ansys TurboGrid.

  3. Enter the basic model definition.

  4. Set the profile boundary conditions using CFX-Pre in General mode.

  5. Run the steady-state simulation.

  6. Modify the simulation to use the Time Transformation model.

  7. Run the transient blade row simulation using the steady-state results as an initial guess.

  8. Create contours of temperature and animate them in CFD-Post.

If this is the first tutorial you are running, it is important to review the following topics before beginning:

31.3. Preparing the Working Directory

  1. Create a working directory.

    Ansys CFX uses a working directory as the default location for loading and saving files for a particular session or project.

  2. Download the time_inlet_disturbance.zip file here .

  3. Unzip time_inlet_disturbance.zip to your working directory.

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

    • TBRInletDistCEL.ccl

    • TBRInletDistOutlet.csv

    • TBRInletDistStator.gtm

  4. Set the working directory and start CFX-Pre.

    For details, see Setting the Working Directory and Starting Ansys CFX in Stand-alone Mode.

31.4. Defining a Steady-state Case in CFX-Pre

This tutorial uses the Turbomachinery wizard in CFX-Pre. This preprocessing mode is designed to simplify the setup of turbomachinery simulations.

  1. In CFX-Pre, select File > New Case.

  2. Select TurboMachinery and click OK.

  3. Select File > Save Case As.

  4. Under File name, type TimeInletDistIni.

  5. Click Save.

  6. If you are notified that the file already exists, click Overwrite.

31.4.1. Basic Settings

  1. In the Basic Settings panel, configure the following:

    Setting

    Value

    Machine Type

    Axial Turbine

    Axes

    > Rotation Axis

     

    Z

    Analysis Type

    > Type

     

    Steady State

    Leave the other settings at their default values.

  2. Click Next.

31.4.2. Components Definition

As stated in the overview, this tutorial requires a single blade passage for the stator. You will define a single component and import its mesh.

  1. Right-click in the blank area and select Add Component from the shortcut menu.

  2. Create a new component of type Stationary, named S1 and click OK.

  3. Configure the following setting(s):

    Setting

    Value

    Mesh

    > File

     

    TBRInletDistStator.gtm[a]

    1. You may have to select the CFX Mesh (*gtm *cfx) option under Files of type.

  4. Click Next.

31.4.3. Physics Definition

In this section, you will set properties of the fluid domain and some solver parameters.

  1. In the Physics Definition panel, configure the following setting(s):

    Setting

    Value

    Fluid

    Air Ideal Gas

    Model Data

    > Reference Pressure

     

    0 [atm] [a]

    Model Data

    > Heat Transfer

     

    Total Energy

    Model Data

    > Turbulence

     

    k-Epsilon

    Inflow/Outflow Boundary Templates

    > P-Total Inlet P-Static Outlet

     

    (Selected)

    Inflow/Outflow Boundary Templates

    > Inflow

    > P-Total

     

     

    200000 [Pa]

    Inflow/Outflow Boundary Templates

    > Inflow

    > T-Total

     

     

    500 [K] [b]

    Inflow/Outflow Boundary Templates

    > Inflow

    > Flow Direction

     

     

    Cylindrical Components

    Inflow/Outflow Boundary Templates

    > Inflow Direction (a,r,t)

     

    1, 0, –0.4

    Inflow/Outflow Boundary Templates

    > Outflow

    > P-Static

     

     

    175000 [Pa] [b]

    1. To define the simulation using absolute pressure, set this value to 0 atm.

    2. These values are temporary. They will be replaced with profile data later in the tutorial.

  2. Continue to click Next until you reach Final Operations.

  3. Set Operation to Enter General Mode because you will continue to define the simulation through settings not available in the Turbomachinery wizard.

  4. Click Finish.

31.4.4. Modifying the Fluid Model Settings

You will include additional settings to improve the accuracy of the simulation.

  1. Edit S1.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Fluid Models

    Heat Transfer

    > Incl. Viscous Work Term

     

    (Selected)

    Turbulence

    > High Speed (compressible) Wall Heat Transfer Model

     

    (Selected)

  3. Click OK.

31.4.5. Initializing Profile Boundary Conditions

The inlet and outlet boundary conditions are defined using profiles. Boundary profile data must be initialized before they can be used for boundary conditions.

  1. Select File > Import > CCL.

  2. Select Import Method > Append.

  3. From your working directory, select TBRInletDistCEL.ccl.

  4. Click Open.

  5. Select Tools > Initialize Profile Data.

    The Initialize Profile Data dialog box appears.

  6. Beside Profile Data File, click Browse  .

    The Select Profile Data File dialog box appears.

  7. From your working directory, select TBRInletDistOutlet.csv.

  8. Click Open.

  9. Click OK.

    The profile data is read into memory.


Note:  After profile data has been initialized from a file, the profile data file should not be deleted or otherwise removed from its directory. By default, the full file path to the profile data file is stored in CFX-Pre, and the profile data file is read directly by CFX-Solver each time the solver is started or restarted.


31.4.6. Modifying Inlet and Outlet Boundary Conditions

Here, you will apply profiles to the inlet and outlet boundary conditions.

  1. Edit S1 Inlet.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Boundary Details

    Heat Transfer

    > Option

     

    Total Temperature

    Heat Transfer

    > Total Temperature

     

    TINLET [a]

    1. Click the Enter Expression icon   to specify the CEL expression.

  3. Click OK.

  4. Edit S1 Outlet.

  5. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Profile Boundary Conditions

    > Use Profile Data

     

    (Selected)

    Profile Boundary Setup

    > Profile Name

     

    outlet

  6. Click Generate Values.

  7. Click OK.

31.4.7. Writing the CFX-Solver Input (.def) File

  1. Click Define Run  .

  2. Configure the following setting(s):

    Setting

    Value

    File name

    TimeInletDistIni.def

  3. Click Save.

    CFX-Solver Manager automatically starts and, on the Define Run dialog box, the Solver Input File is set.

  4. Save the simulation.

31.5. Obtaining a Solution to the Steady-state Case

At this point, CFX-Solver Manager is running.

  1. Ensure that the Define Run dialog box is displayed.

  2. Click Start Run.

    CFX-Solver runs and attempts to obtain a solution. This may take a long time, depending on your system. Eventually a dialog box is displayed.

  3. Clear the check box next to Post-Process Results when the completion message appears at the end of the run.

  4. Click OK.

  5. If using stand-alone mode, quit CFX-Solver Manager.

31.6. Defining a Transient Blade Row Case in CFX-Pre

In this second part of the tutorial, you will modify the simulation from the first part of the tutorial in order to model the transient blade row.

31.6.1. Opening the Existing Case

This step involves opening the original simulation and saving it to a different location.

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

    • TBRInletDistOutlet.csv

    • TimeInletDistIni.cfx

    • TimeInletDistIni_001.res

  2. Set the working directory and start CFX-Pre if is it not already running.

    For details, see Setting the Working Directory and Starting Ansys CFX in Stand-alone Mode.

  3. If the original simulation is not already opened, then open TimeInletDistIni.cfx.

  4. Save the case as TimeInletDist.cfx in your working directory.

31.6.2. Modifying the Analysis Type

Modify the analysis type as follows:

  1. Edit Analysis Type.

  2. Configure the following setting(s):

    Setting

    Value

    Analysis Type

    > Option

     

    Transient Blade Row

  3. Click OK.

31.6.3. Creating the Local Rotating Coordinate Frame

Create a local rotating coordinate frame that will be applied to the inlet boundary in order to cause the inlet boundary condition to rotate:

  1. Select Insert > Coordinate Frame.

  2. Accept the default name and click OK.

  3. Configure the following setting(s):

    Setting

    Value

    Option

    Axis Points

    Coordinate Frame Type

    Cartesian

    Ref. Coord. Frame

    Coord 0

    Origin

    0, 0, 0

    Z Axis Point

    0, 0, 1

    X-Z Plane Pt

    1, 0, 0

    Frame Motion

    (Selected)

    Frame Motion

    > Option

     

    Rotating

    Frame Motion

    > Angular Velocity

     

    VSignal [a]

    Frame Motion

    > Axis Definition

    > Option

     

     

    Coordinate Axis

    Frame Motion

    > Axis Definition

    > Rotation Axis

     

     

    Global Z

    1. Click the Enter Expression icon   to specify the CEL expression.

  4. Click OK.

31.6.4. Setting up a Transient Blade Row Model

You will set the simulation to be solved using the Time Transformation method.

  1. Edit Transient Blade Row Models.

  2. Set Transient Blade Row Model > Option to Time Transformation.

  3. Under Time Transformation, click Add new item  , accept the default name, and click OK.

  4. Configure the following setting(s):

    Setting

    Value

    Time Transformation

    > Time Transformation 1

    > Option

     

     

    Rotational Flow Boundary Disturbance

    Time Transformation

    > Time Transformation 1

    > Domain Name

     

     

    S1

    Time Transformation

    > Time Transformation 1

    > Signal Motion

    > Option

     

     

     

    Rotating

    Time Transformation

    > Time Transformation 1

    > Signal Motion

    > Coordinate Frame

     

     

     

    Coord 1

    Time Transformation

    > Time Transformation 1

    > External Passage Definition

    > Passages in 360

     

     

     

    28

    Time Transformation

    > Time Transformation 1

    > External Passage Definition

    > Pass. in Component

     

     

     

    1

    Transient Method

    > Time Period

    > Option

     

     

    Passing Period[a]

    Transient Method

    > Time Steps

    > Option

     

     

    Number of Timesteps per Period

    Transient Method

    > Time Steps

    > Timesteps/Period[b]

     

     

    60[c]

    Transient Method

    > Time Duration

    > Option

     

     

    Number of Periods per Run

    Transient Method

    > Time Duration

    > Periods per Run

     

     

    9

    1. The passing period is automatically calculated as: 2 * pi / (Passages in 360 * Signal Angular Velocity). The Passing Period setting cannot be edited.

    2. The number of time steps per period should always be larger than 2 * Number of Fourier Coefficients + 1 to be used for postprocessing.

    3. The time step size is also automatically calculated as: Passing Period / Number of Timesteps per Period. The Timestep setting cannot be edited.

  5. Click OK.

31.6.5. Applying the Local Rotating Frame to the Inlet Boundary

You can create a moving disturbance by applying a moving coordinate frame to a boundary.

Add rotational motion to the boundary condition values on the inlet by applying the local rotating coordinate frame that you made earlier:

  1. Edit S1 Inlet.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Coordinate Frame

    (Selected)

    Coordinate Frame

    > Coordinate Frame

     

    Coord 1

  3. Click OK.

31.6.6. Setting the Output Control and Creating Monitor Points

For transient blade row calculations, a minimal set of variables are selected to be computed using Fourier coefficients. It is convenient to postprocess total (stagnation) variables as well. Here, you will add Total Pressure and Total Temperature variables to the default list.

In addition, monitor points can be used to effectively compare the Time Transformation results against a reference case. They provide useful information on the quality of the reference phase and frequency produced in the simulation. They should also be used to monitor convergence and, as the simulation converges, the user points should display a periodic pattern.


Note:
  • When comparing to a reference case, make sure monitor points are placed in the same relative locations with respect to the initial configuration in both cases.

  • It is important to check that the solver equations are being solved correctly. Monitoring pressure provides feedback on the momentum equations while monitoring temperature provides feedback on the energy equations.


Set up the output control and create monitor points as follows:

  1. Click Output Control  .

  2. Click the Trn Results tab.

  3. Configure the following setting(s):

    Setting

    Value

    Transient Blade Row Results

    > Extra Output Variables List

     

    (Selected)

    Transient Blade Row Results

    > Extra Output Variables List

    > Extra Output Var. List

     

     

    Total Pressure, Total Temperature[a]

    1. Click Multi-select from extended list   and hold down the Ctrl key while selecting each of the listed variables.

  4. Click Apply.

  5. Click the Monitor tab.

  6. Configure the following setting(s):

    Setting

    Value

    Monitor Objects

    > Monitor Points and Expressions

     

    Create a monitor point named Monitor Point 1[a]

    Monitor Objects

    > Monitor Points and Expressions

    > Monitor Point 1

    > Output Variables List

     

     

     

    Pressure, Temperature, Total Pressure, Total Temperature[b]

    Monitor Objects

    > Monitor Points and Expressions

    > Monitor Point 1

    > Cartesian Coordinates

     

     

     

    (0.31878, 0.02789, 0.1)

    1. To create a new item, you must first click the Add new item   icon, then enter the name as required and click OK.

    2. Click Multi-select from extended list   and hold down the Ctrl key while selecting each of the listed variables.

  7. Create additional monitor points with the same output variables. The names and Cartesian coordinates are listed below:

    Name

    Cartesian Coordinates

    Monitor Point 2

    (0.319220, 0.022322, 0.16)

    Monitor Point 3

    (0.312644, 0.064226, 0.162409)

    Monitor Point 4

    (0.316970, -0.0359315, 0.06)

  8. Click OK.

31.6.7. Writing the CFX-Solver Input (.def) File

  1. Click Define Run  .

  2. Configure the following setting(s):

    Setting

    Value

    File name

    TimeInletDist.def

  3. Click Save.

  4. Ignore the error message (the initial values will be specified in CFX-Solver Manager) and click Yes to continue.

    CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is set.

  5. If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.

31.7. Obtaining a Solution to the Transient Blade Row Case

When CFX-Pre has shut down and the CFX-Solver Manager has started, obtain a solution to the CFD problem by following the instructions below. To reduce the simulation time, the simulation will be initialized using a steady-state case.

  1. Ensure that the Define Run dialog box is displayed.

  2. Ensure that Solver Input File is set to TimeInletDist.def.

  3. Under the Initial Values tab, select Initial Values Specification.

  4. Under Initial Values Specification > Initial Values, select Initial Values 1.

  5. Under Initial Values Specification > Initial Values > Initial Values 1 Settings > File Name, click Browse  .

  6. Select TimeInletDistIni_001.res from your working directory.

  7. Click Open.

  8. Under Initial Values Specification > Use Mesh From, select Solver Input File.

  9. Click Start Run.

    CFX-Solver runs and attempts to obtain a solution. This can take a long time depending on your system. Eventually a dialog box is displayed.


    Note:
    • Before the simulation begins, the "Transient Blade Row Post-processing Information" summary in the CFX-Solver Output file will display the time step range over which the solver will accumulate the Fourier coefficients.

    • Similarly, the "Time Transformation Stability" summary in the CFX-Solver Output file displays whether the Passage/Signal pitch ratio is within the acceptable range.

    • After the CFX-Solver Manager has run for a short time, you can track the monitor points you created in CFX-Pre by clicking the Time Corrected User Points tab that appears at the top of the graphical interface of CFX-Solver Manager.

    • After the simulation has proceeded for some time, observe the periodic nature of the monitor point values.


  10. When CFX-Solver is finished, select the check box next to Post-Process Results.

  11. Click OK.

31.8. Viewing the Time Transformation Results in CFD-Post

In this section, you will work with the Fourier coefficients compressed data in transient blade row analysis. The solution variables are automatically set to the transient position corresponding to the end of the simulation.

31.8.1. Creating a Turbo Surface

  1. You will see a dialog box named Transient Blade Row Post-processing. Click OK.

  2. Click the Turbo tab.

  3. A dialog box will ask if you want to auto-initialize all turbo components. Click Yes.

  4. Select Insert > Location > Turbo Surface.

  5. Change the name to Span 50.

  6. Click OK.

  7. Click Apply.

  8. Turn off the visibility of Span 50.

31.8.2. Creating a Contour Plot

  1. Click Insert > Contour and accept the default name.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Geometry

    Locations

    Span 50

    Variable

    Temperature

    Range

    User Specified

    Min

    465 [K]

    Max

    605 [K]

    # of Contours

    21

  3. Click Apply.

31.8.3. Animating Temperature

Create an animation of the contour plot:

  1. Click Animation  .

    The Animation dialog box appears.

  2. Set Type to Timestep Animation.

  3. Click To First Timestep   in order to load the first time step.

  4. Click Play the animation  .

  5. When you have finished, quit CFD-Post.