Back to main menu

Option: fix

Syntax

-fix <axis>

-fix <axis> <above|below> <d> <normal>

Description

This option allows to fix or "freeze" the X, Y and/or Z coordinates of some atoms.

The parameters for this option are the following:

The distance <d> is usually given in Å. It is also possible to give it with respect to the box dimension along <axis> 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 this option does not actually make atoms inert for Atomsk, it just "marks" them as fixed (by adding three auxiliary properties to each atom: fixx, fixy, fixz). As far as Atomsk is concerned, fixed atoms are not different from other atoms. Only when writing the output files will the fixed atoms be marked differently in formats that support it (see the list of formats). In order to restrict the options of Atomsk to only some atoms one may use the option -select.

This option can be used several times to fix atoms in several directions, or to fix different atoms (see example 2 below).

If some atoms have shells (in the sense of an ionic core-shell model), then only the core is fixed (and not the shell).

If a selection was defined (with the option -select) then only selected atoms are fixed.

Default

By default no atom is fixed.

Examples

Back to main menu