Crystal Orientation as Coordinate Transformation edit page

In MTEX a crystal orientation is defined as the rotation that transforms crystal coordinates, i.e., a description of a vector or a tensor with respect to the crystal reference frame, into specimen coordinates, i.e., a desciption of the same object with respect to a specimen fixed reference frame.

In MTEX any orientation consists of two incredients. A rotation

% lets take a random one
rot = rotation.rand
rot = rotation
 
  Bunge Euler angles in degree
    phi1     Phi    phi2
  296.21 19.6259 355.474

and a description of the crystal lattice, which are represented in MTEX by variables of type crystalSymmetry

% lets take cubic crystal symmetry
cs = crystalSymmetry.load("Al-Aluminum.cif")
cs = crystalSymmetry
 
  mineral : Aluminum
  symmetry: m-3m    
  elements: 48      
  a, b, c : 4, 4, 4

Combining both incredients allows us to define an orientation

ori = orientation(rot,cs)
ori = orientation (Aluminum → xyz)
 
  Bunge Euler angles in degree
    phi1     Phi    phi2
  296.21 19.6259 355.474

As a consequence a variable of type orientation is at the same time of type rotation and hence allows for all operations that are available for rotations.

Crystal coordinates to specimen coordinates

Let us consider to following direction with respect to the crystal reference system

h = Miller(1,0,0,cs,'uvw')
h = Miller (Aluminum)
  u v w
  1 0 0

Then in a grain with orientation ori this direction h has with respect to the specimen reference system the coordinates

r = ori * h
r = vector3d

Similarly, orientations transform tensors given with respect to the crystal reference frame, e.g., the following single crystal stiffness tensor

C = stiffnessTensor(...
  [[2 1 1 0 0 0];...
  [1 2 1 0 0 0];...
  [1 1 2 0 0 0];...
  [0 0 0 1 0 0];...
  [0 0 0 0 1 0];...
  [0 0 0 0 0 1]],cs)
C = stiffnessTensor (Aluminum)
  unit: GPa              
  rank: 4 (3 x 3 x 3 x 3)
 
  tensor in Voigt matrix representation:
 2 1 1 0 0 0
 1 2 1 0 0 0
 1 1 2 0 0 0
 0 0 0 1 0 0
 0 0 0 0 1 0
 0 0 0 0 0 1

into a stiffness tensor with respect to the specimen reference frame

ori * C
ans = stiffnessTensor (xyz)
  unit: GPa              
  rank: 4 (3 x 3 x 3 x 3)
 
  tensor in Voigt matrix representation:
    2.38   0.787  0.8331 -0.0794 -0.1989 -0.1879
   0.787  2.2464  0.9666 -0.0317   -0.02  0.2611
  0.8331  0.9666  2.2003   0.111  0.2189 -0.0732
 -0.0794 -0.0317   0.111  0.9666 -0.0732   -0.02
 -0.1989   -0.02  0.2189 -0.0732  0.8331 -0.0794
 -0.1879  0.2611 -0.0732   -0.02 -0.0794   0.787

Objects that can be translated by orientations from crystal into specimen cooordinates and vice verca include

Specimen coordinates into crystal coordinates

Conversely, we can go back from specimen coordinates to crystal coordinates by multiplying with the inverse orientation

inv(ori) * r
ans = Miller (Aluminum)
        h       k       l
  16.3991       0       0

Note, that in literature orientations are often defined to transform specimen coordinates into crystal coordinates, i.e., to coincide with the inverse orientations in MTEX. The consequences of this differences are exhaustivly discussed in the topic orientation convemtions.

Specimen Rotation

Rotations of the specimen ,i.e., changing the specimen reference frame, do also change the orientation. Assume the specimen is rotated about the X-axis about 60 degree. We may define this rotation by

rot = rotation.byAxisAngle(vector3d.X,60*degree);

Then an orientation ori is updated to the rotated reference frame by

ori_new = rot * ori
ori_new = orientation (Aluminum → xyz)
 
  Bunge Euler angles in degree
     phi1     Phi    phi2
  341.292 69.9718 299.683

It should also be noted, that orientations are sensitiv with respect to the alignment of the Euclidean reference frame \(\vec X\), \(\vec Y\), \(\vec Z\) with respect to the crystal axes \(\vec a\), \(\vec b\) and \(\vec c\). This issue is discussed in more detail in the topic The crystal reference system.