Skip to content

stb-hubbardu

Stage 1 - Reference Prep of the 5.7 Hubbard U (Linear Response) workflow · menu code 5.7.1

usage: stb-hubbardu [-h] [-s STRUCTURE] [-c CALC] --species SPECIES [--atom-index N]
                    [--shell {3d,4d,4f,5d,5f}] [--j J] [-p DIR] [-o OUTPUT_DIR] [-v]
                    [--no-intro]

Stage 1 of 3: generates the 'reference' folder for a Hubbard U linear-response calculation (Cococcioni & de Gironcoli, Phys. Rev. B 71, 035105, 2005).
Workflow: (1) this tool generates 'reference/' -- run SIESTA in it yourself;
(2) once it's converged, run stb-hubbarduAlphas to generate the perturbed
'scf_alpha_*'/'frozen_alpha_*' folders (it copies the reference .DM in for
you); (3) run SIESTA in those, then stb-hubbarduAnalysis to compute U.

If 'reference/' doesn't converge: DFT+U SCF on correlated oxides is often
slow/oscillatory with default settings. Things worth trying in your own
calc.fdf template: a lower DM.MixingWeight (~0.05), a higher DM.NumberPulay
(~6), and a looser SCF.H.Tolerance (~0.01 eV).

If --species appears more than once in --structure, --atom-index is required:
SIESTA's %%block LDAU.proj perturbs an entire species label at once, so with
no --atom-index every atom of that species would be perturbed simultaneously
-- measuring a collective response instead of the single isolated-atom
response the Cococcioni-de Gironcoli supercell method requires. When needed,
the chosen atom is isolated onto its own species label (same Z, own
pseudopotential file) behind the scenes; --species stays the real chemical
species everywhere else (the final recommended %%block LDAU.proj, the
REFERENCE_U sanity check, ...).

options:
  -h, --help            show this help message and exit
  -s STRUCTURE, --structure STRUCTURE
                        Input structure.fdf, copied as 'structure.fdf' into every run folder (default: structure.fdf).
  -c CALC, --calc CALC  Existing calc.fdf template (default: calc.fdf), with %include structure.fdf and everything else already configured; the DFT+U perturbation lines (and single-point SCF enforcement) are added via a config_extra.fdf %include, not embedded inline.
  --species SPECIES     Species label to apply the Hubbard U correction to (must be present in --structure).
  --atom-index N        1-based index (counting ALL atoms in --structure's coordinate block, in file order -- same convention as stb-defect --index) of the specific atom to perturb. Required only if --species appears more than once in --structure; omit it when --species matches a single atom.
  --shell {3d,4d,4f,5d,5f}
                        Correlated shell (3d/4d/5d/4f/5f). Default: the standard shell for --species (transition metals -> (n)d, lanthanides -> 4f, actinides -> 5f).
  --j J                 Exchange J (eV), fixed across the whole workflow (default: 0.0).
  -p DIR, --pseudo-dir DIR
                        Where to get the pseudopotential files (.psf/.psml) SIESTA needs -- a bundled bank (dojo[-sr|-fr|-sr3plus][-pbe|-pbesol|-pw][-standard|-stringent], virtual_vault) or a folder path. Only the species actually present in --structure are copied into 'reference/' now, and into every scf_alpha_*/frozen_alpha_* folder later by stb-hubbarduAlphas. If omitted, you must copy them into every run folder yourself.
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory for the run folders (default: hubbardu_runs).
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Usage example:
  stb-hubbardu --species Mn
  stb-hubbardu --species Fe --shell 3d --j 0.5
  stb-hubbardu --species Mn --pseudo-dir ./pseudos
  stb-hubbardu --species Mn --pseudo-dir dojo
  stb-hubbardu --species Mn --atom-index 1  # Mn appears twice in structure.fdf