Generating the Mesh
The construction of the volume mesh has a direct influence on how well Simcenter STAR-CCM+ simulates the fluid flow. It influences the rate of convergence and the accuracy of the final solution.
The type of a boundary determines the default behavior for the prism layer mesher next to a boundary surface. For inflow, outflow, and symmetry boundaries, no prism layers are created by the prism layer mesher. Therefore, setting the boundary types before you generate a mesh saves time during setup.
- Expand the node.
- Select the [boundary] node and set Type to the appropriate boundary type. See the specific topics under Setting Boundary and Interface Conditions.
-
Create an automated mesh operation and select the mesh models:
-
Set up mesh controls based on your geometry and flow characteristics:
- Make sure that you use an adequate mesh resolution in areas
where spatial gradients are high. Such areas occur when:
- The mean flow changes rapidly. Examples: irrigation canals, vortex shedding, forced mixing, and atmospheric flows.
- There are strong shear layers. Examples are: atmospheric flows, fluid jets, flows past solids, and flows with strong vorticity.
- Refine the mesh downstream of a body as boundary layer separation causes unsteady and turbulent fluid phenomena. In external aerodynamic simulations, this separated region is known as the wake. For detailed instructions, see Mesh Refinement in a Wake.
- Avoid creating a mesh that has excessive stretching in the direction normal to a wall. Keep cell aspect ratios as small as possible (for example, below 1000) to avoid convergence problems in the solver.
- Make sure that you use an adequate mesh resolution in areas
where spatial gradients are high. Such areas occur when:
- (Optional) To extend the volume mesh beyond the original dimensions of the starting surface, create Surface Extruder and Volume Extruder operations. These operations are typically used to extend the solution domain at inlet or outlet boundaries with orthogonal extruded cells so that flow boundary conditions are set in positions of stable flow. For detailed instructions, see Extruding Surfaces from a Parts-Based Volume Mesh.
-
Execute the mesh operations by clicking
(Generate Volume Mesh) in the Mesh Generation toolbar.
- After the mesh operations complete, create a mesh scene to visualize the generated volume mesh.
In order to make sure that simulation results are independent of the mesh, plan a mesh sensitivity study with two or more meshes after the first run.
For more information on mesh generation, see Meshing.