Skip to content

Commit

Permalink
Update format for Postw90 and Appendices
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang-yuha0 committed Feb 13, 2024
1 parent f6accf4 commit d4be9c3
Show file tree
Hide file tree
Showing 6 changed files with 573 additions and 267 deletions.
18 changes: 9 additions & 9 deletions docs/docs/user_guide/appendices/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ arise from your use of `wannier90`:
> Ibañez-Azpiroz, H. Lee, J.M. Lihm, D. Marchand, A. Marrazzo, Y.
> Mokrousov, J.I. Mustafa, Y. Nohara, Y. Nomura, L. Paulatto, S. Poncé,
> T. Ponweiser, J. Qiao, F. Thöle, S.S. Tsirkin, M. Wierzbowska, N.
> Marzari, D. Vanderbilt, I. Souza, A.A. Mostofi, J.R. Yates,\
> Marzari, D. Vanderbilt, I. Souza, A.A. Mostofi, J.R. Yates,
> Wannier90 as a community code: new features and applications, *J.
> Phys. Cond. Matt.* **32**, 165902 (2020)\
> Phys. Cond. Matt.* **32**, 165902 (2020)
> <https://doi.org/10.1088/1361-648X/ab51ff>
If you are using versions 2.x of the code, cite instead:

> \[ref\] A. A. Mostofi, J. R. Yates, G. Pizzi, Y.-S. Lee, I. Souza,
> D. Vanderbilt and N. Marzari,\
> D. Vanderbilt and N. Marzari,
> An updated version of `wannier90`: A Tool for Obtaining
> Maximally-Localised Wannier Functions, *Comput. Phys. Commun.*
> **185**, 2309 (2014)\
> **185**, 2309 (2014)
> <http://doi.org/10.1016/j.cpc.2014.05.003>
## Installation
Expand All @@ -118,19 +118,19 @@ Not at present.
Yes. `wannier90` works on top of an electronic structure calculation.

