2.1.18. geom_translate


Purpose

translate microstructure indices (shift or substitute) and/or geometry origin.

parent_gray

Usage

> geom_translate options file[s] 

parent_gray

Options

-o / --origin
offset from old to new origin of grid
-m / --microstructure
offset from old to new microstructure indices
-s / --substitute
substitutions of microstructure indices from,to,from,to,...
--float
use float input


parent_gray

Example

> geom_translate --origin 0.5 0.5 0 --substitute 1,-7 --microstructure 8 < micro.geom > micro_translated.geom

This example demonstrates the combination of grid origin shifting, index substitution, and the overall shift of microstructure indices for a geometry of dimension 1 x 1 x 0.5 containing 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_translated.geom.
  • Option --origin 0.5 0.5 0.0 moves the origin by this relative amount, i.e. to the x-y center of the patch.
  • Next, --substitute 1,-7 replaces all instances of microstructure index 1 with -7.
  • Lastly, --microstructure 8 adds +8 to all microstructure indices in the geometry file.

Note that any substitution always precedes the index shifting.

original
(a) Eight (periodic) grains discretized with 16 by 16 by 8 voxels
after translation
(b) Grain patch after translating the origin by 0.5, 0.5, 0.0, substituting (old) microstructure index 1 with -7, and finally shifting all indices by +8. Original microstructure index 1 (cyan) remains constant, since 1 = -7 + 8.
Figure 1: Original grain patch and resulting patch changed in one step

Topic revision: r14 - 09 Dec 2021, FranzRoters


  • 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
DAMASK made it to the Advanved Engineering Materials Hall of Fame
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
DAMASK overview paper now online
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
Doxygen documentation
16 Dec 2012
Powered by MathJax 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


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