Configure the Fluid Flow Simulation

Create a step to simulate a pour test using the water bottle.

The fluid flow simulation that you imported previously simulates the action of pouring liquid from the water bottle. The results of this simulation indicate whether the flow is laminar or turbulent, and they provide insight into a customer's experience of drinking from the bottle.

In the previous task, you set up the Automation Script adapter to change the midsection of the bottle. In this task, you use a Fluid Simulation adapter to select publications from the bottle model to be varied by a design of experiments (DOE). Later when you run the simulation process, the app simulates a bottle that has different values for these parameters, for each iteration.

  1. In the upper-right corner of the simulation activity, click the arrow to expand the simulation activity.
  2. From the Simulation Applications section of the action bar, click Fluid Simulation , and drop it to the right of the Automation Script adapter in the same activity.
  3. In the process diagram, click the Fluid Simulation adapter to open its shortcut toolbar, and then click to open the adapter's editor.
  4. Click the Run tab
  5. In the Simulation section, change the simulation type to Parameter.
  6. Create an object parameter for the fluid flow simulation.
    1. Click to search for the physics simulation object.
    2. In the top bar, search for and select MyNameBottlePourTest A.1.
      The Create New Parameter dialog box appears, and the selected simulation object appears in the Object Selection field.
    3. In the Create New Parameter dialog box, enter CFD Simulation for the parameter's name.
    4. Accept all other default values and click OK.
      Optimization Process Composer creates an object parameter for the fluid flow simulation. In the simulation process, you can now refer to this parameter.
    5. From the Simulation section, confirm that CFD Simulation is selected.
  7. In the Performance section, enter 8 for the number of Cores to use when running the simulation.
  8. From the Mode options, select Iterative run with the Branch and save full results option to save the simulation data.

    You can now view lightweight, 3D results in Results Analytics.

  9. In the Duplication and Deletion section, enter ${Run_Number} for the Copy prefix.

    The run number represents the iteration in the DOE that drives the simulation process. The app prepends the run number to the name of each model when each iteration of the process runs.

  10. Create a parameter for the fluid flow results named CFD Result.
    1. From Capture copy in object parameter, click to create a parameter.
    2. Enter CFD Result for the parameter's name.
    3. Accept all other defaults, and click OK.
    4. From the Capture copy in object parameter options, confirm that CFD Result is selected.
  11. For the Field plot prefix, place your pointer before the default text, and enter ${Run_Number}.

    Each time the simulation process runs, the app prepends the iteration number to the names of the field plots.

  12. Similarly, for the History plot name, place your pointer before the default text, and enter ${Run_Number}.
  13. Expand the Advanced section, and select Run in dedicated session from the Execution mode options.
  14. Click the Input tab.
  15. In the tree, expand Model > PlasticBottleCFD > Publications, and select the following publications:

    • NumberOfRibsBottomSection
    • RadiusTopSection

    Selecting these publications creates activity parameters, which allows them to map them to the DOE adapter that you add later. The DOE adapter creates designs that have different numbers of ribs on the bottom section of the bottle. In addition, the DOE varies the radius of the top of the bottle.
  16. Click the Output tab.
  17. In the tree, expand Result > Result of Flow Analysis Case.1 > Sensors > MASSFLOW.1, and select Result Manager\Result Of Flow Analysis Case.1\MASSFLOW.1\Maximum.
    Selecting this sensor creates an activity parameter, allowing you to map it to the DOE that you create later. Mapping parameters between activities allows them to update as each activity runs.
  18. Click OK.
  19. Double-click the name of the activity, and rename it to Fluid.