Offset microstructure index for points which see a microstructure different from themselves within a given (cubic) vicinity, i.e. within the region close to a grain/phase boundary.
> geom_vicinityOffset [options] [geomfile(s)]
--vicinity [ 1 ]
- voxel distance checked for presence of other microstructure
--microstructureoffset [ 0 ]
- offset (positive or negative) for tagged microstructure indices. "0" selects maximum microstructure index
> geom_vicinityOffset --vicinity 1 < plainGrains.geom > withSkin.geom
All voxels within a vicinity of one grid spacing get their microstructure index shifted by the maximum index present in the dataset (here 10).
(a) Initial geometry with 10 grains discretized by 48 x 48 x 48 voxels.
(b) Geometry after offsetting all microstructure indices in a vicinity of 1 grid spacing next to the grain boundaries by a value of 10.
| Figure 1: Original grain patch and resulting patch with marked voxels|