Skip to content

stb-symmetry

Symmetry Analyzer · menu code 2.5 · guide: 2.5 Symmetry Analyzer

usage: stb-symmetry [-h] --file FILE --format {fdf,struct_out} [--symprec SYMPREC]
                    [--angle-tolerance ANGLE_TOLERANCE] [--no-operations]
                    [--scan-symprec] [--compare-to PATH]
                    [--compare-format {fdf,struct_out}] [--write-refined FILENAME]
                    [-o OUTPUT_DIR] [--view] [-v] [--no-intro]

Analyze crystal symmetry (space group, Wyckoff positions, symmetry operations) from a SIESTA structure file.

options:
  -h, --help            show this help message and exit
  --file FILE           Path to structure file.
  --format {fdf,struct_out}
                        Input file format:
                          fdf:        SIESTA structure input (%block LatticeVectors etc.)
                          struct_out: SIESTA post-relaxation output (.STRUCT_OUT)
  --symprec SYMPREC     Symmetry-detection tolerance in Å (default: 0.01, pymatgen's own default). Loosen further (e.g. 0.02-0.05) for a structure relaxed with a looser force tolerance -- a tighter value than the relaxation's own residual numerical noise can misdetect the true space group; use --scan-symprec to check where a given structure's symmetry call is sensitive.
  --angle-tolerance ANGLE_TOLERANCE
                        Symmetry-detection angle tolerance in degrees (default: 5.0).
  --no-operations       Skip the full symmetry-operations list in the report -- keeps just the count in the SPACE GROUP section. Useful for high-symmetry structures where the full list is long.
  --scan-symprec        Also detect symmetry at a range of tolerances (1e-05, 0.0001, 0.001, 0.01, 0.05, 0.1) and report where the space group changes -- reveals symmetry that's present but hidden by small numerical noise (e.g. from a DFT relaxation) at the --symprec you asked for. For a structure with exactly one vacuum axis, also scans the layer group; for one with all 3 axes vacuum-padded (an isolated molecule), scans the point group's own tolerance instead (both physically meaningful there, in their own report sections).
  --compare-to PATH     Also analyze a second structure file and report whether it shares the same space group -- e.g. compare a pre-relaxation .fdf against its post-relaxation .STRUCT_OUT to check whether symmetry survived. Analyzed with the same --symprec/--angle-tolerance as --file. If both structures have a detected layer group (e.g. comparing a 2D slab) or point group (e.g. comparing an isolated molecule), that's compared too.
  --compare-format {fdf,struct_out}
                        File format of --compare-to (required if --compare-to is given).
  --write-refined FILENAME
                        Also write the symmetry-refined structure (conventional cell, positions snapped to the detected symmetry) as this .fdf file inside --output-dir, with a header documenting the source file, tolerances, and which group it was refined against -- the same reduction stb-unitcell --mode refined uses. For a structure with exactly one vacuum axis, refines against the layer group instead; for one with all 3 axes vacuum-padded (an isolated molecule), symmetrizes it as a molecule instead (both physically meaningful there, unlike the 3D space group) -- skipped with an error for a wire (2 vacuum axes, no rod-group equivalent exists) or if the applicable detection failed.
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Directory to write into (the report and its references file go to the current folder) (default: current directory). Created if it doesn't exist.
  --view                Open an interactive 3D view (via ASE) of the analyzed structure -- or, if --write-refined/--compare-to is also given, both structures side by side (page through frames in ase-gui) -- after the report is written. Needs a display. Off by default.
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb-symmetry --file structure.fdf --format fdf
  stb-symmetry --file siesta.STRUCT_OUT --format struct_out --symprec 1e-4