This tool marks all elements in a voxel grid (i.e. a structured hex grid, for instance created with Layers2Grid or Vtu2Grid) that are intersected by a triangulated 2D mesh representing a fault or some other significant structure. The material group for those intersected elements can be explicitly specified. Otherwise the largest existing MaterialID will be increased by one and defined as MaterialID for those elements.


AddFaultToVoxelGrid  -i <string> -f <string> -o <string>
                    [-m <non-negative integer>] [--] [--version] [-h]


   -i <string>,  --input <string>
     (required)  name of the input file list containing the paths the all
     input layers in correct order from top to bottom

   -f <string>,  --fault <string>
     (required)  name of mesh representing fault (*.vtu)

   -o <string>,  --output <string>
     (required)  name of output mesh (*.vtu)

   -m <non-negative integer>,  --material <non-negative integer>
     material id for cells intersected by fault

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.


AddFaultToVoxelGrid -i grid.vtu -f fault.vtu -o grid_fault.vtu

Fig. 1 The left figure shows the input grid with the intersecting triangulated 2D mesh, which is highlighted in red. The center and right figure show the output voxel grid.

This article was written by Julian Heinze. If you are missing something or you find an error please let us know.
Generated with Hugo 0.117.0 in CI job 362666 | Last revision: July 12, 2023
Commit: [PL/SSD] Rename x_dot to x_prev 04a8fec8  | Edit this page on