Defining the Dependent Variables
In an XY plot, each dependent variable is defined as a Y Type, regardless of where its axis appears.
-
Right-click
New.
and choose
- Alternatively, right-click the destination axis in the plot display, or the node of that axis under the Axes node, and select Create new referencing Y type.
- If you want to plot this quantity against its own axis, right-click New Axis followed by Right or Top (assuming that Bottom and Left already exist). and choose
- Select the [Y type] node and change Y-Axis if necessary.
-
To plot interpolated data, activate
Smooth Values.
The smooth plot is generated using vertex values rather than cell centroid-based values and appears smoother than the default style. However, for most scalar fields vertex values are interpolated from cell values, and thus data extraction with the smooth-filled option is more expensive in terms of computing power.
- To choose the quantity for plotting, select Field Function to an item from the list. and set
- To adjust the data range for the associated axis, select [Cartesian] Axis Properties. and modify the properties until you are satisfied with the range shown on the plot. For details, see
-
With the right settings, a line-probe can help you plot results, such as heat transfer, in a line on a planar boundary. To do this:
Plotting the Velocity Profile Across a Pipe Flow
A common plot in pipe flow simulations is the velocity profile. Plotting this profile in Simcenter STAR-CCM+ requires that you first create a line probe derived part, and then refer to that part in a separate XY plot.
The following steps describe an example workflow of how to visualize a scalar velocity profile through a section of a pipe flow:
-
Create a 2D plane section across the width of the pipe flow geometry, parallel to the inlet and outlet part surfaces.
Although this step is not crucial, it makes sure that the line probe lies along a surface that is parallel with the outlet. See Defining a Plane Section.
-
Create a 1D line probe across the diameter of the plane section. To make sure that the line probe is created precisely through the diameter of the plane section, in the Create Line Probe in-place dialog:
- Activate Snap to Part.
- To the right of the
Snap to Part option, click
(Custom Editor).
- In the Select Object dialog, select the part and click OK.
- Click Create, then Close.
Each point in the line probe represents the location from which data is gathered. The number of points in the line probe represents the number of plots which appear on an XY plot.
- To increase the number of points across the line probe, select the Resolution to a higher value. node and set
- Create an XY plot. Right-click the Plots node and select .
-
Expand the XY Plot 1 node and set the properties that you require. For example:
Node Property Setting XY Plot 1 Parts X-Type Vector Quantity
Value Set the X, Y, or Z coordinate to represent the direction of the line probe. Typically you set one of these coordinate directions to 1.0. Y Types Y Type 1
Smooth Values When this option is activated, the X-Y plot appears as a smooth curve as the line probe linearly interpolates from values that are located at the vertices of the region or boundary. These values are computed by averaging cell centre values from neighboring cells (when solving using a finite-volume method). If this option is deactivated, nearest cell centre values are used – which the solver produces directly – and the X-Y plot appears stepped, not smooth.
Line Probe
Line Style
Style Select one Scalar Function
Field Function - Open the XY plot in the
Graphics window.
Note Modifying derived parts or X-Y plots does not modify the mesh that the solution uses. Therefore, you do not need to rerun mesh operations or solvers.
The following image shows the scalar velocity magnitude on an XY plot which uses data that is taken from the line probe with Smooth Values activated.