At the time of writing there are public, fully functioning, interfaces
between `wannier90` and `pwscf`, abinit
between `wannier90` and `PWSCF`, abinit
(<http://www.abinit.org>), siesta (<http://www.icmab.es/siesta/>), VASP
(<https://www.vasp.at>), Wien2k (<http://www.wien2k.at>), fleur
(<http://www.fleur.de>), OpenMX (<http://www.openmx-square.org/>), GPAW
(<https://wiki.fysik.dtu.dk/gpaw/>).

To use `wannier90` in combination with `pwscf` code (a
To use `wannier90` in combination with `PWSCF` code (a
plane-wave, pseudopotential, density-functional theory code, which is
part of the `quantum-espresso` package) you will need to download
`pwscf` from the webpage <http://www.quantum-espresso.org>.
Then compile `pwscf` and the `wannier90` interface program
`PWSCF` from the webpage <http://www.quantum-espresso.org>.
Then compile `PWSCF` and the `wannier90` interface program
`pw2wannier90`. For instructions, please refer to the documentation that
comes with the `quantum-espresso` distribution.

For examples of how to use `pwscf` and `wannier90` in
For examples of how to use `PWSCF` and `wannier90` in
conjunction with each other, see the `wannier90` Tutorial.
42 changes: 24 additions & 18 deletions docs/docs/user_guide/appendices/utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The script can be be found in the `utility` directory of the

where `nx`, `ny` and `nz` define the size of the Monkhorst--Pack grid
that we want to use (for instance, in the above example of the
$4\times 4\times 4$ $k$ grid, `nx`$=$`ny`$=$`nz`$=$`<!-- -->`{=html}4).
$4\times 4\times 4$ $k$ grid, `nx`$=$`ny`$=$`nz`$=$4).

This produces on output the list of $k$ points in Quantum Espresso
format, where (apart from a header) the first three columns of each line
Expand All @@ -49,7 +49,7 @@ allows to provide the $k$ point coordinates with the accuracy required
by `wannier90`, and moreover it makes sure that the $k$ grid used in the
ab-initio code and in `wannier90` are the same.

### $\tt{w90chk2chk.x}$[]{#sec:w90chk2chk label="sec:w90chk2chk"}
### `w90chk2chk.x`

During the calculation of the Wannier functions, `wannier90` produces a
`.chk` file that contains some information to restart the calculation.
Expand Down Expand Up @@ -109,7 +109,7 @@ A typical use is the following:

5. Run the `postw90` code.

### $\tt{PL\_assessment}$ {#sec:pl_assessment}
### `PL_assessment`

The function of this utility is to assess the length of a principal
layer (in the context of a Landauer-Buttiker quantum conductance
Expand All @@ -122,7 +122,9 @@ The utility requires the real-space Hamiltonian in the MLWF basis,
The `seedname_hr.dat` file should be copied to a directory containing
executable for the utility. Within that directory, run:

\$> ./PL_assess.x nk1 nk2 nk3 num_wann
```bash
./PL_assess.x nk1 nk2 nk3 num_wann
```

where:

Expand All @@ -132,7 +134,9 @@ k-points in y-direction `nk3` is the number of k-points in z-direction

e.g.,

\$> ./PL_assess.x 1 1 20 16
```bash
./PL_assess.x 1 1 20 16
```

Note that the current implementation only allows for a single k-point in
the direction transverse to the transport direction.
Expand All @@ -151,7 +155,7 @@ four columns

4. Maximum absolute value in (2)

### $\tt{w90vdw}$ {#sec:w90vdw}
### `w90vdw`

This utility provides an implementation of a method for calculating van
der Waals energies based on the idea of density decomposition via MLWFs.
Expand All @@ -167,15 +171,15 @@ For further details of this program, please see the documentation in
`utility/w90vdw/doc/` and the related examples in
`utility/w90vdw/examples/`.

### $\tt{w90pov}$ {#sec:w90pov}
### `w90pov`

An utility to create Pov files (to render the Wannier functions using
the PovRay utility) is provided inside `utility/w90pov`.

Please refer to the documentation inside `utility/w90pov/doc` for more
information.

### $\tt{k\_mapper.py}$ {#sec:k_mapper}
### `k_mapper.py`

The `wannier90` code requires the definition of a full Monkhorst--Pack
grid of $\mathbf{k}$-vectors, which can be obtained by means of the
Expand All @@ -187,20 +191,22 @@ calculation than what you need to interpolate the band structure. The
a full grid needed for interpolation into the reduced grid needed for
the GW calculation with Yambo. Usage:

`path/k_mapper.py nx ny nz QE_nscf_output`
path/k_mapper.py nx ny nz QE_nscf_output

where `path` is the path of `utility` folder, `QE_nscf_output` is the
path of the QE nscf output file given to Yambo.

### $\tt{gw2wannier90.py}$
### `gw2wannier90.py`

This utility allows to sort in energy the input data of `wannier90`
(e.g. overlap matrices and energy eigenvalues). `gw2wannier90.py` allows
to use `wannier90` at the $G_0W_0$ level, where quasi-particle
corrections can change the energy ordering of eigenvalues (Some
`wannier90` modules require states to be ordered in energy). Usage:

`path/gw2wannier90.py seedname options` where `path` is the path of
path/gw2wannier90.py seedname options

where `path` is the path of
`utility` folder.

Available options are:
Expand All @@ -220,9 +226,9 @@ use (bigger) formatted files, with options:

In default, the output format is the same as the input format. To
generate formatted files with unformatted input, use option:
`write_formatted` []{#sec:w90aaa label="sec:w90aaa"}
`write_formatted`

### $\tt{w90spn2spn.x}$[]{#sec:w90spn2spn label="sec:w90spn2spn"}
### `w90spn2spn.x`

The interface between ab-initio code and `wannier90` (e.g.
`pw2wannier90.x`) can produce a `.spn` file that is used by `postw90` to
Expand Down Expand Up @@ -253,12 +259,12 @@ A typical use is the following:
If the file is "unformatted", run (in the folder with this file) the
command

w90spn2spn.x -export seedname
w90spn2spn.x -export seedname

or equivalently

w90spn2spn.x -u2f seedname
w90spn2spn.x -u2f seedname

(replacing `seedname` with the seedname of your calculation).
Expand All @@ -272,12 +278,12 @@ A typical use is the following:

4. On this second machine (after having compiled `w90spn2spn.x`) run

w90spn2spn.x -import seedname
w90spn2spn.x -import seedname

or equivalently

w90spn2spn.x -f2u seedname
w90spn2spn.x -f2u seedname

This command reads the `seedname.spn.fmt` file and creates an
Expand All @@ -302,7 +308,7 @@ compute `amn` using pseudo-atomic orbital projection.

Usage:

`path/write_pdwf_projectors.py UPF_filename`
path/write_pdwf_projectors.py UPF_filename

where `path` is the path of `utility` folder, `UPF_filename` is the path
of a `UPF` file.
Expand Down
Loading

0 comments on commit d4be9c3

Please sign in to comment.