HM-3100: AutoMesh

The optimal starting point for creating a shell mesh for a part is to have geometry surfaces defining the part. The most efficient method for creating a mesh representing the part includes using the Automesh panel and creating a mesh directly on the part’s surfaces.

In this tutorial you will:
  • Learn how to mesh all surfaces at once, specifying different element sizes and element types
  • Practice changing the element density along surface edges
  • Practice checking element quality and changing the mesh pattern by changing the mesh algorithm
  • Learn how to preview the mesh on all the unmeshed surfaces
  • Practice changing the element type and node spacing (biasing) along surface edges
  • Learn how to remesh surfaces

This exercise uses the channel.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 and view the model file, channel.hm.

  1. Start HyperMesh Desktop.
  2. From the menu bar, click File > Open > Model.
  3. In the Open Model dialog, open the channel.hm model file.
  4. Observe the model using the different visual options available in HyperMesh, such as rotation and zooming.

Mesh Part Surfaces

In this step you will mesh part surfaces all at once using an element size of 5 and mixed element types, quads and trias.

  1. To open the AutoMesh panel, click Mesh > Create > 2D AutoMesh from the menu bar, or press F12.
  2. Go to the size and bias subpanel.
  3. Verify that the entity selector is set to surfs.
  4. Click surfs >> displayed.
  5. In the element size= field, type 5.
  6. Set the mesh type: to mixed.
  7. Set the active mesh model to interactive.
  8. Set the first toggle to elems to current comp.
  9. Click mesh.
    HyperMesh opens the density subpanel in the meshing module. The model displays a node seeding and a number on each surface edge.
    Note: The number displayed in the graphics area is the number of elements that were created along the edge.
  10. To accept the mesh as the final mesh, click return.

    At this point, you could be done using the Mesh panel to mesh the part. The mesh quality is very good. However, you will remain in the meshing module to perform the next steps, which demonstrate how to use various subpanels to interactively control the creation of the mesh.

Delete the Mesh

In this step you will delete the mesh.

  1. To open the Delete panel, click on the Collectors toolbar, or press F2.
  2. Set the entity selector to elems.
  3. Click elems >> all.
  4. Click delete entity.
  5. To go back to the AutoMesh panel, click return.

Mesh with Three Fixed Points

In this step you will mesh the surface having three fixed points interior to its surface.

You should be in the AutoMesh panel, size and bias subpanel.

  1. Leave all options in the subpanel as they are.
  2. Select the surface that has three fixed points interior to its surface as indicated in the following image.


    Figure 1.
  3. Click mesh.
    HyperMesh opens the meshing module.
  4. Preview the generated mesh.

Fit Meshed Surface to Graphics Area

In this step you will fit the surface to the graphics area.

To fit the surface to the graphics area, click f or click local view >> fill in the density subpanel.

Specify a New Element Density

In this step you will specify a new element density along surface edges.

  1. From the density subpanel, activate the adjust: edge selector.
  2. To change the element density number of the edge indicated in the following image from 24 to 48:
    • Left-click on the edge's element density number to increase it by one, or right-click on the element's density number to decrease it by one, or
    • Click and hold the mouse pointer on the edge's element density number and drag your mouse up to increase the number or down to decrease the number.


      Figure 2.
  3. Click mesh.
    HyperMesh updates the preview mesh based on the change.


    Figure 3.

Specify a New Element Density along Surface Edges

In this step you will specify a new element density along surface edges.

You should still be in the density subpanel.

  1. In the elem density= field, type 10.
  2. Activate the set: edge selector.
  3. Select the element density number of the edge indicated in the following image to change its value to 10.


    Figure 4.
  4. Click mesh.
    HyperMesh updates the preview mesh based on the change.
  5. Click set all to.
    HyperMesh changes all the edge densities to 10.


    Figure 5.
  6. Click mesh.
    HyperMesh updates the preview mesh based on the change.

