Training Guide > Simple Flow Tutorials > Mesh Comparison Tutorial > Hexahedral Mesh > Plotting Simulation Data
Plotting Simulation Data
This part of the tutorial produces plots of velocity and wall shear stress. In the case of the velocity plot, experimental data will also be imported from a file and plotted alongside the numerical data. The development of the solution can be observed throughout the run by viewing these plots.
To create the wall shear stress plot:
- Right-click on the Plots node and select . A new node named XY Plot 1 will appear.
- Rename the XY Plot 1 node
WSS Plot.
- In the Properties window, add the section to the Parts list.
- Select the WSS Plot > Y Types > Y Type 1 > Scalar node.

- Select for the Scalar property.
To create the velocity data plot:
- Right-click on the Plots node and again select . A new node named XY Plot 1 will appear.
- Rename the XY Plot 1 node
Velocity Plot at X = 0.38.
- In the Properties window, add the section to the Parts list.
- Select the Velocity Plot at X = 0.38 > Y Types > Y Type 1 > Scalar node.
- Select for the Scalar property.
- Open the X Type node and select the Position node.

- In the Properties window, change the Direction vector to
[0, 1, 0].
To compare the experimental velocity data with the velocity plot, we will need to import the data in the supplied file into a table:
- Open the Tools node.
- Right-click on the Tables node and select .

- In the Open dialog, navigate to the
doc/tutorials/hexMesh directory and select file exp380.xy.
- Click Open.
The data in that file are now stored in a table named `exp380'. To display them on the velocity plot:
A new node named tabular will appear.
- In the Properties window, select for the Table property.
- Select for the X column and for the Y column.

The supplied experimental data will now appear in the plot. Numerical data will be shown once the simulation has started.
The velocity data plot will look better with the axes reversed. To do this:
- Select the Axes node.

- In the Properties window, click the box on the right of the Axis Orientation property.
- In the Axis Orientation dialog, select the option shown below.

- Click OK.
To rename the axes:
- Select the Axes > X Axis > Title node.
- Change the Title property to
Y (m).
- Select the Axes > Y Axis > Title node.
- Change the Title property to
Velocity (m/s).
This completes the pre-processing set-up for the case. Stop macro recording by clicking the
(Stop Recording) button in the Macro toolbar.
Save the simulation and then proceed to Initializing and Running the Simulation.
Return to CD-adapco STAR-CCM+ Index