Command line interface
A simple command line interface is generated with Comonicon.jl.
Index
Wannier.COMMAND_ENTRY_DOC_STUBWannier.bandWannier.disWannier.fermisurfWannier.maxlocWannier.optrotWannier.ptgWannier.splitvcWannier.trunc
Commands
Wannier.COMMAND_ENTRY_DOC_STUB — ConstantJulia package for Wannier functions.
Wannier.maxloc — FunctionMaximally localize an isolated group of bands.
Args
seedname: seedname forwin/amn/mmn/eigfiles
Options
-o, --output=<str>: filename for outputamn. Default isseedname.maxloc.amn-m, --maxiter=<int>: max number of iterations. Default is50
Wannier.dis — FunctionMaximally localize a group of entangled bands.
Args
seedname: seedname forwin/amn/mmn/eigfiles
Options
-o, --output=<str>: filename for outputamn. Default isseedname.dis.amn-m, --maxiter=<int>: max number of iterations. Default is50
Wannier.ptg — FunctionGenerate parallel transport gauge Wannier functions.
Args
seedname: seedname forwin/amn/mmn/eigfiles
Options
-o, --output: filename for outputamn. Default isseedname.ptg.amn
Wannier.splitvc — FunctionSplit valence and conduction Wannier functions.
Usually start from a Wannierization of valence+conduction bands. Then this command split WFs into two independent groups.
Args
seedname: seedname forwin/amn/mmn/eigfiles
Options
--nval: number of valence WFs. Default isn_wann ÷ 2--outdir-val: dirname for output valenceamn/mmn/eig. Default isval--outdir-cond: dirname for output conductionamn/mmn/eig. Default iscond--config: config file forsplitvccommand, e.g.toml [groups] indices = [ [ 1, 2,], [ 3, 4, 5, 6,], [ 7, 8,], ] outdirs = [ "val_1", "val_2", "cond_3",]
Flags
--run-disentangle: readamnand run disentangle first, otherwise readchkto get unitary matrices fromn_bandston_wann--run-optrot: max localize w.r.t. single unitary matrix after parallel transport. Should further reduce the spread and much closer to the true max localization.--run-maxloc: run a final max localize w.r.t. all kpoints. Should reach the true max localization.--rotate-unk: generateunkfiles for valence and conduction, for plotting WFs--binary: writeamn/mmn/eig/unkin Fortran binary format
Wannier.optrot — FunctionMaximally localize w.r.t a single unitary rotation of all the kpoints.
Usually should start from parallel transport gauge amn, where the gauge are already smoothened w.r.t. kpoints. However, there is sitll a global unitary transformation freedom, which will be minimized by this optimal rotation function.
Args
seedname: seedname forwin/amn/mmn/eigfiles
Options
-o, --output=<str>: filename for outputamn. Default isseedname.optrot.amn-m, --maxiter=<int>: max number of iterations. Default is50
Wannier.trunc — FunctionTruncate number of bands in mmn/eig/unk files.
Args
seedname: seedname formmn/eigfileskeep-bands: indices of bands to be kept, start from 1
Options
--outdir: dirname for outputmmn/eig. Default istruncate
Flags
--rotate-unk: also truncateunkfiles, for plotting WFs
Wannier.band — FunctionInterpolate band structure.
Args
seedname: seedname foramn/mmn/eig/chkfiles
Options
--out: output seedname for bands.dat. Default iswjl--amn:amnfilename. If not given, default is readchk.fmtfile
Wannier.fermisurf — FunctionInterpolate Fermi surface.
Args
seedname: seedname foramn/mmn/eig/chkfiles ortb/wsvec.datfile
Options
--nk: number of interpolated kpoints along each reciprocal lattice vector. Default is50, on output bxsf, there will be 51 points (the last point is the periodic image of the first point).--dk: spacing of interpolated kpoints along each reciprocal lattice vector, in unit ofÅ^-1. Default is a negative number, meaning I will use--nkinstead; if dk > 0, dk will take precedence. The number of interpolated kpoints is the nearest integer toa/dk, whereais the norm of each reciprocal lattice vector. Also plus 1 due to the same reason in--nk.--ef: Fermi energy. Default is0.0.--out: output seedname for bxsf. Default iswjl--amn:amnfilename. If not given, default is readchk.fmtfile
Flags
--tb: readtb/wsvec.datfile instead ofamn/mmn/eig/chkfiles. Default isfalse.