-
-
Notifications
You must be signed in to change notification settings - Fork 62
Command line utilities
The available commands for sids are:
Easy conversion tool for manipulation of geometries.
It reads various file formats which can be read and, some written again.
By default sgeom
takes two arguments, the first is the geometry
to be processed, the second is the output geometry.
sgeom
can also be used via Unix pipes in which case the output has
to be directly specified on the command-line. Hence
sgeom in.fdf out.fdf
sgeom in.fdf | sgeom -o out.fdf
are equivalent commands.
There are many possible ways to alter the geometries read by sgeom
. To
see all available modes, use this command
sgeom --help
Several common functionalities are existing in sgeom
-
Translate atoms to the origin (
sgeom -O|--origin
) -
Translate to specific center (
sgeom -co|--center-of opt
)- Unit cell center (
opt=cell
) - Atomic mass center (
opt=mass
) - Coordinate center (
opt=position|xyz
)
- Unit cell center (
-
Translate coordinates into the unit cell (
sgeom -uc|--unit-cell opt
)- Retain relative coordinates (
opt=translate|tr|t
) - Only shift those coordinates outside the unit cell (
opt=mod
)
- Retain relative coordinates (
-
Rotate geometry (
-R|--rotate angle dir
)Where
angle
is an angle in degrees, suffixing withr
for radians.dir
is the direction ofx
,y
orz
direction. -
Repeating the geometry in blocks (
-t|--tile tile dir
)Where
tile
is an integer larger than 0 anddir
is either of thex
,y
orz
direction. -
Repeating the geometry in sequence, (
-r|--repeat repeat dir
) which roughly is the same as--tile
, however, the sequence is first repeating the first atom, then the second, etc.
The currently accepted file formats are files with these endings:
-
xyz, standard coordinate format
NOTE that sids uses the comment field in the xyz file to store the unit-cell. Hence, unit-cell sizes are preserved in *xyz files read/generated by sids.
-
gout, reads geometries from GULP output
NOTE that sids currently does not implement writing GULP input files.
-
*nc, reads/writes NetCDF4 files created by SIESTA.
-
TBT.nc/PHT.nc, reads NetCDF4 files created by TBtrans/PHtrans.
-
tb, intrinsic file format for geometry/tight-binding models in pure ASCII format.
-
fdf, SIESTA native input file format.
-
XV, SIESTA native coordinate format for MD re-runs.
-
POSCAR/CONTCAR, VASP coordinate format.
NOTE the current implementation does not contain atomic species, i.e. the returned geometry is made of Hydrogen atoms.