Preparing the Scenes for Visualization

Here, you create a user-defined field function that calculates the pressure fluctuations. You visualize the calculated field on a pre-defined plane section that cuts through the origin. You write the pressure fluctuations scene to image files after each time-step. Additionally, you create a scene that displays the sponge layer damping coefficient on the plane section.

The pressure fluctuation is calculated as:

p = p p ¯

where p is the pressure and p ¯ is the pressure averaged over Region_1.

To prepare the scenes for visualization:
  1. Obtain the average value of pressure in Region_1:
    1. Right-click the Monitors node and select New Monitors > Field Mean.
    2. Select the Monitors > Field Mean 1 node and set the following properties:
      Property Setting
      Parts Region_1
      Field Function Pressure
  2. Create a field function that calculates the pressure fluctuations:
    1. Right-click the Automation > Field Functions node and select New > Scalar.
    2. Rename the User Field Function 1 node as p'.
    3. Select the p' node and set the following properties:
      Property Setting
      Function Name pPrime
      Dimensions In the Dimensions dialog, set Pressure = 1
      Definition ${Pressure}-${FieldMean1Monitor}
  3. Create a scalar scene that displays the pressure fluctuations on the pre-defined plane section:
    1. Right-click the Scenes node and select New > Scalar.
    2. Rename the scene to Pressure Fluctutations.
    3. Expand the Pressure Fluctuations node and delete the Outline 1 node.
    4. Edit the Pressure Fluctuations node and set the following properties:
      Node Property Setting
      Scalar 1 Contour Style Smooth Filled
      Parts Parts Derived Parts > Plane Section
      Scalar Field Function p'
      Clip Off
      Min -1.0
      Max 1.0
      Color Bar Color Map cool-warm
    5. Select the Tools > Annotations > Solution Time node and drag and drop it onto the Graphics window.
  4. To write the scene to image files, select the Pressure Fluctuations > Attributes > Update node and set the following properties:
    Property Setting
    Trigger Time Step
    Output Directory images
    Save to File On
  5. Create a scalar scene that displays the sponge layer damping coefficient:
    1. Right-click the Scenes node and select New > Scalar.
    2. Rename the scene to Sponge Layer Damping Coefficient.
    3. Edit the Sponge Layer Damping Coefficient node and set the following properties:
      Node Property Setting
      Scalar 1 Contour Style Smooth Filled
      Parts Parts Derived Parts > Plane Section
      Scalar Field Function Sponge Layer Damping Coefficient
      Color Bar Color Map cool-warm
  6. Save the simulation.