Chapter 5: Optimizing Flow in a Static Mixer

DesignXplorer is a Workbench component that you can use to examine the effect of changing parameters in a system. In this tutorial, two streams of water at different temperatures are mixed in a static mixer. You will see how changing the geometry and inlet flow rate affects the mixing effectiveness, as measured by the range of temperature over the outlet.


Note:  Some of the instructions in this tutorial assume that you have sufficient licensing to have multiple applications open. If you do not have sufficient licensing, you may not be able to keep as many of the applications open as this tutorial suggests. In this case, simply close the applications as you finish with them.


5.1. Tutorial Features

In this tutorial you will learn about:

  • Creating a geometry in DesignModeler and creating a mesh.

  • Using General mode in CFX-Pre to set up a problem.

  • Using design points to manually vary characteristics of the problem to see how you can improve the mixing.

  • Using DesignXplorer to vary characteristics of the problem programmatically to find an optimal design.

Component

Feature

Details

DesignModeler

 

Geometry Creation

Named Selections

Meshing Application

 

Mesh Creation

CFX-Pre

User Mode

General mode

Analysis Type

Steady State

Fluid Type

General Fluid

Domain Type

Single Domain

Turbulence Model

k-Epsilon

Heat Transfer

Thermal Energy

Boundary Conditions

Inlet (Subsonic)

Outlet (Subsonic)

Wall: No-Slip

Wall: Adiabatic

Timescale

Physical Timescale

Expressions

Workbench input parameter

CFD-Post

Expressions

Workbench output parameter

Parameters

Design Points

Manual changes

DesignXplorer

Response Surface Optimization

Design of Experiments

Response Surface

Optimization

5.2. Overview of the Problem to Solve

This tutorial simulates a static mixer consisting of two inlet pipes delivering water into a mixing vessel; the water exits through an outlet pipe. A general workflow is established for analyzing the flow of fluid into and out of a mixer.

Initially, water enters through both pipes at the same rate but at different temperatures. The first inlet has an initial mass flow rate of 1500 kg/s and a temperature of 315 K. The second inlet has an initial mass flow rate of 1500 kg/s and a temperature of 285 K. The radius of the mixer is 2 m.

Your goal in this tutorial is to understand how to use Design Points and DesignXplorer to maximize the amount of mixing, as measured by the range of water temperature at the outlet.

Figure 5.1: Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe

Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe

5.3. Setting Up Ansys Workbench

Before you begin using Ansys Workbench, you have to configure the Geometry Import option settings for use with this tutorial:

  1. Launch Ansys Workbench.

  2. From the Ansys Workbench menu bar, select Tools > Options.

    The Options dialog box appears.

  3. In the Options dialog box, select Geometry Import.

  4. Ensure that Parameters is set to Independent.

  5. Remove "DS" (and the unneeded delimiter, ";") from Filtering Prefixes and Suffixes.

  6. Select Named Selections.

  7. Remove "NS" from Filtering Prefixes.

  8. Click OK.

5.4. Creating the Project

To create the project, you save an empty project:

  1. From the Ansys Workbench menu bar, select File > Save As and save the project as StaticMixerDX.wbpj in the directory of your choice.

  2. From Toolbox > Analysis Systems, drag the Fluid Flow (CFX) system onto the Project Schematic.

5.5. Creating the Geometry in DesignModeler

Now you can create a geometry by using DesignModeler:

  1. In the Fluid Flow (CFX) system, right-click Geometry and select New DesignModeler Geometry.

    DesignModeler starts.

  2. If DesignModeler displays a dialog box for selecting the required length unit, select Meter as the required length unit and click OK.

    Note that this dialog box will not appear if you have previously set a default unit of measurement.

5.5.1. Creating the Solid

You create geometry in DesignModeler by creating two-dimensional sketches and extruding, revolving, sweeping, or lofting these to add or remove material. To create the main body of the static mixer, you will draw a sketch of a cross-section and revolve it.

  1. In the Tree Outline, click ZXPlane.

    Each sketch is created in a plane. By selecting ZXPlane before creating a sketch, you ensure that the sketch you are about to create is based on the ZX plane.

  2. Click New Sketch   on the Active Plane/Sketch toolbar, which is located above the Graphics window.

  3. In the Tree Outline, click Sketch1.

  4. Select the Sketching tab (below the Tree Outline) to view the available sketching toolboxes.

