Chapter 40: Flow in an Intake Manifold using GT-SUITE Coupling


Important:  You must have GT-SUITE installed in order to run this tutorial.

This tutorial was tested to work with GT-SUITE v2019.


40.1. Tutorial Features

In this tutorial you will learn about:

  • Importing a CCL file to set up a case in CFX-Pre.

  • Initializing GT-SUITE Coupling.

Component

Feature

Details

CFX-Pre

User Mode

General mode

Analysis Type

Transient

Fluid Type

General Fluid

Domain Type

Single Domain

Turbulence Model

k-Epsilon

Boundary Conditions

Opening (GT-SUITE Coupling)

40.2. Overview of the Problem to Solve

This tutorial models transient flow through a manifold by coupling CFX with GT-SUITE.

The GT-SUITE model is a one-dimensional model of a 4-cylinder engine. The 3D mesh to be coupled is for an intake manifold. The flow consists of a mixture of indolene, nitrogen, oxygen, and combustion products CO2 and water.

The approach to this tutorial is to load a transient simulation from CCL, then couple that simulation with GT-SUITE, exchanging information at the domain boundaries.

40.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. Copy the following GT-SUITE .gtm file from your GT-SUITE installation into your working directory. Note that the path might not be exactly as shown.

    • C:\Program Files (x86)\GTI\v2019\tutorials\Co-Simulation_And_UserCode\CFDcoupling\IntakeManifold\CFDCoupling_IntakeManifold.gtm

  3. Download the intake_manifold_GT.zip file here .

  4. Unzip intake_manifold_GT.zip to your working directory.

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

    • IntakeManifold.msh

    • IntakeManifold.ccl

    • CFDCoupling_IntakeManifold.gtm

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

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

40.4. Defining the Case Using CFX-Pre

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

  2. Ensure that General is selected and click OK.

  3. Select File > Save Case As.

  4. Under File name, type IntakeManifold.

  5. Click Save.

40.4.1. Importing a Mesh

  1. Select File > Import > Mesh.

    The Import Mesh dialog box appears.

  2. Under Files of type, select FLUENT (*cas *msh).

  3. From your working directory, select IntakeManifold.msh.

  4. Click Open.

40.4.2. Importing the Intake Manifold CCL File

CFX Command Language (CCL) consists of commands used to carry out actions in CFX-Pre, CFX-Solver Manager, and CFD-Post. The flow analysis settings as well as the materials required for the simulation will be imported from the CCL file. You will review, then import, the contents of the IntakeManifold.ccl file.


Note:  The physics for a simulation can be saved to a CCL (CFX Command Language) file at any time by selecting File > Export > CCL.


  1. Open IntakeManifold.ccl with a text editor and take the time to look at the information it contains.

    The CCL sets up the following materials:

    • GT Mixture

    • indolene combust

    • indolene vap

    • lump N2

    • n2 vap

    • o2 EGR

    • o2 backflow

    • o2 vap

    • prod co2

    • prod h2o

  2. In CFX-Pre, select File > Import > CCL.

    The Import CCL dialog box appears.

  3. Under Import Method, select Append. This option appends the changes to the existing case.


    Note:  The Replace option is useful if you have defined the physics and want to update or replace the existing physics using the newly imported CCL.


  4. From your working directory, select IntakeManifold.ccl.

  5. Click Open.

    The CCL is loaded as indicated by the status bar in the bottom right corner of the window. After a short pause, the CCL and the Outline tree view are updated.

  6. In the Outline tree view, expand the Materials branch under Simulation to confirm that new objects have been added after importing the CCL file.

40.4.3. Initializing GT-SUITE Coupling

  1. Select Tools > Initialize GT-SUITE Coupling.

    The Initialize GT-SUITE Coupling dialog box appears.

  2. Ensure that Create new GT-SUITE model is selected.

  3. Beside Model File, click Browse  .

    The Select GT-SUITE File dialog box appears.

  4. Select CFDCoupling_IntakeManifold.gtm and click Open.

  5. Optionally, select Specify GT-SUITE Installation and specify the installation directory.

    If you do not select this option, the default installation directory will be used.

  6. Click Read Setup From File.

    The GT-SUITE coupling information is loaded, and additional options appear for further configuration.

  7. On the Boundary Association tab, ensure that Option is set to Specify Boundary Names.

    With this option, GT-SUITE interfaces are mapped to CFX boundaries according to the CFX boundary names in the CFX Boundary column of the two-column mapping table.

  8. Ensure that Allow new boundary names and Create missing boundaries are selected.

    Together, these settings automatically create any non-existent mapped boundaries, giving them the specified names. In this case, six boundaries will be created.

  9. On the Material Association tab, ensure that Option is set to Specify Component Names.

    This option allows you to manually specify component names to map from GT-SUITE materials to CFX materials. In this case, the mapping requires no adjustments.

  10. On the Function Names tab, ensure that all six GT-SUITE patches are listed under GT-SUITE Interface or Turboshaft Name, with a corresponding GT-SUITE Patch function name listed under CFX Function Name.

    The listed GT-SUITE Patch functions will be created. These functions are used to exchange data between CFX boundaries and the corresponding GT-SUITE patches.

  11. Click OK.

    GT-SUITE initialization is carried out, resulting in the creation of a GT-SUITE model, several GT-SUITE Patch functions, and boundaries, all of which appear in the Outline tree view.

40.4.4. Editing the Boundaries

The coupled boundaries have been created but require location information.

  1. In the Outline tree view, right-click Simulation > Flow Analysis 1 > Default Domain > Cyl 1 and select Edit.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Location

    outlet cyl 1

  3. Click OK.

  4. In a similar way, edit each of the other boundaries to specify a location as shown below.

    Boundary

    Location

    Cyl 2

    outlet cyl 2

    Cyl 3

    outlet cyl 3

    Cyl 4

    outlet cyl 4

    EGR

    inlet egr

    Intake

    inlet air

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

  1. Click Define Run  .

  2. Configure the following setting(s):

    Setting

    Value

    File name

    IntakeManifold.def

  3. Click Save.

    The CFX-Solver input file (IntakeManifold.def) is created. CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is set.

  4. When you are finished, select File > Quit in CFX-Pre.

  5. Click Save & Quit if prompted, to save IntakeManifold.cfx.

40.5. Obtaining the Solution Using CFX-Solver Manager

You will now generate a solution for the coupled simulation that you just prepared.

40.5.1. Starting the Run

At this point, CFX-Solver Manager is running, and the Define Run dialog box is displayed, with the CFX-Solver input file set.

  1. Click Start Run.

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

  3. If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.

  4. Click OK.

Postprocessing is left as a further exercise.