-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the entire documentation in MyST Markdown, which is easier to use due to its similarity with the ubiquitous Markdown and cleaner syntax: https://myst-parser.readthedocs.io/en/latest/index.html Moving to MyST Markdown also makes it easier/more consistent to use MyST-NB: https://myst-nb.readthedocs.io/en/latest/index.html and eventually move to fully executable documentation. Some remaining RestructuredText elements: * The `autodoc` generation of the API. * Automated generation of CLI documentation. * `aiida.sphinxext` items.
- Loading branch information
Showing
86 changed files
with
1,387 additions
and
1,491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-cp)= | ||
|
||
# `cp.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-dos)= | ||
|
||
# `dos.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-epw)= | ||
|
||
# `epw.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
(howto-calculations)= | ||
|
||
# How-to run calculations | ||
|
||
```{toctree} | ||
:maxdepth: 1 | ||
cp | ||
dos | ||
epw | ||
matdyn | ||
neb | ||
ph | ||
pp | ||
projwfc | ||
pw | ||
pw2wannier90 | ||
q2r | ||
xspectra | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-matdyn)= | ||
|
||
# `matdyn.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-neb)= | ||
|
||
# `neb.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
(howto-calculations-ph)= | ||
|
||
# `ph.x` | ||
|
||
The `ph.x` code of Quantum ESPRESSO is used to compute phonons using density-functional perturbation theory. | ||
|
||
| | | | ||
|---------------------|---------------------------------------------------------------| | ||
| Plugin class | {class}`aiida_quantumespresso.calculations.ph.PhCalculation` | | ||
| Plugin entry point | ``quantumespresso.ph`` | | ||
|
||
## How to launch a `ph.x` calculation | ||
|
||
:::{note} | ||
In order to run a `ph.x` calculation, you first need to have completed a `pw.x` calculation. | ||
See the [tutorial](#tutorials-pw-through-api) or [how-to guide](#howto-calculations-pw) for more information. | ||
::: | ||
|
||
Once you have successfully run a `PwCalculation` you can run a `ph.x` calculation through the `PhCalculation` plugin as follows: | ||
|
||
```{literalinclude} ../../tutorials/include/scripts/run_ph_basic.py | ||
:language: python | ||
``` | ||
|
||
Note that you will have to replace `IDENTIFIER_PW_CALCULATION` with the identifier (pk or UUID) of the completed `PwCalculation`. | ||
|
||
## How to define input file parameters | ||
|
||
The `ph.x` code supports many parameters that can be defined through the input file, as shown on the [official documentation](https://www.quantum-espresso.org/Doc/INPUT_PH.html). | ||
Parameters that are part of the `INPUTPH` card should be specified through the `parameters` input of the `PwCalculation` plugin. | ||
The parameters are specified using a Python dictionary, for example: | ||
|
||
```python | ||
parameters = { | ||
'INPUTPH': { | ||
'tr2_ph' : 1.0e-8, | ||
'epsil' : True, | ||
'ldisp' : True, | ||
} | ||
} | ||
``` | ||
|
||
The parameters dictionary should be wrapped in a {py:class}`~aiida.orm.nodes.data.dict.Dict` node and assigned to the `parameters` input of the process builder: | ||
|
||
```python | ||
from aiida.orm import Dict, load_code | ||
builder = load_code('ph').get_builder() | ||
parameters = { | ||
... | ||
} | ||
builder.parameters = Dict(parameters) | ||
``` | ||
|
||
The q-points of the input file are specified with a `KpointsData` node through the `qpoints` input of the `PhCalculation` plugin. | ||
|
||
:::{warning} | ||
There are a number of input parameters that *cannot* be set, as they will be automatically set by the plugin based on other inputs, such as the `structure`. | ||
These include: | ||
|
||
- `INPUTPH.outdir` | ||
- `INPUTPH.verbosity` | ||
- `INPUTPH.prefix` | ||
- `INPUTPH.fildyn` | ||
- `INPUTPH.ldisp` | ||
- `INPUTPH.nq1` | ||
- `INPUTPH.nq2` | ||
- `INPUTPH.nq3` | ||
- `INPUTPH.qplot` | ||
::: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-pp)= | ||
|
||
# `pp.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(howto-calculations-projwfc)= | ||
|
||
# `projwfc.x` | ||
|
||
*To be added.* |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.