Examples
The repository provides four example calculations covering collinear, non-collinear, HR, and TB workflows. The examples contain input files and reference outputs that can be used to check an installation or as starting points for a new calculation.
Before running an example
Install SSG4Wann and confirm that the command-line interface is available:
Run examples in a copied directory so that the reference output files in the repository are not overwritten:
When SSG4Wann starts, it reads sg.in from the working directory. You can also
run an example from another directory:
For a collinear calculation, verify spin_direction before running. It must
describe the spin quantization axis used by the first-principles calculation.
For a non-collinear calculation, it must be consistent with the VASP SAXIS
convention.
Available examples
| Directory | Input mode | Spin treatment | Symmetry used | Main output |
|---|---|---|---|---|
examples/Fe |
HR | Collinear, no SOC | OSSG | wannier90.up_symmed_hr.dat, wannier90.dn_symmed_hr.dat |
examples/Fe_SOC |
HR | Non-collinear, SOC | MSG | wannier90_symmed_hr.dat |
examples/Fe_tb |
TB | Collinear, no SOC | OSSG | wannier90.up_symmed_tb.dat, wannier90.dn_symmed_tb.dat |
examples/Nb3VS6 |
HR | Collinear, no SOC | OSSG | wannier90.up_symmed_hr.dat, wannier90.dn_symmed_hr.dat |
In SSG4Wann, the soc setting selects the symmetry operation set:
soc = Falseuses the full oriented spin space group (OSSG).soc = Trueuses the corresponding magnetic space group (MSG) subgroup.
Fe: collinear HR symmetrization
This is the smallest collinear example. It reads separate spin-up and spin-down Wannier90 Hamiltonians:
The important settings are:
soc = False
SeedName = 'wannier90'
use_win = 'wannier90.up.win'
NONCOLLINEAR_channel = False
chnl = True
spin_direction = 1.524205 -1.077775 1.866762
Run it from a working copy:
The main generated files are:
ssg_symm.json contains the symmetry information returned by
findspingroup.
Fe_SOC: non-collinear HR symmetrization
This example demonstrates a spinor Hamiltonian with spin-orbit coupling. It uses a single Wannier90 HR file:
The important settings are:
soc = True
SeedName = 'wannier90'
use_win = 'wannier90.win'
NONCOLLINEAR_channel = True
spin_direction = 0 0 1
Run it with:
The main output is:
For non-collinear calculations, spin_direction must use the same spin
coordinate convention as the original calculation. With the usual VASP
default SAXIS, use spin_direction = 0 0 1.
Fe_tb: TB Hamiltonian and position matrix
This example reads Wannier90 *_tb.dat files. In addition to the Hamiltonian,
SSG4Wann symmetrizes the three Cartesian components of the position matrix as
a vector operator.
The important settings are:
Run it with:
The main outputs are:
To also export the symmetrized Hamiltonian blocks in standard HR format, set:
This additionally writes:
Nb3VS6: multi-atom collinear example
This example demonstrates a larger collinear magnetic system. It is useful for checking orbital mapping, atom mapping, and the treatment of a nontrivial magnetic structure.
The important settings are:
Run it with:
This calculation is larger than the Fe examples and is a better candidate for an MPI run:
Checking a result
A successful run should produce the expected *_symmed_hr.dat or
*_symmed_tb.dat files without basis-mapping or spin-rotation errors.
Successful completion alone does not guarantee a physically correct result.
Before using the model, check at least the following:
- Compare the original and symmetrized band structures.
- Check that the chosen
spin_directionmatches the original calculation. - Check that the projection order in the
.winfile matches the basis order of the HR or TB file. - Inspect warnings concerning Wannier centers, orbital matching, or symmetry operations.
- Confirm that the symmetrized model has the intended OSSG or MSG symmetry.
Large changes in dispersion, unexpected flat bands, missing bands, or extra band crossings commonly indicate an inconsistent basis order, an incorrect spin direction, or insufficient Wannierization quality.