Académique Documents
Professionnel Documents
Culture Documents
For this tutorial, it is recommended that you complete the introductory tutorial, Getting Started with
HyperMesh - HM-1000. Familiarity with the geom cleanup, automesh, and check elems panels is also
useful, although not required.
Whether they are required for a specific type of application, or simply utilized because it is not possible to
easily generate hexahedral elements, tetrahedral elements are often used to model solid parts.
HyperMesh provides an automatic (standard) tetramesher that fills a volume enclosed by shell elements
with tetrahedral elements. In this process, the quality of the resulting tetrahedral mesh is directly
dependent on the quality of the surface mesh with which it starts. While HyperMesh also provides a
tetramesher capable of filling a volume defined by surfaces alone, this volume tetramesher is not
discussed in this tutorial.
In this tutorial, you will learn about the pre-requisites of the standard tetramesher, as well as work through
the process of creating a shell mesh that meets the requirements for generating a quality tetramesh.
In this tutorial, load a file containing the model geometry. Using the geometry cleanup tools, suppress
some of the shared surface edges to eliminate slender surfaces, problematic shapes, and small surface
edges. Use the interactive mode of the automesher to generate a surface mesh of tria elements, then
use the element checks to identify any problem areas. Problem areas can be corrected using
element-editing tools. Finally, once a quality, continuous surface mesh is achieved, generate the
tetrahedral elements using the standard tetramesher.
For detailed information on the panels used in this tutorial, please refer to the Panels section of the
on-line help, or click the help button while in the panel to bring up its context sensitive help.
This tutorial requires about 40 minutes to complete and uses a file located in the
<install_directory>/tutorials/hm directory. If you are unable to locate this directory at your
site, see Finding the Installation Directory <install_directory>, or contact your systems administrator.
Model geometry
• The difference in size between adjacent elements and elements across a wall is minimal.
Given these considerations, most of the time spent tetrameshing a part using the standard tetramesher is
spent on geometry cleanup and creating a quality 2-D mesh. The general tetramesh process can be
summarized in the following steps:
• Perform any editing on the shell mesh for quality improvement (as needed).
• Delete the shell elements, and check the quality of the tetra mesh.
This is the process and the pre-requisites we will follow in this tutorial.
In this section, retrieve the geometry for the part to tetramesh. Then determine the element size to use
for the shell mesh based on the geometry. While at least two layers of elements are required across the
thinnest walls, too small of an element size may generate too many unneeded elements.
2. From the Disp page of the macro menu, set Vis opts: 3 to shade the surfaces in the model.
The model is a symmetric part of a solid bracket for which a hexa mesh would be very difficult to
create.
3. Use the view panel from the permanent menu to restore View1.
4. Use the length panel to measure the length of the various edges defining these areas.
- With the lines selector active, pick one of the edges from the graphics area (see figure below).
- Click length.
- Click reset under lines, and repeat the above steps for any other edge to measure.
Edges to measure
Most of these edges are between 5 and 10 units long. These would probably require an element
size of around 5 units. While this would allow us to achieve the goal of two layers of elements in
these areas, it would produce too refined a mesh in the rest of the model, and produce more
elements than necessary. An increased number of trias would produce more tetras, and increase
the number of degrees of freedom of the model, requiring more computation time.
For this model, we will use an element size of 10 units. With this size, we will simply make sure to
manually increase the density of elements where needed, while still avoiding too great of a size
difference between neighboring elements.
5. From the global panel on the permanent menu, set element size = to 10.0.
In this section, we loaded the geometry to tetramesh and chose an element size for the tria and tetra
elements to create based on the dimensions present in the geometry.
To ensure that the shell mesh we create on the surfaces encloses a volume, we can first make sure that
the surface themselves enclose a volume. This is done by cleaning up the geometry, and making sure
that there are no free (red) edges left in the model. Additionally, we may want to suppress shared (green)
edges to avoid creating elements of poor quality based on the element size we picked in the previous
section.
1. Use the geom cleanup panel to equivalence free edges into shared edges.
- Click equivalence.
Notice how some free (red) edges turn green (shared) while others remain red. This is because
of the tolerance (maximum distance between neighboring free edges to be equivalenced) we set.
- Repeat the steps above with a tolerance of 0.1.
Note For more information on the display of surface edges in HyperMesh and geometry
cleanup, click the help button and review the on-line help for the geom cleanup panel
as well as the HyperMesh Geometry Terminology topic.
The next step is to identify and suppress shared edges, which separate surfaces with a continuous
curvature. This is often subjective as the angle between the surfaces defines how continuous the
curvature is, and whether the edge should be suppressed or not. In general, edges capturing an
angle of up to 30 degrees between surfaces can be suppressed.
2. Use the toggle function to toggle shared edges (green) into suppressed edges (blue).
- With the line selector active, pick in the graphics region any shared (green) edge you want to
suppress (see figures below).
Note While suppressing some edges creates larger and more logical areas, it is often just as
desirable to limit the size of some areas so as to conserve additional control on the resulting
mesh.
The next step is to suppress any shared edges that would produce elements of poor quality. When
meshing surfaces, HyperMesh forces nodes on all shared and free surface edges, and also at all
fixed point locations. When shared edges define areas with dimensions close to the element size,
this creates the potential for elements of poor quality.
4. Use the toggle function to suppress additional shared edges (see image below).
5. From the Disp page of the macro menu, set Vis opts: 0 and Gfx: Per.
9. In the automesh secondary menu, click abort to return out of the menu without accepting a mesh.
10. Use the cleanup sub-panel of the automesh panel to toggle any shared edge identified from the
- Toggle shared edges from the views View3 and View4 (see figures below).
Suppressed edges
Notes In the figure above, you can see that one of the densities of 1 was the result of fixed points
distant by less than the element size. This is another common cause for distorted elements.
While one approach consists in removing unneeded fixed points, it is not possible to do this
here are both these fixed points are required by the edges they belong to. To remove the
fixed points, we would need to suppress the edges they belong to first and this is not
desirable here.
While cleaning up the geometry helps avoid some of the poor quality elements, it is not
desirable to spend extensive time trying to fix the geometry. One alternative is to simply fix
bad elements once they have been generated. While for some situations it is easier to
clean-up the geometry, for others, it is better to fix elements after the fact.
In this section, generate the tria mesh on the surfaces using the automesh panel. Use various tools from
the automesh secondary panel to create a tria mesh of a quality that meets the following requirements:
• At least two tria elements are created across the smallest surfaces.
1. Fit the model to the screen using the f key on your keyboard.
2. Use the automesh panel to generate the tria mesh according to the requirements.
- Verify the box for reset meshing parameters to: is checked, elem size = is set to 10 and the
type of element is trias.
- Set the middle lower toggle to elements to current comp to send the elements to the trias
component.
- Click mesh to enter the automesh secondary panel, and click mesh to preview the mesh.
Note If you have difficulties performing any of the steps described, click help to review the
on-line help for this panel.
- Use the density sub-panel to adjust edge to 2 elements for these four features.
- With set surf active, click the center icon for the three sliver surfaces until it changes to a right
angle tria.
- Click mesh to preview the changes to the mesh on these three surfaces.
Hint From the automesh panel, create mesh sub-panel, select the link edge densities
option to ensure that opposite edges of surfaces have the same densities when they are
comparable in length.
Using this option would have saved us from having to manually change the densities in
this case.
- Use the type sub-panel to set the type of elements on this surface to R-trias.
- When you are satisfied with the mesh, click return to accept it.
In this section, we used the automesh panel and several of its options to obtain the mesh that would
meet both of our requirements.
In the previous sections, we cleaned up the geometry as much as possible to avoid creating poor quality
elements. Now that the tria mesh has been created, we need to perform a battery of quality checks to
make sure it suitable to generate tetra elements.
In this section, use the check elems panel to check for duplicates and review the quality of the 2-D mesh
against the following quality criteria:
• Min length: 3
• Aspect: 5
- Click duplicates.
Note Should you find duplicates in your mesh, use the save failed option to save these
elements to a user mark. Then, select elements and use the retrieve extended entity
selection option to select these elements in the delete panel and delete them.
2. Use the check elems panel to evaluate the mesh against the quality criteria listed earlier.
- In the check elems panel, 2-d sub-panel, set the values for aspect, length and trias: min angle.
- Click aspect.
The header bar reports how many elements fail this check, what percentage of the elements it is,
and what is the maximum aspect ratio found. The elements failing the check are highlighted in
the graphics area.
- Click length.
The header bar reports again how the mesh fares against this check.
3. Check the elements against the length check and place them in a user mark.
- Click mask.
5. Use the Disp page of the macro menu and select Geom: Off to turn off the geometry.
7. Use the Find Attached macro from the QA page of the macro menu to turn back on one layer of
8. Return to the check elems panel and click length again to highlight the failing elements.
Elements may fail in various areas of the model. Here is one example in the figure below:
In most cases, to resolve this issue, you can delete these elements and close the gaps by
equivalencing the nodes across the gap with the replace panel.
9. Use F2 to go to the delete panel and delete the elements failing the length check (see figure above).
- With the node selector next to replace: active, select the node to move.
- With the node selector next to with: active, select the node to replace it with.
11. Repeat steps 9 and 10 until all elements failing the length check have been resolved.
13. Use the check elems panel (F10) to verify that no more elements fail the length check.
14. Use the check elems panel to check for elements failing the aspect check.
In many cases, elements that fail the length check will also fail the aspect check and vice versa. If
you have elements failing the aspect ratio, use the same technique to delete them and close open
gaps.
15. Use the check elems panel to check for elements failing the min angle check.
At this point, there should be very few elements failing this check with a minimum angle found close
to 20 degrees. We will accept these elements as they are.
Hints To check the actual values for an element for the various quality checks, simply click on
the element in the check elems panel. A dialog is displayed and disappears the next
time you do a left mouse click. If the element is close to the requirements, it is often
better to accept it as it is.
To resolve issues with elements failing the min angle check, use the same technique as
Notes It may not always be possible to apply either technique and sometimes you need to leave
some elements as they are. It is all a function of what the minimum angle is.
In general, when all other quality requirements are met, the tetramesher succeeds in
generating tetra elements when the min angle is above 20 degrees. The rate of success
is good with a min angle between 10 and 20 degrees. With a min angle of less than 10
degrees, it will sometimes fail. With a min angle less than 5 degrees, there is a good
chance it will fail.
In this section we checked the quality of our tria mesh and used some element editing tools to ensure
that the elements would satisfy some quality criteria.
The next step in the process is to make sure that the elements enclose a volume (no discontinuities in
the mesh representing a volume), and that the elements, in our example, form only one volume.
In this section, use the edges panel to check for free edges in the model as well as T-connections. While
free edges are edges that are not shared between elements and therefore are an indication that the
mesh is discontinuous, T-connections are edges that are shared by more than two elements. When
T-connections exist, it means that multiple volumes may be present.
- With the entity selector set to comps, pick any tria elements from the graphics region.
The element highlights briefly to signify the component has been selected.
2. Use the disp panel from the permanent menu to turn off all elements except the ones in the ^edges
component.
3. Use the Find Attached macro several times to display elements in this region and understand the
situation.
4. Use the Geom: On and Vis opts: 0 options from the Disp page of the macro menu to turn back on
the geometry in the default mode.
- With the entity selector set to comps, pick any tria elements from the graphics region.
Notes In general, free edges are a sign of discontinuity in the mesh, which is resolved by
performing an equivalence function on the edges panel. For more details on this
procedure, click help to bring up the edges panel on-line help.
Unless there is a clear need for T-connected elements (as is the case when you check a
mesh that defines multiple volumes), this situation is typically resolved by deleting the
unwanted elements.
- With the type of entity set to elems, pick one of the elements to delete in the graphics window.
8. From the edges panel, check for free edges and T-connections.
The header bar should now tell you that No edges were found. Selected elements may enclose a
volume and No T-connected edges were found.
The model is now ready for tetramesh generation.
The tetramesh panel from the 3D page contains several sub-panels. Refer to the on-line help for detailed
information on these functions. In this section, use the tetra mesh sub-panel to generate a mesh of tetra
elements in the volume we defined using tria elements. Then check the quality of the tetra elements
against the tetra collapse tet collapse, tetra aspect ratio tetra AR, and volume skew vol skew checks.
1. Use the global panel to set the current component collector to tetras.
This component collector was pre-defined to store the tetra elements.
2. Use the tetra mesh sub-panel of the tetramesh panel to generate the tetras.
- With the comps selector under floatable trias/quads: active, select one of the tria elements
from the graphics region.
- Set the options to generate mesh normally and standard using the corresponding switches.
- Click tetmesh.
Notes When defining the trias/quads as floatable, you allow HyperMesh to create underlying
tetras for which the outer faces do not line up with the trias, although using the same
nodes. With the fixed option, the faces of the underlying tetra are forced to match the tria
elements. This leaves less flexibility to create higher quality tetras but is useful when
trying to match tetra meshes between multiple volume.
Several options are available for the creation of the tetras. Refer to the on-line help for a
complete description.
3. Use the disp panel to turn off the display of the trias and the geometry.
4. Use the mask panel to temporarily mask, by window, some of the elements and review the inside of
the model.
5. Delete the components that are no longer needed: trias and lvl2.
6. Use the check elems panel to check the quality of the tetramesh.
Note For a definition of these checks, see the on-line help for the check elems panel.
Overall, the mesh is of good quality as only a marginal number of elements failed our checks. These
elements could be isolated using the same approach that was used with the tria elements (save failed,
mask panel, Find Attached macro).
In order to improve the quality of tetra elements, you can either remesh clusters of elements using the
remesh sub-panel of the tetramesh panel, or go back to the tria mesh and improve its quality to obtain
better tetra elements.
This concludes this tutorial. You may discard this model, or save it to your working directory for your own
reference.
In this tutorial, the tetrameshing process was presented and followed for a bracket. We experimented
with ways to correct the geometry, create a quality pattern mesh, and correct poor quality elements. We
checked for free edges and T-connections to complete the pre-requisites and we created the tetra mesh.
For more details on the tetramesh panel, refer to the tutorials Generating 3-D Tetrahedral Elements -
HM-3210 and Tetrameshing a Volume in a Single Step - HM-3230. If you want to learn more about
geometry cleanup, refer to Fixing Geometry for Meshing - HM-2020. If you more information regarding
checking and improving the quality of 2-D elements, refer to the tutorials Measuring and Improving 2-D
Mesh Quality using a Quality Index - HM-3320 and Troubleshooting 2-D Mesh Quality Issues Manually -
HM-3330.