Skip to content

stb-eosInputs

Stage 1 - Prep of the 5.15 Equation of State workflow · menu code 5.15.1

usage: stb-eosInputs [-h] -f FILE [-c FDF] [-p PSEUDO_DIR] [--n-volumes N_VOLUMES]
                     [--strain-range STRAIN_RANGE] [--relax-positions]
                     [--relax-steps RELAX_STEPS] [--kgrid NX NY NZ]
                     [--kgrid-density D] [-o OUTPUT_DIR] [--vacuum-gap VACUUM_GAP]
                     [-v] [--no-intro]

Stage 1 of 2 (equation of state): writes one SIESTA folder per scanned volume. Takes an ALREADY-RELAXED structure (--file, fractional coordinates) and your calc.fdf template (--calc, default ./calc.fdf), and writes '<output-dir>/vol_<pct>/' with the cell scaled isotropically (volume strain from -strain-range to +strain-range), your template untouched except for a '%include config_extra.fdf' at its top, the config_extra.fdf sidecar with the forced directives (fixed cell, single point -- or ionic relaxation with --relax-positions --, and the SCF k-grid when the template defines none or you ask for one) and the pseudopotentials (-p). Also writes eos_scan.json (the plan, read by stb-eosAnalysis). Does not run SIESTA: run each folder, then use stb-eosAnalysis.

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Input structure (.fdf), already relaxed. Atomic coordinates must be in fractional format (same requirement as stb-strain). It is written, scaled, under the same name into every folder, and your calc.fdf must %include it.
  -c FDF, --calc FDF    SIESTA input template (default: calc.fdf). Copied into every folder with '%include config_extra.fdf' prepended; not edited otherwise. If it does not exist and -c was not given, only the scaled structures are written (the earlier behavior). If it is the same file as --file (a self-contained input), the scaled copy of it is the run input.
  -p PSEUDO_DIR, --pseudo-dir PSEUDO_DIR
                        Pseudopotential source: a bundled bank (dojo, virtual_vault) or a folder. The .psml/.psf of each species is copied into every folder.
  --n-volumes N_VOLUMES
                        Number of volumes to scan (default: 9). At least 5 for the 4-parameter fit of stb-eosAnalysis; an odd number includes the input volume itself.
  --strain-range STRAIN_RANGE
                        Max isotropic volume strain, % (default: 5.0), spanning [-strain-range, +strain-range].
  --relax-positions     Let the ions relax at every volume (cell fixed): needed for crystals with free internal coordinates. Default: single point (positions as given).
  --relax-steps RELAX_STEPS
                        Max CG steps per volume with --relax-positions (default: 100).
  --kgrid NX NY NZ      Force this SCF k-grid in every folder (config_extra.fdf), over the template's.
  --kgrid-density D     Force an SCF k-grid of this density, 1/Ang (as stb-kgrid), over the template's. Without --kgrid/--kgrid-density the template's own grid is kept; if it has none, one of density 0.2 is forced (SIESTA would sample Gamma only).
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Directory for the 'vol_<pct>' folders (default: eos_runs).
  --vacuum-gap VACUUM_GAP
                        Gap (Ang) used to detect vacuum-padded axes (default: 10.0). With vacuum along one axis (2D material, slab) only the two periodic vectors are scaled and --strain-range is an AREA strain; with vacuum along two (wire), only the periodic one and it is a LENGTH strain. A molecule (three) is rejected.
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb-eosInputs --file structure.fdf -p dojo
  stb-eosInputs --file structure.fdf --calc calc.fdf --n-volumes 11 --strain-range 8.0 -p dojo
  stb-eosInputs --file structure.fdf --kgrid-density 0.15 --relax-positions -o eos_runs