Back to main menu

Option: shift

Syntax

-shift <τX> <τY> <τZ>

-shift <above|below> <d> <normal> <τX> <τY> <τZ>

Description

This option allows to shift all or part of the system by a vector τ.

If only the (Cartesian) components of the shift vector τ are given, then all atoms are shifted (or selected atoms, see below).

Otherwise, all atoms that are above (or below) the given plane are shifted by the specified vector. The command-line parameters of importance are:

The distance <d> and the vector components τX, τY, τZ, are usually given in Å. It is also possible to give them with respect to the box dimensions with the keyword BOX and an operation (see this page).

The <normal> can be one of 'x', 'y', 'z' (referring to cartesian axes), or a crystallographic direction defined by its Miller indices [hkl], or [hkil] for hexagonal systems (see how to specify Miller indices). If the crystallographic orientation of the system is defined (e.g. through the option -properties) then the Miller indices are considered with respect to that orientation. Otherwise the orientation assumed is X=[100], Y=[010], Z=[001].

Note that after being shifted, some atoms may end up out of the box. If you want to wrap these atoms back into the simulation cell you may consider using the option -wrap.

If some atoms have shells (in the sense of an ionic core-shell model), then both core and shells are shifted by the same vector.

If a selection was defined (with the option -select) then the translation is applied only to selected atoms.

Default

By default no shift is applied.

Examples

Back to main menu