blockMesh ordering summary
Problem
The summary of the ordering of vertices when using blockMeshDict.
Solution
The ordering of vertices
(This may need correction but works in my case.) The vortices should be arranged in column order, as shown in the following figure.
The ordering of hex
In the OpenFOAM 3_weeks tutorial[1], it clearly says that the vertex order to form a hexahedral should be counter-clockwise. For example,
1 | blocks |
This is because the first vertex defines the origin of the block and the first 2 vertices can define the x axis direction. It facilitates the recognition of the block by the code.
The ordering of boundary
When constructing the faces for boundary conditions. Vertices should be arranged in such a way that they need to be neighbors and it does not matter if the ordering is clockwise or counter-clockwise[1].
Summary
The ordering in vertices and hex is important. For boundary conditions, clockwise and counter-clockwise are both acceptable.