Customize the Mesh

Customize the predefined mesh and inspect its quality.

A finite element model (FEM) is a representation of a product (1D, 2D, or 3D) using one or more meshes. These meshes are composed of many finite elements that can have different shapes and sizes. Some elements are better suited than others for representing a product's geometry.

When you create a mesh using a physics simulation app, the app provides default values for the various characteristics of the mesh elements. These values are based on the dimensions of the fluid domain's geometry, and they aim to balance the desired accuracy of the results against the time it takes to run the simulation. If desired, you can change these values. Typically, a smaller element size yields more accurate results but increases the simulation's run time.

After you generate the mesh of the fluid domain, you can use a quality analysis tool to inspect the quality of your mesh. Based on your inspection, you can change the mesh specifications to update the existing mesh or create multiple meshes for use in the simulation.

In this example, you are provided with a predefined mesh. You coarsen the mesh to reduce the time it takes to run the simulation. You then use a quality analysis tool to inspect the quality of the mesh.

  1. In the Physics Manager , click Model , and double-click the Hex Mesh.1 row.
    The Hex-Dominant Mesh dialog box appears.
  2. Enter a maximum size of 15 mm and a minimum size of 5 mm.
  3. Enter 30 deg for the Maximum angle between faces.
  4. Clear Add boundary layers.

    While boundary layers increase the mesh density near the surface, you remove them in this example to reduce the simulation's run time.

  5. Click Mesh, and then click OK.


  6. Close the Physics Manager.
  7. Optional: Inspect the mesh element count and quality.
    1. From the Check section of the action bar, click Quality Analysis .
    2. In the Connectivity tab, review the quantities for the Total number of nodes and Total number of elements.
    3. In the Quality tab, review the percentage of elements that meet the specified quality criteria.

      A high-quality mesh ensures a precise representation of the source geometry and improved accuracy of the simulation results.

    4. Click OK.
  8. Save your work.