5.5.1.1. Setting Up the Grid

Before starting your sketch, set up a grid on the plane in which you will draw the sketch. The grid facilitates the precise positioning of points (when Snap is selected).

  1. Click Settings (in the Sketching tab) to open the Settings toolbox.

  2. Click Grid and select Show in 2D and Snap.

  3. Click Major Grid Spacing and set it to 1.

  4. Click Minor-Steps per Major and set it to 2.

  5. To see the effect of changing Minor-Steps per Major, press and hold the right mouse button above and to the left of the plane center in the Graphics window, then drag the mouse down and right to make a box around the plane center.

    When you release the mouse button, the model is magnified to show the selected area.

You now have a grid of squares with the smallest squares being 50 cm across. Because snap is selected, you can select only points that are on this grid to build your geometry. Using snap can help you to position objects correctly.

The triad at the center of the grid indicates the local coordinate frame. The color of the arrow indicates the local axis: red for X, green for Y, and blue for Z.

5.5.1.2. Creating the Basic Geometry

Start by creating the main body of the mixer:

  1. From the Sketching tab, select the Draw toolbox.

  2. Click Polyline and then create the shape shown below as follows:

    1. Click the grid in the position where one of the points from the shape must be placed (it does not matter which point, but a suggested order is given in the graphic below).

    2. Click each successive point to make the shape.

      If at any time you click the wrong place, right-click over the Graphics window and select Back from the shortcut menu to undo the last point selection.

    3. To close the polyline after selecting the last point, right-click and select Closed End from the shortcut menu.

Information about the new sketch, Sketch1, appears in the details view. Note that the longest straight line (4 m long) in the diagram below is along the local X axis (located at Y = 0 m). The numbers and letters in the image below are added here for your convenience but do not appear in the software.

5.5.1.3. Revolving the Sketch

You will now create the main body of the mixer by revolving the new sketch around the local X axis.

  1. Click Revolve   from the toolbar above the Graphics window.

    Details of the Revolve feature are shown in the details view at the bottom left of the window.

  2. Leave the name of the Revolve feature at its default value: Revolve1.

  3. Click Apply in the details view under Details of Revolve1 > Geometry to select Sketch1 as the geometry to be revolved.

    The Geometry specifies which sketch is to be revolved.

  4. In the Details View you should see Apply and Cancel buttons next to the Axis property; if those buttons are not displayed, double-click the word Axis.

  5. In the Graphics window, click the grid line that is aligned with the local X axis (the local X axis, represented by a red arrow, is parallel to the global Z axis in this case), then click Apply in the Details View.

  6. Leave Operation set to Add Material because you need to create a solid (which will eventually represent a fluid region).

  7. Ensure that Angle is set to 360° and leave the other settings at their defaults.

  8. Click Generate   to activate the Revolve operation.

    You can select this from the 3D Features Toolbar, from the shortcut menu by right-clicking in the Graphics window, or from the shortcut menu by right-clicking the Revolve1 object in the Tree Outline.

After generation, you should find that you have a solid as shown below.

5.5.1.4. Create the First Inlet Pipe

To create the inlet pipes, you will create two sketches and extrude them. For clear viewing of the grid during sketching, you will hide the previously created geometry.

  1. In the Tree Outline, click the plus sign next to 1 Part, 1 Body to expand the tree structure.

  2. Right-click Solid and select Hide Body.

  3. Select ZXPlane in the Tree Outline.

  4. Click New Sketch  .

  5. From the Sketching tab, select the Draw toolbox.

  6. Click Circle and then create the circle shown below as follows:

    1. Click and hold the left mouse button at the center of the circle.

    2. While still holding the mouse button, drag the mouse to set the radius.

    3. Release the mouse button.

  7. Select the Dimensions toolbox, select General, click the circle in the sketch, then click near the circle to set a dimension. In the Details View, select the check box beside D1. When prompted, rename the parameter to inDia and click OK. This dimension will be a parameter that is modified in DesignXplorer.

