In this article, we will discuss a schematic methodology that is recommended to be followed in designing a C-section
structured body-fitted high-orthogonal mesh with quadratic elements. This is implemented using the blockMesh technique
in OpenFOAM. The study case, that will be used to explain the procedure for required mesh, is mirrored cambered foils at
a high angle of attack, as shown in figure 1. The foil has a chord,
, separated with the mirrored one with a
distance,
, and each one of them is tilted from the free-stream velocity,
, with angle of attach,
.
-direction is the
outward direction along the span of wing.
, where n is an abbreviation of negative
plane and v is an abbreviation of vertex. Fill
the vertices from the bottom left corner point and moves to the right until the row is finished. Then
move up to the higher row starting from the left side again. Further, you may add spaces to align the
start of each component, as this would help in the review process if there were mistakes. Remember the
numbering in OpenFOAM starts with 0.
-plane, copy and past them. Then, start to remove the
negative sign in the
-plane to make the positive one and change the naming from nv# to pv#.
-direction of the block then
the
-direction, following the main picture of blocking. Further, you may add spaces to align the start of
each vertex, as this would help in the review process if there were mistakes. In this level, use a single division
in all directions and a simple grading of 1. In addition, you may add a comment of the number of the block,
as this would help in the review process if there were mistakes.
, respectively.
blockMesh calculates the cell sizes using a geometric progression to generate a non-uniform mesh. Along a length
, if
cells are requested with a ration of
between the last and first cells, the size of the smallest cell,
, is given
by:
![]() | (1) |
where
is the ratio between one cell size and the next which is given by:
![]() | (2) |
![]() | (3) |
The suggested options for checkMesh command are shown in the following line:
The mesh quality parameters, such as skewness, aspect ratio, orthogonality, and so on, and topology quality parameters
are explained in details in wolfdynamics.com (2017). The standard limiting values for mesh quality with checkMesh can be
found in the file primitiveMeshCheck.C, located in the directory:
$WM_PROJECT_DIR/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck. The standard values, that can be
changed by the user, are defined as:
Even if the results from the meshCheck were okay, it is highly recommended to follow the suggested following values by SimScale (2022) and CFDSupport (2022) to avoid low-quality meshes, because they will almost always result in numerical inaccuracies, causing the simulations to fail or produce misleading results.
The mesh quality of the built mesh for the problem of reflected airfoils are shown in the figures 9-12.
The mesh quality results meet the recommended values, expect for the aspect ratio. The aspect ratio can be improved by increasing the number of divisions, which will increase the computational time. Otherwise, the convergence speed will significantly decrease with the high aspect ratio, but likely it is not fatal for the solver stability. Thus, the next steps to be done are the mesh independent analysis and validation study.
The article provided a schematic procedure to construct a structured mesh over simple geometries using blockMesh in OpenFOAM. Further, the article test the procedure over a two-reflected-airfoils problem. The results of proposed procedure showed a good mesh quality, which was analyzed by meshCheck in OpenFOAM. A future work of constructing a similar procedure for the complex geometries using snappyHexMesh in OpenFOAM will be conducted.
This article was firstly uploaded on Linked-In among the CFD and OpenFOAM community. The post can be found here. They discussed the article and provided suggestions for improvement.
The author thanks each of the Ocean TAMU professors Björn Windén, Mirjam Fürth, and Sharath Girimaji, for their technical support and invitation to write this article for the CFD users community for the Ocean Engineering department at Texas A&M University, ocean-cfd.engr.tamu.edu.
CFDSupport (2022). Mesh quality check. https://www.cfdsupport.com/OpenFOAM-Training-by-CFD-Support/node131.html. Accessed: 2022-09-04.
Greenshields, C. (2022). Mesh generation with the blockmesh utility. https://doc.cfd.direct/openfoam/user-guide-v10/blockmesh. Accessed: 2022-07-14.
SimScale (2022). Mesh quality, quality assessment. https://www.simscale.com/docs/simulation-setup/meshing/mesh-quality/. Accessed: 2022-09-04.
wolfdynamics.com (2017). What is a good mesh? meshing preliminaries and quality assessment. http://www.wolfdynamics.com/wiki/meshing_preliminaries_and_quality_assessment.pdf. Accessed: 2022-09-04.