Visualizing Water Volume Fraction and Plotting Total Mass

You prepare visualization of the water volume fraction through the separator to analyze the air-water interface behaviour over time. You plot the total mass of water and air in the separator.

  1. Prepare the scalar scene to visualize the volume fraction of air, and write a .png file of this scene every 10 time steps.
    1. Right-click the Scenes node and select New > Scalar.
    2. Rename the Scalar Scene 1 node to Volume Fraction of Water.
    3. Expand the Volume Fraction of Water node and set the following properties:
      Node Property Setting
      Scalar 1 Contour Style Smooth Blended
      Scalar Field Function Volume Fraction > Volume Fraction of Water
      Auto Range Off
      Min 1.0E-7
      Max 1.0
      Color Bar Levels 64
      Scale Mode Log 10
      Attributes
      Update Trigger Time Step
      Save To File Activated
      Time Step Frequency > Frequency 10
      Annotations Annotations Solution Time
      You use the logarithmic scale to display a wider range of values for the water volume fraction for observing the flow regimes of the phases within the domain.
The mass in tank reports require user field functions to calculate the mass of the water and air phase.
  1. Create the necessary field functions:
    1. Right-click the Automation > Field Functions node and select New > Scalar
    2. Rename the User Field Function 1 node to Water Mass.
    3. Select the Water Mass node and set the following properties:
      Property Setting
      Function Name Water Mass
      Definition ${VolumeFractionWater}*${DensityWater}
    4. Repeat Step 2a and rename the User Field Function 1 node to Air Mass.
    5. Select the Air Mass node and set the following properties:
      Property Setting
      Function Name Air Mass
      Definition ${VolumeFractionAir}*${DensityAir}
  2. Create the air and water in tank mass reports:
    1. Create a Volume Integral report and rename it to Water In Tank.
    2. Edit the Reports > Water In Tank node and set Field Function to Water Mass.
    3. Set Parts to Regions > Region.
    4. Create a Volume Integral report and rename it to Air In Tank.
    5. Edit the Reports > Air In Tank node and set Field Function to Air Mass.
    6. Set Parts to Regions > Region.
  3. Create the incoming and outgoing water mass reports:
    1. Right-click the Reports node and select New > Flow / Energy > Phase Mass Flow.
    2. Rename the Phase Mass Flow 1 node to Water Mass Flow In.
    3. Select the Reports > Water Mass Flow In node and set the following properties:
      Property Setting
      Phase Water
      Parts Region > Boundaries > Inlet
    4. Repeat step 4a, rename the Phase Mass Flow 1 node to Water Mass Flow Out, and set the following properties:
      Property Setting
      Phase Water
      Parts
      • Region > Boundaries > Outlet 1
      • Region > Boundaries > Outlet 2
      • Region > Boundaries > Outlet 3
      • Region > Boundaries > Outlet 4
      • Region > Boundaries > Outlet 5
    5. Create an Expression report, rename it to Incoming Water, and set Definition to abs(${WaterMassFlowInReport}*${Time}).
    6. Create an Expression report, rename it to Outgoing Water, and set Definition to abs(${WaterMassFlowOutReport}*${Time}).
  4. Create the incoming and outgoing air mass reports:
    1. Right-click the Reports node and select New > Flow / Energy > Phase Mass Flow.
    2. Rename the Phase Mass Flow 1 node to Air Mass Flow In.
    3. Select the Reports > Air Mass Flow In node and set the following properties:
      Property Setting
      Phase Air
      Parts Region > Boundaries > Inlet
    4. Repeat step 5a, rename the Phase Mass Flow 1 node to Air Mass Flow Out, and set the following properties:
      Property Setting
      Phase Air
      Parts
      • Region > Boundaries > Outlet 1
      • Region > Boundaries > Outlet 2
      • Region > Boundaries > Outlet 3
      • Region > Boundaries > Outlet 4
      • Region > Boundaries > Outlet 5
    5. Create an Expression report, rename it to Incoming Air, and set Definition to abs(${AirMassFlowInReport}*${Time}).
    6. Create an Expression report, rename it to Outgoing Air, and set Definition to abs(${AirMassFlowOutReport}*${Time}).
  5. Create the monitors and plots:
    1. Multi-select the Incoming Air, Outgoing Air, and Air In Tank nodes and select Create Monitor and Plot from Report.
    2. In the Create Plot From Reports dialog, click Single Plot.
    3. Rename the Report Plot node to Total Air Mass.
    4. Multi-select the Incoming Water, Outgoing Water, and Water In Tank nodes and select Create Monitor and Plot from Report.
    5. In the Create Plot From Reports dialog, click Single Plot.
    6. Rename the Report Plot node to Total Water Mass.
  6. Save the simulation.