5.5.1.4.1. Extrude the First Side Pipe

To create the first side pipe, extrude the sketch:

  1. Click Extrude   from the 3D Features toolbar, located above the Graphics window.

  2. In the Details View, change Direction to Reversed to reverse the direction of the extrusion (that is, click the word Normal, then from the drop-down menu select Reversed).

  3. Change Depth to 3 (meters) and press Enter to set this value.

    All other settings should remain at their default values. Note that the Operation property is set to Add Material, which indicates that material is to be added to the existing solid.

  4. Click Generate   to perform the extrusion.

    Initially, you will not see the geometry.

5.5.1.4.2. Make the Solid Visible

To see the result of the previous operation, make the solid visible:

  1. In the Tree Outline, right-click Solid and select Show Body.

  2. Click and hold the middle mouse button over the middle of the Graphics window and drag the mouse to rotate the model. The solid should be similar to the one shown below.

  3. Right-click Solid and select Hide Body.

5.5.1.5. Create the Second Inlet Pipe

You will create the second inlet so that the relative angle between the two inlets is controlled parametrically, enabling you to evaluate the effects of different relative inlet angles:

  1. In the Tree Outline, select ZXPlane.

  2. In the toolbar, click New Plane  .

    The new plane (Plane4) appears in the Tree Outline.

  3. In the Details View, click beside Transform 1 (RMB) and choose the axis about which you want to rotate the inlet: Rotate about X.

  4. Select the check box for the FD1, Value 1 property then, when prompted, set the name to in2Angle and click OK.

    This makes the angle of rotation of this plane a design parameter.

  5. Click Generate  .

  6. In the Tree Outline click Plane4.

  7. Create a new sketch (Sketch3) based on Plane4 by clicking New Sketch  .

  8. Select the Sketching tab.

  9. Click Settings to open the Settings toolbox.

  10. Click Grid and select Show in 2D and Snap.

  11. Click Major Grid Spacing and set it to 1.

  12. Click Minor-Steps per Major and set it to 2.

  13. Right-click over the Graphics window and select Isometric View to put the sketch into a sensible viewing position.

  14. Zoom in, if required, to see the level of detail in the image below.

  15. From the Draw Toolbox, select Circle and create a circle as shown below:

  16. Select the Dimensions toolbox, click General, click the circle in the sketch, then click near the circle to set a dimension.

  17. In the Details View, select the check box for the D1 property then, when prompted, set the name to inDia and click OK.

  18. Click Extrude  .

  19. In the Details View, ensure that Direction is set to Normal in order to extrude in the same direction as the plane normal.

  20. Ensure that Depth is set to 3 (meters).

    All other settings should remain at their default values.

  21. Click Generate   to perform the extrusion.

  22. Right-click Solid in the Tree Outline and select Show Body.

    The geometry is now complete.

5.5.1.6. Create Named Selections

Named selections enable you to specify and control like-grouped items. Here, you will create named selections so that you can specify boundary conditions in CFX-Pre for these specific regions.


Note:  The Graphics window must be in "viewing mode" for you to be able to orient the geometry, and must be in "select mode" for you to be able to select a boundary in the geometry. You set viewing mode or select mode by clicking the icons in the toolbar:


Create named selections as follows:

  1. In viewing mode, orient the static mixer so that you can see the inlet that has the lowest value of (global) Y-coordinate.

    You can rotate the mixer by holding down the middle-mouse button (or the mouse scroll wheel) while moving the mouse.

  2. In select mode, with Selection Filter: Faces   active (in the toolbar), click the inlet face to select it, then right-click the inlet and select Named Selection.

  3. In the Details View, click Apply.

  4. Set Named Selection to in1.

  5. Click Generate  .

  6. In viewing mode, orient the static mixer so that you can see the inlet that has the highest value of (global) Y-coordinate.

  7. In select mode, click the inlet face to select it, then right-click the inlet and select Named Selection.

  8. In the Details View, click Apply.

  9. Set Named Selection to in2.

  10. Click Generate  .

  11. In viewing mode, orient the static mixer so that you can see the outlet (the face with the lowest value of (global) Z-coordinate).

  12. In select mode, click the outlet face to select it, then right-click the outlet and select Named Selection.

  13. In the Details View, click Apply.

  14. Set Named Selection to out.

  15. Click Generate  .

  16. Click Save on the Ansys Workbench toolbar.

    This enables you to recover the work that you have performed to this point if needed (until the next time you save the tutorial).

