Documente Academic
Documente Profesional
Documente Cultură
Introduction 10823
Introduction
Version 9.04
Introduction 10824
Version 9.04
Version 9.04
Creating a Simulation
Creating a simulation is the first step in a new STAR-CCM+ analysis.
STAR-CCM+ is a client-server application with the client (user interface
or batch interpreter) running in one process, and the server (the solver)
running in another process. Start a server process on the same machine
as the client:
1. Start a simulation by selecting File > New Simulation from the
menu bar.
The Create a New Simulation dialog appears.
Version 9.04
Version 9.04
Version 9.04
The tree represents all the objects in the simulation. Nodes are added in
later sections when a geometry is imported and models are defined in
the continuum. Most of your interaction with the simulation is by
selecting nodes in the tree and:
The handle next to a node indicates that subnodes exist below that one.
To open a node and show the subnodes, click the handle. To close it, do
the same for an open node.
Most objects in the tree have one or more properties that define the
object. Access to the properties is through the table.
Version 9.04
To modify the properties of an object, click its node once to select it. Edit
most types of properties in the value cell. Otherwise, when setting
values of complex properties, click the Property Customizer button to
the right of the value. A property-specific dialog opens.
Version 9.04
3. In the Save dialog, type bluntBody.sim into the File Name text box
and click Save.
The title of the simulation window in the Explorer pane updates to
reflect the new name.
It is useful to save work in progress periodically. This tutorial includes
reminders to save the simulation at the end of each section. If you
would like to return to a stage of the tutorial at a later stage, save it with
a unique name.
Version 9.04
Version 9.04
Version 9.04
Version 9.04
A second part displayer, Outline, which also contains all faces in the
geometry part and is preset to display the mesh outline.
Version 9.04
In the Graphics window, all three mouse buttons have drag operations
that change the view of the geometry:
To rotate about the selected point, hold down the left mouse button
and drag.
To zoom in or out, hold down the middle mouse button and drag.
To translate or pan, hold down the right mouse button and drag.
<Ctrl> key and hold down the left mouse button while dragging.
There are also several hot keys that rotate the view:
To fit the view within the Graphics window, press the <R> key.
Version 9.04
Index
Description
Stagnation Boundary
Wall
Symmetry Planes
Pressure Boundary
Slip Walls
Version 9.04
Version 9.04
Version 9.04
5. Click Create.
The face is removed from the scene and the new surface appears
within the surfaces manager node belonging to the parent part.
6. Repeat the previous steps for the following surfaces:
Location
Name
High X face 3
Pressure
Low Z face 4
Symmetry_plane1
Low Y face 6
Symmetry_plane2
Version 9.04
9. Click Create.
The remaining patches remain as part of the default surface.
Version 9.04
Version 9.04
Version 9.04
Version 9.04
4. Click Apply.
5. Close the dialog.
The portion of the object tree below the Regions node appears as
shown below. All of the surfaces appear as individual boundaries
within the region.
Version 9.04
Version 9.04
Selecting Parts
STAR-CCM+ highlights selected parts in the visualization window.
To highlight parts:
Version 9.04
1. Click a part in the Geometry Scene 1 display, for example the High X
face.
The object becomes highlighted and a label appears with the name
of the object selected.
In the bluntBody object tree, the node that corresponds to this object
is also highlighted.
Version 9.04
Version 9.04
2.
Version 9.04
5. Click OK.
This selection removes the solid-colored boundaries representing the
wind tunnel from the scene, leaving the outlines and the blunt body.
Version 9.04
Version 9.04
Version 9.04
Version 9.04
4. Click Close.
5. Expand the Models and Reference Values managers.
The simulation tree appears as shown below.
Version 9.04
2. Select Continua > Mesh 1 > Reference Values > Number of Prism
Layers and set Numbers of Prism Layers to 5.
Click
(Generate Volume Mesh) in the toolbar or select Generate
Volume Mesh in the Mesh menu.
The run and progress of the meshers are displayed in the Output
window.
Version 9.04
Version 9.04
Version 9.04
To provide better definition of the blunt body, modify the surface mesh
at the inner wall:
2. Select the Regions > subdomain-1 > Boundaries > Inner_wall >
Mesh Conditions > Custom Surface Size node and activate Custom
Surface Size.
A new Mesh Values node appears.
3. Select the Surface Size node and set Relative/Absolute to Absolute.
4. Select the Surface Size > Absolute Minimum Size node and make
sure that Value is 0.0010 m.
To regenerate the mesh:
5.
Click
(Generate Volume Mesh).
6. Zoom in to the area around the slip walls and inner walls to see the
improved mesh.
Version 9.04
Version 9.04
Version 9.04
2. Select the Gas radio button from the Material group box, since this
exercise involves an idealized gas (air).
Since the Auto-select recommended models checkbox is activated, the
Physics Model Selection dialog guides you through the model selection
process by selecting certain default models automatically as you make
some choices.
Certain models, when activated in a continuum, require other models
also to be activated in that continuum. For instance, once a continuum
contains a liquid or a gas, it also needs a flow model. Once it has a flow
model, it needs a viscous model (inviscid, laminar, or turbulent). Once
turbulence is activated within a fluid continuum, select a turbulence
model. The prompt Additional model selections are required alerts
you to the fact that you have not completed the model selection.
Version 9.04
Version 9.04
Version 9.04
When you select the Gas model, the properties of air such as dynamic
viscosity are used by default. Since this problem uses air, the properties
are acceptable.
Version 9.04
Version 9.04
Pressure
Temperature
Velocity components
Turbulence quantities
Version 9.04
During this tutorial, there is one continuum in the above drop-down list,
but as you add more (to the Continua node in the simulation tree), they
are added to the drop-down list. This process determines which
continua is used in the analysis, though continua can be defined and left
unused.
Version 9.04
Version 9.04
Version 9.04
Version 9.04
Version 9.04
Hide all parts except the blunt body itself and the vertical symmetry
plane.
2. Select the new Scenes > Scalar Scene 1 > Displayers > Scalar 1 >
Parts node.
Version 9.04
3. Click the (Custom Editor) in the right half of the Parts property.
4. In the Parts dialog, expand Regions > subdomain-1, select
Inner_wall and Symmetry_plane1, and click OK.
Version 9.04
Since the geometry of this example is symmetric, the mesh was cut into
quarters with two symmetry planes to reduce computing costs.
However, the symmetric repeat transform lets you create the visual
effect of the complete geometry by setting up the mirror image of the
model in the Graphics window. In this case, you only do one repeat so
that half the model is shown.
7. Select the Scalar 1 node.
Version 9.04
Version 9.04
Version 9.04
For this case, force is monitored on the body in the x-direction of the
flow, which effectively is the total drag force. This process starts with
the report definition.
Setting Up a Report
Create a report to collect the simulation results.
To set up a report:
1. Right-click the Reports node and select New Report > Force
Coefficient.
Version 9.04
Use the drag-and-drop method to select the monitored part, namely the
Inner_wall boundary:
3. Open the Regions > subdomain-1 > Boundaries node and then drag
the Inner_wall node onto the Force Coefficient 1 node.
Version 9.04
The Inner_wall entry is now listed in the Parts property of the Force
Coefficient 1 node.
The setup for the report is now complete, and a monitor and a plot can
be made from that report.
Version 9.04
These settings update the plot every iteration while the solution is
running.
In addition to the new monitor node, a Force Coefficient 1 Monitor
Plot node is created in the Plots node.
Version 9.04
Version 9.04
Version 9.04
Click
(Stop)
Version 9.04
Version 9.04
2. Select the Stopping Criteria > Maximum Steps node and set the
Maximum Steps to 1500.
This setting instructs STAR-CCM+ to iterate 1200 steps in addition
to the 300 already done.
The maximum number of 1500 steps is a reasonable setting, in this case,
to get to convergence. Normally, you do not know ahead of time what a
suitable iteration count is. You can either set a large iteration and watch
the residuals or a monitor plot, or add a stopping criterion from a
monitor.
3. To continue running the simulation, click
(Run).
Version 9.04
Version 9.04
The Servers window of the Explorer pane lists all server processes
(simulations) that are running locally.
5. Selecting the node in the tree displays the server process properties.
Version 9.04
1. Select the Force Coefficient 1 Monitor Plot display to verify that the
drag coefficient has also flattened out.
Version 9.04
Examining Scalars
View the results of the simulation in a scalar scene.
To see the Mach number results for the finished solution:
1. Make the Scalar Scene 1 display active.
Version 9.04
Display two scalar values at the same time: one on the symmetry plane,
the other on the inner wall:
3. Add another scalar displayer by right-clicking the Displayers node
and selecting New Displayer > Scalar.
The creation of the second displayer has added a second scalar bar
in the display.
To view both scalar bars:
4. Point the mouse in the interior of a scalar bar to drag either one of
them to a different location.
Version 9.04
5. In the display, right-click the scalar bar (blue) of the new displayer
and select Pressure.
6. Right-click the inner wall in the display, select Displayers, and open
its submenu.
7. Among the checkboxes to the right of in, clear the checkbox under
Scalar 1 and tick the one under Scalar 2.
Version 9.04
This single step transfers the part from one displayer to another.
8. Select the Scenes > Scalar Scene 1 > Displayers > Scalar 2 node.
Version 9.04
Examining Vectors
This section demonstrates how to examine velocity vectors in the model.
In this example, you set up vectors in a reflected symmetry plane
around a solid-colored blunt body.
1. First, create a scene by right-clicking the Scenes node.
2. Select New Scene > Vector.
Version 9.04
Version 9.04
10. Select the Vector 1 > Parts node and click the ellipsis (Custom
Editor) for the Parts value.
11. In the Parts dialog, expand the Regions and subdomain-1 nodes.
Select the Symmetry_plane1 node and click OK.
Version 9.04
Version 9.04
Version 9.04
2. Right-click the Derived Parts node and select New Part > Section >
Plane....
Version 9.04
Version 9.04
The plane tool in the scene display allows interactive definition of the
plane that cuts the blunt body.
7. Rotate and pan the image as needed so that the inner wall is in front
of the plane tool rectangle as shown.
Version 9.04
The barbell represents the normal of the cutting plane, which can
be changed by dragging one of the balls to another location. The
plane can also be dragged to change the origin of the cutting plane.
A bounding box slightly larger than the regions in the scene is displayed
to limit the movement of the plane.
9. Move the mouse over the plane tool, then click-and-drag the
rectangle so that it cuts the blunt body close to the symmetry plane.
The properties of the edit dialog are similar to those in the following
screenshot:
Version 9.04
Version 9.04
An empty plot node is added to the tree and opens in the Graphics
window.
To select the part on which to plot:
2. Select the Plots > XY Plot 1 node and click (Custom Editor) for the
Parts property.
3. In the XY Plot 1 dialog, make sure that Derived parts > plane
section is ticked.
4. Click OK.
To set the variable to plot on the y-axis:
5. Select the XY Plot 1 > Y Types > Y Type 1 node and make sure that
the Type property is set to Scalar.
6. Select the Y Type 1 > Scalar node and set Scalar to Pressure
Coefficient.
Version 9.04
10. In the Properties window, select the value of the Reference Density
property, press <Ctrl+V>, and then Enter.
11. Repeat the above steps for the Reference Velocity.
12. Leave the Reference Pressure property at 0.0 Pa.
13. Select the Plots > XY Plot 1 > Axes > X Axis > Labels node then
ensure that Auto Range Min and Auto Range Max are selected.
The plot appears as shown below.
Version 9.04
Version 9.04
Adding Streamlines
Set up a streamline derived part so that it shows the recirculating flow
behind the blunt body. Modify the part to show streamlines over the
blunt body.
To visualize streamlines in STAR-CCM+, do the following:
Create a scene.
Version 9.04
The entire fluid region is used as the input part for the streamline part.
4. In the Input Parts group box, click the Select button.
5. In the Select Objects dialog, make sure that subdomain-1 is the only
region selected.
6. Click OK.
7. In the Vector Field group box, make sure that Velocity is selected in
the drop-down list.
8. For the seed mode, select Point Seed.
Version 9.04
To position the seed point just after the back of the blunt body (in the
direction of flow):
9. Enter the following coordinates under Seed Position:
0.05 for X, 0.01 for Y, and 0.01 for Z
10. Enter 0.002 for Seed Radius and 10 for Number of Points.
Version 9.04
Version 9.04
14. In the display, right-click the color bar and select Velocity:
Magnitude.
Version 9.04
16. Select theDerived Parts > streamline node and make sure that the
Rotation Scale expert property is 1.0.
17. Select the streamline > 2nd Order Integrator node and set the
Integration Direction to Both so that the streamlines are generated
both upstream and downstream.
In the Expert properties:
18. Set Initial Integration Step to 0.1 to provide more resolution to the
streamlines.
19. Set Maximum Propagation to 5.0.
20. Set Max Steps to 1000.
This option, together with the maximum propagation, provide a
stopping criterion to make sure that the streamlines are not
calculated endlessly.
The modified streamlines appear as below.
The next step involves moving the seed point of the streamline derived
part to the front of the blunt body.
21. Select the 2nd Order Integrator node and change Integration
Direction to Forward.
22. Select the streamline > Point Seed node and set the x-value of the
Center to -0.05, so that the value of the property is -0.05, 0.01,
0.01.
Version 9.04
Version 9.04
2. Click Disconnect.
It is easy to reopen the file and restore the displays.
3. Select File > Recent Files > /bluntBody.sim.
Version 9.04
Summary 10915
Summary
This tutorial has introduced the following STAR-CCM+ features:
Renaming techniques.
Creating streamlines.
Reopening a simulation.
Version 9.04