# 2.1.16. geom_rescale

## Purpose

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.

## Usage

> geom_rescale options Geom file(s)


## Options

-g / --grid [ unchanged ]
a,b,c grid of hexahedral box
-s / --size [ unchanged ]
x,y,z size of hexahedral box
-r / --renumber [ False ]
renumber microstructure indices from 1..N

## Examples

 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.
Figure 1 presents the original geometry used in below examples.

### Grid

> 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.

### Size

> 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 (or alternatively --size 1x 1x 0.5x) halves the size of the box along the z direction as illustrated in Figure 3.

Topic revision: r11 - 06 Jul 2016, MartinDiehl

• News
14 Sep 2020
CMCn2020 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung (cancelled)
22 Aug 2020
Release of first preview version of DAMASK 3
19 Feb 2020
26 Mar 2019
DREAM.3D 6.5.119
(released 2019/03/22) comes with a DAMASK export filter
25 Mar 2019
Release of version v2.0.3
21 Jan 2019
DAMASK overview paper finally published with full citation information available
01 Dec 2018
17 Sep 2018
CMCn2018 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
22 May 2018
Release of version v2.0.2
01 Sep 2016
CMCn2016 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
25 Jul 2016
Release of version v2.0.1
08 Mar 2016
Release of version v2.0.0
22 Feb 2016
New webserver up and running
09 Feb 2016
Migrated code repository from Subversion to GitLab
17 Dec 2014
Release of revision 3813
14 May 2014
Release of revision 3108
02 Apr 2014
Release of revision 3062
16 Oct 2013
Release of revision 2689
15 Jul 2013
Release of revision 2555
15 Feb 2013
Release of revision 2174
13 Feb 2013
documentation
16 Dec 2012
rendering
23 Nov 2012
Release of revision 1955
15 Nov 2012
Release of revision 1924
01 Nov 2012
Updated sidebar
30 Oct 2012
Significant website updates and content extensions

Copyright 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