Skip to content

Commit

Permalink
deploy: 7087bb8
Browse files Browse the repository at this point in the history
  • Loading branch information
atztogo committed Sep 3, 2024
1 parent c5dba30 commit 7ff2b9e
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 47 deletions.
Binary file modified .doctrees/command-options.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
76 changes: 47 additions & 29 deletions _sources/command-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ These options have no respective configuration file tags.

This is used to create `FORCES_FC3` from `phono3py_disp.yaml` and force
calculator outputs containing forces in supercells. `phono3py_disp.yaml` has to
be located at the current directory. Calculator interface has to be specified
except for VASP (default) case.
be located at the current directory.

```bash
% phono3py --cf3 disp-{00001..00755}/vasprun.xml
Expand All @@ -97,14 +96,26 @@ except for VASP (default) case.
% phono3py --cf3 supercell_out/disp-{00001..00111}/Si.out
```

````{note}
The calculator interface should be stored in `phono3py_disp.yaml`, so it is not
needed to set it manually. Command-line-options like `--qe` will be ignored. If
the calculator interface is missing from `phono3py_disp.yaml` but needed, please
update the `phono3py` section in the file as follows:
```yaml
phono3py:
calculator: qe
```
````

(cf3_file_option)=

### `--cf3-file` (command option only)

This is used to create `FORCES_FC3` from a text file containing a list of
calculator output file names. `phono3py_disp.yaml` has to be located at the
current directory. Calculator interface has to be specified except for VASP
(default) case.
current directory. The calculator interface is unnecessary to specify, see the
note at {ref}`--cf3 <cf3_option>`.

```bash
% phono3py --cf3-file file_list.dat
Expand All @@ -130,8 +141,9 @@ together with `--cutoff-pair` option.

This is used to create `FORCES_FC2` similarly to `--cf3` option.
`phono3py_disp.yaml` has to be located at the current directory. This is
optional. Calculator interface has to be specified except for VASP (default)
case. `FORCES_FC2` is necessary to run with `--dim-fc2` option.
optional. `FORCES_FC2` is necessary to run with `--dim-fc2` option. The
calculator interface is unnecessary to specify, see the note at {ref}`--cf3
<cf3_option>`.

```bash
% phono3py --cf2 disp_fc2-{00001..00002}/vasprun.xml
Expand All @@ -142,8 +154,8 @@ case. `FORCES_FC2` is necessary to run with `--dim-fc2` option.
### `--cfz` (command option only)

This is used to create `FORCES_FC3` and `FORCES_FC2` subtracting residual forces
combined with `--cf3` and `--cf2`, respectively. Calculator interface has to be
specified except for VASP (default) case.
combined with `--cf3` and `--cf2`, respectively. The calculator interface is
unnecessary to specify, see the note at {ref}`--cf3 <cf3_option>`.

In the following example, it is supposed that `disp3-00000/vasprun.xml` and
`disp2-00000/vasprun.xml` contain the forces of the perfect supercells. In ideal
Expand Down Expand Up @@ -204,7 +216,6 @@ When using with `--cf2`, `--cf3` has to be specified simultaneously as below,
% phono3py --cf3 disp-{00001..00755}/vasprun.xml --cf2 disp_fc2-{00001..00002}/vasprun.xml --sp
```


## Supercell, primitive cell, masses, magnetic moments

(dim_option)=
Expand Down Expand Up @@ -299,6 +310,7 @@ web page](https://phonopy.github.io/phonopy/setting-tags.html#magmom).
## Displacement creation

(create_displacements_option)=

### `-d` (`CREATE_DISPLACEMENTS = .TRUE.`)

**`phono3py-load` doesn't have this option.**
Expand All @@ -317,6 +329,7 @@ information about primitive cell (`primitive_matrix` key) in
```

(random_displacements_option)=

### `--rd` (`RANDOM_DISPLACEMENTS`), `--rd-fc2` (`RANDOM_DISPLACEMENTS_FC2`) and `--random-seed` (`RANDOM_SEED`)