5.6. Creating the Mesh

To create the mesh:

  1. In the Project Schematic view, right-click the Mesh cell and select Edit.

    The Meshing application appears.

  2. Right-click Project > Model (A3) > Mesh and select Generate Mesh.

  3. After the mesh has been produced, return to the Project Schematic, right-click the Mesh cell, and select Update.

  4. In the Meshing application, select File > Close Meshing.

5.7. Setting up the Case with CFX-Pre

Now that the mesh has been created, you can use CFX-Pre to define the simulation. To set up the case with CFX-Pre:

  1. Double-click the Setup cell.

    CFX-Pre appears with the mesh file loaded.

  2. In CFX-Pre, create an expression named inMassFlow as follows:

    1. In the Outline tree view, expand Expressions, Functions and Variables, right-click Expressions, and select Insert > Expression.

    2. Give the new expression the name: inMassFlow

    3. In the Definition area, type: 1500 [kg s^-1]

    4. Click Apply.

  3. Right-click inMassFlow in the Expressions area and select Use as Workbench Input Parameter.

    A small "P" with a right-pointing arrow appears on the expression’s icon.

  4. Define the characteristics of the domain:

    1. Click the Outline tab.

    2. Double-click Simulation > Flow Analysis 1 > Default Domain to open it for editing.

    3. Configure the following setting(s):

      Tab

      Setting

      Value

      Basic Settings

      Fluid and Particle Definitions

      Fluid 1

      Fluid and Particle Definitions

      > Fluid 1

      > Material

       

       

      Water

      Domain Models

      > Pressure

      > Reference Pressure

       

       

      1 [atm]

      Fluids Models

      Heat Transfer

      > Option

       

      Thermal Energy

      Turbulence

      > Option

       

      k-Epsilon

    4. Click OK.

  5. Create the first inlet boundary:

    1. From the CFX-Pre menu bar, select Insert > Boundary.

    2. In the Insert Boundary dialog box, name the new boundary in1 and click OK.

    3. Configure the following setting(s) of in1:

      Tab

      Setting

      Value

      Basic Settings

      Boundary Type

      Inlet

      Location

      in1

      Boundary Details

      Mass and Momentum

      > Option

       

      Mass Flow Rate

      Mass Flow Rate

      inMassFlow [a]

      Heat Transfer

      > Static Temperature

       

      315 [K]

      1. To enter this expression name into the Mass Flow Rate field, click in the blank field, click the Enter Expression   icon that appears, right-click in the blank field, then select the inMassFlow expression that appears.

    4. Click OK.

  6. Create the second inlet boundary:

    1. From the CFX-Pre menu bar, select Insert > Boundary.

    2. In the Insert Boundary dialog box, name the new boundary in2 and click OK.

    3. Configure the following setting(s) of in2:

      Tab

      Setting

      Value

      Basic Settings

      Boundary Type

      Inlet

      Location

      in2

      Boundary Details

      Mass and Momentum

      > Option

       

      Mass Flow Rate

      Mass Flow Rate

      inMassFlow [a]

      Heat Transfer

      > Static Temperature

       

      285 [K]

      1. To enter this expression name into the Mass Flow Rate field, click in the blank field, click the Enter Expression   icon that appears, right-click in the blank field, then select the inMassFlow expression that appears.

    4. Click OK.

  7. Create the outlet boundary:

    1. From the CFX-Pre menu bar, select Insert > Boundary.

    2. In the Insert Boundary dialog box, name the new boundary out and click OK.

    3. Configure the following setting(s) of out:

      Tab

      Setting

      Value

      Basic Settings

      Boundary Type

      Outlet

      Location

      out

      Boundary Details

      Mass and Momentum

      > Option

       

      Static Pressure

      Mass and Momentum

      > Relative Pressure

       

      0 [Pa]

    4. Click OK.

      CFX-Pre and Ansys Workbench both update automatically. The three boundary conditions are displayed in the viewer as sets of arrows at the boundary surfaces. Inlet boundary arrows are directed into the domain; outlet boundary arrows are directed out of the domain.

  8. Solver Control parameters control aspects of the numerical solution generation process. Set the solver controls as follows:

    1. Click Solver Control  .

    2. On the Basic Settings tab, set Advection Scheme > Option to Upwind.

      While an upwind advection scheme is less accurate than other advection schemes, it is also more robust. This advection scheme is suitable for obtaining an initial set of results, but in general should not be used to obtain final results.

    3. Set Convergence Control > Min. Iterations to 5.

      This change is required because when the solver is restarted from a previous "converged" solution for each design point, the solver may "think" the solution is converged after one or two iterations and halt the solution prematurely if the default setting (1) is maintained.

    4. Set Convergence Control > Fluid Timescale Control > Timescale Control to Physical Timescale and set the physical timescale value to 2 [s].

      The time scale can be calculated automatically by the solver or set manually. The Automatic option tends to be conservative, leading to reliable, but often slow, convergence. It is often possible to accelerate convergence by applying a time scale factor or by choosing a manual value that is more aggressive than the Automatic option. By selecting a physical time scale, you obtain convergence that is at least twice as fast as with the Automatic option.

    5. Click OK.

      CFX-Pre and Ansys Workbench both update automatically.

  9. In the Project Schematic view, right-click the Solution cell and select Update.

    CFX-Solver obtains a solution.

  10. When the Solution cell shows an up-to-date state, right-click the Results cell and select Refresh.

  11. When the refresh is complete, right-click the Results cell again and select Edit.

    CFD-Post starts.

