2.1.11. geom_canvas


Purpose

Changes the (three-dimensional) canvas of a spectral geometry description. Grid can be given as absolute or relative values, e.g. 16 16 16 or 2x 0.5x 32.

parent_gray

Usage

> geom_canvas options Geom file(s) 

parent_gray

Options

-g / --grid [ auto ]
a,b,c grid of hexahedral box.
-o / =--offset=[ 0 0 0 ]
a,b,c offset from old to new origin of grid
-f / --fill [ 0 ]
(background) canvas grain index. "0" selects maximum microstructure index + 1
--float
use float input
--blank
blank out (optional) input canvas content


parent_gray

Example

> geom_canvas --grid 16 12 16 --offset 0 -4 0 --fill 0 < micro.geom > micro_supported.geom

This example demonstrates the combination of cropping and the addition of a supporting layer to an existing geometry of eight (periodic) grains discretized by 16 x 16 x 8 voxels.

The original geometry (Figure 1 (a)) is taken from micro.geom. Resulting geometry (Figure 1 (b)) is output to micro_supported.geom.

Option --fill 0 assigns to the new volume an index one larger than the maximum index found in the original geom file. Here, the maximum grain count was 8, hence the new (red) volume is filled with index 9 = 8+1.

original
(a) Eight (periodic) grains discretized with 16 by 16 by 8 voxels

(b) Grain patch after cropping, offsetting, and addition of supporting layer (all in one step) now discretized with 16 by 12 by 16 voxels
Figure 1: Original grain patch and resulting patch changed in one step

This topic: Documentation > Processing > PreProcessing > GeomCanvas
Topic revision: 09 Dec 2021, FranzRoters
This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection