Professional Documents
Culture Documents
Starting StarCCM+
1. Launch StarCCM+. On linux the program starts with the starccm+ command.
2. Choose File → New simulation… from the top menu.
3. Setup the processor and licensing options for the current session.
a) Choose either Serial (single core) or Parallel on local host (multiple cores) option. For
the parallel option choose the number of cores (it is advisable to choose one less than the
number of physical cores, if you intend to do something else while the simulation is
running).
b) Fill in the license details: choose Power-On-Demand option, fill in the Server details as
shown below, unless they are automatically filled and type in the Power-On-Demand
Key that was given on MyCourses.
c) Click OK.
4. The tree on the left hand side of the main window is used to control all aspects of your
simulation project. The imported sphere geometry should have appeared in the simulation
tree under Geometry → Parts. You can open the sub-nodes of the hierarchy by clicking on
the circle of the connecting lines. If you click the sphere in the tree, it is highlighted in the
geometry scene on the right.
Setting up the simulation domain
We will specify a cylindrical domain, that covers only one quarter of the cylinder. We will do this
by specifying the profile of the domain and then revolving this profile by 90 degrees around the
longitudinal axis to form the volumetric domain.
1. Right-click 3D-CAD Models in the simulation tree and choose New from the context menu.
This opens up 3D-CAD View.
2. Right-click Features → XY and choose Create sketch in the object tree on the right. This
changes to a sketch view, where we can draw elementary shapes on the XY-plane. You can
rotate (left mouse button), zoom (scroll wheel) and pan (right mouse button) the view.
3. Click the rectangle icon under the Create sketch entitites in the toolbar on the left.
4. Draw a rectangle by clicking first in the lower left hand corner (on the x-axis) and then in
the upper right hand corner of the rectangle. The dimensions can be whatever at this point.
5. Add a reference point inside the rectangle on the y-axis by clicking on the point icon in the
left hand toolbar and clicking at some point on the y-axis. We will use this point to specify
the distance of the inlet and outlet boundaries from the sphere center.
6. Anchor the point by applying a fixation constraint. Right-click the point and choose Apply
fixation constraint.
7. Specify the distance of the inlet boundary from the reference point. Click on both the
reference point and the vertical edge on the left while holding down the Ctrl-key on the
keyboard. Right-click the edge and choose Apply Distance Dimension from the context
menu. Specify the Distance in the window, choose the Expose parameter option and give
the parameter a meaningful Name. Click OK. By giving names to the dimensions, these can
be modified easily afterwards.
8. Specify the outlet distance similarly, i.e. choose the reference point and the right vertical
edge and apply a distance dimension with a meaningful name. Make sure that the edge is on
the right side of the reference point before you specify the distance dimension. If this is not
the case, you can drag the edge by click-and-drag.
9. Specify the radius of the domain by right-clicking the left vertical edge and choosing Apply
length dimension. Specify the radius, expose the parameter and give a sensible name.
10. Check the domain profile. It should look something like this with the dimension
specifications.
11. Close the sketch view by clicking OK. At the lower left hand corner.
12. Right-click Sketch 1 in the object tree, choose Rename from the menu and give the object a
sensible name (e.g. profile).
13. Right-click the profile object in the tree and choose Revolve from the menu. This opens a
view, where you can modify the options for the operation. The defaults are fine, i.e. we
want to revolve the profile around the x-axis by 90 degrees and generate a solid (rather than
a sheet as this will be the fluid volume). Click OK.
14. This operation generated a body under the Bodies node in the tree. Rename this to
something sensible (e.g. domain).
15. In order to specify appropriate boundary conditions on each face, we should give sensible
names to each face of the body. You can choose faces by clicking them in the 3D-CAD
view (multiple faces can be selected with Ctrl-clicking).
a) Choose the faces on the XY- and XZ-planes simultaneously, right-click one of the faces
and choose Rename under the faces heading in the menu. Give these faces a name
Symmetry.
b) Choose the face with the outer normal in the negative x-direction and rename this to
Inlet.
c) Choose the face with the outer normal in the positive x-direction and call this Outlet.
d) Choose the curved face and call this External.
You can see the named faces in the tree under Bodies → Body name → Named faces.
Setting up refinement volume
Let’s specify an additional volume in the wake of the sphere, in which we will use a higher grid
resolution. This will have a half-ellipse profile and will be generated similarly to the fluid domain
by revolving the profile around the x-axis.
1. Right-click Features → XY in the tree and choose Create sketch. You can change the view
through the camera icon in the top toolbar. Standard views give you easy access to different
projections. Hide the existing model by deselecting Solid bodies in the menu that opens by
clicking the middle icon at the top of the 3D-CAD view.
2. Click the Ellipse icon and specify an ellipse with the centre at the origin.
3. Draw a vertical line and a horizontal line both starting from the origin and reaching outside
the ellipse. You can stop the line drawing operation by pressing ESC key on the keyboard.
4. Choose the ellipse and the two lines by ctrl-clicking on them. Right-click the ellipse and
choose Split for trim. This splits the ellipse into two parts.
5. Right-click the left lower half of the ellipse and choose Delete.
6. Choose the end point of the vertical line and the end point of the ellipse arc below this.
Right-click one of the points and choose Apply coincidence constraint.
7. Repeat this for the right hand end points of the horizontal line and the ellipse arc.
8. Apply length dimension for the horizontal and vertical line and give appropriate names for
the lengths.
4. This creates a new operation under the Operations node called Subtract. Right-click this
operation and choose Execute.
5. This cuts the spherical volume out of the domain. The resulting volume can be found under
the Parts node. Rename the resulting part into something sensible (e.g. fluid). Go to the
Scene/Plot tab and activate only the fluid domain under the Parts node. Go back to the
Simulation tab.
6. Turn the fluid part into a region, i.e. right-click fluid part under the Parts node and choose
Assign parts to regions… from the menu.
7. In the window change the second pull-down menu option to Create a boundary for each
part surface. This will produce one boundary for each of the named faces defined above.
Close the window.
4. Open the Tools node, right-click Field functions and choose New → Scalar
5. Rename the field function under the tree as Radius and under the Properties part in the
lower left hand corner specify the Function name as Radius. Click the three points next to
the Dimension field and set the Length option as 1 (i.e. this has units of length). For the
function Definition set the constant value 0.1 (the radius of the sphere). This function can
now be used in any of the numeric fields related to length.
6. We will set-up the velocity according to the Reynolds number referred to the sphere
diameter. In order to do this we need to specify some additional variables. Under the Tools
→ Field functions node, specify the following new scalars.
7. Go through the boundary conditions under the Physics conditions and Physics values nodes
under the Regions → Region → Boundaries node for each boundary. The default values for
the turbulent quantities and pressure are OK. The velocity should be changed to refer to the
Inlet velocity variable specified above. Velocity is used for both the inlet and the external
boundary.
a) For the inlet boundary check that the Velocity specification under the Physics conditions
node is set as Magnitude + Direction and that the Flow direction specification is set as
Boundary-Normal. This means that the velocity is normal to the boundary and you will
only give the magnitude of the velocity. Under the Physics values node set the Value for
the Velocity Magnitude as $V_inf.
b) For the external boundary set the Velocity specification as Components and under the
Physics values node set the Value for the Velocity as [$V_inf, 0.0, 0.0].
8. Check that the initial conditions for pressure and turbulent quantities under the Continua →
Physics 1 → Initial conditions node match the boundary conditions. Set the initial condition
for Velocity as [$V_inf, 0.0, 0.0].
9. Set the Density and Dynamic viscosity for the fluid under the Continua → Physics 1 →
Models → Liquid → H2O → Material properties node using the variables $rho and $mu
above.
4. Adjust the domain and refinement zone size based on the radius of the sphere. Find the
Design parameters node under the Geometry → 3D-CAD models node. In the properties
section of each parameter give the following Values.
You can clearly see separated flow with streamlines curving up for the top part and curving
down for the lower part. We can see that the symmetry conditions are affecting the results,
as the condition is forcing the flow to be parallel to the plane, whereas the separation pattern
indicates that there could be a flow component normal to the plane. In effect we are
enforcing some periodicity to the separation pattern and the influence of this could be
studied by changing the flow domain.
6. In order to plot the pressure and skin friction coefficients on the sphere surface, let’s first
produce the following cross-sections through the sphere surface.
Right-click the Derived parts node and choose New part → Section → Plane.
7. Click the plane and in the properties set the Normal as [0, 1, 0] and for the Parts property
select the sphere surface under the Regions node.
8. Having the section run exactly at the boundary does not necessarily produce correct data, so
let’s move the section slightly to guarantee that it is running through the data. Click the
Single section node under the section and set the Offset property as 1E-10.
9. Rename the section as 0 deg.
10. Repeat the procedure for two more sections using Normal values of [0, -1.732, 1] and [0, -1,
1] and renaming the sections as 30 deg and 45 deg. For these you do not need to set an offset
as these sections run through the data in any case.
11. Specify a new scalar field function called Angle with a Definition of
acos(-$${Position}[0]/$Radius)/acos(-1)*180. This gives the angle of the point on the
surface of the sphere, measured from the stagnation point.
12. Click the Tools → Field functions → Pressure coefficient node and set Reference density
and Reference velocity using $rho and $V_inf.
13. Click the Tools → Field functions → Skin friction coefficient node and set Reference density
as 2*$rho/sqrt($Re) and Reference velocity as $V_inf.
14. Right-click the Plots node and choose New plot → XY plot.
15. Click the Scene/Plot tab.
16. Under the XY plot 1 node set the Parts to include all three cross-sections.
17. Click the X type node and set Type property as Scalar.
18. Click the Scalar function node and choose Angle as the Scalar function.
19. Set the Scalar function under Y types → Y type 1 → Scalar function as Pressure coefficient.
20. Right-click the Y types node and choose New.
21. Set the Scalar function under Y types → Y type 2 → Scalar function as Skin friction
coefficient.
22. Right-click the Axes node and choose New axis → Right.
23. Click the Y types → Y type 2 node and set the Y-Axis property as Right axis. The resulting
plot should look like this.
The pressure distribution agrees quite nicely with the results presented in Constantinescu
and Squires (2004), Numerical investigations of flow over a sphere in the subcritical and
supercritical regimes, Physics of Fluids, Vol. 16, No. 5 shown below. The skin friction
distribution is closer to the numerical fully turbulent curve of the same reference, which is
understandable as the simulation does not include transition modelling. Based on the
experimental results transition seems to occur at around 90 degrees and therefore the
simulations are overpredicting the shear stress for the front half of the sphere.
Constantinescu and Squires (2004) report that the separation angle for the fully turbulent
condition should be 117 ± 2 degrees. The simulation results show that depending on the
cross-section, the separation occurs between 107 and 117 degrees. Thus, the separation
angle is slightly underestimated. The simulated drag coefficient is 0.1470 (right-click the
C_D report and choose Run report), which is overestimating the reference value of
0.102±0.011 reported in Constantinescu and Squires (2004). This might be explained by the
underestimation of the separation angle and the consequent overestimation of the separation
zone.
The study should then be extended with a grid resolution study, study on the influence of the
choice of the turbulence model and study on the influence of the domain size and boundary
conditions.