5.8. Setting the Output Parameter in CFD-Post

When CFD-Post starts, it displays the Outline workspace and the 3D Viewer.

You need to create an expression for the response parameter to be examined (Outlet Temperature) called OutTempRange, which will be the maximum output temperature minus the minimum output temperature:

  1. On the Expressions tab, right-click in the Expressions tree view and select New.

  2. Type OutTempRange and click OK.

  3. In the Definition area:

    1. Right-click and select Functions > CFD-Post > maxVal.

    2. With the cursor between the parentheses, right-click and select Variables > Temperature.

    3. Click after the @, then right-click and select Locations > out.

    4. Continue to edit the expression until it appears as follows:

      maxVal(Temperature)@out - minVal(Temperature)@out
    5. Click Apply.

      The new expression appears in the Expressions list. Note the value of the expression.

  4. In the Expressions list, right-click OutTempRange and select Use as Workbench Output Parameter.

    A small "P" with a right-pointing arrow appears on the expression’s icon.

  5. Repeat the steps above for a second expression called OutTempAve, defined by:

    massFlowAve(Temperature)@out

    Be sure to also set this expression to Use as Workbench Output Parameter. When you click Apply, note the value of the expression.

    This expression will be used to monitor the output temperature. The overall output temperature is expected to be the average of the two input temperatures, given that the incoming mass flows are equal.

  6. Click Save on the Ansys Workbench toolbar to save the project.

  7. In CFD-Post, select File > Close CFD-Post.

5.9. Investigating the Impact of Changing Design Parameters Manually

Now you will manually change the values of some design parameters to see what effect each has on the rate of mixing. These combinations of parameter values where you perform calculations are called design points. As you make changes to parameters in Ansys Workbench, Ansys CFX-Pre and Ansys DesignModeler will reflect the updated values automatically. If you leave CFX-Pre and DesignModeler open, you can see the changes taking place. In particular, you can see changes in the Expressions view of CFX-Pre.

  1. In the Project Schematic view, right-click Parameters (cell A7) and select Edit.

    A Parameters tab appears.

  2. Resize the Ansys Workbench window to be larger.


    Tip:  If necessary, you can close the Toolbox view to gain more space. To restore it, select View > Toolbox.