Adjust Element Densities

In this step you will specify a new element size to adjust element densities along surface edges.

You should still be in the density subpanel.

  1. In the elem size= field, type 7.
  2. Activate the calculate: edge selector.
  3. Select the element density number of the edge indicated in the following image to calculate it based on an element size of 7.
    HyperMesh calculates the new number to create elements as close as possible to 7.


    Figure 6.
  4. Click mesh.
    HyperMesh updates the preview mesh based on the change.


    Figure 7.
  5. Click recalc all.
    HyperMesh calculates and changes the edge densities based on an element size of 7.
  6. Click mesh.
    HyperMesh updates the preview mesh based on the change.


    Figure 8.

Change All Edge Element Densities

In this step you will change all edge element densities to reflect the initial element size of 5.

  1. In the elem size= field, type 5.
  2. Click recalc all.
  3. Click mesh.
    HyperMesh updates the preview mesh based on the change.
  4. To accept the mesh and go back to the size and bias subpanel, click return.

Preview a Mesh of the Channel Rib

In this step you will preview a mesh of the channel's rib.

You should still be in the Mesh panel, size and bias subpanel.

  1. With the entity selector active and set to surfs, select the rib surface in the middle of the part as indicated in the following image.


    Figure 9.
  2. Leave all options in the menu panel set as they are.
  3. Click mesh.
    HyperMesh opens the meshing model and generates the preview mesh.
  4. To fit the rib's surface to the graphics area, click local view >> rear.


    Figure 10.

Check the Mesh Quality

In this step you will check the quality of the rib's preview mesh.

  1. Go to the checks subpanel.
  2. To identify all of the elements that have an aspect ratio greater than 5, click aspect.
    None of the elements fail the check, and the status bar reads, "Maximum aspect ratio found is equal to 1.75".
  3. In the jacobian < field, type 0.8.
  4. To identify all of the elements that have a jacobian less than 0.8, click jacobian.
    HyperMesh identifies several elements that fail the check and outlines them in red. The status bar reads, "Minimum jacobian found is equal to 0.75."


    Figure 11.
  5. Verify that none of the elements have a jacobian less than 0.7.
  6. Under quads, type 45 in the min. angle < field.
  7. Click min angle. The minimum interior angle found among all the quad elements is 46.46.
  8. Under quads, type 135 in the max. angle > field.
  9. Click max angle. The maximum interior angle found among the quad elements is 136.58.

Change the Rib Mesh Pattern

In this step you will change the rib's mesh pattern by changing the mesh method used for its surface.

  1. Go to the mesh style subpanel. The edge's element density numbers have disappeared, and there is now a small icon interior to the rib's surface. This icon indicates that HyperMesh is currently using the free (unmapped) mesh method to mesh the surface.


    Figure 12.
  2. Under mesh method, use the switch to select map as rectangle.
  3. Under mesh method, click set all.
    The icon changes to reflect the new mesh method.
  4. Click mesh.
    HyperMesh updates the preview mesh based on the change.


    Figure 13.

Check Rib Preview Mesh Quality

In this step you will check the quality of the rib's preview mesh again.

  1. Go to the checks subpanel.
  2. Check for elements having an aspect ratio greater than 5. What is the highest value reported?
  3. Check for elements having a jacobian less than 0.7. What is the lowest value reported? In this case, the free (unmapped) mesh has a better jacobian than the map as rectangle mesh.
  4. Check for quad elements having a min angle less than 45. What is the smallest value reported?
  5. Check for quad elements having a max angle greater than 135. What is the highest value reported?

Change the Mesh Method to Free (Unmapped)

In this step you will change the rib's mesh method back to free (unmapped).

  1. Go the mesh style subpanel.
  2. Under mesh method, use the switch to select free (unmapped).
  3. Under mesh method, click set all.
  4. Click mesh.
    HyperMesh updates the preview mesh based on the change.
  5. To accept the mesh as final and go back to the Mesh panel, click return.

