Meshing
The mesh used in a fluid-flow simulation depends on the fluid-flow model and on the accuracy required in the simulation. A fluid-flow model can inherently require a fine resolution in order to converge, even though the results might not require a correspondingly high accuracy. In such cases, it can be a good idea to change the fluid flow model. An example is the low-Reynolds number k-ε model which gives a very accurate description of the flow near solid walls, but requires a very fine mesh there. In many cases, the standard k-ε model with wall functions can deliver an accurate enough result at a much lower computational cost. In other cases, the requirement of accuracy in the results can limit the maximum element size.
There are a number of different mesh types and meshing strategies for fluid flow modeling in COMSOL Multiphysics.
Unstructured Meshes
Free-meshing techniques generate unstructured meshes that can be used for most types of geometries. The mesh-generating algorithms are highly automated, often creating a good quality mesh from minimal user input. This mesh type is therefore a good choice when the geometry of the domain is evident but the behavior of the mathematical model in it is unknown. Yet, unstructured meshes tend to be isotropic or homogeneous in nature, so that they fail to take advantage of the different resolution requirements in the streamwise and cross-stream directions.
Structured Meshes
In many ways, the properties of structured meshes complement those of the unstructured type. Structured meshes provide high quality meshes with few elements for sufficiently simple geometries. The properties of a structured mesh can furthermore be used to create very efficient numerical methods. Finally, it is often easier to control the mesh when high anisotropy or large variations in mesh size and distribution is required, as the size of a structured mesh can be easily increased linearly or geometrically with the dimensions of the computational domain.
Swept Meshes
Swept meshes are a particular form of structured meshes, sometimes denoted semistructured. These are generated in 3D by creating a mesh at a source face and then sweeping it along the domain to a destination face, such as from a cut in the cylindrical part of a polymerization reactor to its outlet face. A swept mesh is structured in the sweep direction, while the mesh at the source and destination faces can be either structured or unstructured. As is the case for structured meshes, the model geometry determines if a swept mesh is applicable. Swept meshes are typically ideal when the cross section in the sweep direction is constant, which is the case for channels and pipes, for example. Revolving a mesh around a symmetry axis is another useful sweep operation.
Boundary Layer Meshes
A boundary layer mesh is a mesh with an element distribution that is stacked or dense in the direction normal to a boundary. It is created by inserting structured layers of elements along specific boundaries and merging the outer layer with the surrounding structured or unstructured mesh. This type of mesh is useful for many fluid flow applications especially when coupled to mass and energy transfer, where thin boundary layers need to be resolved. This is also the default physics-induced mesh for fluid flow.
Mesh Convergence
Ideally, a mesh convergence analysis should be performed in order to estimate the accuracy of a simulation. This means that the mesh should be made twice as fine in each spatial direction and the simulation carried out once again on the refined mesh. If the change in critical solution parameters for the original mesh and the finer mesh is within the required tolerance, the solution can be regarded as being mesh-converged. For practical reasons, it is seldom possible to make the mesh twice as fine in each direction. Instead, some critical regions can be identified and the mesh is refined only there.
Meshing in the COMSOL Multiphysics Reference Manual