When you edit the Parameters cell (cell A7), the new views that appear on the Parameters tab are:

  • Outline of Schematic A7: Parameters, which lists the input and output parameters and their values (which match the values observed in previous steps).

  • Table of Design Points, which lists one design point named Current. Ensure that this view is wide enough to display the Retain column.

Now you will change the design parameter values from the Outline of Schematic A7: Parameters view:

  1. On the Parameters tab, in the Outline of Schematic A7: Parameters view, change the in2Angle value from 0 to -45 and press Enter.

  2. Switch to the Project tab.

  3. In the Project Schematic view, right-click Geometry and select Update.

    Notice how the geometry changes in Ansys DesignModeler.

  4. In Ansys Workbench, switch to the Parameters tab, then in the Outline of Schematic A7: Parameters view, change the in2Angle value from -45 back to 0 and press Enter.

  5. In the Project Schematic view, update Geometry.

    Again, notice how the geometry changes in Ansys DesignModeler.

  6. Switch to the Parameters tab, then in the Outline of Schematic A7: Parameters view, change the inMassFlow value from 1500 to 1600 and press Enter.

    Notice how the value of the expression has changed in the Expressions tree view in CFX-Pre.

  7. On the Parameters tab, in the Outline of Schematic A7: Parameters view, change the inMassFlow value from 1600 back to 1500 and press Enter.

You have modified design parameter values and returned each to its original value. In doing this, the Outline of Schematic A7: Parameters values and the Table of Design Points values have become out-of date.

Update the current design point as follows:

  • Right-click any cell in the Current row of Table of Design Points and select Update Selected Design Points.

    This process updates the project and all of the Ansys Workbench views. Ansys Workbench may also close any open Ansys CFX applications and run them in the background. When the update is complete, all of the results cells show current values and all of the cells that display their status are marked as being up-to-date.

Now, you will create three additional design points, DP 1, DP 2, and DP 3:

  1. On the Parameters tab, in the Table of Design Points view in the line under Current, make the following entries to create design point DP 1:

    • P1 - inDia: 1

    • P2 - in2Angle: -45

    • P3 - inMassFlow: 1500

    • Retain: (Selected)


    Note:  You should save the project once before you retain a design point.


    Right-click in the row for DP 1 and select Update Selected Design Points.

    Ansys Workbench recalculates all of the values for the input and output parameters. All of the views are updated.

  2. Create design point DP 2 using these values:

    • P1 - inDia: 1.5

    • P2 - in2Angle: 0

    • P3 - inMassFlow: 1500

    • Retain: (Selected)

    Right-click in the row for DP 2 and select Update Selected Design Points.

  3. Create design point DP 3 using these values:

    • P1 - inDia: 1

    • P2 - in2Angle: 0

    • P3 - inMassFlow: 1600

    • Retain: (Selected)

    In the Ansys Workbench toolbar, click Update All Design Points.

    This command updates any out-of-date design points in a sequential fashion.

  4. On the Ansys Workbench toolbar, click Save to save the project.

Recall that the goal of this design study is to maximize the amount of mixing by finding the minimum value of OutTempRange. Note that OutTempRange varies significantly due to changes in the input parameters. Also note that, as expected, OutTempAve stays very near 300 K.

In the next section you will automate the process of changing input parameters by using Design Exploration.

5.10. Using Design of Experiments

