Professional Documents
Culture Documents
Computational Fluid Mesh Creation With STAR PDF
Computational Fluid Mesh Creation With STAR PDF
Meshing Tutorials
The first tutorial (control valve) illustrates the mesh generation tools in
STAR-CCM+ for dealing with a geometry with the following
characteristics:
• Three-dimensional, single region (half model).
• STL starting surface (closed and manifold).
• Mixture of inlet, outlet and symmetry type boundaries.
The starting data originated from the STAR-Design software and represents
a generic control valve design, commonly used for water management. Two
variations of the geometry will be considered, namely the valve in an almost
closed position and the valve in an open position. The same polyhedral
meshing parameters will be used for both situations. The parameters used
to build a trimmed cell mesh are also demonstrated.
The second tutorial (heat exchanger unit) shows how STAR-CCM+ deals
with geometries with the following characteristics:
• Three-dimensional, multi-region (half model).
• Parasolid Transmit starting geometry (single file containing assembly).
• Mixture of inlet, outlet, symmetry and interface type boundaries.
The geometry was again built using the STAR-Design software and
represents a generic heat exchanger unit. A polyhedral mesh containing a
conformal mesh interface between the fluid and solid regions will be built.
Prism layers will only be included in the fluid part.
The third tutorial (manifold assembly) details how to use the surface
wrapper tool to extract an internal closed surface from an assembly
containing the following issues:
Version 4.04.011
STAR-CCM+ User Guide 3588
The control valve is shown in an almost closed position, with flow entering
at the near end and exiting at the far end. Only a half model will be
constructed due to the symmetrical nature of the geometry. All the
appropriate boundaries, along with feature curves, will be defined as part
of the meshing process.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3591
STL geometry.
The output window will show a summary of the progress made. A total of
5570 faces and 2787 vertices will be imported. An Import representation node
will also be added to the Representations node. Click on the Representations
> Import node to see the properties of the surface.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3593
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3598
There will be five boundaries remaining at this point. Note that if you
selected a different boundary other than control_valve 7 to right-click on,
then the resultant boundary list will look slightly different. We can now
proceed to renaming the boundaries.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3602
The Mark Feature Edge Options dialog will appear. Do the following:
• Use the selection arrows to move all the boundaries for Region 1 over to
the Selected box.
• Set the Sharp edge angle value to 20 degrees.
• Unselect the Mark free edges, Mark non-manifold edges, Mark patch
perimeters and Mark boundary perimeters options. These options could be
left on as they will not affect on the resulting feature curve creation for
this case.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3605
We will use the surface remesher and the polyhedral volume mesher for this
example, along with the prism mesher so that we can generate prism layers
next to the walls in the surface.
• Right-click on the Continua > Mesh 1 > Models node and select Select
Meshing Models... in the pop-up menu.
The Meshing Model Selection dialog will appear. In the panel, do the
following:
• Select the Surface Remesher model from the Surface Mesh box.
• Select the Polyhedral Mesher from the Volume Mesh box.
• Select the Prism Layer Mesher from the Optional Meshing models box.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3607
To view the global reference values required for the selected meshing
models, open the Reference Values node. The following mesh inputs will be
listed:
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3609
• Repeat this for the other nodes in the list using the values supplied in
the table.
If no boundary or region wise values are set then the meshing models
default to the global reference values. For this case, we will set custom
values for the surface remesher triangulation (to increase the density) and
prism layer thickness for the valve wall boundary. This is because:
• This is the area of flow interest and requires additional cells to be
created;
• The gap between the valve and the outside wall is thinner than the rest
of the geometry, so we will use a thinner prism layer in this area.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3615
Since the surface remesher and volume mesher models have been selected
in tandem then we could proceed and generate both meshes in one go.
However, for training purposes, we will first generate the surface remesher
mesh and view it before proceeding with the volume meshing. To do this,
either:
• Press the (Generate Surface Mesh) button in the Mesh Generation
toolbar; or
• Select Mesh > Generate Surface Mesh from the pull-down menu on the
main display.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3618
Surface curvature based refinement is also visible on the curved parts of the
geometry. The properties of the remeshed surface can be seen by clicking on
the appropriate node in the Representations node.
As before, the output from the meshers will be shown in the Output window
and status updated in the status bar. When the process is complete, the
message Converting mesh into finite volume representation in
Region Region 1 will be shown in the Output window. A summary of the
mesh quality criteria (namely, the cell quality, face validity, skewness angle
and volume ratio) for the core and prism meshes can be viewed by scrolling
the Output window display up.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3621
Note that the above totals for cells, interior faces and vertices may differ
slightly depending the machine type and architecture. This completes the
volume meshing part of the exercise. You may now proceed to export the
mesh, run an analysis of the mesh or jump to the part of the tutorial that
explains how to replace the imported surface mesh with a modified version
and produce a new mesh with one button press. You can also proceed to
re-mesh the geometry using trimmed cells with prism layers. Be sure to save
the simulation file first if you want to keep the results of this meshing
session - a suggested simulation name is control_valve1.sim.
Running an Analysis
Running an analysis for this tutorial is optional but by doing so, it will
demonstrate the ability for STAR-CCM+ to automatically map a solution
from the current mesh to a new mesh built using either a modified geometry
or different meshing parameters (such as a different mesh density or even a
different type of mesh such as a trimmed cell one).
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3623
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3625
As the patch definitions in the new surface were identical to the original
import then the boundaries were carried over from one model to the other.
Feature curves were also contained in the new surface so these do not need
to be re-created. If they didn’t exist then they could be created using the
same process as described earlier in this tutorial. The surface is ready to be
remeshed.
The surface remesher, polyhedral volume mesher and prism mesher can be
executed in one go as follows:
• Press the (Generate Volume Mesh) button in the Mesh Generation
toolbar; or
• Select Mesh > Generate Volume Mesh from the pull-down menu on the
main display.
To view the new volume mesh representation when the process is done, do
the following:
• Right-click on the Scenes > Geometry Scene 1 node and select
Apply Representation > Volume Mesh from the pop-up menu.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3627
The first thing we will do is change the previously selected meshing models
to use the trimmer and prism mesher models instead.
• Right-click on Continua > Mesh 1 > Models node and select Select Meshing
Models... in the pop-up menu.
The Meshing Model Selection dialog will appear. In the Enabled Meshing
models box in the panel, do the following:
• Unselect the Prism Layer Mesher model
• Unselect the Polyhedral Mesher model
• Unselect the Surface Remesher model
• Select the Trimmer model from the Volume Mesh box
• Select the Prism Layer Mesher from the Optional Meshing models box
The surface remesher model was unselected since a good starting surface is
now available from the previous session.
• Press the Close button to close the panel.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3630
The Maximum Cell Size node controls the maximum size of the cells that will
be allowed away from the surface, that is, in the core. In this instance it has
been left at the default value (10000% of the Base Size) meaning that the size
is relatively unconstrained and can grow many times more than the surface
size if required. If smaller cells were required in the core then this value
should be reduced.
The Template Growth Rate option controls the extent to which the cells are
refined. The Default Growth Rate, set to Fast by default, controls the transition
rate in the interior volume mesh (away from the surface). Setting it to fast
means it will transition as quick as possible from one layer to the next, using
a minimum of one cell for each transition layer. The Surface Growth Rate, set
to None by default, controls the number of layers of cells at the surface.
Setting it to none means that the default growth rate value will determine
the number of cells to grow at the surface. If you wanted additional refined
cells then you could choose one of the other options such as medium or
slow, which would introduce at least 2 or 4 refined levels of cells
respectively.
Custom surface size values will be used for both the valve wall and the
symmetry plane in order to control the density of the trimmed cell mesh. In
the case of the valve wall, the surface size settings are used to increase the
mesh density in the vicinity of the valve area above and beyond any
refinements due to proximity effects. For the symmetry plane, there is no
requirement to maintain the global surface mesh density, so we will allow
the mesh size to increase up to a maximum size equal to the base size. We
could also repeat this for the inlet and outlet boundaries if desired although
this will not be demonstrated here.
The same valve wall inputs as before will be used so we can proceed directly
to the symmetry plane mesh conditions.
• Open the Regions > Region 1 > Symmetry Plane > Mesh Conditions node to
view the available options.
• Select the Custom Surface Size node.
Version 4.04.011
STAR-CCM+ User Guide Control Valve Meshing Tutorial 3632
The Relative Target Size is already set to be 100% of the base size and does
not need to be changed. The symmetry plane is now no longer constrained
in the same way as the other surfaces in the geometry and larger cell sizes
will be seen on this plane. We can now proceed to perform the meshing.
Version 4.04.011
STAR-CCM+ User Guide 3635
The geometry is that of a heat exchanger unit and is “CFD ready”. That is,
the appropriate fluid and solid side parts have been extracted and suitably
prepared ready for CFD use.
The heat exchanger geometry was originally built using the STAR-Design
CAD program by CD-adapco. A separate body was used to represent each
part of the geometry but both bodies were saved to a single Parasolid
Transmit file.
The heat exchanger unit contains multiple fluid flow passages connected by
two end plenums, one of which is split to force the flow around the system.
The flow domain is contained with a solid material cylinder, which is
hollow on the inside. Only a half model will be considered due to the
Version 4.04.011
STAR-CCM+ User Guide Heat Exchanger Unit Meshing Tutorial 3642
As can be seen, two regions were created during the import process, namely
Body 1 and Body 2. If you select each in turn then the associated part will be
highlighted in the display. To better identify the regions, we will rename
them as fluid and solid, plus assign the appropriate region types.
• Select the Regions>Body 1 node.
Version 4.04.011
STAR-CCM+ User Guide Heat Exchanger Unit Meshing Tutorial 3644
There is no requirement to set the region Type to anything other than Fluid
Region as it has no effect on the meshing operations. However, setting the
type is a good reminder of what type of region each part of the domain is
and what type of prism layer mesh should be allocated to this region. The
region icon will also change to reflect the new type.
We can now proceed and define the boundary surfaces for each region.
Version 4.04.011