Back to main menu

Mode: merge

Syntax

atomsk --merge [stack <x|y|z>] [scale <x|y|z|xy|xz|yz|xyz>] <N> <file1>...<fileN> <outputfile> [<formats>] [options]

Description

This mode merges several systems into one, either by gathering atoms from different systems into the same box or by juxtaposing several systems along an axis. The results are output in the specified <outputfile> and <formats>.

The integer <N> indicates how many systems must be merged. It is mandatory, and must be followed by the corresponding number of files names <file1> to <fileN>.

The keyword "stack" is optional. It can be used to specify the Cartesian direction (x, y or z) along which the different systems are stacked. Along that given direction, the dimension of the final box is the sum of the dimensions of all stacked systems. If this keyword is omitted, then all atoms are merged into the same box as the first system of the list (i.e. in the system <file1>).

The keyword "scale" is optional. If it is used, then all systems are deformed along the given direction(s) to match the dimensions of the first system. The directions can be: 'x', 'y', 'z' (systems are deformed only to match first system along the given direction), 'xy', 'xz', 'yz' (systems are deformed along both directions), or 'xyz' (systems are deformed to match all three dimensions of the first system).

Beware that Atomsk does not "automagically" shift atomic positions, find optimal interfaces or whatsoever. It is up to you to build, for instance, one system in one half of the supercell, the other system in the other half, and then use this mode to merge them. For quickly redefining the dimensions of the final system one can use the option -rebox.

Auxiliary properties are conserved when merging systems, i.e. each atom keeps the auxiliary properties that are defined for it. If a property is defined in some files but not all of them, that property will be assigned a zero value for atoms for which it is not defined.

If you use this mode with one or several options they will be applied after the merge.

Examples

Back to main menu