Crystallographic calculations

Vectors & metric tensors

Vectors

Direct space vectors or directions are denoted by square brackets, e.g., “”; reciprocal space vectors or planes, are denoted by round brackets, e.g., “”.

Metric tensors

Metric tensor is the dot product of structure vectors, it is useful for calculating vector dot products. By construction, it is a symmetric 3 x 3 tensor.

The direct space metric tensor is given by

Similarly, we can have reciprocal space metric tensors for reciprocal lattices.

Vector operations

Dot product

For two direct space vectors , dot-producting itself is

and, for two reciprocal vectors , dot-producting itself is

where and are the direct-space and reciprocal space metric tensors, respectively.

Using dot product, we can calculate:

Cross product

The cross product of two direct space vectors is a reciprocal space vector; and the dot product of two reciprocal space vectors is a direct space vector.