Beruflich Dokumente
Kultur Dokumente
6663
Prerequisites
To complete this tutorial, you need to be familiar with the following
techniques:
Techniques
Associated Tutorial
Introduction
Version 7.03.027
Version 7.03.027
The fluid used in this tutorial is water, and the flow is incompressible and
laminar. Vortex shedding is a periodic phenomenon and will require the
use of a transient solver.
Rename the Continua > Physics 1 continuum to Fluid.
Right-click on the Fluid > Models node and choose Select models...
The Fluid Model Selection dialog will guide you through the model selection
process. Select the following models:
Implicit Unsteady from the Time box.
Liquid from the Material box.
Coupled Flow from the Flow box.
Constant Density from the Equation of State box.
Laminar from the Viscous Regime box.
Click Close.
The selected models are shown in the Fluid > Models node in the object tree.
Version 7.03.027
1 kg/m^3
Select the Dynamic Viscosity > Constant node and set its Value property to
2.0E-5 Pa-s
Set the initial conditions so that the simulation will begin with the fluid in a
state of motion.
Select the Fluid > Initial Conditions > Velocity > Constant node. In the
Properties window, set the Value property to [0.15, 0.0, 0.0] m/s
Version 7.03.027
Select the Inlet > Physics Values > Velocity > Constant node and set its
Value property to [0.15, 0.0, 0.0] m/s
Save the simulation
Version 7.03.027
Value
Min
Max
28
Clip
Off
Select the Displayers > Scalar 1 node. In the Properties window, set the
Contour Style property to Smooth Filled.
Click on the simulation button to return to the STAR-CCM+ simulation
object tree.
We will add an annotation displaying solution time to the scene.
Expand the Tools > Annotations node and drag the Solution Time node
Version 7.03.027
The Solution Time annotation is added to the bottom left of the scene.
Version 7.03.027
Version 7.03.027
A new monitor and plot is added to the Monitors and Plots nodes
respectively.
We will now modify the monitor so that the data is plotted against time; the
default setting would plot the data against iterations.
Select the Monitors > Coefficient of Lift Monitor node. In the Properties
window, set the Trigger property to Time Step.
Open the Coefficient of Lift Monitor Plot by right-clicking on its node in the
object tree and selecting Open.
Version 7.03.027
Version 7.03.027
The Save dialog appears. Choose a location where you would like to store
the solution history file.
Enter vortexSheddingData.simh as the name of the solution history
file.
Click Save.
Version 7.03.027
A new sub-node containing the name of the solution history file is added to
the object tree below the Solution Histories node.
The red asterisk next to this node means that data will be actively written to
the file when the simulation runs.
Choose what data to save to the solution history file. As this is a vortex
shedding case it would be appropriate to store the results for pressure,
velocity and vorticity.
Select the Solution Histories > vortexSheddingData node. In the Properties
window, click on the
(property customizer) button next to the
Scalar Functions property.
Pressure
Velocity
Version 7.03.027
Vorticity
The selections are added to the right-hand side column, as shown below.
Select the Update > Update Frequency node. In the Properties window,
Version 7.03.027
The Auto-record property will, when ticked, record the data to the solution
history file at the required intervals. If you do not want to record the data
when the solver is running, simply clear this checkbox. The Regions
property is automatically populated with all regions in the simulation. In
cases with multiple regions, you may remove regions by clicking to the right
of the Regions property and clearing the checkbox next to the region you
want to remove. The Path property displays the relative path to the
simulation history file. The States property displays the number of saved
states stored in the selected solution history file; currently this is displaying
0 as the solver has not yet run.
Save the simulation
(Run) button.
While the simulation is running you can click on the tabs at the top of the
Graphics window to switch between the plot and the scene. The Residuals
display will be created automatically and shows the progress of the solvers.
The simulation will continue until the physical time of the simulation
reaches 8 seconds. While the simulation is running, the Current Solution
sub-node under the Solution View node displays the current Iteration,
Time Step, and Solution Time. The selected data is saved to the solution
history file at every time step.
While the simulation is running, select the Scalar Scene 1 tab at the top
of the Graphics window to visualize the solution.
When the simulation has finished running, click on the
button.
(Save)
Version 7.03.027
Version 7.03.027
Version 7.03.027
Drag a box around the last two troughs on the plot, as shown below.
Version 7.03.027
Version 7.03.027
The enlarged scale on the X axis makes it possible to measure the period.
Version 7.03.027
states stored in the solution history file is displayed next to the States
property.
Version 7.03.027
This representation stores solution data from the solution history file.
Click on the Scalar Scene 1 tab in the Graphics window.
Drag and drop the Solution Views > vortexSheddingData_View node onto a
Version 7.03.027
Version 7.03.027
This scene corresponds to the data stored in the solution history file for the
first time step. We will now adjust the solution time to display the solution
data at 1.3 seconds.
Select the Solution Views > vortexSheddingData_View node. In the
Properties window, click to the right of the Solution Time property.
A slider bar will appear. Here you can drag the slider to change the physical
time of the solution being displayed in the scene.
Version 7.03.027
Version 7.03.027
Restore the scene to use the most recent solution from the simulation file
(stored on the volume mesh representation).
Drag the Solution Views > Current Solution node into the scene as
previously described.
Save the simulation
Version 7.03.027
A new node, Solution Time Animation, will appear below the Animation node.
Version 7.03.027
Summary
This tutorial covered the following:
Creating a Solution History file.
Selecting appropriate scalars to save to the Solution History file at
suitable intervals.
Plotting the lift coefficient and validating the period of shedding against
reference data.
Creating a Recorded Solution View.
Viewing recorded solution data in a scene.
Recording an animation from the Solution History file.
Bibliography
[216]
Version 7.03.027