Create Surface Plots

Create plots on the surface of the drone for pressure coefficient, wall-normal distance, and wall shear stress.

In this example, you create plots to analyze the pressure and stress distribution on the drone's surface. You use field expressions to compute the pressure coefficient from the gauge pressure. You then plot the wall-normal distance to verify your estimated y+ value at the surface of the drone. Finally, you plot the wall shear stress to analyze the degree of skin friction produced by the airflow around the drone's body.

This task shows you how to:

Plot the Pressure Coefficient

  1. From the Calculations section of the action bar, click Field Expressions .
  2. Enter Cp for the Name.
  3. Enter $PRESSUREGAU*2 / (1.205kg/m**3 * (22.352m/s)**2) for the Expression.

    The expression above replicates the calculation of the pressure coefficient using the formula C p ⁢ =   2 P ρ v 2 (see the Problem Description). For more information about field expressions, see Simulation | Results | Physics Results Explorer | Physics Results Explorer | Calculations | Field Expressions.

  4. From Quantity, select No dimension, and click OK.
  5. From the Explore Results section of the Assistant, click Contour Plot .
  6. Expand the Definition section, and select Cp from the Variable options.
  7. From Display Group, select Drone Model.
  8. Accept the remaining default settings, and click OK.
  9. Change the plot legend range to better highlight the range in which we expect the pressure to fall.
    1. Double-click the plot legend.
    2. In the Values section, enter 1 for the Max and -1.5 for the Min.
    3. Click Close.
    The pressure coefficient computation renders the pressure value dimensionless to make it independent of the simulation's boundary conditions and scale. The plot indicates the following:
    • The high-pressure points, where Cp is ≅ 1 (for example, at the nose of the drone), are the stagnation points. The fluid velocities at the stagnation points become zero.
    • The low-pressure region, where Cp is negative (at the suction side of the wings), generates most of the lift.


Plot the Dimensionless Wall Distance

  1. From the Explore Results section of the Assistant, click Contour Plot .
  2. Expand Definition, and select Wall-normal distance (YPlus) from the Variable options.
  3. From Display Group, select Drone Model.
  4. Accept the remaining default settings, and click OK.
  5. Change the plot legend to best highlight regions of high velocity gradients and coarse mesh settings.
    1. Double-click the plot legend.
    2. In the Values section, enter 450 for the Max and 0 for the Min.
    3. In the Intervals section, clear Use out of range colors.
    4. Click Close.

    When solving near the wall of the fluid region, two different approaches are possible: a fully resolved one, in which the entire boundary layer region is resolved by the mesh; and a wall-modeled one, in which you use a wall function to model most of the boundary layer.

    The latter approach is often used to reduce the mesh size and computational cost because it does not require an explicit resolution of the boundary layer. In such a case, it is advisable to place the first grid cell in the range 30 < y+ < 300 so that the wall function can correctly predict the viscous forces on the wall. The plot verifies that the resulting y+ is in the required range for the chosen wall-function approach. You might require a mesh refinement on the wing suction side to lower the maximum y+ .



Plot the Wall Shear Stress

  1. From the Explore Results section of the Assistant, click Contour Plot .
  2. Expand the Definition section, and select WALLSHEAR, Fluid shear stress magnitude from the Variable options.
  3. From Display Group, select Drone Model.
  4. Accept the remaining default settings, and click OK.

    Because most of the wall shear values are on the lower end of the default legend, it is hard to visualize the wall shear profile. You can change the legend range to best view the wall shear differences in the relevant range.



  5. Change the plot legend and color range to highlight the relevant wall shear range.
    1. Double-click the plot legend.
    2. In the Values section, enter 2 for the Max and 0 for the Min.
    3. In the Intervals section, clear Use out of range colors.
    4. Click Close.

    Changing the legend helps you to highlight the regions of high shear that are responsible for the generation of friction drag.

    In aerodynamics design, it is important to assess the contribution of both the pressure drag (which is related to flow separation) and the friction drag (which is related to fluid friction at the wall). An attempt to reduce the pressure drag to attain a streamlined aerodynamic design might increase the friction drag. Therefore, the optimal design requires a trade-off between those two contributions.

    Comparing the wall shear stress plot (shown below) to the pressure coefficient plot reveals that higher shear stress (that is, friction) is located in low-pressure regions, because the high velocities induced. You can view this plot to analyze which features of your design generate friction drag.