In this section you will use Design Exploration's Response Surface Optimization feature to minimize the value of OutTempRange.

  1. Return to the Project tab.

  2. If you need to restore the Toolbox, select View > Toolbox. If no systems appear in the Toolbox, select a cell in the Project Schematic view to refresh Ansys Workbench.

  3. From the Design Exploration toolbox, drag a Response Surface Optimization system to the Project Schematic (under the Parameter Set bar).

  4. Edit the Design of Experiments cell.

  5. On the B2:Design of Experiments tab, in the Outline of Schematic B2: Design of Experiments view:

    1. Select the Enabled check boxes next to P2 - in2Angle (cell A6) and P3 - inMassFlow (cell A7), and clear the check box next to P1 - inDia (cell A5).

    2. Select cell P3 - inMassFlow (cell A7) then, in the Properties of Outline A7: P3 - inMassFlow view, set:

      • Lower Bound: 1000

      • Upper Bound: 2000

    3. Select cell P2 - in2Angle (cell A6) then, in the Properties of Outline A6: P2 - in2Angle view, set:

      • Lower Bound: -45

      • Upper Bound: 0

  6. In the Ansys Workbench menu bar, ensure that View > Table is selected.

  7. On the B2:Design of Experiments tab, on the toolbar, click Preview.

  8. The table of design points has nine entries in the Name column, each of which represents a solver run to be performed. Beside the Name column are columns that have the values for the two input parameters, and a column to hold the value the solver will obtain for the output parameter.

  9. In the Project Schematic view, update the Design of Experiments cell. You can monitor the progress of the solver runs by clicking Show Progress in the lower-right corner of the Ansys Workbench window.

    When the processing is complete, the table of design points (on the B2:Design of Experiments tab) displays the results. Click the down-arrow on the P4 - OutTempRange (K) cell to sort the design points according to the value of OutTempRange. Note that, in this case and for the range of inputs considered, the best results are returned from the lowest mass flow rate and an input angle of zero.

5.11. Viewing the Response Surface

To view the response surface for this experiment:

  1. In the Ansys Workbench menu bar, ensure that View > Chart is selected.

  2. In the Project Schematic view, update the Response Surface.

  3. Right-click Response Surface and select Edit to open the B3:Response Surface tab.

  4. In the Outline of Schematic B3: Response Surface view, select Response Surface > Response Points > Response Point > Response. The results appear in various views:

    • The Toolbox shows the types of charts that are available.

      If the Toolbox is not visible, you can show it by selecting View > Toolbox.

    • Response Chart for P4 - OutTempRange shows a 2D graph comparing OutTempRange to in2Angle.

    • The Properties of Outline A20: Response shows the values that are being used to display the 2D graph. Note that the other variable that was considered in the Design of Experiments, inMassFlow, is held at 1500.

  5. In the Properties of Outline A20: Response view, select Chart > Mode > 3D. A 3D chart appears, showing the full range of inMassFlow results. The chart shows that, in this case and for the range of inputs considered, the best results are returned from the lowest mass flow rate and an input angle of zero.

5.12. Optimization based on the Response Surface

To view the optimization for this experiment:

  1. In the Project Schematic view, edit the Optimization cell.

  2. On the B4:Optimization tab, in the Outline of Schematic B4: Optimization view, select Objectives and Constraints.

  3. In the Table of Schematic B4: Optimization view, add the following objective:

    • Parameter: P4 - OutTempRange

    • Type: Minimize

    The Objective Name is automatically set to Minimize P4.

  4. In the Project Schematic view, right-click Optimization and select Update.

  5. On the B4:Optimization tab, in Outline of Schematic B4: Optimization, select Optimization > Results > Candidate Points.

    In the Table of Schematic B4: Optimization, Candidate Points view, three design point candidates appear with their interpolated values.

    Recall that design points are combinations of parameter values where you perform real calculations (rather than relying on the interpolated values that appear in the response charts). All of the candidates are represented graphically in the Candidate Points chart.

  6. In Table of Schematic B4: Optimization, Candidate Points, right-click Candidate Point 1 and select Insert as Design Point.

  7. Switch to the Parameters tab.

    The various views update and a new design point has appeared in Table of Design Points.

  8. In Table of Design Points, the new design point, DP 4 has no values and requests an update. Right-click the lightning icon and select Update Selected Design Points.

    You can follow the progress of the update in the Project Schematic view while Ansys Workbench reruns its calculations for the design point parameters.

    Note that the resulting value of OutTempRange for DP 4 in Table of Design Points is the result of a solver calculation, and differs slightly from the value of OutTempRange interpolated from the response surface for Candidate Point 1.