HM-3150: Mesh a Model Using Shrink Wrap

You can use the Shrink Wrap tool to generate an enclosed volume or solid mesh. This tool is typically used to approximate and simplify an existing model.

In HyperMesh, you can shrink wrap elements, components, surfaces, or solids. The shrink wrap allows for wrapping of multiple components if they are selected. The selection provides the option to wrap all nodes, elements, components, surfaces, points, or solids, or only a certain portion of the model if desired. The input to the shrink wrap (that is, the model parts that you wish to wrap) can consist of 2D or 3D elements along with surfaces or solids.

The shrink wrap is able to stitch over very bad geometry to generate an enclosed volume mesh for tetra-meshing. The shrink wrap tool can work from elements (whether 2D or 3D) or geometry. Thus, in the case of an "unclean" geometry model with many released (free) edges, you can either generate any arbitrary mesh on the unclean geometry using the automesh functionality beforehand and then create shrink wrap or you can simply select the surface or solid without meshing the geometry first; either of these steps will yield good output mesh. The key in such cases is to ensure that the element size used for the shrink wrap is large enough to stitch over the unclean surface edge splits so that an enclosed volume can be created.

The element size affects the ability of the shrink wrap to follow the geometry of the model. The larger the element size, the more simplified the model will appear. With a smaller element size, the shrink wrap will more closely follow the model. The jacobian value for the solid mesh follows the same type of pattern. As the jacobian value gets smaller, the shrink wrap more closely follows the profile of the model. The smaller the jacobian value, the longer it takes to generate the mesh.

Shrink wrap mesh can be generated as a surface mesh, or as a full-volume hex mesh, by use of the Shrink Wrap panel. The distinction between surface or volume mesh is a check box labeled generate solid mesh.

In this tutorial you will learn how to mesh a component using the:
  • loose shell shrink wrap
  • tight shell shrink wrap
  • tight solid shrink wrap

This exercise uses the shrinkwrap.hm file, which can be found in the hm.zip file. Copy the file from this directory to your working directory.

Open the Model File

In this step you will open the model file, shrinkwrap.hm.

  1. Start HyperMesh Desktop.
  2. From the menu bar, click File > Open > Model.
  3. In the Open Model dialog, open the shrinkwrap.hm model file.

Create a Loose Shell Shrink Wrap

In this step you will create a loose shell shrink wrap mesh in the loose_gap component.

  1. If the model's geometry and surface edges are not shaded, click on the Visualization toolbar.
  2. From the graphics area, review the surface geometry.


    Figure 1.
  3. Open the Shrink Wrap panel by clicking Mesh > Create > Shrink Wrap Mesh from the menu bar.
  4. Switch the tight wrap toggle to loose wrap.
  5. Verify that the entity selector is active and set to comps.
  6. From the graphics area, select the component.
    HyperMesh highlights the entire component.
  7. In the element size= field, type 4.
  8. Click mesh.
    The shrinkwrap is generated.
  9. In the Model Browser, Component folder, right-click on surfaces and select Hide from the context menu.


    Figure 2.

Review the Solid Geometry

In this step you will review the solid geometry.

  1. In the Model Browser, Component folder, right-click on loose_gap and select Hide from the context menu.
  2. Right-click on the block component and select Show from the context menu.
  3. From the graphics area, review the model to see the features.


    Figure 3.
  4. Right-click on the block component and select Hide from the context menu.

Create a Loose Shell Shrink Wrap in Loose Component

In this step you will create a loose shell shrink wrap mesh in the loose component.

  1. In the Model Browser, Component folder, right-click on loose and select Make Current from the context menu.
  2. Click comps >> block. Deselect any other components if necessary.
  3. Click select.
  4. In the element size= field, type 10.
  5. Click mesh.
    HyperMesh generates the shrink wrap.


    Figure 4.
  6. Reject the mesh by clicking reject.
  7. In the element size= field, type 5.
  8. Click mesh.
    HyperMesh generates the shrink wrap.


    Figure 5.
  9. Reject the mesh by clicking reject.
  10. In the element size= field, type 3.
  11. Click mesh.
    HyperMesh generates the shrink wrap.


    Figure 6.

Create a Tight Shell Shrink Wrap

In this step you will create a tight shell shrink wrap in the tight_shell component.

  1. In the Model Browser, Component folder, right-click on loose and select Hide from the context menu.
  2. Right-click on the tight_shell component and select Make Current from the context menu.
  3. Switch the loose wrap toggle to tight wrap.
  4. Click comps >> block. Deselect any other components if necessary.
  5. Click select.
  6. In the element size= field, type 3.
  7. Click mesh.
    HyperMesh generates the shrink wrap.
    Note: The tight mesh conforms much more closely to the model's geometry than the loose mesh did, even at the same element size.


    Figure 7.

Create a Tight Solid Shrink Wrap

In this step you will create a tight solid shrink wrap in the tight_solid component.

  1. In the Model Browser, Component folder, right-click on tight_shell and select Hide from the context menu.
  2. Right-click on the tight_solid component and select Make Current from the context menu.
  3. Select the generate solid mesh checkbox.
  4. Click comps >> block. Deselect any other components if necessary
  5. Click select.
  6. In the minimum jacobian= field, type 1.
  7. Click mesh.
    The resulting mesh is very blocky due to the high jacobian value.


    Figure 8.
  8. Reject the mesh by clicking reject.
  9. In the minimum jacobian= field, type 0.7.
  10. Click mesh. The shrink wrap is generated.
    Note: This mesh is smoother than it was when the minimum jacobian was set at 1.0.


    Figure 9.
  11. Open the Mask panel by pressing F5.
  12. Set the entity selector to elems.
  13. Select a group of elements by pressing Shift while left-clicking to draw a box.
  14. Click mask. The elements are masked.
  15. Rotate the model to verify that the mesh generation was a solid mesh, with 3D elements throughout the model.


    Figure 10.

Change the Optimized Mesh

In this optional step you will change the minimum jacobian to 0.3 for optimized mesh.

You should still be in the mask panel.

  1. Click unmask all.
  2. Open the Delete panel by pressing F2.
  3. Click elems >> displayed.
  4. Click delete entity.
  5. Open the Shrink Wrap panel.
  6. Click comps >> block. Delete other components if necessary.
  7. Click select.
  8. In the minimum jacobian field, type 0.3.
  9. Click mesh. The shrink wrap is generated.
    Note: This mesh is smoother than it was when the minimum jacobian had higher values.