Time-evolution algorithm: Difference between revisions
Line 73: | Line 73: | ||
{{TAGBL|NBANDSO}} = 4 | {{TAGBL|NBANDSO}} = 4 | ||
{{TAGBL|NBANDSV}} = 8 | {{TAGBL|NBANDSV}} = 8 | ||
!Smearing parameters | !Smearing parameters | ||
{{TAGBL|ISMEAR}} = 0 ; {{TAGBL|SIGMA}} = 0.05 | {{TAGBL|ISMEAR}} = 0 ; {{TAGBL|SIGMA}} = 0.05 | ||
Line 81: | Line 79: | ||
!Parallelization options | !Parallelization options | ||
{{TAGBL|KPAR}} = 4 | {{TAGBL|KPAR}} = 4 | ||
We begin by noticing that now {{TAG|ALGO}} is set to TIMEEV, meaning that VASP will now perform a time-propagation calculation. | !Time-propagation parameters | ||
{{TAGBL|NELMGW}} = 2000 | |||
{{TAGBL|CSHIFT}} = 0.1 | |||
{{TAGBL|OMEGAMAX}} = 20 | |||
We begin by noticing that now {{TAG|ALGO}} is set to TIMEEV, meaning that VASP will now perform a time-propagation calculation. | |||
====Setting up the bands==== | |||
With {{TAG|NBANDS}}=12 you inform VASP that there are 12 states in total in the {{TAG|WAVECAR}} and {{TAG|WAVEDER}}. This must be consistent with Step 1! The number of occupied and unoccupied states that are used in th propagation is controlled by the {{TAG|NBANDSO}} and {{TAG|NBANDSV}}, respectively. To choose which bands to use, it is advisable to understand the type of property you want to compute. For instance, in the case of optical absorption, materials are probed within a few hundreds of milli-electronvolt of the band gap. In this case it means that you do not need to use states that lie too far away in energy from the band extrema. | |||
In this example VASP will to use {{TAG|NBANDSO}}=4 occupied and {{TAG|NBANDSV}}=8 unoccupied states during the time propagation. You should be aware that there is no need to use the total number of bands set up by {{TAG|NBANDS}}, but still {{TAG|NBANDSO}}+{{TAG|NBANDSV}} cannot be larger than {{TAG|NBANDS}}. | |||
====Setting up the time-step==== | |||
Since VASP is now integrating a time-dependent differential equation, you need to specify the time-step used to propagate the dipole moments. By default, VASP will use 20000 steps, however you can set a different number with the tag {{TAG|NELMGW}}. Nevertheless, {{TAG|NELMGW}} must be larger than 100, otherwise VASP will revert to the default. | |||
This means that it is the length of the time step and the maximum propagation time that are dependent on the system in case and your input tags. These are controlled via the {{TAG|CSHIFT}} and {{TAG|OMEGAMAX}} tags. | |||
The next parameter, {{TAG|CSHIFT}} controls the <math>\eta</math> parameter, which is also the width used in the plotting of the dielectric function, since | The next parameter, {{TAG|CSHIFT}} controls the <math>\eta</math> parameter, which is also the width used in the plotting of the dielectric function, since | ||
Line 89: | Line 101: | ||
and the <math>\delta</math>-function is approximated as <math>\delta(\omega - E_\lambda) = \lim_{\eta\to 0^+}\frac{1}{\pi}\frac{\eta}{(\omega - E_\lambda)^2+\eta^2}</math>. | and the <math>\delta</math>-function is approximated as <math>\delta(\omega - E_\lambda) = \lim_{\eta\to 0^+}\frac{1}{\pi}\frac{\eta}{(\omega - E_\lambda)^2+\eta^2}</math>. | ||
====Choosing the direction of perturbation==== | ====Choosing the direction of perturbation==== | ||
Revision as of 09:58, 11 July 2024
The macroscopic dielectric function, , measures how a given dielectric medium reacts when subject to an external electric field. From one can extract several optical properties such as absorption, optical conductivity, reflectance. However, it is important that the interacting electrons and holes are taken into account. This makes the evaluation of the macroscopic dielectric function more involved, since it goes beyond the single-particle level, working either at the Bethe-Salpeter or time-dependent density-functional theory level.
Within VASP, users can select two different methods for how is computed. The first is based on the eigendecomposition of the electron-hole Hamiltonian, . It allows for the evaluation of by first obtaining the eigenvalues and eigenvectors of and it is based on the Bethe-Salpeter equation or the Casida equation. The second method transforms the mathematical expression of into a time-dependent integral. By propagating in time the dipolar moments and then applying a Fourier transform, it can compute .
The advantage of the later method in comparison to the former is related to the cost, with the time-dependent integral being , while the eigendecomposition has a cost of , where is the rank of . This means that for very large numbers of bands or k-points, the time-dependent formalism is cheaper than the eigendecomposition method.
Below we present a brief description of the method, from its theoretical support to how calculations should be performed, with the relevant approximations needed in the two-particle Hamiltonian.
The macroscopic-dielectric function as a time-dependent integral
The starting point is that one can re-write as a time-dependent integral[1]. It starts from its expression, given by
- ,
where is the dipolar moment associated to the the conduction and valence band , and k-point , is the index of the eigenstate of , with and being the associated eigenvector and eigenvalue. This equation can be brought into operational form,
by using the spectral decomposition . Then, one can bring the new expression of into a time-dependent integral, by using
- ,
and recognising that is the exponential form of a time-dependent equation. These considerations allow the expression of to be written as
- ,
The fundamental aspect behind this transformation is that the new, time-dependent vector follows the equation
with the initial vector elements given by .
To compute the dielectric function with this method, VASP evaluates and stores at each time step the projections of over , . It is the fact that all these operations are of the matrix-vector type that makes this method having a cost of the order of .
Perturbing all transitions with a delta-like potential
explain how the system is perturbed with the delta-potential
The many-body terms in the hamiltonian
Independent-particle approximation
Hartree exchange potential
Screened two-particle interaction
Exchange-correlation effects from time-dependent density functional theory
Ladder diagrams from many-body perturbation theory
explain what different components are included in H (LFXC,LHARTREE,LADDER, or none)
Step-by-step instructions
Step 1: ground state with extra empty states
The starting point is a ground-state calculation which includes extra empty states, whose number is controlled in the INCAR file with the tag NBANDS. Taking the following input file as an example:
SYSTEM = Si NBANDS = 12 ISMEAR = 0 ; SIGMA = 0.05 ALGO = N LOPTICS = .TRUE. KPAR = 4
8 empty bands are chosen (silicon has 4 occupied bands in the pseudo-potential file, thus making a total of 12 bands). However, with ALGO=N, VASP will employ an iterative diagonalization algorithm, meaning that the last conduction states will not be converged with the same accuracy as the occupied states. It is possible to avoid this by setting ALGO=Exact, or by increasing the number of bands to make sure that the states which will be used in the time-propagation step are converged with the same level of accuracy.
Finally, with LOPTICS=.TRUE., VASP will compute the dipole momentum for each possible transition (recall the definition of the dipole momentum vector). These are written in the file WAVEDER, which will be used in the next step.
Step 2: time-evolution run
One the ground state with extra empty states is computed, you can copy the resulting WAVECAR and WAVEDER files to another directory where you will perform the time propagation. The following will be used as an example INCAR file:
SYSTEM = Si ALGO = TIMEEV !Information about the bands NBANDS = 12 NBANDSO = 4 NBANDSV = 8 !Smearing parameters ISMEAR = 0 ; SIGMA = 0.05 !Direction of propagation IEPSILON = 1 !Parallelization options KPAR = 4 !Time-propagation parameters NELMGW = 2000 CSHIFT = 0.1 OMEGAMAX = 20
We begin by noticing that now ALGO is set to TIMEEV, meaning that VASP will now perform a time-propagation calculation.
Setting up the bands
With NBANDS=12 you inform VASP that there are 12 states in total in the WAVECAR and WAVEDER. This must be consistent with Step 1! The number of occupied and unoccupied states that are used in th propagation is controlled by the NBANDSO and NBANDSV, respectively. To choose which bands to use, it is advisable to understand the type of property you want to compute. For instance, in the case of optical absorption, materials are probed within a few hundreds of milli-electronvolt of the band gap. In this case it means that you do not need to use states that lie too far away in energy from the band extrema.
In this example VASP will to use NBANDSO=4 occupied and NBANDSV=8 unoccupied states during the time propagation. You should be aware that there is no need to use the total number of bands set up by NBANDS, but still NBANDSO+NBANDSV cannot be larger than NBANDS.
Setting up the time-step
Since VASP is now integrating a time-dependent differential equation, you need to specify the time-step used to propagate the dipole moments. By default, VASP will use 20000 steps, however you can set a different number with the tag NELMGW. Nevertheless, NELMGW must be larger than 100, otherwise VASP will revert to the default.
This means that it is the length of the time step and the maximum propagation time that are dependent on the system in case and your input tags. These are controlled via the CSHIFT and OMEGAMAX tags.
The next parameter, CSHIFT controls the parameter, which is also the width used in the plotting of the dielectric function, since
and the -function is approximated as .