The Outer Boundary Layer

Introduction

The outer boundary layer is a very useful option in our boundary layer library. Mostly it is used in aerodynamic and heat transfer applications, where a fine boundary layer near the wall is desired. Its role is to provide a smooth transition between the finer inner part of the layer and the internal mesh. In the following blog post, the outer boundary layer is thoroughly explained, using a NACA series airfoil as an example. In this case, the boundary layer is generated using the Thickness ratio option and the Thickness ratio|1st layer thickness option from the Patch-based settings.

1.) NACA airfoil

Base mesh

The base mesh of a NACA series airfoil without a boundary layer is given in the figures below. The mesh is refined near the leading and the trailing edges and contains a few refinement regions around the airfoil.

2.) Base mesh – airfoil

3.) Base mesh – whole domain

Thickness ratio

In the first example, the boundary layer is generated with the Thickness ratio option and without the outer boundary layer. This is the most robust option, with the least number of constraints. Therefore, the convergence rate of the boundary layer refinement algorithm will be the highest of all the options. However, control of the first layer thickness is not possible. In this option, only the number of boundary layers and the thickness ratio have to be provided. In the first example, the boundary layer consists of 10 layers with the thickness ratio set to 1.15. Settings and the constructed mesh near the leading edge are given in the figures below.

4.) Thickness ratio setting – without outer boundary layer

5.) Thickness ratio mesh – without outer boundary layer

In the second example, the outer boundary layer option is enabled. In other words, the boundary layer consisting of 10 layers is separated into the outer boundary layer and the inner boundary layer. The number of outer boundary layers is set to 5 and the outer thickness ratio is set to 1,5. The number of layers in the inner part is the difference between the overall number of layers and layers in the outer part, which is equal to 5.

6.) Thickness ratio settings – with outer boundary layer

7.) Thickness ratio mesh – with outer boundary layer

Thickness ratio|1st layer thickness

The first layer thickness option is a replacement for the max first layer thickness that was available in previous versions. It is also the preferred option when a fine boundary layer is desired. Here the outer boundary layer is enabled by default. However, it is only possible to set the number of outer boundary layers, and not the outer thickness ratio.

The newly implemented algorithm ensures the best possible outer thickness ratio so that the transition between the inner part of the layer and the internal mesh is as smooth as possible. When an extremely small value of y+ is desired, there can be a difference of several orders of magnitudes between the first few cells near the wall, and the cells in the internal mesh. Therefore, the outer layer must smooth this transition, if possible. The thickness of the first layer is set to 0.00015, the thickness ratio to 1.15, and the number of outer layers to 5.

8.) Thickness ratio | 1st layer thickness ratio settings

9.) Thickness ratio | 1st layer thickness ratio mesh

From the figures, the role of the outer boundary layer is obvious. However, one can also notice that for the chosen settings, a smooth transition is not easily achievable. Therefore, in these situations, we recommend increasing the number of layers. In this case, the overall number is increased to 20, and the number of outer layers to 10. In most cases, it is advisable to have more outer layers than inner layers. The improved mesh is shown in the figures below.

10.) Thickness ratio | 1st layer thickness ratio mesh – improved

Conclusion

The concept of separating the boundary layer into the inner and the outer parts has proved to be very useful in many cases. Hope you will find our implementation convenient and easy to use, and feel free to suggest any improvements.

If this post has made you curious, feel free to try out our latest CF-MESH+, designed to alleviate the pain of meshing. You can also subscribe to our newsletter to stay informed on our newest developments.

Choose your best solution

cfMesh (open source)

cfMesh is an open-source library for mesh generation implemented on top of the OpenFOAM® framework. Read more here.

Note: None of the OpenFOAM® related offering by Creative Fields Holding Ltd is approved or endorsed by OpenCFD, Ltd. (ESI Group), producer of the OpenFOAM® software. OpenFOAM® and OpenCFD® are registered trade marks of ESI Group.

Basic automatic cell sizing

Boundary layers

Cartesian 2D + 3D

Open source

Polyhedral meshing

Tetrahedral meshing

CF-MESH+ (pro)

Discover superior boundary layer generation capabilities, all in an affordable, automated, easy-to-use software.

Basic automatic cell sizing

Cartesian 2D + 3D

Commercial

Polyhedral meshing

Tetrahedral meshing

Advanced control of layer topology

Advanced control of mesh quality

Advanced control for automatic cell sizing

Advanced selection of domains that shall be meshed

CAD import

Hexahedral meshing

Robust algorithms for mesh quality control

Support included (except the hourly licenses)