Generating the Mesh

The starting simulation contains predefined mesh operations. These operations generate appropriate meshes for the fluid and solid region.

To generate the mesh:
  1. Expand the Geometry > Operations node.


    The existing operation set performs the following tasks:
    • Generates a directed mesh for the diaphragm.
    • Generates a directed mesh for the seal.
    • Generates a polyhedral mesh with prism layers for the fluid background and fluid overset parts with mesh refinements around the area influenced by the deformation of the diaphragm.
    In this simulation, you model the contact between the diaphragm and the tessellated surface of the plunger. To improve the tessellation of the plunger surface, you define a surface remesh operation for the plunger surface.
  2. Right-click the Geometry > Operations node and select New > Mesh > Automated Mesh.
  3. In the Create Automated Mesh Operation dialog, select the Plunger part and select the Surface Remesher model.
  4. Rename Automated Mesh to Automated Mesh Plunger.
  5. Select the Operations > Automated Mesh Plunger > Default Controls > Base Size node and set Base Size to 5mm.
  6. Right-click the Operations node and select Execute All.
  7. When the mesh generation is complete, create a mesh scene.
For visualization, you can add mesh displayers that show the different regions, and surface displayers for the plunger and housing geometry.
  1. Rename Scenes > Mesh Scene 1 > Mesh 1 node to Fluid.
  2. Right-click the Scenes > Mesh Scene 1 node and select New Displayer > Mesh.
  3. Repeat step 9.
  4. Rename Mesh Scene 1 > Mesh 1 to Fluid Overset and Mesh 2 to Structure.
  5. Edit the Mesh Scene 1 node and set the following properties:
    Node Property Setting
    Fluid Surface Deactivated
    Parts Parts Regions > Fluid > Boundaries > Symmetry
    Fluid Overset
    Mesh Color Mesh Color Violet Dark
    Parts Parts Regions > Fluid Overset > Boundaries > Symmetry
    Structure
    Mesh Color Mesh Color Orange
    Parts Parts Regions > Structure > Boundaries (all boundaries)
  6. To orient the view, activate Scenes > Mesh Scene 1 and press s.
    The mesh and other geometry parts look as follows:

    The black mesh is the fluid region and the background mesh required by the fluid overset region, the purple mesh is the fluid overset region, and the orange mesh is the solid region.

  7. Save the simulation.