**`phono3py-load` doesn't have this option.**
Expand All @@ -336,6 +349,7 @@ and/or `--rd-fc2`,
```

(amplitude_option)=

### `--amplitude` (`DISPLACEMENT_DISTANCE`)

**`phono3py-load` doesn't have this option.**
Expand All @@ -348,6 +362,7 @@ The default value depends on calculator. See
{ref}`default_displacement_distance_for_calculator`.

(fc_calculator_option)=

### `--fc-calc`, `--fc-calculator` (`FC_CALCULATOR`)

Choice of force constants calculator.
Expand All @@ -357,14 +372,17 @@ Choice of force constants calculator.
```

To use different force constants calculators for fc2 and fc3

```bash
% phono3py-load --fc-calc "symfc|" ...
```

Those for fc2 and fc3 are seprated by `|` such as `symfc|` . Blank means to
employ the finite difference method for systematic displacements generated by
the option `-d`.

(fc_calculator_options_option)=

### `--fc-calc-opt`, `--fc-calculator-options` (`FC_CALCULATOR_OPTIONS`)

Special options for force constants calculators.
Expand Down Expand Up @@ -608,9 +626,9 @@ $$
\bigl|\Phi_{-\lambda\lambda'\lambda''}\bigl|^2
\left\{(n_{\lambda'}+ n_{\lambda''}+1)
\delta(\omega-\omega_{\lambda'}-\omega_{\lambda''}) \right.
+ (n_{\lambda'}-n_{\lambda''})
* (n_{\lambda'}-n_{\lambda''})
\left[\delta(\omega+\omega_{\lambda'}-\omega_{\lambda''})
+ \left. \delta(\omega-\omega_{\lambda'}+\omega_{\lambda''})
* \left. \delta(\omega-\omega_{\lambda'}+\omega_{\lambda''})
\right]\right\}.
$$

Expand Down Expand Up @@ -840,7 +858,7 @@ $$
\bigl|\Phi_{-\lambda\lambda_1\lambda_2}\bigl|^2
(n_{\lambda_1}-n_{\lambda_2})
\left[\delta(\omega+\omega_{\lambda_1}-\omega_{\lambda_2})
+ \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
* \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
\right]
\end{align*}
$$
Expand All @@ -854,7 +872,7 @@ $$
\bigl|\Phi_{-\lambda\lambda_1\lambda_2}\bigl|^2
(n_{\lambda_1}+ n_{\lambda_2}+1)
\left[ \delta(\omega-\omega_{\lambda_1}-\omega_{\lambda_2})
+ \delta(\omega + \omega_{\lambda_1} + \omega_{\lambda_2}) \right]
* \delta(\omega + \omega_{\lambda_1} + \omega_{\lambda_2}) \right]
\end{align*},
$$

Expand Down Expand Up @@ -922,11 +940,11 @@ $$
\bigl|\Phi_{-\lambda\lambda_1\lambda_2}\bigl|^2 &
\left\{(n_{\lambda_1}+ n_{\lambda_2}+1)
\left[ \delta(\omega-\omega_{\lambda_1}-\omega_{\lambda_2})
+ \delta(\omega+\omega_{\lambda_1}+\omega_{\lambda_2}) \right] \right.
* \delta(\omega+\omega_{\lambda_1}+\omega_{\lambda_2}) \right] \right.
\\
& + (n_{\lambda_1}-n_{\lambda_2})
\left[\delta(\omega+\omega_{\lambda_1}-\omega_{\lambda_2})
+ \left. \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
* \left. \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
\right]\right\},
\end{align*}
$$
Expand All @@ -941,14 +959,14 @@ $$
\left\{
\left[ \frac{(n_{\lambda_1}+ n_{\lambda_2}+1)}{
(\omega-\omega_{\lambda_1}-\omega_{\lambda_2})_\mathrm{p}}
+ \frac{(n_{\lambda_1}+ n_{\lambda_2}+1)}{
* \frac{(n_{\lambda_1}+ n_{\lambda_2}+1)}{
(\omega+\omega_{\lambda_1}+\omega_{\lambda_2})_\mathrm{p}}
\right]
\right. \\
& + \left[
\frac{(n_{\lambda_1}-n_{\lambda_2})}{(\omega +
\omega_{\lambda_1} - \omega_{\lambda_2})_\mathrm{p}}
+ \left. \frac{(n_{\lambda_1}-n_{\lambda_2})}{(\omega -
* \left. \frac{(n_{\lambda_1}-n_{\lambda_2})}{(\omega -
\omega_{\lambda_1} + \omega_{\lambda_2})_\mathrm{p}}
\right]\right\},
\end{align*}
Expand Down Expand Up @@ -1012,7 +1030,7 @@ A_\lambda(\omega) = \frac{1}{\pi} \frac{4\Omega^2_\lambda
\Gamma_\lambda(\omega)}
{\left[\omega^2 - \Omega^2_\lambda -
2\Omega_\lambda \Delta_\lambda(\omega) \right]^2
+ \left[ 2\Omega_\lambda
* \left[ 2\Omega_\lambda
\Gamma_\lambda(\omega) \right]^2},
$$

Expand Down Expand Up @@ -1348,12 +1366,12 @@ Using this option, output file names are slightly modified. For example, with

This rule is applied to

+ `fc3.hdf5`
+ `fc2.hdf5`
+ `kappa-xxx.hdf5`
+ `phonon-xxx.hdf5`
+ `pp-xxx.hdf5`
+ `gamma_detail-xxx.hdf5` (write only)
* `fc3.hdf5`
* `fc2.hdf5`
* `kappa-xxx.hdf5`
* `phonon-xxx.hdf5`
* `pp-xxx.hdf5`
* `gamma_detail-xxx.hdf5` (write only)

(input_filename_option)=

Expand All @@ -1367,11 +1385,11 @@ specifying `-i iso --fc3`, a file name `fc3.iso.hdf5` is read instead of

This rule is applied to

+ `fc3.hdf5`
+ `fc2.hdf5`
+ `kappa-xxx.hdf5`
+ `phonon-xxx.hdf5`
+ `pp-xxx.hdf5`
* `fc3.hdf5`
* `fc2.hdf5`
* `kappa-xxx.hdf5`
* `phonon-xxx.hdf5`
* `pp-xxx.hdf5`

### `--io` (command option only)

Expand Down
44 changes: 27 additions & 17 deletions command-options.html
Original file line number Diff line number Diff line change
Expand Up @@ -532,21 +532,31 @@ <h2>Utilities to create default input files<a class="headerlink" href="#utilitie
<span id="cf3-option"></span><h3><code class="docutils literal notranslate"><span class="pre">--cf3</span></code> (command option only)<a class="headerlink" href="#cf3-command-option-only" title="Link to this heading">#</a></h3>
<p>This is used to create <code class="docutils literal notranslate"><span class="pre">FORCES_FC3</span></code> from <code class="docutils literal notranslate"><span class="pre">phono3py_disp.yaml</span></code> and force
calculator outputs containing forces in supercells. <code class="docutils literal notranslate"><span class="pre">phono3py_disp.yaml</span></code> has to
be located at the current directory. Calculator interface has to be specified
except for VASP (default) case.</p>
be located at the current directory.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>%<span class="w"> </span>phono3py<span class="w"> </span>--cf3<span class="w"> </span>disp-<span class="o">{</span><span class="m">00001</span>..00755<span class="o">}</span>/vasprun.xml
</pre></div>
</div>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>%<span class="w"> </span>phono3py<span class="w"> </span>--cf3<span class="w"> </span>supercell_out/disp-<span class="o">{</span><span class="m">00001</span>..00111<span class="o">}</span>/Si.out
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The calculator interface should be stored in <code class="docutils literal notranslate"><span class="pre">phono3py_disp.yaml</span></code>, so it is not
needed to set it manually. Command-line-options like <code class="docutils literal notranslate"><span class="pre">--qe</span></code> will be ignored. If
the calculator interface is missing from <code class="docutils literal notranslate"><span class="pre">phono3py_disp.yaml</span></code> but needed, please
update the <code class="docutils literal notranslate"><span class="pre">phono3py</span></code> section in the file as follows:</p>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">phono3py</span><span class="p">:</span>
<span class="w"> </span><span class="nt">calculator</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">qe</span>
</pre></div>
</div>
</div>
</section>
<section id="cf3-file-command-option-only">
<span id="cf3-file-option"></span><h3><code class="docutils literal notranslate"><span class="pre">--cf3-file</span></code> (command option only)<a class="headerlink" href="#cf3-file-command-option-only" title="Link to this heading">#</a></h3>
<p>This is used to create <code class="docutils literal notranslate"><span class="pre">FORCES_FC3</span></code> from a text file containing a list of
calculator output file names. <code class="docutils literal notranslate"><span class="pre">phono3py_disp.yaml</span></code> has to be located at the
current directory. Calculator interface has to be specified except for VASP
(default) case.</p>
current directory. The calculator interface is unnecessary to specify, see the
note at <a class="reference internal" href="#cf3-option"><span class="std std-ref">–cf3</span></a>.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>%<span class="w"> </span>phono3py<span class="w"> </span>--cf3-file<span class="w"> </span>file_list.dat
</pre></div>
</div>
Expand All @@ -566,17 +576,17 @@ <h2>Utilities to create default input files<a class="headerlink" href="#utilitie
<span id="cf2-option"></span><h3><code class="docutils literal notranslate"><span class="pre">--cf2</span></code> (command option only)<a class="headerlink" href="#cf2-command-option-only" title="Link to this heading">#</a></h3>
<p>This is used to create <code class="docutils literal notranslate"><span class="pre">FORCES_FC2</span></code> similarly to <code class="docutils literal notranslate"><span class="pre">--cf3</span></code> option.
<code class="docutils literal notranslate"><span class="pre">phono3py_disp.yaml</span></code> has to be located at the current directory. This is
optional. Calculator interface has to be specified except for VASP (default)
case. <code class="docutils literal notranslate"><span class="pre">FORCES_FC2</span></code> is necessary to run with <code class="docutils literal notranslate"><span class="pre">--dim-fc2</span></code> option.</p>
optional. <code class="docutils literal notranslate"><span class="pre">FORCES_FC2</span></code> is necessary to run with <code class="docutils literal notranslate"><span class="pre">--dim-fc2</span></code> option. The
calculator interface is unnecessary to specify, see the note at <a class="reference internal" href="#cf3-option"><span class="std std-ref">–cf3</span></a>.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>%<span class="w"> </span>phono3py<span class="w"> </span>--cf2<span class="w"> </span>disp_fc2-<span class="o">{</span><span class="m">00001</span>..00002<span class="o">}</span>/vasprun.xml
</pre></div>
</div>
</section>
<section id="cfz-command-option-only">
<span id="cfz-option"></span><h3><code class="docutils literal notranslate"><span class="pre">--cfz</span></code> (command option only)<a class="headerlink" href="#cfz-command-option-only" title="Link to this heading">#</a></h3>
<p>This is used to create <code class="docutils literal notranslate"><span class="pre">FORCES_FC3</span></code> and <code class="docutils literal notranslate"><span class="pre">FORCES_FC2</span></code> subtracting residual forces
combined with <code class="docutils literal notranslate"><span class="pre">--cf3</span></code> and <code class="docutils literal notranslate"><span class="pre">--cf2</span></code>, respectively. Calculator interface has to be
specified except for VASP (default) case.</p>
combined with <code class="docutils literal notranslate"><span class="pre">--cf3</span></code> and <code class="docutils literal notranslate"><span class="pre">--cf2</span></code>, respectively. The calculator interface is
unnecessary to specify, see the note at <a class="reference internal" href="#cf3-option"><span class="std std-ref">–cf3</span></a>.</p>
<p>In the following example, it is supposed that <code class="docutils literal notranslate"><span class="pre">disp3-00000/vasprun.xml</span></code> and
<code class="docutils literal notranslate"><span class="pre">disp2-00000/vasprun.xml</span></code> contain the forces of the perfect supercells. In ideal
case, these forces are zero, but often they are not. Here, this is called
Expand Down Expand Up @@ -956,9 +966,9 @@ <h2>Brillouin zone integration<a class="headerlink" href="#brillouin-zone-integr
\bigl|\Phi_{-\lambda\lambda'\lambda''}\bigl|^2
\left\{(n_{\lambda'}+ n_{\lambda''}+1)
\delta(\omega-\omega_{\lambda'}-\omega_{\lambda''}) \right.
+ (n_{\lambda'}-n_{\lambda''})
* (n_{\lambda'}-n_{\lambda''})
\left[\delta(\omega+\omega_{\lambda'}-\omega_{\lambda''})
+ \left. \delta(\omega-\omega_{\lambda'}+\omega_{\lambda''})
* \left. \delta(\omega-\omega_{\lambda'}+\omega_{\lambda''})
\right]\right\}.
\]</div>
<p>But using this option, full elements of phonon-phonon interaction strength are
Expand Down Expand Up @@ -1160,7 +1170,7 @@ <h3><code class="docutils literal notranslate"><span class="pre">--scattering-ev
\bigl|\Phi_{-\lambda\lambda_1\lambda_2}\bigl|^2
(n_{\lambda_1}-n_{\lambda_2})
\left[\delta(\omega+\omega_{\lambda_1}-\omega_{\lambda_2})
+ \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
* \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
\right]
\end{align*}
\]</div>
Expand All @@ -1173,7 +1183,7 @@ <h3><code class="docutils literal notranslate"><span class="pre">--scattering-ev
\bigl|\Phi_{-\lambda\lambda_1\lambda_2}\bigl|^2
(n_{\lambda_1}+ n_{\lambda_2}+1)
\left[ \delta(\omega-\omega_{\lambda_1}-\omega_{\lambda_2})
+ \delta(\omega + \omega_{\lambda_1} + \omega_{\lambda_2}) \right]
* \delta(\omega + \omega_{\lambda_1} + \omega_{\lambda_2}) \right]
\end{align*},
\]</div>
<p>respectively, and</p>
Expand Down Expand Up @@ -1234,11 +1244,11 @@ <h3><code class="docutils literal notranslate"><span class="pre">--q-direction</
\bigl|\Phi_{-\lambda\lambda_1\lambda_2}\bigl|^2 &amp;
\left\{(n_{\lambda_1}+ n_{\lambda_2}+1)
\left[ \delta(\omega-\omega_{\lambda_1}-\omega_{\lambda_2})
+ \delta(\omega+\omega_{\lambda_1}+\omega_{\lambda_2}) \right] \right.
* \delta(\omega+\omega_{\lambda_1}+\omega_{\lambda_2}) \right] \right.
\\
&amp; + (n_{\lambda_1}-n_{\lambda_2})
\left[\delta(\omega+\omega_{\lambda_1}-\omega_{\lambda_2})
+ \left. \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
* \left. \delta(\omega-\omega_{\lambda_1}+\omega_{\lambda_2})
\right]\right\},
\end{align*}
\end{split}\]</div>
Expand All @@ -1252,14 +1262,14 @@ <h3><code class="docutils literal notranslate"><span class="pre">--q-direction</
\left\{
\left[ \frac{(n_{\lambda_1}+ n_{\lambda_2}+1)}{
(\omega-\omega_{\lambda_1}-\omega_{\lambda_2})_\mathrm{p}}
+ \frac{(n_{\lambda_1}+ n_{\lambda_2}+1)}{
* \frac{(n_{\lambda_1}+ n_{\lambda_2}+1)}{
(\omega+\omega_{\lambda_1}+\omega_{\lambda_2})_\mathrm{p}}
\right]
\right. \\
&amp; + \left[
\frac{(n_{\lambda_1}-n_{\lambda_2})}{(\omega +
\omega_{\lambda_1} - \omega_{\lambda_2})_\mathrm{p}}
+ \left. \frac{(n_{\lambda_1}-n_{\lambda_2})}{(\omega -
* \left. \frac{(n_{\lambda_1}-n_{\lambda_2})}{(\omega -
\omega_{\lambda_1} + \omega_{\lambda_2})_\mathrm{p}}
\right]\right\},
\end{align*}
Expand Down Expand Up @@ -1312,7 +1322,7 @@ <h3><code class="docutils literal notranslate"><span class="pre">--q-direction</
\Gamma_\lambda(\omega)}
{\left[\omega^2 - \Omega^2_\lambda -
2\Omega_\lambda \Delta_\lambda(\omega) \right]^2
+ \left[ 2\Omega_\lambda
* \left[ 2\Omega_\lambda
\Gamma_\lambda(\omega) \right]^2},
\]</div>
<p>where <span class="math notranslate nohighlight">\(A_\lambda(\omega)\)</span> is defined to be normalized as</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 7ff2b9e

Please sign in to comment.