ACU-T: 2000 Turbulent Flow in a Mixing Elbow

Prerequisites

Prior to starting this tutorial, you should have already run through the introductory HyperWorks tutorial, ACU-T: 1000 HyperWorks UI Introduction. 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 > 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.
  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, 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 swipe the cursor over the green check mark from right to left.
  3. Save the database.

Set Up the Problem

Set Up the Simulation Parameters and Solver Settings

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


    Figure 5.
    The Setup dialog opens.
  2. Under the Physics models setting:
    1. Verify that the Incompressible option is selected under Single phase flow.
    2. Set the Time marching to Steady.
    3. 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 6.
  3. Click the Solver controls setting and verify that the parameters are set as shown in the figure below.


    Figure 7.
  4. Close the dialog and save the model.

Assign Material Properties

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


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


    Figure 9.
  3. In the microdialog, 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, Profiled tool group, click the Profiled Inlet tool.


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


    Figure 11.
  3. In the microdialog, enter a value of 0.4 for Average velocity.


    Figure 12.
  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 13.
  2. In the microdialog, enter a value of 1.2 for Average velocity.


    Figure 14.
  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, click the Outlet tool.


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


    Figure 16.
  3. In the microdialog, make sure both Static pressure and Pressure loss factor are 0.


    Figure 17.
  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, click the Symmetry tool.


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


    Figure 19.
  3. In the microdialog, accept the default symmetry conditions.


    Figure 20.
  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, click the Volume tool.


    Figure 21.
    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 22.
  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 23.

Run AcuSolve

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


    Figure 24.
    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 25.
    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 solution process.

Post-Process the Results with HW-CFD Post

  1. Once the solution is completed, navigate to the Post ribbon.
  2. From the menu bar, click File > Open > Results.
  3. Select the AcuSolve log file in your problem directory to load the results for post-processing.
    The solid and all the surfaces are loaded in the Post Browser.
  4. Isolate the Symmetry flow boundary in the Post Browser.
  5. Right-click on Symmetry and select Edit.
  6. In the display properties microdialog, set the display to velocity and activate the Legend toggle.
  7. Click and set the Colormap Name to Rainbow Uniform.


    Figure 26.
  8. Click on the guide bar.


    Figure 27.
  9. Again, right-click on the Symmetry and select Edit.
  10. Display the pressure.
  11. Click to reset the range.


    Figure 28.
  12. Click on the guide bar.


    Figure 29.

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. 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 the Post ribbon to create contour plots.