Skip to content
ForCADDocumentation
Browse guide contents ↓

Mesh a multipatch volume

Generate a hexahedral mesh on a volume assembly with joined faces. A conforming mesh gives cells on opposite sides of each joined face common node IDs.

For a first assembly with known counts, build a two-patch block and refine its mesh.

Set the sizing

  1. Select the assembly under Scene → Multipatches. Choose Multipatch → Check interfaces and read the result in the status bar.
  2. Choose Mesh → Generate mesh…. If the assembly already has a mesh, the button reads Remesh….
  3. Choose a sizing method from the table below. Enable Conforming hex mesh, then choose Generate or Remesh.
  4. Select the entry under Scene → Meshes. The main status bar gives its total cell and node counts. Click the eye beside the mesh to show it if hidden.
Sizing method When to use it
Shared counts Enter the same U, V and W cell counts for every member.
Per patch Enter different counts for each member. On each joined face, match the counts along its two mapped directions. A swap in the face orientation can pair U on one member with V on the other.
Target size Enter a positive Target cell size in the displayed length unit. Enable Synchronize joined directions, then choose Preview counts to inspect the estimates per member. Preview again after changing the size.

White Rook target size 1.5 with synchronized directions, estimated cells per member and Conforming hex mesh selected

The first core patch has 8 × 8 × 1 cells and the first sector has 7 × 8 × 1. Only the corresponding directions along a join must match.

Replace an existing mesh

In the bundled Chess project, filter Scene for White Rook and select the a1 assembly. Remesh at a Target size of 1.5 with synchronized directions and conforming hexes. Then select its mesh under Meshes, open Remesh… again, and set Shared counts to 3 × 3 × 3. Enable the mesh’s eye and Mesh → Meshes only to see the new grid.

Remeshing updates the same Scene entry and keeps its name and visibility. A selected assembly or mesh stays selected. If you started from a picked cell, the updated mesh becomes the selection. Pick a cell again to inspect its new index. Undo restores the previous mesh in one step.

Inspect an interior layer or export the finished mesh as VTK.

Fortran equivalent. Size grids on connected volumes shows per-patch counts and target-size sampling. How multipatch meshes share nodes explains interface orientation and the distinction between synchronized grids and shared node IDs.