Scales a geometry description independently in x, y, and z direction in terms of grid and/or size. Either absolute values or relative factors (like "0.25x") can be used.
> geom_rescale options Geom file(s)
--grid [ unchanged ]
- a,b,c grid of hexahedral box
--size [ unchanged ]
- x,y,z size of hexahedral box
--renumber [ False ]
- renumber microstructure indices from 1..N
| Figure 1: Initial geometry of 10 grains discretized on a 48 x 48 x 48 grid with a size of 1.0 x 1.0 x 1.0.
presents the original geometry
used in below examples.
> geom_rescale --grid 12 12 12 < plainGrains.geom > quarterGrains.geom
or alternatively with factors of 1/4:
> geom_rescale --grid 0.25x 0.25x 0.25x < plainGrains.geom > quarterGrains.geom
| Figure 2:
Geometry after rescaling the grid to 12 x 12 x 12 and maintaining the size of 1.0 x 1.0 x 1.0.
This example demonstrates rescaling in order to coarsen the spatial resolution by a factor of four.
The grid is changed from an original 48 x 48 x 48 to 12 x 12 x 12 as shown in Figure 2
> geom_rescale --size 1.0 1.0 0.5 < quarterGrains.geom > squashedGrains.geom
| Figure 3:
Grid-rescaled geometry after additional rescaling of the size to 1.0 x 1.0 x 0.5 and maintaining a grid of 12 x 12 x 12.
The next example shows how to rescaling the size of a geometry without altering the grid point number.
--size 1.0 1.0 0.5
--size 1x 1x 0.5x
) halves the size of the box along the z direction as illustrated in Figure 3