CFD-1500: Use Distributed Thickness for Varying Boundary Layer Thickness

In this tutorial you will learn how to generate a structured quad surface mesh, adjust the boundary layer thickness manually and generate a hybrid grid (tetramesh with boundary layer). You will also export the model for a CFD solver of your choice.

The model file used in this exercise can be found in the es.zip file. Copy the file(s) from this directory to your working directory.

Load the CFD User Profile

  1. From the menu bar, click Preferences > User Profiles or click the Load User Profile icon, , on the Standard toolbar.
  2. Click Engineering Solutions > CFD.
  3. Click OK.

Open the Model File

  1. On the Standard toolbar, click the Open Model icon.
  2. Select the wing.hm file.
  3. Click Open to load the file.


  4. In the Model Browser, click Component and expand the folder, then right-click box and select Hide.
  5. Right-click plane and select Show.

Generate a Mesh on the Surface

  1. Click Mesh > Surface Mesh 2D > Automesh.
  2. Click the size and bias subpanel.
  3. Set the element size = field to 5.0.
  4. Set the mesh type to quads only.
  5. Ensure that both the size and skew checkboxes are activated.
  6. Ensure toggles are set to elems to surf comp and first order.
  7. Click surfs. In the graphics area, use the Shift key and the left mouse button to draw a box around the wing to select the entire image.
  8. Click mesh.
    A message on the status bar indicates the number of elements created.


    Figure 1.

Adjust the Node Seeding on Each Edge to Get a Structured Quad Mesh

  1. While in the density subpanel, change the elem density = field to 17.
  2. Click edge just above the elem density field and graphically select both left-hand edges of the wing.
    The entire edge is selected.
  3. Rotate the model and repeat Step 2 for the other end.


    Figure 2.

    To get a structured quad mesh adjust the number of nodes on the edges in such a way so that two opposite edges have the same number of nodes. See the image below.



    Figure 3.
  4. Click edge next to adjust and select the edge, as shown in the image below.


    Figure 4.
  5. Now adjust the node seeding on the two remaining edges (leading edge and training edge) to 47 to get a uniform quad mesh.
  6. Click mesh.


    Figure 5.
  7. Click return to close the panel.

Define the Region for a Thinner BL Thickness

  1. Click BCs > Components > Single.
  2. Enter the name of the new component as BL_thin and click Create and then Close.
  3. Click BCs > Organize.
  4. With elems highlighted, use the Shift key and the left mouse button to draw a box around a portion of the elements on the wing. See the image below.
  5. Click dest component and select the component BL_thin.


    Figure 6.
  6. Click move, and then click return.

Mesh the Surface of the Box

  1. In the Model Browser, turn on the display of the box component, and then press F on the keyboard to fit the model into the graphics region.
  2. Click Mesh > Surface Mesh 2D > Automesh and then select the size and bias subpanel.
  3. With surfs highlighted, select the six surfaces of the box.
  4. Set the element size field to 30, and change the mesh type toggle to trias.
  5. Click mesh.
  6. Double-click return to close the panels.

Volume Meshing

  1. Click Mesh > Volume Mesh 3D > CFD tetramesh.
  2. Click the Boundary selection subpanel. Under the heading With BL (fixed), click comps and select the plane and BL_thin components.
  3. Under the heading W/o BL (float), click comps and select the box components.
  4. Click the BL parameters subpanel.
  5. In the Number of Layers field, enter 4.
  6. In the First layer thickness field, enter 0.3.
  7. Check the boxes for BL reduction and Pre calc and then click Manual to open the Distributed BL Thickness Ratio dialog.
    Note: In the dialog, you can select nodes or components, and define a scaling factor for the boundary layer thickness at this location. For example, a scaling factor of 0.5 will reduce the BL thickness in this region to one half of the original BL thickness.
  8. In the dialog, click Components.
  9. Click Select Components and select the component BL_thin.
  10. Click proceed.
  11. In the Thickness Ratio field, enter 0.1.
  12. Click Assign, and then click Close.
    The defined scaling factor is now stored in the load collector ^CFD_BL_Thickness, as shown in the Model Browser.
    Note: For all of the nodes in the selected component BL_thin, the boundary layer thickness will be reduced to 1/10 of its initial size. A smooth thickness transition will be used.


    Figure 7.
  13. In the Model Browser, right-click the box component and select Hide. Right-click the load collector ^CFD_BL_Thickness and select Show. Check the value of the scaling factor to make sure it is correct and if it is attached to the correct component.


    Figure 8.
  14. Click the Tetramesh parameters subpanel. Select Interpolate for the tetrameshing growth algorithm behavior.
  15. Click mesh.
    Two new components are generated containing the boundary layer elements and tetra elements.
  16. To check the result, mask parts of the mesh and compare the thickness of the boundary layer for the plane component with the thickness of the BL_thin component. You can do this in the Distance panel. You will see that the thickness ratio is 1/10, as expected.


    Figure 9.

    Due to smoothing algorithms for the boundary layer, the thickness ratios can differ from the user-defined values, for some use cases.

Prepare the Model for Export

  1. In the Model Browser, right-click Components and click Show to display all components.
  2. Click BCs > Components > Single.
  3. Enter the new name as fluid.
  4. Repeat Step 2 to create more collectors, with the names inflow, outflow, wall_wing and wall_slip.
  5. Click the Mask tab, click the 1 in the row 3D elements to display only volume elements.
  6. Click BCs > Organize.
  7. Click elems and select displayed.
  8. Click dest component and select the component fluid.
  9. Click move, and then click return.
  10. In the Mask tab, click the 1 in the row 2D elements to display only shell elements.
  11. Click Mesh > Delete > Elements.
  12. Click elems and select displayed.
  13. Click delete entity and then click return.
  14. In the Model Browser, right-click fluids and select Make Current, and then right-click it again and select Show.
  15. Click BCs > Faces.
  16. Click comps and select the fluid component.
  17. Click find faces and then click return to close the panel.
    A new component named ^faces is created and displayed in the Model Browser.
  18. Right-click it and select Isolate.


    Figure 10.
  19. Click BCs > Organize.
  20. Select the elements lying on the inflow boundary, and move them to the inflow component. The easiest way to do this is to select a single element on the inflow boundary and then select by face from the extended entity selector. Repeat this step selecting the elements on the outflow boundary, and moving them to the outflow component.


    Figure 11.
  21. Move the shell elements from the four other sides to the component wall_slip.
  22. Move the shells on the wing profile to the wall_wing component.
  23. Click return to close the panel.
    The collector ^faces should now be empty and can be deleted by right-clicking it in the Model Browser.
  24. Delete the other empty components - plane, box, BL_thin, CFD_bl001 and CFD_tetcore001.

Export the Model

  1. Right-click Components in the Model Browser and select Show.
  2. Click the icon and export the model for the CFD solver of your choice.