Generate Midmesh
Automatically generate a mesh at the midplane location, directly from the input geometry (components, elements, solids or surfaces), without first creating a midsurface.
The resulting output consists of 2D shell elements created with the user-provided target size, as well as 1D elements defining the topology of the mesh (vertices/edges/faces). Midmesh generation is also multithreaded to take advantage of multi-core environments.
Midmesh Generation Workflow
There are several steps involved in generating a good quality midmesh. Following the workflow shown in Figure 3 helps guarantee the best result with minimal manual effort.
- Nominal Run
- Extract the base midmesh.
- Cleanup Resulting Topology
- Use the semi-automated midmesh edit edge and edit face tools to correct the 1D topology and fix any bad/missing faces. The goal is to prepare the model for final remeshing.
- Rebuild Mesh
- Remesh to the final size and quality using the rebuild mesh functionality, and correct any remaining mesh quality issues.
- Apply Thickness
- Map the thickness from the original solid to the midmesh via the Map Thickness tool.
Create Midmesh
Midmesh generation is possible on dirty geometry, but a cleaner output can be obtained by removing duplicate or overlappinng surfaces, stitching free edges, removing logos and other small features that are not of interest, and merging any solids that should be topologically connected.
It is recommended to use the target element size as the extraction size. It is important to have a properly defined criteria file, specifically the target and minimum sizes, as these are used during the midmesh extraction. The final rebuild mesh step takes care of remeshing to the desired flow and quality. Using an extraction size smaller than the representative feature size will not necessarily give better results and will take significantly more run time.
- From the 2D page, click the Midmesh panel.
- Select the create subpanel.
-
Set the minimum size and target element
size settings in the criteria file to control the resulting
midmesh output by clicking edit criteria.
Option Action Extraction size The midmesh extraction element size. By default, this is taken as the target element size from the criteria file. This can be set smaller than the targetsize, though that is not recommended unless there are problems extracting at the target size.
Minimum size Minimum size allowed in the finalized mesh. This in combination with the ‘suppress proximity edges factor’ and 'combine non-manifold edges factor’ can ensure that the output mesh is ready for rebuild with the same criteria. Can only be modified in the Criteria File Editor. -
Define options accordingly to control the resulting midmesh output.
Option Action destination comp Select which component newly created midmeshes are placed in. ignore flat edges Do not imprint flat edges from the input geometry to the midmesh. flatten connections Align/flatten the midmesh at ribs/connections. suppress proximity edges factor The minimum size factor for removing edges within proximity. Edges closer than this factor times minimum size will be suppressed.
combine non-manifold edges factor The minimum size factor for joining non-manifold edges. Non-manifold edges closer than this factor times minimum size will be combined.
defeature openings with width < The maximum width for removal of small holes and openings.
- Click create.
Edit Midmesh
Once the midmesh is generated, there may be problem areas that need to be corrected.
-
Select the edit edge subpanel access tools which can be
used to repair 1D topology edges.
Option Action create mid-edge Create a new mid-edge, optionally using the input geometry as a guide. split by two nodes Create a new edge between two nodes. split by node-edge Create a new edge between a node and an edge, using a shortest, tangential or mixed path. delete edge Delete an edge. t-edge align Align/flatten a t-connection edge to a surface. by geom edge align Align mesh edges to input geometry lines and smooth the mesh.
-
Select the edit face subpanel to access tools which can
be used to correct issues with midmesh faces.
Option Action fill face Create a mesh within a closed 1D topology loop, attempting to keep tangency. Optionally, the 1D loop can be deleted, keeping only free and non-manifold edges. repair face Attempt to fix topological problems (holes/gaps/cracks, intersections, slivers, overlaps) in the mesh and remesh the face. detect intersections/gaps Detect intersecting element clusters and holes/gaps/cracks, and create element sets for further handling. align face Align a selection of elements to an input geometry surface.
BatchMesher Midmesh Generation Rules
Midmesh generation is also supported from within BatchMesher.