stb-gqca¶
Stage 1 - Structure Generation of the 5.13 Generalized Quasi-Chemical Approximation (GQCA) workflow · menu code 5.13.1
usage: stb-gqca [-h] -f FILE --sublattice SUBLATTICE --species-b SPECIES_B [-c CALC]
[-p PSEUDO_DIR] [--kdensity KDENSITY] [--vacuum-gap VACUUM_GAP]
[-O OUTPUT_DIR] [-v] [--no-intro]
Stage 1 of 2: generates the 3 ordered pair-cluster-representative structures (AA/AB/BB) for a substitutional alloy A(1-x)Bx.
Implements the pair-cluster (N=2) special case of the Generalized Quasi-Chemical Approximation
(GQCA, Sher, van Schilfgaarde, Chen, Chen, Phys. Rev. B 36, 4279, 1987) -- the classic Guggenheim
quasi-chemical approximation, applicable to ANY lattice/dimensionality (2D or 3D alike; verified on
both a 3D zincblende cell and a 2D transition-metal-dichalcogenide cell during this tool's
development). Disorders one existing sublattice (--sublattice) with a second species (--species-b,
typically absent from the input structure) and writes 3 folders: the two pure end-members
(cluster_n0/, cluster_n2/) and the ordered 50:50 compound that most purely realizes an "every
neighbor pair is unlike" (AB) local environment along the shortest sublattice-sublattice bond
(cluster_n1/) -- NOT a random 50:50 mixture, whose bonds would average to a mix of AA/AB/BB.
All 3 folders are written for a REAL relaxation (a config_extra.fdf %included on top of calc.fdf
forces MD.TypeOfRun CG, MD.NumCGsteps > 0, the folder's own k-grid, and MD.VariableCell T too for
a 3D/bulk input; your --calc template itself is never edited) -- the 3 representative structures generally have different equilibrium lattice
constants (atomic size mismatch between A and B), and single-point evaluation at a fixed lattice
constant would contaminate the mixing energy with spurious strain. [KNOWN LIMITATION] For a 2D
(vacuum-padded) input, cell relaxation is left OFF entirely (positions-only, at the input's own
in-plane lattice constant) rather than risk an unconfirmed SIESTA cell-constraint syntax for
excluding the vacuum axis -- see build_config_extra's docstring. Doesn't run SIESTA -- run each
folder yourself, then use stb-gqcaAnalysis.
[WHY ONLY 3 STRUCTURES / ONLY EVER 50:50] The pair cluster (N=2) has exactly 3 possible local
compositions (0, 1, or 2 B atoms per pair) -- there is no "user-chosen x" knob here, and
cluster_n1/ is always built at the cluster-internal 50:50 composition (the ONLY interior point a
2-site cluster has), regardless of the alloy composition you actually care about. Your real target
composition x (e.g. Mo0.7W0.3S2) is swept entirely in Stage 2 (stb-gqcaAnalysis --x-min/--x-max),
which combines these 3 fixed reference energies via the mass-action law to get x_j(x,T) at ANY x in
[0,1] -- these 3 DFT calculations are the complete, sufficient input for the whole x/T thermodynamic
surface, not a coarse sample of it.
options:
-h, --help show this help message and exit
-f FILE, --file FILE Input structure.fdf (2D or 3D).
--sublattice SUBLATTICE
Existing species whose sites become the disordered alloy sublattice.
--species-b SPECIES_B
Second alloy species (typically absent from the input structure).
-c CALC, --calc CALC calc.fdf template for the 3 cluster relaxations (default: calc.fdf).
-p PSEUDO_DIR, --pseudo-dir PSEUDO_DIR
Pseudopotentials source: a bundled bank or a folder path.
--kdensity KDENSITY k-point density (1/Ang) for the per-folder Monkhorst-Pack grid, same convention as stb-kgrid and the other workflows (default: 0.2).
--vacuum-gap VACUUM_GAP
Vacuum-axis detection threshold in Ang (default: 10.0).
-O OUTPUT_DIR, --output-dir OUTPUT_DIR
Root directory for the whole GQCA workflow (default: gqca_study).
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Usage example:
stb-gqca -f mos2.fdf --sublattice Mo --species-b W -p dojo # uses ./calc.fdf
stb-gqca -f mos2.fdf --sublattice Mo --species-b W -c my_calc.fdf -p dojo