ACU-T: 2000 Turbulent Flow in a Mixing Elbow

Prerequisites

Prior to starting this tutorial, you should have already run through the introductory tutorial, ACU-T: 1000 Basic Flow Set Up. To run this simulation, you will need access to a licensed version of HyperWorks CFD and AcuSolve.

Prior to running through this tutorial, copy HyperWorksCFD_tutorial_inputs.zip from <Altair_installation_directory>\hwcfdsolvers\acusolve\win64\model_files\tutorials\AcuSolve to a local directory. Extract ACU-T2000_MixingElbow.hm from HyperWorksCFD_tutorial_inputs.zip.

Problem Description

The problem to be addressed in this tutorial is shown schematically in Figure 1. This is a typical industrial example for mixing in a pipe by injecting high-velocity fluid from a small inlet into relatively low-velocity fluid in the main pipe. It consists of a 90° mixing elbow with water entering through two inlets with different velocities. The geometry is symmetric about the XY midplane of the pipe, as shown in the figure.



Figure 1. Schematic of Mixing Elbow

Start HyperWorks CFD and Open the HyperMesh Database

  1. Start HyperWorks CFD from the Windows Start menu by clicking Start > All Programs > Altair <version> > HyperWorks CFD.
  2. From the Home tools, Files tool group, click the Open Model tool.


    Figure 2.
    The Open File dialog opens.
  3. Browse to the directory where you saved the model file. Select the HyperMesh file ACU-T2000_MixingElbow.hm and click Open.
  4. Click File > Save As.
    The Save File As dialog opens.
  5. Create a new directory named MixingElbow_Turbulent and navigate into this directory.
    This will be the working directory and all the files related to the simulation will be stored in this location.
  6. Enter MixingElbow as the file name for the database, or choose any name of your preference.
  7. Click Save to create the database.

Validate the Geometry

  1. From the Geometry ribbon, Cleanup tools, click the Validate tool.


    Figure 3.
    The Validate tool scans through the entire model, performs checks on the surfaces and solids, and flags any defects in the geometry, such as free edges, closed shells, intersections, duplicates, and slivers.

    The current model doesn’t have any of the issues mentioned above. Alternatively, if any issues are found, they are indicated by the number in the brackets adjacent to the tool name.

    Observe that a blue check mark appears on the top-left corner of the Validate icon. This indicates that the tool found no issues with the geometry model.


    Figure 4.
  2. Press Esc or right-click in the modeling window and select Exit from the context menu to exit the tool.
  3. Save the database.

Set Up the Problem

Set Up the Simulation Parameters and Solver Settings

  1. From the Flow ribbon, Setup tools, click the Physics tool.


    Figure 5.
    The Setup dialog opens.
  2. Click the Time setting and ensure that Steady is selected.


    Figure 6.
  3. Click the Flow setting.
  4. Check that the flow type is set to Turbulent.
  5. Select Spalart-Allmaras as the Turbulence model.
    The robustness and accuracy of the Spalart Allmaras turbulence model makes it an excellent choice for simulation of steady state flows.


    Figure 7.
  6. Click the Solver controls setting and verify that the parameters are set as shown in the figure below.


    Figure 8.
  7. Exit the Setup dialog.

Assign Material Properties

  1. From the Flow ribbon, Domain tools, click the Material tool.


    Figure 9.
  2. Select the model body.
    The entire solid is highlighted.


    Figure 10.
  3. In the dialog that appears, click the drop-down menu next to Material and select Water.
  4. On the guide bar, click to execute the command and exit the tool.

Assign Flow Boundary Conditions

Set Boundary Conditions for the Large Inlet

The large inlet of the mixing elbow will be defined as a profiled inlet based on average velocity.
  1. From the Flow ribbon, Domain tools, click the Profiled tool.


    Figure 11.
  2. Click the face of the large inlet.


    Figure 12.
  3. In the dialog that appears, enter a value of 0.4 for Average velocity.


    Figure 13.
  4. Rename the inlet.
    1. From the legend on the left side of the modeling window, double-click on Inlet
    2. Type Large_Inlet and press Enter.
  5. On the guide bar, click to execute the command and remain in the tool.
    Note: The number of inlets created appears in parenthesis on the top-right of the Profiled tool icon.

Set Boundary Conditions for the Small Inlet

The small inlet of the mixing elbow will also be defined using average velocity. The guide bar for the Profiled tool should still be open from the last step.
  1. Click the face of the small inlet.


    Figure 14.
  2. In the dialog that appears, enter a value of 1.2 for Average velocity.


    Figure 15.
  3. Rename the inlet.
    1. From the legend on the left side of the modeling window, double-click on Inlet
    2. Type Small_Inlet and press Enter.
  4. On the guide bar, click to execute the command and exit the tool.

