AutoMesh class enables you to
automatically create the volume mesh using different volume meshing algorithms. This class
generates the volume mesh for all computed volumetric regions of the mesh object.
For example, it creates mesh objects from the imported geometry. The
AutoMesh.mesh() method allows you to perform
volumetric meshing with given meshing parameters.
NOTE
The starting point for the volumetric meshing procedure is a valid surface mesh defining any number of computed volumetric regions. If overlapping meshed faces are present then the mesh method may fail due to duplicate nodes on the face. Consider if the overlapping faces are intended to be in the same part and what the expected connectivity between the faces should be. If meshing adjacent volumes with disconnected overlapping faces between the volumes it is recommended that the volumes be in different parts.Second-order tetrahedral mesh
This code shows how to initialize theAutoMeshParams class
and generate the volume mesh on meshed TopoFaces:
Prism controls for polyhedral mesh
ThePrismControl class helps you to control prism mesh generation
based on the face scope, volume scope and growth rate. You can use one or more prism controls. Each prism control
definition is applied to one or more boundary zones and affects the height distribution and number of layers of
the prism cells in the adjacent boundary layers.
This example shows how to perform these steps:
- Create the prism control and specify the boundary layer setting.
- Perform volume meshing with polyhedral elements.
- Check volume mesh quality based on cell quality measures. For more information, see Mesh diagnostics.
Prism controls for polyhedral mesh using the Lucid module
This example shows how to generate the preceding poly prism method using the Lucid module:Volume-specific mesh controls
TheVolumeControl class helps you to control volume mesh zonelets and elements.
Volume mesh zonelets include fluids, solid, and dead. Elements include tetrahedrons and polyhedrons. This class
allows you to define the scope and generate the various types of volume mesh.
This example shows how to perform these steps:
- Create volume control and set zone-specific parameters.
- Perform volume meshing with tetrahedral elements.
Thin volume mesh controls
TheThinVolumeControl class creates prisms from a source face mesh projecting to a target with the specified number of layers.
NOTE
Thin volume controls can only be applied on the meshed surfaces. Some guidelines for the thin volume mesh controls:The below example shows how to:
- Source and target face zonelets should not be the same.
- The number of prism layers to be created between source and target must be greater than zero.
- A source face zonelet cannot be a target face zonelet in a subsequent control.
- A source can only belong to two thin volume controls.
- Always choose the one with most features as the source.
- Target face zonelets cannot be adjacent to regions with cells whereas source face zonelets can.
- Sides of the new thin volume control cannot be adjacent to regions with existing cells.
- Sides of one thin volume control can only be a source to another thin volume control.
- Create a thin volume control and set source and target.
- Set the thin volume mesh parameters and perform volume meshing.
