Reporting and Plotting the Pressure Drop
Create reports of average pressure at the inlet and outlet boundaries, and use the reports in a field function that gives the pressure drop.
Experimental measurements are available for the pressure drop across the flow restrictor when the flowrate is 28.09 liters/s. These can be compared to the prediction of pressure drop for this simulation to give some estimate of the accuracy of results. To do this, it is necessary to create reports of average pressure at the inlet and outlet boundaries, and to use these reports in a user-defined field function that gives the pressure drop. This field function can be plotted while running the simulation to estimate convergence.
The upstream static pressure was measured at a distance of two pipe diameters before the restrictor, and the downstream static pressure was measured at a distance of six pipe diameters after the restrictor. The inflow boundary corresponds to the upstream measurement, but a section plane must be created at the point of the downstream measurement. The section plane is created first:
-
Right-click the Derived Parts node and select
The Create Plane Section dialog appears in place above the object tree.
- In the Input Parts box, select Fluid.
- In the Plane Parameters box, set Y origin to -0.239014 m, the X normal to 0 m, and the Y normal to 1 m. The other parameters can be left as they are.
-
In the
Display box, select
No Displayer as shown below.
-
Click
Create, and then
Close.
A new part that is called Plane Section is added to the object tree inside the Derived Parts node.
Create the reports that are used to extract the static pressure:
- Right-click the Reports node and select .
- Rename the Surface Average 1 node to Upstream Pressure.
- Select the Upstream Pressure node and set Scalar Field Function to Pressure.
-
Click the right side of the
Parts property. In the dialog that appears, expand the
Regions and
Fluid nodes and select the
Inflow boundary as shown below.
- Click OK.
A similar report is created for the downstream pressure:
- Right-click the Reports node and select .
- Rename the Surface Average 1 node to Downstream Pressure.
-
Select the
Downstream Pressure node and set the
Scalar Field Function to
Pressure and the
Parts to
Plane Section.
The completed Properties window appears as shown below.
Two new field functions corresponding to these reports have been automatically added to the object tree.
-
Open the
node and scroll down to see the new nodes:
Examination of the properties for these nodes shows that the relevant field function names are DownstreamPressureReport and UpstreamPressureReport respectively. These function names are used to create an expression report for the pressure drop:
- Right-click the Reports node and select .
- Rename the Expression 1 node to Pressure Drop.
- Select the Pressure Drop node.
-
Click
(Custom Editor) to enter the Definition property as:
$UpstreamPressureReport - $DownstreamPressureReport
-
Click
OK.
-
Click
(Custom Editor) for the Dimensions property. In the Pressure Drop - Dimensions dialog, set the Pressure dimension to 1 as shown below.
- Click OK.
-
Finally, set the
Units to
bar.
The Properties window for the Pressure Drop report appears as shown below.
A monitor and plot is created from this report.
-
Right-click the
Create Monitor and Plot from Report.
node and select
The resulting monitor and plot can be seen in the object tree:
- Right-click the Open from the pop-up menu. The empty plot is displayed. and select
- Save the simulation.