Preview Displayed Unmeshed Surfaces

In this step you will preview a mesh of all displayed, unmeshed surfaces.

You should still be in the Mesh panel, size and bias subpanel.

  1. On the Standard toolbar, click .
  2. Accept all default values.
  3. Click failed.
    The status bar reads, "There are no surfaces with meshing errors."
    Note: This is correct. All surfaces you selected to mesh so far have a mesh on them.
  4. To identify and select all displayed, unmeshed surfaces, click unmeshed.
  5. Click mesh.
    HyperMesh opens the meshing module and generates the preview mesh.


    Figure 14.

Change the Element Type to Trias

In this step you will change the element type for some surfaces to trias.

  1. Go to the mesh style subpanel.
  2. Under elem type, click toggle surf.
    HyperMesh displays interior to each surface, which indicates that the mixed element type (quads and trias) is currently being used to mesh the surface.
  3. Under elem type, use the switch to change the mesh type to trias.
  4. Under elem type, activate the set surf selector.
  5. On the two surfaces indicated in the following image, left-click on to set their element type to trias ( ).


    Figure 15.
  6. Click mesh.
    HyperMesh updates the preview mesh based on the change.


    Figure 16.

Adjust Node Spacing

In this step you will adjust the node spacing on surface edge (biasing).

  1. Go to the biasing subpanel. The bias intensity number on each surface edge is 0.000, which is the default number.
  2. Leave the bias style set to linear.
    Note: This style corresponds to the positive slope of a straight line over the interval [0,1] of the real line. For a positive bias intensity, smaller elements are at the start of the edge.
  3. Verify that the adjust: edge selector is active.
  4. To change the biasing intensity number of the edge indicated in the following image from 0.0 to 3.0:
    • Left-click on the edge’s biasing intensity number to increase it by 0.1, or right-click on the edge's biasing intensity number to decrease it by 0.1, or
    • Click and hold the mouse pointer on the edge’s biasing intensity number and drag your mouse up to increase the number or down to decrease the number.


      Figure 17.
  5. Click mesh.
    HyperMesh updates the preview mesh based on the change.


    Figure 18.
  6. In the intensity= field, type 10.
  7. Activate the calculate: edge selector.
  8. Click the same edge's biasing intensity number to change it to 10.
  9. Click mesh.
    HyperMesh updates the preview mesh based on the change.
  10. Set the bias style to bellcurve. This bias style distributes nodes along the edge in a pattern that is symmetric across the midpoint of the edge.
    Note: For a positive biasing intensity, the smaller elements are at the start and end of the edge.
  11. Activate the set: edge selector.
  12. On the same edge, click to change it from the linear bias style to the bellcurve () bias style.
  13. Click mesh.
    HyperMesh updates the preview mesh based on the change.
  14. To accept the final mesh and go back to the Mesh panel, click return.

Remesh the Bottom Two Surfaces

In this step you will remesh the channel's bottom two surfaces.

You should still be in the Mesh panel, size and bias subpanel.

  1. Switch the mesh mode from interactive to automatic.
    Note: This mode is not interactive, therefore it does not take you to the meshing module. Rather, it meshes surfaces using only the basic parameters of the AutoMesh panel. Use Interactive mode to remesh the surfaces if you require the different options to control the created mesh.
  2. Verify that the entity selector is active and set to surfs.
  3. Select the two surfaces as indicated in the following image.


    Figure 19.
  4. In the element size= field, type 10.
  5. Click mesh.
    HyperMesh deletes the existing mesh on the selected surfaces and creates a new mesh.
  6. Observe the resulting quad mesh on the remeshed surfaces.
    Note: Connectivity was maintained with the surrounding, smaller mesh. This is because the break connectivity option was not used.
  7. To exit the panel, click return.

Save Your Work

In this step you will save your work.

This step is optional.

Optional: From the menu bar, click File > Save > Model.