Command reference¶
One page per console command, showing its --help text. Each links to the guide for its tool. stb-suite is the interactive menu; its page maps every menu code to a command.
1 · Inputs¶
| Command | Menu code | What it does |
|---|---|---|
stb-inputfile |
1.1 |
Script to prepare a Siesta input file (.fdf). |
stb-pseudo |
1.2 |
Resolves the pseudopotentials a structure needs and copies them into a run folder. |
stb-kgrid |
1.3 |
Compute a Monkhorst-Pack k-point grid from a SIESTA structure file (.fdf) and a target k-point density. |
stb-kpath |
1.4 |
Finds the high-symmetry k-path for a SIESTA structure file (.fdf). |
stb-dftu |
1.5 |
Generates a ready-to-use %block LDAU.proj snippet for one or more species. |
stb-fetch |
1.6 |
Fetches a structure from an online database and writes it as .fdf. |
stb-mlrelax |
1.7 |
Fast ML pre-relaxation with the MACE-MP-0 foundation potential. |
2 · Analysis¶
| Command | Menu code | What it does |
|---|---|---|
stb-bands |
2.1 |
Process the band structure data. |
stb-dos |
2.2 |
Parse a PDOS.xml file and generate Gnuplot-ready .dat files. |
stb-convdos |
2.3 |
Apply Gaussian convolution to broaden a DOS file's columns. |
stb-structural |
2.4 |
Compute ECN and structural properties from a SIESTA structure file. |
stb-symmetry |
2.5 |
Analyze crystal symmetry (space group, Wyckoff positions, symmetry operations) from a SIESTA structure file. |
stb-bader |
2.6 |
Computes Bader (AIM) atomic charges from a SIESTA charge-density grid. |
stb-workfunction |
2.7 |
Calculates the work function from a SIESTA electrostatic potential grid. |
stb-density |
2.8 |
Converts a SIESTA charge-density grid (.RHO) to 2D maps, 3D point clouds, or planar-averaged 1D profiles. |
stb-xrd |
2.9 |
Simulates a powder XRD pattern from a structure. |
stb-fatbands |
2.10 |
Orbital-projected (fatbands) band structure from .bands + .WFSX. |
stb-stm |
2.11 |
Simulate an STM image (Tersoff-Hamann approximation) from a SIESTA energy-integrated LDOS grid (<label>.LDOS). |
stb-wfdensity |
2.12 |
Real-space |psi|^2 of one chosen (k, band) eigenstate from a SIESTA .WFSX file -> Gaussian .cube. |
stb-sts |
2.13 |
Simulated STS dI/dV(E) spectroscopy curve at a fixed tip point, from a full-BZ SIESTA .WFSX. |
stb-coop |
2.14 |
Energy-resolved COOP/COHP bonding/antibonding curves for selected atom pairs, from a full-BZ SIESTA .WFSX + .HSX. |
stb-ipr |
2.15 |
Inverse Participation Ratio (IPR) scattered onto a band structure, from .bands + .WFSX. |
stb-effmass |
2.16 |
Effective mass tensor (Voigt) and band velocity for one chosen (k, band) eigenstate, from a SIESTA .WFSX + .HSX. |
stb-spintexture |
2.17 |
Spin texture (<Sx>,<Sy>,<Sz>) scattered onto a band structure, from a non-collinear/SOC SIESTA .WFSX. |
stb-aimdAnalysis |
2.18 |
Physical post-processing of an AIMD/MD trajectory -- a SIESTA AIMD run (<label>.ANI) or a generic ASE-readable trajectory (e.g. |
stb-nativecharges |
2.19 |
Read and compare the atomic charges SIESTA prints in its log -- Mulliken (WriteMullikenPop 1), Hirshfeld (Charge.Hirshfeld end) and Voronoi (Charge.Voronoi end): per … |
3 · Utils¶
| Command | Menu code | What it does |
|---|---|---|
stb-translate |
3.1 |
Structure file converter: reads one structure (or a glob of them) in one format and writes it in another, with a report of what was read and a check of what was written. |
stb-clean |
3.2 |
Clean a SIESTA calc folder to restart a fresh run: removes every file except the extensions in --keep (pseudopotentials, .fdf input, submission script by default) -- … |
stb-cube |
3.3 |
Convert a SIESTA real-space grid file (<label>.RHO, .VT, .VH, ...) to a Gaussian cube file (VESTA, VMD, XCrySDen, Multiwfn, Bader codes), with a report on the grid … |
stb-siesta2wtb |
3.4 |
Convert a SIESTA Hamiltonian (<label>.HSX, written with SaveHS true) to the tight-binding files of WanTiBEXOS: tb-<NP|SP|SOC>.ham (Fermi level, lattice, then every H and … |
stb-ani2traj |
3.5 |
Convert a SIESTA AIMD trajectory (<label>.ANI) into a multi-frame trajectory that also carries the lattice -- for OVITO, VMD, XCrySDen. |
stb-status |
3.6 |
Status of SIESTA calculation folders: state (finished / failed, with SIESTA's reason / running / stopped), run (version, processes, wall time), system (atoms, cell … |
stb-archive |
3.7 |
Package a SIESTA calculation folder into a verified .tar.gz for sharing or for the record -- the complement of stb-clean (3.2). |
4 · Structures¶
| Command | Menu code | What it does |
|---|---|---|
stb-2Dstacking |
4.1 |
STB Monolayer Stacking Tool with Geometric Control & Symmetry Analysis. |
stb-supercell |
4.2 |
Builds a supercell from a SIESTA FDF structure file. |
stb-slab |
4.3 |
Cuts a Miller-index slab from a bulk SIESTA FDF structure. |
stb-nanotube |
4.4 |
Rolls a 2D monolayer FDF into a nanotube or nanoribbon. |
stb-defect |
4.5 |
Introduces a point defect (vacancy, substitution, interstitial) into a SIESTA FDF structure. |
stb-sqs |
4.6 |
Generates a Special Quasirandom Structure (SQS) for a substitutional alloy. |
stb-unitcell |
4.7 |
Finds the primitive/conventional unit cell of a structure, or refines it. |
stb-crystalbuilder |
4.8 |
Builds a structure from a space group and Wyckoff positions. |
stb-passivate |
4.9 |
Caps dangling bonds on a cut surface with a passivating atom. |
stb-molecule |
4.10 |
Builds a reference molecule from ASE's G2 database. |
stb-amorphize |
4.11 |
Melt-quench amorphous structure generator using the MACE-MP-0 potential. |
stb-crystalcast |
4.12 |
Casts one or more random structures compatible with a given symmetry group. |
5 · Workflows¶
| Command | Menu code | What it does |
|---|---|---|
stb-strain |
5.1.1 |
Stage 1 of 2: applies strain in Cartesian coordinates to a SIESTA structure and writes one ready-to-run folder (structure + calc.fdf + config_extra.fdf + … |
stb-strainAnalysis |
5.1.2 |
Mechanical Properties from Stress-Strain Data (Stage 2 of stb-strain). |
stb-elasticInputs |
5.2.1 |
Stage 1 of 2: applies one or more canonical Voigt strains to a SIESTA structure and writes one ready-to-run folder (structure + calc.fdf + config_extra.fdf + … |
stb-elasticAnalysis |
5.2.2 |
Siesta Elastic Properties Analyzer (STB Suite) |
stb-cohesive |
5.3.1 |
Prepare folder structure for cohesive energy calculations. |
stb-cohesiveAnalysis |
5.3.2 |
Process cohesive energy results from SIESTA calculations. |
stb-phononsCreate |
5.4.1 |
Automate SIESTA phonon displacement folders with Phonopy. |
stb-phononsPos |
5.4.2 |
Post-processing for SIESTA phonon calculations using Phonopy. |
stb-convergence |
5.5.1 |
Stage 1 of 2: writes one ready-to-run SIESTA folder per swept value of one or more convergence-test parameters, one subfolder per parameter, fully relaxing the structure … |
stb-convergenceAnalysis |
5.5.2 |
Stage 2 of 2: analyzes a stb-convergence sweep and reports where each swept parameter's energy AND relaxed structure converge. |
stb-xrdsearch |
5.6.1 |
Casts candidate structures across a set of space groups (Stage 1 - Prep). |
stb-xrdrank |
5.6.2 |
Ranks candidate structures by similarity to an experimental XRD pattern (Stage 2 - Analysis). |
stb-hubbardu |
5.7.1 |
Stage 1 of 3: generates the 'reference' folder for a Hubbard U linear-response calculation (Cococcioni & de Gironcoli, Phys. |
stb-hubbarduAlphas |
5.7.2 |
Stage 2 of 3: generates the perturbed run folders for a Hubbard U linear-response calculation. |
stb-hubbarduAnalysis |
5.7.3 |
Stage 3 of 3: analyzes a stb-hubbardu linear-response sweep and computes the Hubbard U. |
stb-adsorb |
5.8.1 |
Prepares SIESTA folders for an adsorption-energy study: a clean slab/2D material, an isolated adsorbate, and one folder per candidate adsorption site. |
stb-adsorbBsse |
5.8.2 |
Stage 2 of the Adsorption workflow: generates the BSSE (counterpoise) ghost-fragment folders at each site's RELAXED geometry, once stb-adsorb's own sites/site_*/ have … |
stb-adsorbAnalysis |
5.8.3 |
Computes adsorption energies from an stb-adsorb sweep: E_ads = E_site - E_clean_slab - E_adsorbate. |
stb-adsorbGibbs |
5.8.4 |
Stage 4 of the Adsorption workflow: combines the vibrational Hessian/phonon folders stb-adsorbAnalysis --compute-gibbs (Stage 3) wrote into a Gibbs free energy of … |
stb-neb |
5.9.1 |
Prepares SIESTA folders for a NEB (Nudged Elastic Band) reaction-path study: interpolates images between two already-relaxed endpoint structures, optionally refining the … |
stb-nebAnalysis |
5.9.2 |
Computes a NEB energy profile from an stb-neb band: reads each image_NN/'s SIESTA single-point energy and estimates the reaction barrier from the highest-energy image. |
stb-stackingfault |
5.10.1 |
Prepares SIESTA folders for a 2D stacking-fault (generalized stacking fault energy / gamma-surface) study: rigidly slides one layer of a bilayer across a 2D grid of … |
stb-stackingfaultAnalysis |
5.10.2 |
Computes a stacking-fault (gamma-surface) energy landscape from an stb-stackingfault grid: reads each positions/shift_II_JJ/'s SIESTA energy and reports the equilibrium … |
stb-raman |
5.11.1 |
Stage 1 of 3: generates the phonon-displacement folders for a Raman spectrum workflow. |
stb-ramanModes |
5.11.2 |
Stage 2 of 3: builds FORCE_SETS from Stage 1's phonon displacements, identifies the Gamma-point vibrational modes, and generates the +/-delta Optical-calculation … |
stb-ramanAnalysis |
5.11.3 |
Stage 3 of 3: analyzes a stb-ramanModes Optical-calculation sweep and computes the Raman spectrum. |
stb-ir |
5.12.1 |
Stage 1 of 3: generates the phonon-displacement folders for an IR spectrum workflow. |
stb-irModes |
5.12.2 |
Stage 2 of 3: builds FORCE_SETS from Stage 1's phonon displacements, identifies the Gamma-point vibrational modes, and generates whichever follow-up SIESTA folder(s) the … |
stb-irAnalysis |
5.12.3 |
Stage 3 of 3: analyzes a stb-irModes displacement sweep and computes the IR spectrum. |
stb-gqca |
5.13.1 |
Stage 1 of 2: generates the 3 ordered pair-cluster-representative structures (AA/AB/BB) for a substitutional alloy A(1-x)Bx. |
stb-gqcaAnalysis |
5.13.2 |
Stage 2 of 2: solves the GQCA pair-cluster mass-action equilibrium and reports alloy mixing thermodynamics. |
stb-optical |
5.14.1 |
Stage 1 of 2: writes one SIESTA folder per requested Cartesian/biaxial polarization direction, ready for a linear-response Optical.Calculate run. |
stb-opticalAnalysis |
5.14.2 |
Stage 2 of 2: aggregates every direction folder written by stb-optical and derives the full set of linear optical properties. |
stb-eosInputs |
5.15.1 |
Stage 1 of 2 (equation of state): writes one SIESTA folder per scanned volume. |
stb-eosAnalysis |
5.15.2 |
Stage 2 of 2 (equation of state): aggregates the 'vol_*' folders written by stb-eosInputs and fits an equation of state (Birch-Murnaghan by default) to get V0/E0/B0 … |
stb-chargediffPrep |
5.16.1 |
Stage 1 of the Charge Density Difference workflow: writes a 'combined/' SIESTA input folder (every atom real, no ghosting) plus one fragment folder per fragment of an … |
stb-chargediffAnalysis |
5.16.2 |
Stage 2 of the Charge Density Difference workflow: given just --dir (the same folder stb-chargediffPrep wrote into), auto-discovers the combined system and every … |
stb-hirshfeldPrep |
5.17.1 |
Stage 1 of the Hirshfeld-I (iterative) charge-partitioning workflow: writes a combined/ folder (the full system, forced to a single-point SaveRho-true evaluation) plus … |
stb-hirshfeldIons |
5.17.2 |
Stage 2 of the Hirshfeld-I workflow: reads back every neutral atom folder stb-hirshfeldPrep wrote (now run through SIESTA) and writes BOTH a cation and an anion … |
stb-hirshfeldAnalysis |
5.17.3 |
Stage 3 of the Hirshfeld-I workflow: reads back every neutral+ion isolated-atom folder, then iterates the Hirshfeld-I reference-density refinement against the … |
7 · ML Simulations¶
| Command | Menu code | What it does |
|---|---|---|
stb-mlff |
7.1.1 |
Stage 1 (Prep) of the Custom ML Force Field workflow: generates training configurations (rattled displacements and/or AIMD-sampled snapshots) from a reference SIESTA … |
stb-mlffAnalysis |
7.1.2 |
Stage 2 (Train) of the Custom ML Force Field workflow: aggregates the finished SIESTA calculations (energy + forces, best-effort stress), builds a MACE-format training … |
stb-mlffValidate |
7.1.3 |
Stage 3 (Validate) of the Custom ML Force Field workflow: scores every training round recorded in mlff_workflow.json (its committee mean and each member) against the … |
stb-mlffActiveLearning |
7.1.4 |
Stage 4 (Active Learning) of the Custom ML Force Field workflow: uses already fine-tuned model(s) (stb-mlffAnalysis) to screen a fresh batch of candidate configurations … |
stb-mlmd |
7.2 |
Molecular dynamics driven by a MACE potential -- the MACE-MP-0 foundation model, or a custom model fine-tuned on your own SIESTA data via stb-mlffAnalysis … |
stb-mlphonons |
7.3 |
Standalone phonon calculation driven entirely by a MACE potential -- the MACE-MP-0 foundation model, or a custom model fine-tuned on your own SIESTA data via … |
stb-mlelastic |
7.4 |
Elastic constants by the stress-strain method, driven entirely by a MACE potential -- the MACE-MP-0 foundation model, or a custom model fine-tuned on your own SIESTA … |
stb-mlneb |
7.5 |
Climbing-image NEB (nudged elastic band) driven entirely by a MACE potential -- the MACE-MP-0 foundation model, or a custom model fine-tuned on your own SIESTA data via … |
stb-mladsorb |
7.6 |
Adsorption-site screening driven entirely by a MACE potential -- the MACE-MP-0 foundation model, or a model fine-tuned on your own SIESTA data with the 7.1 workflow … |
Not in the menu¶
| Command | Menu code | What it does |
|---|---|---|
stb-nebCycle |
— | One real-DFT NEB step: reads the latest cycle_NN/image_*/ (finished SIESTA single-points), takes exactly one climbing-image NEB step (ASE's own FIRE optimizer … |