Skip to content

stb-phononsCreate

Stage 1 - Prep of the 5.4 Phonons workflow · menu code 5.4.1

usage: stb-phononsCreate [-h] [-dim DIM DIM DIM] [-d DISTANCE] [-s STRUCTURE]
                         [-c CALC] [-p PSEUDO_DIR] [--vacuum-gap VACUUM_GAP]
                         [--symprec SYMPREC] [--kgrid KGRID KGRID KGRID]
                         [--kgrid-density KGRID_DENSITY] [--ml-prerelax]
                         [--ml-model {small,medium,large}] [--ml-device {cpu,cuda}]
                         [--ml-fmax ML_FMAX] [--no-perfect-supercell] [-v]
                         [--no-intro]

Automate SIESTA phonon displacement folders with Phonopy.

options:
  -h, --help            show this help message and exit
  -dim DIM DIM DIM      Supercell dimensions (default: 2 2 2)
  -d DISTANCE, --distance DISTANCE
                        Displacement distance in Angstroms (default: 0.01)
  -s STRUCTURE, --structure STRUCTURE
                        Input structure file containing the unit cell (default: structure.fdf)
  -c CALC, --calc CALC  Input calculation parameters file (default: calc.fdf)
  -p PSEUDO_DIR, --pseudo-dir PSEUDO_DIR
                        Pseudopotentials source: a bundled bank (dojo[-sr|-fr|-sr3plus][-pbe|-pbesol|-pw][-standard|-stringent], virtual_vault) or a folder path (default: current directory).
  --vacuum-gap VACUUM_GAP
                        Minimum gap (Ang) along an axis to consider it vacuum-padded, for the supercell-dimension advisory (default: 10.0)
  --symprec SYMPREC     Symmetry-detection tolerance (Ang) Phonopy uses internally to reduce how many displacements are actually needed (default: 0.01, pymatgen's own default -- matches the rest of the suite, and deliberately NOT Phonopy's own raw default of 1e-5, which is far too tight for a real DFT-relaxed structure and can misdetect the true space group: verified live on a real relaxed AlP zincblende structure, 1e-5 reports the wrong R3m while 0.01 correctly reports F-43m). Loosen further (e.g. 0.02-0.05) for a structure relaxed with a looser force tolerance.
  --kgrid KGRID KGRID KGRID
                        Explicit Monkhorst-Pack k-grid 'X Y Z' for the SUPERCELL's own single-point SCF (e.g. --kgrid 2 2 2). Overrides the automatic --kgrid-density suggestion. Written into config_extra.fdf (see [1]) as the first directive, so it takes precedence over --calc's own k-grid, which was tuned for the smaller unit cell.
  --kgrid-density KGRID_DENSITY
                        K-point density (1/Ang) used to auto-suggest the supercell's own k-grid when --kgrid isn't given (default: 0.2, same convention as stb-kgrid/stb-strain).
  --ml-prerelax         Optional pre-flight check (opt-in): compute the residual force on the input structure with the MACE-MP-0 foundation potential, and if it's large, run a quick ML relax for reference. An unrelaxed reference structure is a common cause of spurious imaginary phonon modes. Diagnostic only -- this run still generates displacements from the original --structure file unchanged; the ML-relaxed structure is written out separately for you to review/use in a follow-up run.
  --ml-model {small,medium,large}
                        MACE-MP-0 model size for --ml-prerelax (default: medium).
  --ml-device {cpu,cuda}
                        Device for --ml-prerelax (default: cpu).
  --ml-fmax ML_FMAX     Force threshold (eV/Ang) for --ml-prerelax: above this, a warning is shown and a relax is offered (default: 0.05).
  --no-perfect-supercell
                        Do not write perfect_supercell/ (the undisplaced supercell, one more SIESTA run). It is written by default: stb-phononsPos subtracts its forces -- the reference's residual forces -- from every displacement's, which a small relaxation residual otherwise turns into errors of several THz at Gamma.
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb_phonon --structure structure.fdf --calc calc.fdf --dim 2 2 2
  stb_phonon --pseudo-dir ~/pseudos --distance 0.015