Boundary Layers
A Boundary Layers mesh () is a mesh with dense element distribution in the normal direction along specific boundaries, as shown in Figure 8-24. This type of mesh is typically used for fluid flow problems to resolve the thin boundary layers along the no-slip boundaries.
Figure 8-24: A channel in which a fluid flows from the left to the right and is hindered by a tilted blade in the middle of the channel. A boundary layer mesh is added to the wall boundaries (blue quad elements) to resolve the regions closest to the no-slip boundaries. The image to the left shows the full geometry while the image on the right hand side shows a smaller portion of the geometry, zoomed in on the top of the blade.
Additional elements of an arbitrary type can also be inserted into the layers if needed.
See The Mesh Node to learn more about meshes that defined their own geometric model.
To create a boundary layer mesh:
For meshed domains, select boundaries where you want to insert boundary layer elements. Right-click in the Graphics window to open up The Graphics Context Menu and click the Boundary Layers button (). This adds a node with the same name, as well as a default Boundary Layer Properties node and at the same time inserts boundary layer elements for the selected boundaries, with the meshed domains adjacent to the selected boundaries as domain selection.
For meshed faces in 3D, select the edges where you want to insert boundary layer elements. Right-click in the Graphics window to open up the Graphics context menu and click the Boundary Layers button (). This adds a node with the same name, as well as a default Boundary Layer Properties node and at the same time inserts boundary layer elements for the selected edges, with the meshed boundaries adjacent to the selected edges as boundary selection. Adjacent domains must be unmeshed.
In the Graphics window, select the boundaries where you want to insert boundary layer elements. On The Mesh Toolbar click the Boundary Layers button ().
In the Mesh ribbon toolbar (Windows) or from the Mesh contextual toolbar (macOS and Linux), click the Boundary Layers button ().
Right-click a 2D or 3D Mesh node and select Boundary Layers.
Then enter the properties for the boundary layer mesher using the following sections:
Geometric Entity Selection
Specify the entities where a boundary layer mesh will be created by first choosing an option from the Geometric entity level list:
Choose Entire geometry to specify boundary layer mesh for the entire geometry.
Choose Domain to specify the domains for which you want a boundary layer mesh. Choose Manual in the Selection list to select the domains in the Graphics window or choose All domains to select all domains.
Choose Boundary (available in 3D only) to select boundaries for which to generate a boundary layer mesh along its edges. Choose Manual in the Selection list to select the boundaries in the Graphics window or choose All boundaries to select all boundaries. Use a Swept operation to sweep the face mesh in adjacent domains to create a volumetric boundary layer mesh.
Corner Settings
The following options for handling boundary layers at sharp corners are available from the Handling of sharp corners list (in 2D) and the Handling of sharp edges list (3D):
Select Splitting (the default) to introduce boundary layer splits at sharp corners, as shown in Figure 8-25. In the Minimum angle for splitting field you specify the minimum angle between adjacent boundary layer boundaries for a split to occur. Control the maximum angle of the elements in the split region by the Maximum angle per split parameter.
Select Trimming to trim the boundary layer mesh at sharp corners. In the Minimum angle for trimming and in the Maximum angle for trimming fields you specify the minimum angle and maximum angle, respectively, between adjacent boundary layer boundaries for trimming to occur. It is recommended to combine Trimming with a Corner Refinement node to refine the mesh further close to the sharp corner, as shown in Figure 8-25.
Select No special handling to not use any special treatment at sharp corners, as shown below.
Figure 8-25: The different options for handling sharp corners: Splitting, Trimming with Corner Refinement applied, and No special handling.
In the Maximum layer decrement field you can specify the maximum difference in number of boundary layers between neighboring points on boundary layer boundaries.
Transition
Select the Smooth transition to interior mesh check box to smooth the transition in element size from the boundary layer mesh to the interior mesh. You can specify the number of smoothing iterations in the Number of iterations field. In the Maximum element depth to process field you can specify the maximum element depth, from the boundary layer interface, for the mesh points to be smoothed.
When a Boundary Layers node is added, a Boundary Layer Properties node is automatically added as a subnode. Use this subnode to specify the boundary layers and the properties of the boundary layers. If you want to specify different boundary layer properties for more than one boundary selection, right-click the Boundary Layers node and add additional Boundary Layer Properties subnodes. However, adjacent boundaries must have the same number of boundary layers.
For a 2D boundary layer mesh, see Soluble Lead-Acid Redox Flow Battery (2D):
Application Library path Battery_Design_Module/Flow_Batteries/pb_flow_battery.
For a 2D tutorial, see Turbulent Flow over a Backward-Facing Step (2D):
Application Library path CFD_Module/Verification_Examples/turbulent_backstep.
For a 3D boundary layer mesh, see Turbulent Flow over a Backward-Facing Step:
Application Library path Heat_Transfer_Module/Verification_Examples/turbulent_backstep.
For a 3D tutorial, see Low Temperature PEM Fuel Cell with Serpentine Flow Field: Application Library path Fuel_Cell_and_Electrolyzer_Module/Fuel_Cells/pemfc_serpentine_flow_field.
For a boundary layer mesh built in a remeshed STL mesh, see
Analyzing Porous Structures on the Microscopic Scale: Application Library path Porous_Media_Flow_Module/Fluid_Flow/pore_scale_flow_3d.