Post-Processing: Creating Streamlines
In Simcenter STAR-CCM+, streamlines are created as derived parts and then added to a scene using a streamline displayer. A streamline part represents the path of a massless particle through the flow—although you can compute the path from any vector field, not just velocity.
Here, you define a streamline derived part so that it shows the recirculating flow behind a blunt body. Modify the part to show streamlines over the blunt body.
-
From the tutorials bundle, from the
introduction
folder, copyIntroduction_final.sim
to your working directory. -
Open
Introduction_final.sim
and save it asvelocityMagnitudeStreamlines.sim
.
- Right-click the Scenes node and select .
-
Right-click the Derived Parts node and select .
A new interactive in-place dialog (Create Streamline) appears.
The entire fluid region is used as the input part for the streamline part. The seed point is located just after the back of the blunt body (in the direction of flow).
-
Set the following values:
To visualize the seed point interactively, activate Display Tool.
Property Value Input Parts [subdomain-1] Seed Mode Line Seed Point 1 [0.045, 0.02, 0.01] m Point 2 [0.045, 0.001, 0.01] m Resolution 20 Vector Field Velocity Direction Both The properties of the Edit dialog are similar to those in the following screenshot:
-
Click Create and then Close.
In the Simulation tab, a node, Streamline, has been added within the Derived Parts. In addition, a new streamline displayer Streamline Stream 1 has been added to the scene.
-
Fine-tune the streamline derived part:
- In the Scene/Plot tab, select the node and set Parts to .
-
select the Streamline Stream 1 node to customize how the
streamlines appear:
- Set the Mode to Tubes so that the streamlines are displayed as tubes instead of lines.
- Specify Width at 2.0E-4, the width of the tube in meters.
- To highlight large differences in velocity magnitude effectively, within the Streamline Stream 1 node, select Color Bar and set Color Map to purple-red basic (large difference).
-
Also within the Streamline Stream 1 node, select the
Scalar Field node and set
Function to Velocity:
Magnitude.
The modified streamlines appear as below.
- Save the simulation.