Set Boundary Conditions for the Outlet

  1. From the Flow ribbon, Domain tools, click the Outlet tool.


    Figure 16.
  2. Click the face of the outlet.


    Figure 17.
  3. In the dialog that appears, make sure both Static pressure and Pressure loss factor are 0.


    Figure 18.
  4. On the guide bar, click to execute the command and exit the tool.

Set Boundary Conditions for the Symmetry Plane

This geometry is symmetric about the XY midplane, and can therefore be modeled with half of the geometry. In order to take advantage of this, the midplane needs to be identified as a symmetry plane. The symmetry boundary condition enforces constraints such that the flow field from one side of the plane is a mirror image of that on the other side.

  1. From the Flow ribbon, Domain tools, click the Symmetry tool.


    Figure 19.
  2. Select the face of the symmetry plane.


    Figure 20.
  3. In the dialog that appears, accept the default symmetry conditions.


    Figure 21.
  4. On the guide bar, click to execute the command and exit the tool.
  5. Save the database.

Generate the Mesh

The meshing parameters for this tutorial are already set in the input file.
  1. From the Mesh ribbon, Mesh tools, click the Batch tool.


    Figure 22.
    The Meshing Operations dialog opens.
    Note: If the model has not been validated, you are prompted to create the simulation model before running the batch mesh.
  2. Check that the Average element size is 0.025.
  3. Accept all other default parameters.


    Figure 23.
  4. Click Mesh.
    The Run Status dialog opens. Once the run is complete, the status is updated and you can close the dialog.
    Tip: Right-click on the mesh job and select View log file to view a summary of the meshing process.
  5. From the back side of the model, observe the refined mesh around the small inlet.


    Figure 24.

Run AcuSolve

  1. From the Solution ribbon, Simulation tools, click the Run tool.


    Figure 25.
    The Launch AcuSolve dialog opens.
  2. Set the Parallel processing option to Intel MPI.
  3. Optional: Set the number of processors to 4 or 8 based on availability.
  4. Deactivate the Automatically define pressure reference option.
  5. Leave the remaining options as default and click Run to launch AcuSolve.


    Figure 26.
    The Run Status dialog opens. Once the run is complete, the status is updated and you can close the dialog.
    Tip: While AcuSolve is running, right-click on the AcuSolve job in the Run Status dialog and select View Log File to monitor the AcuSolve solution process.

Post-Process the Results with HyperView

This part of the tutorial shows you how to work with steady state analysis data in HyperView once the solution has converged.

Open HyperView and Load the Model and Results

  1. Start HyperView from the Windows Start menu by clicking Start > All Programs > Altair <version> > HyperView.
    Once the HyperView window is loaded, the Load model and results panel should be open by default. If you do not see the panel, click File > Open > Model.
  2. In the Load model and results panel, click next to Load model.
  3. In the Load Model File dialog, navigate to your working directory and select the AcuSolve .Log file for the solution run that you want to post-process. In this example, the file to be selected is MixingElbow.1.Log.
  4. Click Open.
  5. Click Apply in the panel area to load the model and results.
    The model is colored by geometry after loading.

Create Contour Plots of Pressure and Velocity

In this step, you will create pressure and velocity contour plots on the symmetry plane.
  1. In the Results Browser, expand the list of Components.
  2. Click the Isolate Shown icon then click the Symmetry - Output component to turn off the display of all components in the graphics window except the Symmetry component.


    Figure 27.
  3. Orient the display to the xy-plane by clicking on the Standard Views toolbar.
  4. Click on the Results toolbar to open the Contour panel.
  5. Under result type, verify that Velocity(v) and Mag are selected.
  6. Click the Components entity selector. In the Extended Entity Selection dialog, select Displayed.
  7. Click Apply.
  8. In the panel area, under the Display tab, turn off the Discrete color option.


    Figure 28.
  9. Click the Legend tab then click Edit Legend. In the dialog, change the Numeric format to Fixed then click OK.


    Figure 29.
  10. Change the result type to Pressure(s) then click Apply to view the pressure contour on the symmetry plane.


    Figure 30.

Summary

In this tutorial, you worked through a basic workflow to set up a CFD model, carry out a CFD simulation, and post-process the results using HyperWorks products, namely AcuSolve, HyperWorks CFD, and HyperView. You started by importing the model in HyperWorks CFD. Then, you defined the simulation parameters and launched AcuSolve directly from within HyperWorks CFD. Upon completion of the solution by AcuSolve, you used HyperView to post-process the results and create contour plots.