Skip to content

Commit 613cbfc

Browse files
committed
Add notes to docstring about ISMEAR/SIGMA conventions to DAS generation functions
1 parent 2e8bfac commit 613cbfc

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

pytaser/das_generator.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,19 @@ def from_vasp_outputs(
5454
Create a DASGenerator object from VASP output files.
5555
5656
The user should provide the vasprun files for the new system and the reference system,
57-
followed by the waveder files for the new system and the reference system.
57+
followed by the WAVEDER files for the new system and the reference system.
58+
59+
Note that by default, the `ISMEAR` smearing method from the `VASP` calculations
60+
are used by `PyTASER` when generating the DAS spectra. If `ISMEAR` < -1 (e.g.
61+
tetrahedron smearing), then this is set to `ISMEAR` = 0 (Gaussian smearing) as
62+
tetrahedron smearing is not supported by the `pymatgen` optics module used in
63+
these functions.
64+
65+
The smearing width (equivalent to `SIGMA` in VASP) is controlled by the
66+
``gaussian_width`` parameter in the `DASGenerator.generate_das()` function,
67+
which is 0.1 eV by default, regardless of the value used in the underlying
68+
`VASP` calculations. ``cshift`` and ``gaussian_width`` are the dominant factors
69+
in determining the broadening of the output spectra.
5870
5971
Args:
6072
vasprun_file_new_system: The vasprun.xml file for the new system.
@@ -128,11 +140,14 @@ def generate_das(
128140
of oscillator strengths. Otherwise, the output DAS is generated considering all contributions
129141
to the predicted DAS spectrum.
130142
143+
``cshift`` and ``gaussian_width`` are the dominant factors in determining
144+
the broadening of the output spectra.
145+
131146
Args:
132147
temp: Temperature (K) of material we wish to investigate (affects the FD distribution)
133148
energy_min: Minimum band transition energy to consider for energy mesh (eV)
134149
energy_max: Maximum band transition energy to consider for energy mesh (eV)
135-
gaussian_width: Width of gaussian curve
150+
gaussian_width: Gaussian smearing width. Default is 0.1 eV.
136151
cshift: Complex shift in the Kramers-Kronig transformation of the dielectric function
137152
(see https://www.vasp.at/wiki/index.php/CSHIFT). If not set, uses the value of
138153
CSHIFT from the underlying VASP WAVEDER calculation. (only relevant if the

0 commit comments

Comments
 (0)