A Two-Dimensional Model of Convection For Laminar Flow Over A Cylinder Me 448/548: Starccm+ Tutorial Gerald Recktenwald 4 March 2020
A Two-Dimensional Model of Convection For Laminar Flow Over A Cylinder Me 448/548: Starccm+ Tutorial Gerald Recktenwald 4 March 2020
Inlet: V, T
Figure 1 Two-dimensional geometry of heated cylinder in a duct.
StarCCM+ Tutorial: Laminar convection from a cylinder in 2D 2
Create a Part
The CAD Tool creates CAD models, but these cannot be used directly in the simulation. The
“parts” created by the CAD Tool must be used to create a new Geometry part.
• Right-click on the newly created 3D-CAD model and select New Geometry Part
• Accept the defaults in the dialog box and click OK.
• Expand the Parts node to see the new part. Change its name from Body 1 to fluid.
Rename surfaces on the Geometric Parts
The geometry part, like parts imported from external CAD tools like Solidworks, needs to have
its enclosing surface expanded to separate surfaces so that boundary conditions can be applied.
• Expand the (newly renamed) fluid node under the Parts node
• Expand the Surfaces node, and right-click on Default.
• If the Split by Patch option is dimmed (not selectable), create a Geometry Scene for the
part. Then select Split by Patch.
» Rotate the model so that the –Z face of the XY plane is in the foreground. Select this
surface and name it z_zero_face.
Note that it is very important to identify the model face that is
coincident with the XY plane passing through z = 0. This (z=0)
plane will be used in the 2D simulation.
» Create the remaining surfaces listed in Table 2. Note that the symmetry_edges surfaces
are created after closing the Split by Patch tool. These two edges are the Default
surface (edge) that is left after all other surfaces were named in the Split by Patch
tool.
Badge for 2D
• Expand the main Geometry node at the top of the simulation tree.
• Right-click on Operations and select New " Mesh " Badge for 2D Meshing
» In the dialog box, select fluid (or whatever name you gave to the part)
» Click OK. Note: you could also check the box labeled Execute Operation Upon
Creation before clicking OK. We’ll do that manually in the next step.
» The preceding steps create a new node under the Operations node.
• To make result of the next step apparent, expand the Surfaces node under the fluid node
under the Parts node. The left side of Figure 2 on the next page shows the appearance of
the simulation tree before the badging operation is executed.
• Right click on the newly created Badge for 2D Meshing node and select Execute. The
right side of Figure 2 shows the appearance of the simulation tree after the badging
operation.
• Select nodes under the Surfaces node of the fluid part and inspect the Properties pane:
» The icon for the cylinder node has changed from filled gray to a red outline. In the
Properties pane, cylinder node has a tag, [Boundary (2D Mesh)]
» The icon for the z_max_face node has not changed
» The icon for the z_zero_face node has changed from filled gray to filled red, with an
additional dot. In the Properties pane, the z_zero_face node has a tag, [Region (2D
Mesh)].
StarCCM+ Tutorial: Laminar convection from a cylinder in 2D 7
Figure 2 Appearance of nodes in the simulation tree before (left) and after (right)
executing the Badge for 2D Meshing operation.
Figure 3 Full domain 2D mesh (left) with base size of 0.5. cm. Close-up of mesh
near the cylinder (right) showing the two prism layers adjacent to the solid
surface.
Figure 4 Residual history for mesh with base size of 0.5 cm.
Figure 5 Two representations of the temperature field for the coarse mesh (0.5 cm
base size) and 15W heat input at the cylinder with inlet velocity of 0.075
m/s. The left image shows the “Automatic” contour style. The right image
shows the “Smooth Filled” contour style.
Figure 6 Velocity field near the cylinder for coarse mesh (0.5 cm base size) and
15W heat input with inlet velocity of 0.075 m/s. The lack of symmetry
suggests that further grid refinement is necessary.
StarCCM+ Tutorial: Laminar convection from a cylinder in 2D 11
The heat transfer report shows that 15 W has entered the fluid domain – heat flow is positive
when out of the domain. The energy flows through the inlet and outlet boundary are the enthalpy
flows. Since the enthalpy is defined from an arbitrary reference temperature, only the difference
in enthalpy flows mater. The Total at the bottom of the report shows that the difference in the
inflow/outflow energy flows is nearly balanced (to within 0.007 W) with the energy input at the
cylinder.
• In the list of Parts, expand the Regions node and select fluid.cylinder (only).
• Right click on the Cylinder temperature node and select Run Report to print the following
in the Output pane
Surface Average of Temperature on Volume Mesh
Inlet Temperature
The inlet temperature is known from the boundary condition. By creating a report that calculates
the inlet temperature, we have a value that can be used in the expression for computing the heat
transfer coefficient. Perhaps there is a better way to obtain this value.
• Right-click on the Reports node of the simulation tree and select New Report " [Element
Count … Volume Standard Deviation] " Mass Flow Averaged
• Rename the newly created Mass Flow Averaged 1 node as Inlet temperature
• In the Properties Pane select the Temperature as the Field Function.
• In the Properties pane, change the Units to C.
• In the list of Parts, expand the Regions node and select fluid.inlet (only).
• Right click on the Inlet temperature node and select Run Report to print the following in
the Output pane
Mass Flow Average of Temperature on Volume Mesh
This is what we expect. An integral of the heat flux on the cylinder surface equals the total heat
transfer rate of 15 W prescribed as the boundary condition on the cylinder.
Cylinder Area
The cylinder will be used to compute the heat transfer coefficient on the cylinder.
• Right-click on the Reports node of the simulation
tree and select New Report " [Element Count …
Volume Standard Deviation] " Sum
• Rename the newly created Sum 1 node as
Cylinder Area
• In the Properties Pane select the Area Magnitude
as the Field Function. (expand the Area node)
• In the list of Parts, expand the Regions node and
select fluid.cylinder (only).
• Right click on the Cylinder Area node and select
Run Report to print the following in the Output
pane
Sum of Area: Magnitude on Volume Mesh
The value of area is per unit length into the page. The value returned by the report is
approximately equal to the perimeter of the cylinder times one meter into the page.
𝑃 = 𝜋𝑑 = π(0.04𝑚) = 0.12566𝑚
The discrepancy between 0.1250267 and 0.12566 is an error of 0.5% and is due to approximating
the shape of the cylinder surface with flat-side polygon cells.
• In the Properties Pane select the […] for the Definition parameter, which opens up the
window shown Figure 7. The top panel in Figure 7 is used to create the expression.
• Scroll vertically to find a variables and double-click on the variable name to enter it into
the expression. Use that procedure to create the following expression (which is wrapped
over multiple lines because of the length of the variable names).
${CylinderheattransferReport}/${CylinderareaReport}/(${CylindertemperatureR
eport}-${InlettemperatureReport})
The result is a negative number because the heat flow is a negative 15 W (into the domain).
According to this computation, the heat transfer coefficient on the cylinder is 4.65 W/(m2 C).
The correlation of Churchill and Bernstein1
(#/%)
".$%&e! (r (#/') &e (4/2) (./4)
!
Nu! = 0.3 + (%/') (#/()
41 + 5%2%,""" 6 7
*+,("../(r) 1
gives Nud = 7.72 and h = 4.49 W/(m2 C), which is in excellent agreement with the computed
results from StarCCM+ on the coarse mesh.
1
Principles of Heat and Mass Transfer, 7th ed., Frank P. Incropera, David P. Dewitt, Theodore L. Bergman and
Adrienne S. Lavine, 2003, Wiley and Sons. Equation 7.54, p. 458.
StarCCM+ Tutorial: Laminar convection from a cylinder in 2D 15
Further Exploration
You can continue to investigate this model with the following refinements.
• Create a volume mesh refinement around the cylinder surface and wake.
• With the preceding step and additional mesh refinement (e.g. prism layers), determine the
asymptotic mesh-independent solution for heat transfer coefficient.
• Vary the inlet velocity within the range of laminar flows
• Extent the computation to turbulent flow. You may need to extend the outflow boundary if
wake effects cause significant reverse flow at the outlet.
• Extend the model to buoyancy-driven flow.