You are on page 1of 2

Atomsk Cheat Sheet

For Atomsk version beta-0.11.2 - https://atomsk.univ-lille.fr/

Syntax Options Options (continued)


Convert a file into another file or format: Add new atom(s): Apply a random perturbation:
atomsk <input> [<options>] <output> -add-atom <species> at <x> <y> <z> -disturb <dmax >
-add-atom <species> relative <index> <x> <y> -disturb <dx > <dy > <dz >
Use a mode: <z>
atomsk --mode <parameters> -add-atom <species> near <index> Duplicate the system:
-add-atom <species> random <N> -duplicate <Nx > <Ny > <Nz >

Basic examples Add shells: Fix the coordinates of some atoms:


Convert a file: -add-shells <species|all> -fix <axis>
atomsk initial.xsf final.cfg -fix <axis> <above|below> <d> <normal>
Align first box vector along X:
Convert a file to several formats: -alignx Convert atom positions into reduced coordinates:
atomsk initial.xsf cfg vesta lammps -fractional
Re-associate shells with their matching core:
Duplicate a system: -bind-shells Apply a mirror transformation:
atomsk input.cfg -duplicate 3 3 4 final.cfg -mirror <d> <normal>
Modify cell vectors:
Create a unit cell of fcc aluminium: -cell <add|rm|set> <d> Apply options from a file:
atomsk --create fcc 4.02 Al Al.cfg <H1|H2|H3|x|y|z|xy|xz|yx|yz|zx|zy|xyz> -options <file>

Display help: Place atom of given index, or system’s center of mass, Change the crystal orientation:
atomsk --help at center of the box: -orient <hkl>x <hkl>y <hkl>z <hkl’>x <hkl’>y
-center <index|com> <hkl’>z
Find a suitable equivalent orthogonal cell:
File for option -properties Insert a crack:
-orthogonal-cell
auxiliary <property> -crack <I|II|III> <stress|strain> <Ks > <p1 >
charge <p2 > <ξ> <n> <µ> <ν>
Read properties from a file (see Files):
displacement [function] -properties <file>
elastic [Voigt] Cut the system above or below the given plane:
orientation -cut <above|below> <d> <normal>
Auto-detect box dimensions:
type -rebox
velocities Deform the system:
supercell -deform <direction> <> <ν>
Reduce cell size, preserving periodicity:
-reduce-cell [<x|y|z>]
Insert a dislocation:
File for mode --polycrystal -dislocation <p1 > <p2 > screw <ξ> <n> <b>
Remove atoms from the system:
-dislocation <p1 > <p2 >
box <Hx > <Hy > <Hz > -remove-atom <index>
<edge|edge add|edge rm> <ξ> <n> <b> <ν>
random <N> -remove-atom <species>
-dislocation <p1 > <p2 > mixed <ξ> <n> <b1 >
lattice <sc|bcc|fcc|diamond|hcp> -remove-atom select
<b2 > <b3 >
node <x> <y> <z> <α> <β> <γ>
-dislocation loop <x> <y> <z> <n> <radius>
Remove atoms that are too close to another one:
<bx > <by > <bz > <ν>
-remove-doubles <distance>
Options (continued) Options (continued) Modes
Remove one or all per-atom property: Apply simple shear strain: Average several systems:
-remove-property <property|all> -shear <n> <A> <s> atomsk --average <listfile> <outputfile>
[<formats>] [options]
Remove shells for one or all atom species: Shift atoms:
-remove-shells <species|all> -shift <τx > <τy > <τz > Create an atomic system from scratch:
-shift <above|below> <d> <normal> <τx > <τy > atomsk --create <lattice> <a0 > [<c0 >] <sp1>
Roll the system around an axis: <τz > [<sp2> <sp3>...] [orient (hkl)x (hkl)y
-roll <direction> <θ> <axis> (hkl)z ] [options] <outputfile> [<formats>]
Sort or pack atoms: atomsk --create nanotube <a0 > <m> <n> <sp1>
Rotate the system around an axis: -sort <property> <up|down|pack> [<sp2>] [options] <outputfile> [<formats>]
-rotate [com] <axis> <θ>
Apply transformations of the given space group: Read two files and write them in ddplot format:
Round-off atom coordinates or a property to the -spacegroupe <group> atomsk --ddplot <file1> <file2>
given accuracy: [<outputfile>] [options]
-round-off <property> <accuracy> Apply stress or read stress tensor from a file:
-stress <xx|yy|zz|xy|xz|yz|p> <σ> Read several files, write all systems into one:
Select atoms according to given criteria: -stress <file> atomsk --gather <listfile> <outputfile>
-select all [<formats>] [options]
-select invert Substitute atoms:
-select <species> -substitute <sp1> <sp2> Convert a list of files:
-select <index> atomsk --list <listfile> [<formats>]
-select <i1 >,<i2 >,<i3 >:<i4 >,... Swap two atoms or atom species, or Cartesian [options]
-select list <file> directions:
-select random <N> <species> -swap <id1> <id2> Generate N systems by interpolation between two
-select <above|below> <d> <dir> -swap <sp1> <sp2> files:
-select <in|out> cell -swap <x|y|z> <x|y|z> atomsk --interpolate <file1> <file2> <N>
-select <in|out> box <x> <y> <z> <x’> <y’> [<outputfile>] [formats] [options]
<z’> Apply torsion to the system:
-select <in|out> sphere <x> <y> <z> <R> -torsion <axis> <θ> Merge or stack N systems:
-select <in|out> cylinder <axis> <x1 > <x2 > atomsk --merge [x|y|z] <N> <file1>...<fileN>
<R> Change the unit of the given property: <outputfile> [<formats>] [options]
-select <in|out> cone <axis> <x> <y> <z> -unit <property> <factor>
<α> -unit <unit1> <unit2> Construct a polycrystal using Voronoı̈ tesselation:
-select <in|out> torus <axis> <x> <y> <z> atomsk --polycrystal <seed> <param file>
<R> <r> Change the box so that it appears less skewed: <outputfile> [<formats>] [options]
-select prop <property> <value1[:value2]> -unskew
-select <NNN> <species> neighbors <index> Read a file containing several systems and write each
-select grid <file> Generate random atom velocities: of them in a separate file:
-select stl [center] <file> -velocity <T> atomsk --unfold <file> [<prefix>] <formats>
-select [add|rm|intersect|xor] <any of the [options]
above> Wrap atoms into the box:
-wrap Unwrap atom coordinates:
Separate atoms that are too close to one another: atomsk --unwrap <reference> <configuration>
-separate <distance> <shift> [<outputfile>] [<formats>] [options]

You might also like