Skip to content

stb-cohesive

Stage 1 - Prep of the 5.3 Cohesive Energy workflow · menu code 5.3.1

usage: stb-cohesive [-h] -s STRUCTURE [-p PP_PATH] [-c CALC] [-k K_DENSITY] [--spin]
                    [--vacuum VACUUM] [--vacuum-gap VACUUM_GAP] [-O OUTPUT_DIR]
                    [--bsse-correction] [--no-bsse-correction]
                    [--bsse-cutoff BSSE_CUTOFF] [--symprec SYMPREC]
                    [--bsse-multi-site] [--no-bsse-multi-site]
                    [--bsse-convergence-check]
                    [--bsse-convergence-increment BSSE_CONVERGENCE_INCREMENT [BSSE_CONVERGENCE_INCREMENT ...]]
                    [--dispersion] [-v] [--no-intro]

Prepare folder structure for cohesive energy calculations.

options:
  -h, --help            show this help message and exit
  -s STRUCTURE, --structure STRUCTURE
                        Path to the initial structure.fdf file
  -p PP_PATH, --pp-path PP_PATH
                        Pseudopotentials source (optional): a bundled bank (dojo[-sr|-fr|-sr3plus][-pbe|-pbesol|-pw][-standard|-stringent], virtual_vault) or a folder path.
  -c CALC, --calc CALC  Your own calc.fdf template (basis, PAO.EnergyShift, Mesh.Cutoff, XC, SCF ...), used for the full structure AND every atomic reference, so they share one level of theory. It must '%include structure.fdf'. It is copied untouched into every folder; what the workflow has to impose goes into a config_extra.fdf included on top of it: for the atomic references Spin polarized, a Gamma-only k-grid and a single point; for the full structure --spin, --dispersion and the k-grid (only when the template has none or -k is given). Default: the built-in template (DZP, PAO.EnergyShift 0.02 Ry, Mesh.Cutoff 320 Ry, PBE).
  -k K_DENSITY, --k-density K_DENSITY
                        K-point density in 1/Angstrom for the full structure (default: 0.2; with --calc, the template's own k-grid when it has one)
  --spin                Set the full structure calculation to spin polarized
  --vacuum VACUUM       Guaranteed buffer (Ang/2, see below) between the outermost atom of each isolated-atom-type calculation and the edge of its cubic simulation box (default: 20.0). For a plain isolated atom (no neighbors) the box is exactly this value, same as before. For a BSSE ghost cluster (see --bsse-cutoff) or its --bsse-convergence-check counterpart, the box automatically GROWS with the cluster's own radius (box side = 2*cutoff + --vacuum) so the buffer beyond the outermost ghost atom stays exactly --vacuum/2 regardless of how large --bsse-cutoff/--bsse-convergence-increment are -- otherwise a bigger convergence-check cluster would eat into a fixed-size box and risk interacting with its own periodic images, contaminating the very convergence check it's meant to validate. Increase for elements with unusually diffuse basis orbitals.
  --vacuum-gap VACUUM_GAP
                        Vacuum gap threshold in Ang used to detect which lattice axes of the FULL structure are periodic vs. vacuum-padded (default: 10.0), same convention as stb-kgrid/stb-strain/stb-elasticInputs. Vacuum-padded axes are forced to a single (Gamma-only) k-grid division regardless of --k-density.
  -O OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Root directory (default: cohesive_runs, matching stb-strain's/stb-elasticInputs' own <property>_runs convention) for the 'structure', 'atoms' and 'atoms_bsse' folders -- so stb-cohesiveAnalysis can just 'cd <output-dir>' (or pass --dir) and find everything with no extra flags. Set this to avoid silently overwriting a previous run's setup when preparing more than one structure from the same working directory.
  --bsse-correction     Also generate a BSSE (Basis Set Superposition Error) -corrected reference per species, in 'atoms_bsse/<symbol>/' (default: ON). LCAO cohesive energies are otherwise systematically over-bound: the isolated atom is computed with a smaller effective basis than it has inside the solid (no neighboring atoms' orbitals available). The correction embeds the same real atom in 'ghost' copies (SIESTA convention: negative Z, no valence charge, same basis as the real element) of its actual nearest neighbors from the full structure (see --bsse-cutoff), giving it the same effective basis it has in the solid without changing its physics. Doubles the number of isolated-atom-type DFT calculations needed (one plain + one BSSE-corrected per species).
  --no-bsse-correction  Skip the BSSE-corrected reference (halves the isolated-atom-type calculation count, at the cost of a systematically over-bound cohesive energy).
  --bsse-cutoff BSSE_CUTOFF
                        Radius in Ang (default: 4.0) around each species' anchor atom within which real neighbors become ghost atoms in its BSSE-corrected reference (see --bsse-correction). How many coordination shells this actually reaches depends on the material's bond length -- for short-bonded covalent solids (e.g. graphene, diamond, ~1.4-1.5 Ang bonds) it typically reaches several shells; for longer-bonded ionic/metallic solids it may only reach the 1st. Check the printed ghost-neighbor count per species; the correction is converged once increasing --bsse-cutoff no longer changes the reported BSSE-corrected energy appreciably. Only used when --bsse-correction is on.
  --symprec SYMPREC     Symmetry-detection tolerance (default: 0.01, pymatgen's own default), used to find symmetrically distinct sites per species for --bsse-multi-site. 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 (see stb-symmetry --scan-symprec to check where a given structure's symmetry call is sensitive).
  --bsse-multi-site     When a species occupies 2+ symmetrically distinct sites (e.g. octahedral vs. tetrahedral Fe), build a separate BSSE ghost-cluster reference PER site (default: ON) -- stb-cohesiveAnalysis then weights each site's BSSE-corrected energy by its multiplicity, instead of using a single (potentially unrepresentative) site for the whole species.
  --no-bsse-multi-site  Use only the first detected site as the BSSE reference for a species with multiple distinct sites (prints a warning naming the sites being skipped), instead of one cluster per site.
  --bsse-convergence-check
                        Also generate one or more extra BSSE references per species/site at a larger cutoff (see --bsse-convergence-increment) -- stb-cohesiveAnalysis then reports how much the BSSE-corrected cohesive energy shifts as the cutoff grows, as a convergence check (default: OFF -- on top of --bsse-correction's own doubling, each extra cutoff adds one more isolated-atom-type calculation per species/site). Requires --bsse-correction.
  --bsse-convergence-increment BSSE_CONVERGENCE_INCREMENT [BSSE_CONVERGENCE_INCREMENT ...]
                        One or more Ang values added to --bsse-cutoff (default: 2.0, a single point). Pass several (e.g. --bsse-convergence-increment 2 4 6) to scan multiple cutoffs in one run and see the correction's full trend instead of a single before/after comparison -- stb-cohesiveAnalysis will report and plot the whole curve. With exactly one increment (the default), the extra reference is written to 'atoms_bsse_check/' as before; with 2+, each is written to its own 'atoms_bsse_check_<cutoff>/' instead.
  --dispersion          Enable Grimme DFT-D3 dispersion correction (SIESTA's own DFTD3 directive, default: OFF) for every calculation (full structure, isolated atoms, and BSSE references alike) -- relevant for layered/molecular materials where van der Waals interactions contribute non-negligibly to the cohesive energy. Safe to apply uniformly: a genuinely isolated atom has no neighbor to form a dispersion pair with, so D3 contributes ~0 there regardless.
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb_cohesive -s structure.fdf -k 0.15
  stb_cohesive -s structure.fdf --spin -p /path/to/pseudos