CRPA of SrVO3: Difference between revisions

From VASP Wiki
No edit summary
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:gw}}
{{Template:GW - Tutorial}}
The following tutorial describes how to perform CRPA calculations, which is available as of VASP 6.
== Task ==  
== Task ==  
 
Calculation of the Coulomb matrix elements <math>U_{ijkl}(\omega=0)</math> in the constrained Random Phase Approximation ([[Constrained Random Phase Approximation|CRPA]]) of SrVO<sub>3</sub> between the Vanadium t<sub>2g</sub> states.
Calculation of the Coulomb matrix elements U<sub>ijkl</sub> in the constrained Random Phase Approximation ([[Constrained Random Phase Approximation|CRPA]]) of SrVO<sub>3</sub>.
----
----


Line 10: Line 10:
The easiest way to run this example is to execute:
The easiest way to run this example is to execute:
  ./doall.sh
  ./doall.sh
And compare the output of the different steps (DFT, GW, HSE) by:
./plotall.sh


In any case, one can consider the <tt>doall.sh</tt> script to be an overview of the steps described below.
In any case, one can consider the <tt>doall.sh</tt> script to be an overview of the steps described below.
Line 21: Line 18:
*{{TAG|INCAR}} (see INCAR.DFT)
*{{TAG|INCAR}} (see INCAR.DFT)
   
   
  {{TAGBL|SYSTEM}}  = SrVO3                       # system name
  {{TAGBL|SYSTEM}}  = SrVO3   # system name
  {{TAGBL|NBANDS}} = 36                           # small number  of bands
  {{TAGBL|NBANDS}} = 36       # small number  of bands
  {{TAGBL|ISMEAR}} = 0                             # Gaussian smearing
  {{TAGBL|ISMEAR}} = 0         # Gaussian smearing
  {{TAGBL|EDIFF}} = 1E-8                           # high precision for groundstate calculation
  {{TAGBL|EDIFF}} = 1E-8       # high precision for groundstate calculation
  {{TAGBL|KPAR}} = 2                               # parallelization of k-points in two groups
  {{TAGBL|KPAR}} = 2           # parallelization of k-points in two groups


Copy the aforementioned file to {{TAG|INCAR}}:
Copy the aforementioned file to {{TAG|INCAR}}:
Line 52: Line 49:
The {{TAG|KPOINTS}} file describes how the first Brillouin zone is sampled.
The {{TAG|KPOINTS}} file describes how the first Brillouin zone is sampled.
In the first step we use a uniform k-point sampling:
In the first step we use a uniform k-point sampling:
*{{TAG|KPOINTS}} (see KPOINTS.BULK)
*{{TAG|KPOINTS}}
<pre>
<pre>
Automatically generated mesh
Automatically generated mesh
      0
0
Gamma
Gamma
  4 4 4
  4 4 4
Line 62: Line 59:


'''Mind''': this is definitely not dense enough for a high-quality description of SrVO<sub>3</sub>, but in the interest of speed we will live with it.
'''Mind''': this is definitely not dense enough for a high-quality description of SrVO<sub>3</sub>, but in the interest of speed we will live with it.
Copy the aforementioned file to {{TAG|KPOINTS}}:


cp KPOINTS.BULK KPOINTS
Run VASP. If all went well, one should obtain a {{TAG|WAVECAR}} file containing the PBE wavefunction.
 
and run VASP. If all went well, one should obtain a {{TAG|WAVECAR}} file containing the PBE wavefunction.


== Obtain DFT virtual orbitals and long-wave limit ==
== Obtain DFT virtual orbitals and long-wave limit ==
Line 73: Line 67:
*{{TAG|INCAR}} (see INCAR.DIAG)
*{{TAG|INCAR}} (see INCAR.DIAG)
   
   
  {{TAGBL|SYSTEM}} = SrVO3                         # system name
  {{TAGBL|SYSTEM}} = SrVO3     # system name
  {{TAGBL|ISMEAR}} = 0                             # Gaussian smearing
  {{TAGBL|ISMEAR}} = 0         # Gaussian smearing
  {{TAGBL|KPAR}} = 2                               # parallelization of k-points in two groups
  {{TAGBL|KPAR}} = 2           # parallelization of k-points in two groups
  {{TAGBL|ALGO}} = Exact                           # exact diagonalization
  {{TAGBL|ALGO}} = Exact       # exact diagonalization
  {{TAGBL|NELM}} = 1                               # one electronic step suffices, since WAVECAR from previous step is present
  {{TAGBL|NELM}} = 1           # one electronic step suffices, since WAVECAR from previous step is present
  {{TAGBL|NBANDS}} = 96                           # need for a lot of bands in GW
  {{TAGBL|NBANDS}} = 96       # need for a lot of bands in GW
  {{TAGBL|LOPTICS}} = .TRUE.                       # we need d phi/ d k  for GW calculations for long-wave limit
  {{TAGBL|LOPTICS}} = .TRUE.   # we need d phi/ d k  for GW calculations for long-wave limit


Restart VASP.
Restart VASP.
Line 85: Line 79:
  cp {{TAGBL|WAVECAR}} WAVECAR.DIAG
  cp {{TAGBL|WAVECAR}} WAVECAR.DIAG
  cp {{TAGBL|WAVEDER}} WAVEDER.DIAG
  cp {{TAGBL|WAVEDER}} WAVEDER.DIAG
Also make a backup of the charge density for later:
cp {{TAGBL|CHGCAR}} CHGCAR.DIAG


=== The dielectric function ===
== CRPA Calculation ==
 
Calculate the CRPA interaction parameters for the t2g states by using the PBE wavefunction as input
As a bonus, VASP determines the frequency dependent dielectric function in the independent-particle (IP) picture and writes the result to the {{FILE|OUTCAR}} and {{FILE|vasprun.xml}} files.
In the {{FILE|OUTCAR}} you should search for
 
  frequency dependent IMAGINARY DIELECTRIC FUNCTION (independent particle, no local field effects)
 
and
 
  frequency dependent      REAL DIELECTRIC FUNCTION (independent particle, no local field effects)
 
To visualize the real and imaginary parts of the frequency dependent dielectric function (from the {{FILE|vasprun.xml}}) you may execute
 
./plotoptics2
 
== GW Step ==
The actual GW calculation requires a set of one-electron energies and eigenstates. In this case we use the PBE solution obtained from previous step:
  cp WAVECAR.DIAG {{TAGBL|WAVECAR}}
  cp WAVECAR.DIAG {{TAGBL|WAVECAR}}
  cp WAVEDER.DIAG {{TAGBL|WAVEDER}}
  cp WAVEDER.DIAG {{TAGBL|WAVEDER}}
Use following Wannier projection for the basis:


The following {{TAG|INCAR}} file selects the 'single shot' GW calculation also known as G<sub>0</sub>W<sub>0</sub>:
*{{TAG|wannier90.win}} (see wannier90.win.CRPA)
*{{TAG|INCAR}} (see INCAR.GW0)
num_wann =    3
num_bands=  96
   
   
  {{TAGBL|SYSTEM}} = SrVO3                        # system name
  # PBE energy window of t2g states (band 21-23)
{{TAGBL|ISMEAR}} = 0                            # Gaussian smearing
  dis_win_min = 6.4
{{TAGBL|KPAR}} = 2                              # parallelization of k-points in two groups
  dis_win_max = 9.0
{{TAGBL|ALGO}} = GW0                            # GW with iteration in G, W kept on DFT level
{{TAGBL|NELM}} = 1                              # one electronic step suffices, since WAVECAR from previous step is present
{{TAGBL|NBANDS}} = 96                            # need for a lot of bands in GW
{{TAGBL|PRECFOCK}} = Fast                        # fast mode for FFTs
{{TAGBL|ENCUTGW}} = 100                          # small energy cutoff for response function suffices for this tutorial
  {{TAGBL|NOMEGA}} = 200                          # large number of real frequency points for Hilbert transforms of W and self-energy
 
Restarting VASP will overwrite the present {{TAGBL|WAVECAR}} and {{TAGBL|vasprun.xml}} file. Make a copy them for later.  
  cp {{TAGBL|WAVECAR}} WAVECAR.GW0
cp {{TAGBL|vasprun.xml}} vasprun.GW0.xml
 
=== The dielectric function ===
 
To extract the frequency dependent dielectric constant, both in the independent-particle picture as well as including local field effects (either in DFT or in the RPA) and plot the real and imaginary components using ''gnuplot'', execute
 
./plotchi
 
== HSE hybrid functional ==
 
To illustrate the kind of results one would obtain for SrVO<sub>3</sub> using the [[Hartree-Fock_and_HF/DFT_hybrid_functionals#range_separated|DFT/Hartree-Fock hybrid functional HSE]], without actually doing a full selfconsistent calculation, we will recalculate the one-electron energies and DOS ({{TAG|ALGO}}=Eigenval) using the HSE functional with DFT orbitals as input
cp WAVECAR.DIAG {{TAGBL|WAVECAR}}
 
Use the following {{TAG|INCAR}} file:
*{{TAG|INCAR}} (see INCAR.HSE)
   
   
  {{TAGBL|SYSTEM}} = SrVO3                        # system name
  begin projections
{{TAGBL|ISMEAR}} = 0                            # Gaussian smearing
  V:dxy;dxz;dyz
{{TAGBL|KPAR}} = 2                              # parallelization of k-points in two groups
  end projections
{{TAGBL|ALGO}} = Eigenval                        # calulate eigenvalues
{{TAGBL|NELM}} = 1                              # one electronic step suffices, since WAVECAR from previous step is present
{{TAGBL|NBANDS}} = 48                            # small number of bands suffice
{{TAGBL|PRECFOCK}} = Fast                        # fast mode for FFTs
{{TAGBL|LHFCALC}} = .TRUE.                      # switch on Hartree-Fock routines to calculate exact exchange
  {{TAGBL|HFSCREEN}} = 0.2                        # HSE06 screening parameter


Restart VASP and make a copy of the wavefunction for post-processing
Copy this file to wannier90.win
  cp {{TAGBL|WAVECAR}} WAVECAR.HSE
  cp wannier90.win.CRPA wannier90.win


== Post-processing: Density of states and Band structure for PBE, GW and HSE ==
And use following input file as
 
*{{TAG|INCAR}} (see INCAR.CRPA) and run vasp
===  Density of States ===
The DOS of the PBE, GW and HSE solution can be calculated in a post-processing step with
*{{TAG|INCAR}} (see INCAR.DOS)
   
   
  {{TAGBL|SYSTEM}} = SrVO3                         # system name
  {{TAGBL|SYSTEM}} = SrVO3           # system name
  {{TAGBL|ISMEAR}} = -5                            # Bloechl's tetrahedron method (requires at least 3x3x3 k-points)
  {{TAGBL|ISMEAR}} = 0                # Gaussian smearing
  {{TAGBL|ALGO}} = NONE                            # no electronic changes required
  {{TAGBL|NCSHMEM}} = 1              # switch off shared memory for chi
  {{TAGBL|NELM}} = 1                              # one electronic step suffices, since WAVECAR from previous step is present
  {{TAGBL|ALGO}} = CRPA              # Switch on CRPA
  {{TAGBL|NBANDS}} = 48                            # number of bands used
  {{TAGBL|NBANDS}} = 96              # CRPA needs many empty states
{{TAGBL|EMIN}} = -20 ; {{TAGBL|EMAX}} = 20                # smallest/largest energy included in calculation
  {{TAGBL|PRECFOCK}} = Fast          # fast mode for FFTs
  {{TAGBL|NEDOS}} = 1000                          # sampling points for DOS
  {{TAGBL|NTARGET_STATES}} = 1 2 3    # exclude wannier states 1 - 3 in screening
  {{TAGBL|LORBIT}} = 11                            # calculate l-m decomposed DOS
  {{TAGBL|LWRITE_WANPROJ}} = .TRUE.   # write wannier projection file
  {{TAGBL|LWAVE}} = .FALSE.                       # do not overwrite WAVECAR
{{NB|mind|Versions 6.2.0 - 6.4.2 do not read wannier90.win files for CRPA calculations. To run this tutorial successfully with these versions add following lines to INCAR}}
{{TAGBL|LCHARG}} = .FALSE.                       # do not overwrite CHGCAR


and requires the apropriate {{TAG|WAVECAR}} file from one of the previous steps. Copy
  {{TAGBL|NUM_WANN}} = 3
cp WAVECAR.DIAG WAVECAR
  {{TAGBL|WANNIER90_WIN}} = "
or
  num_bands=   96
cp WAVECAR.GW0 WAVECAR
or
cp WAVECAR.HSE WAVECAR
and restart VASP. The density of states is written to {{TAG|DOSCAR}}, make a copy of this file
cp {{TAGBL|DOSCAR}} DOSCAR.XXX
where XXX is either PBE, GW0 or HSE. Visualize the projected DOS for the V-t2g, V-eg and O-p states with the scriptfile
./plotdos.sh DOSCAR.*
This requires gnuplot to be installed.
 
===  Band structure with <tt>wannier90</tt>===
The band structure can be calculated via Wannier interpolation using <tt>wannier90</tt> in the library mode
*{{TAG|INCAR}} (see INCAR.WAN)
  {{TAGBL|SYSTEM}} = SrVO3                        # system name
  {{TAGBL|ISMEAR}} = 0                            # Gaussian smearing
{{TAGBL|ALGO}} = NONE                            # no electronic changes required
{{TAGBL|NELM}} = 1                              # one electronic step suffices, since WAVECAR from previous step is present
{{TAGBL|NBANDS}} = 48                            # number of bands used
{{TAGBL|LWAVE}} = .FALSE.                        # do not overwrite WAVECAR
{{TAGBL|LCHARG}} = .FALSE.                      # do not overwrite CHGCAR
{{TAGBL|LWANNIER90_RUN}} = .TRUE.                # run wannier90 in library mode
Use the corresponding wannier90.win.XXX file as input for <tt>wannier90</tt>
cp wannier90.win.XXX wannier90.win
where XXX=PBE, GW0 or HSE and looks similar to
  bands_plot = true
   
   
  begin kpoint_path
  # PBE energy window of t2g states (band 21-23)
  R  0.50000000  0.50000000  0.50000000  G  0.00000000  0.00000000  0.00000000
  dis_win_min = 6.4
  G  0.00000000  0.00000000  0.00000000  X  0.50000000  0.00000000  0.00000000
  dis_win_max = 9.0
X  0.50000000  0.00000000  0.00000000  M  0.50000000  0.50000000  0.00000000
M  0.50000000  0.50000000  0.00000000  G  0.00000000  0.00000000  0.00000000
end kpoint_path
   
   
  # number of wannier states
  begin projections
  num_wann =    3
  V:dxy;dxz;dyz
end projections
  "
The CRPA interaction values for <math>\omega=0</math> can be found in the {{TAG|OUTCAR}}:
spin components:  1  1, frequency:    0.0000    0.0000
screened Coulomb repulsion U_iijj between MLWFs:
        1        2        3
    1    3.3746    2.3385    2.3385
    2    2.3385    3.3746    2.3385
    3    2.3385    2.3385   3.3746
   
   
  # number of bloch bands
  screened Coulomb repulsion U_ijji between MLWFs:
num_bands=  96
        1        2        3
    1    3.3746    0.4429    0.4429
    2    0.4429    3.3746    0.4429
    3    0.4429    0.4429    3.3746
   
   
  # GW energy window for t2g states
  screened Coulomb repulsion U_ijij between MLWFs:
dis_win_min = 7.4
        1        2        3
dis_win_max = 9.95
    1    3.3746    0.4429    0.4429
    2    0.4429    3.3746    0.4429
    3    0.4429    0.4429    3.3746
   
   
  begin projections
  averaged interaction parameter
  V:dxy;dxz;dyz
  screened Hubbard U =    3.3746  -0.0000
  end projections
  screened Hubbard u =    2.3385    0.0000
screened Hubbard J =    0.4429  -0.0000


Use the corresponding WAVECAR.XXX file as input
:'''N.B.:''' The frequency point <math>\omega</math> can be set by {{TAG|OMEGAMAX}} in the INCAR. For instance to evaluate the CRPA interaction matrix at <math>\omega=10</math> eV, add
cp WAVECAR.XXX {{TAGBL|WAVECAR}}
  {{TAGBL|OMEGAMAX}} = 10
and restart VASP. If all went well, the Vanadium t2g band dispersion thus obtained, may conveniently be visualized with gnuplot:
to the INCAR and restart VASP. In contrast, adding following two lines to the {{TAG|INCAR}}
gnuplot -persist ./wannier90_band.gnu
  {{TAGBL|OMEGAMAX}} = 10
  {{TAGBL|NOMEGAR}} = 0
tells VASP to calculate the interaction on the imaginary frequency axis at <math>\omega=i 10</math>. This can be used to evaluate <math>U</math> at a specific Matsubara frequency point.  


:'''N.B.:''' Most modern versions of <tt>gnuplot</tt> will respond with an error message unless you remove the first line of <tt>wannier90_band.gnu</tt> (some deprecated syntax issue).
In addition, the bare Coulomb interaction matrix is calculated for a high {{TAG|VCUTOFF}} and low energy cutoff {{TAG|ENCUTGW}} and written in that order to the {{TAG|OUTCAR}} file. Look for the lines similar to:


=== Alternative way to calculate the PBE band structure ===
spin components:  1  1
VASP allows to interpolate the PBE band structure from the PBE charge density
   cp CHGCAR.DIAG CHGCAR
bare Coulomb repulsion V_iijj between MLWFs:
   cp WAVECAR.DIAG WAVECAR
        1        2        3
by adapting the {{TAG|KPOINTS}} file as follows:
    1   16.3485   15.0984  15.0984
*{{TAG|KPOINTS}} (see KPOINTS.BSTR)
    2  15.0984  16.3485  15.0984
Auto
    3   15.0984  15.0984  16.3485
15
Linemode
reciprocal
0.50000000  0.50000000  0.50000000   !R
0.00000000  0.00000000  0.00000000  !G
   
   
  0.00000000  0.00000000  0.00000000   !G
  bare Coulomb repulsion V_ijji between MLWFs:
0.50000000  0.00000000  0.00000000   !X
        1        2        3
    1  16.3485    0.5351    0.5351
    2    0.5351   16.3485    0.5351
    3    0.5351    0.5351   16.3485
   
   
  0.50000000  0.00000000  0.00000000   !X
  bare Coulomb repulsion V_ijij between MLWFs:
0.50000000  0.50000000  0.00000000   !M
        1        2        3
    1  16.3485    0.5351    0.5351
    2    0.5351   16.3485    0.5351
    3    0.5351    0.5351   16.3485
   
   
  0.50000000 0.50000000  0.00000000   !M
  averaged bare interaction
0.00000000  0.00000000  0.00000000   !G
  bare Hubbard U =   16.3485   -0.0000
The following {{TAGBL|INCAR}} file tells VASP to interpolate the band structure:
  bare Hubbard u =   15.0984  -0.0000
*{{TAG|INCAR}} (see INCAR.BSTR)
  bare Hubbard J =   0.5351    0.0000
{{TAGBL|SYSTEM}} = SrVO3                        # system name
{{TAGBL|ISMEAR}} = 0                             # Gaussian smearing
{{TAGBL|EDIFF}} = 1E-7                          # tight convergence criterion
{{TAGBL|NBANDS}} = 36                            # 36 bands are sufficient
{{TAGBL|LWAVE}} = .FALSE.                       # do not overwrite WAVECAR
  {{TAGBL|LCHARG}} = .FALSE.                       # do not overwrite CHGCAR
  {{TAGBL|ICHARG}} = 11                            # use CHGCAR file for interpolation
{{TAGBL|LORBIT}} = 11                            # compute lm-decomposed states
{{TAGBL|EMIN}} = -20 ; {{TAGBL|EMAX}} = 20                # smallest/largest energy included in calculation
{{TAGBL|NEDOS}} = 1000                          # sampling points for DOS
This PBE band structure and the Wannier-interpolated structures of the PBE, HSE and GW calculation can be compared via
./plotbands.sh
:'''N.B.:''' Mind that this approach works only for DFT wavefunctions, like PBE or LDA.


== CRPA Calculation ==
=== CRPA calculation with spacetime Algorithm ===
Calculate the CRPA interaction parameters for the t2g states by using the PBE wavefunction as input
Note that the same frequency grid is used as for {{TAG|ALGO}}=RPA (RPA correlation energy calculation) and can not be changed directly.
To calculate the CRPA interaction for a set of automatically chosen imaginary frequency points use once again the PBE wavefunction as input
  cp WAVECAR.DIAG {{TAGBL|WAVECAR}}
  cp WAVECAR.DIAG {{TAGBL|WAVECAR}}
  cp WAVEDER.DIAG {{TAGBL|WAVEDER}}
  cp WAVEDER.DIAG {{TAGBL|WAVEDER}}
Use following Wannier projection for the basis:
Currently, this step requires uses the {{TAG|WANPROJ}} file from previous step, no wannier90.win file is necessary.
 
Select the space-time CRPA algorithm with following file:
*{{TAG|INCAR}} (see INCAR.CRPAR)
{{TAGBL|SYSTEM}} = SrVO3            # system name
{{TAGBL|ISMEAR}} = 0                # Gaussian smearing
{{TAGBL|NCSHMEM}} = 1                # switch off shared memory for chi
{{TAGBL|ALGO}} = CRPAR              # Switch on CRPA on imaginary axis
{{TAGBL|NBANDS}} = 96                # CRPA needs many empty states
{{TAGBL|PRECFOCK}} = Fast            # fast mode for FFTs
{{TAGBL|NTARGET_STATES}} = 1 2 3    # exclude wannier states 1 - 3 in screening
{{TAGBL|NCRPA_BANDS}} = 21 22 23    # remove bands 21-23 in screening, currently required for space-time algo
{{TAGBL|NOMEGA}} = 12                # use 12 imaginary frequency points
{{TAGBL|NTAUPAR}} = 4                # distribute 12 time points into 4 groups
{{NB|mind|Versions 6.2.0 - 6.4.2 do not read wannier90.win files for CRPA calculations. To run this tutorial successfully with these versions add following lines to INCAR}}


*{{TAG|wannier90.win}} (see wannier90.win.CRPA)
{{TAGBL|NUM_WANN}} = 3
  num_wann =   3
  {{TAGBL|WANNIER90_WIN}} = "
  num_bands=  96
  num_bands=  96
   
   
Line 279: Line 219:
   V:dxy;dxz;dyz
   V:dxy;dxz;dyz
  end projections
  end projections
"
Run VASP and make a copy of the output file
cp {{TAGBL|OUTCAR}} OUTCAR.CRPAR


Copy this file to wannier90.win
After a successful run, the interaction values are written to the {{TAG|OUTCAR}} file. Here is the result for the first frequency point:
cp wannier90.win.CRPA wannier90.win
spin components:  1  1, frequency:    0.0000    0.2248
 
And use following input file as
*{{TAG|INCAR}} (see INCAR.CRPA)
   
   
{{TAGBL|SYSTEM}} = SrVO3                        # system name
{{TAGBL|ISMEAR}} = 0                            # Gaussian smearing
{{TAGBL|NCSHMEM}} = 1                            # switch off shared memory for chi
{{TAGBL|ALGO}} = CRPA                            # Switch on CRPA
{{TAGBL|NBANDS}} = 96                            # CRPA needs many empty states
{{TAGBL|PRECFOCK}} = Fast                        # fast mode for FFTs
{{TAGBL|NTARGET_STATES}} = 1 2 3                # exclude wannier states 1 - 3 in screening
{{TAGBL|LWRITE_WANPROJ}} = .TRUE.                # write wannier projection file
and run VASP. The CRPA interaction values can be found in the {{TAG|OUTCAR}} file after following lines
  screened Coulomb repulsion U_iijj between MLWFs:
  screened Coulomb repulsion U_iijj between MLWFs:
including an averaged value:
        1        2        3
screened Hubbard U =   3.3746  -0.0000
    1   3.3798    2.3436    2.3436
Make a copy of the output file
    2    2.3436    3.3798    2.3436
cp {{TAGBL|OUTCAR}} OUTCAR.CRPA
    3    2.3436    2.3436    3.3798
 
=== CRPA calculation on full imaginary frequency axis (optional) ===
screened Coulomb repulsion U_ijji between MLWFs:
To calculate the CRPA interaction for a set of imaginary frequency points use once again the PBE wavefunction as input
        1        2        3
cp WAVECAR.DIAG {{TAGBL|WAVECAR}}
    1    3.3798    0.4433    0.4433
cp WAVEDER.DIAG {{TAGBL|WAVEDER}}
    2    0.4433    3.3798    0.4433
This step requires uses the WANPROJ file from previous step, no wannier90.win file is necessary.
    3    0.4433    0.4433    3.3798
 
Select the space-time CRPA algorithm with following file:
screened Coulomb repulsion U_ijij between MLWFs:
*{{TAG|INCAR}} (see INCAR.CRPAR)
        1        2        3
    1    3.3798    0.4433    0.4433
    2    0.4433    3.3798    0.4433
    3    0.4433    0.4433    3.3798
   
   
  {{TAGBL|SYSTEM}} = SrVO3                        # system name
  averaged interaction parameter
  {{TAGBL|ISMEAR}} = 0                             # Gaussian smearing
  screened Hubbard U =   3.3798  -0.0000
{{TAGBL|NCSHMEM}} = 1                            # switch off shared memory for chi
  screened Hubbard u =   2.3436    0.0000
{{TAGBL|ALGO}} = CRPAR                          # Switch on CRPA on imaginary axis
  screened Hubbard J =   0.4433  -0.0000
{{TAGBL|NBANDS}} = 96                            # CRPA needs many empty states
{{TAGBL|PRECFOCK}} = Fast                        # fast mode for FFTs
  {{TAGBL|NTARGET_STATES}} = 1 2 3                # exclude wannier states 1 - 3 in screening
  {{TAGBL|NCRPA_BANDS}} = 21 22 23                # remove bands 21-23 in screening, currently required for space-time algo
{{TAGBL|NOMEGA}} = 12                            # use 12 imaginary frequency points
{{TAGBL|NTAUPAR}} = 4                            # distribute 12 time points into 4 groups


Run VASP and make a copy of the output file
:'''N.B.:''' The number of frequency points should be large enough to guarantee for an accurate Fourier transformation of the CRPA polarizability matrix from the imaginary time to imaginary frequency domain. See [[ACFDT/RPA calculations#Low_scaling_ACFDT.2FRPA_algorithm|ACFDT/RPA calculations]] for more information.
cp {{TAGBL|OUTCAR}} OUTCAR.CRPAR
The resulting interactions are written for every imaginary frequency point to the {{TAG|OUTCAR}} file.
For instance, to extract the averaged on-site U interaction for each point enter following command
grep "screened Hubbard U" OUTCAR
resulting in following output
screened Hubbard U =    3.3798  -0.0000
screened Hubbard U =    3.4172  -0.0000
screened Hubbard U =    3.5169  -0.0000
screened Hubbard U =    3.7418  -0.0000
screened Hubbard U =    4.2069  -0.0000
screened Hubbard U =    5.0802  -0.0000
screened Hubbard U =    6.5456  -0.0000
screened Hubbard U =    8.6426  -0.0000
screened Hubbard U =  11.0815  -0.0000
screened Hubbard U =  13.3615  -0.0000
screened Hubbard U =  15.0636  -0.0000
screened Hubbard U =  16.0412  -0.0000
Here each line corresponds to an (increasing) imaginary frequency point.  
The first line is the CRPA interaction at the lowest frequency point and is roughly the same as the value at 0 calculated in previous step.  
The last line (interaction at the highest frequency point) approaches the bare Coulomb interaction in this basis, which is also written to the {{TAG|OUTCAR}}:
bare Hubbard U =  16.3485    0.0000


== Downloads ==
[[Media:CRPA of SrVO3.tgz| CRPA_of_SrVO3.tgz]]


{{Template:gw}}
{{Template:GW - Tutorial}}


Back to the [[The_VASP_Manual|main page]].
Back to the [[The_VASP_Manual|main page]].


[[Category:Examples]]
[[Category:Examples]][[Category:Constrained-random-phase approximation]]

Latest revision as of 14:38, 20 February 2024

The following tutorial describes how to perform CRPA calculations, which is available as of VASP 6.

Task

Calculation of the Coulomb matrix elements in the constrained Random Phase Approximation (CRPA) of SrVO3 between the Vanadium t2g states.


Performing a CRPA calculation with VASP is a 3-step procedure: a DFT groundstate calculation, a calculation to obtain a number of virtual orbitals, and the actual CRPA calculation itself.

N.B.: This example involves quite a number of individual calculations. The easiest way to run this example is to execute:

./doall.sh

In any case, one can consider the doall.sh script to be an overview of the steps described below.

DFT groundstate calculation

The first step is a conventional DFT (in this case PBE) groundstate calculation.

SYSTEM  = SrVO3    # system name
NBANDS = 36        # small number  of bands
ISMEAR = 0         # Gaussian smearing
EDIFF = 1E-8       # high precision for groundstate calculation
KPAR = 2           # parallelization of k-points in two groups

Copy the aforementioned file to INCAR:

cp INCAR.DFT INCAR

The POSCAR file describes the structure of the system:

SrVO3
3.84652  #cubic fit for 6x6x6 k-points
 +1.0000000000  +0.0000000000  +0.0000000000 
 +0.0000000000  +1.0000000000  +0.0000000000 
 +0.0000000000  +0.0000000000  +1.0000000000 
Sr V O
 1 1 3
Direct
 +0.0000000000  +0.0000000000  +0.0000000000 
 +0.5000000000  +0.5000000000  +0.5000000000 
 +0.5000000000  +0.5000000000  +0.0000000000 
 +0.5000000000  +0.0000000000  +0.5000000000 
 +0.0000000000  +0.5000000000  +0.5000000000

This file remains unchanged in the following.

The KPOINTS file describes how the first Brillouin zone is sampled. In the first step we use a uniform k-point sampling:

Automatically generated mesh
 0
Gamma
 4 4 4
 0 0 0

Mind: this is definitely not dense enough for a high-quality description of SrVO3, but in the interest of speed we will live with it.

Run VASP. If all went well, one should obtain a WAVECAR file containing the PBE wavefunction.

Obtain DFT virtual orbitals and long-wave limit

Use following INCAR file to increase the number of virtual states and to determine the long-wave limit of the polarizability (stored in WAVEDER):

SYSTEM = SrVO3     # system name
ISMEAR = 0         # Gaussian smearing
KPAR = 2           # parallelization of k-points in two groups
ALGO = Exact       # exact diagonalization
NELM = 1           # one electronic step suffices, since WAVECAR from previous step is present
NBANDS = 96        # need for a lot of bands in GW
LOPTICS = .TRUE.   # we need d phi/ d k  for GW calculations for long-wave limit

Restart VASP. At this stage it is a good idea to make a safety copy of the WAVECAR and WAVEDER files since we will repeatedly need them in the calculations that follow:

cp WAVECAR WAVECAR.DIAG
cp WAVEDER WAVEDER.DIAG

CRPA Calculation

Calculate the CRPA interaction parameters for the t2g states by using the PBE wavefunction as input

cp WAVECAR.DIAG WAVECAR
cp WAVEDER.DIAG WAVEDER

Use following Wannier projection for the basis:

num_wann =    3
num_bands=   96

# PBE energy window of t2g states (band 21-23)
dis_win_min = 6.4
dis_win_max = 9.0

begin projections
 V:dxy;dxz;dyz
end projections

Copy this file to wannier90.win

cp wannier90.win.CRPA wannier90.win

And use following input file as

  • INCAR (see INCAR.CRPA) and run vasp
SYSTEM = SrVO3            # system name
ISMEAR = 0                # Gaussian smearing
NCSHMEM = 1               # switch off shared memory for chi
ALGO = CRPA               # Switch on CRPA
NBANDS = 96               # CRPA needs many empty states
PRECFOCK = Fast           # fast mode for FFTs
NTARGET_STATES = 1 2 3    # exclude wannier states 1 - 3 in screening
LWRITE_WANPROJ = .TRUE.   # write wannier projection file
Mind: Versions 6.2.0 - 6.4.2 do not read wannier90.win files for CRPA calculations. To run this tutorial successfully with these versions add following lines to INCAR
NUM_WANN = 3 
WANNIER90_WIN = "
num_bands=   96

# PBE energy window of t2g states (band 21-23)
dis_win_min = 6.4
dis_win_max = 9.0

begin projections
 V:dxy;dxz;dyz
end projections
"

The CRPA interaction values for can be found in the OUTCAR:

spin components:  1  1, frequency:    0.0000    0.0000

screened Coulomb repulsion U_iijj between MLWFs:
        1         2         3
   1    3.3746    2.3385    2.3385
   2    2.3385    3.3746    2.3385
   3    2.3385    2.3385    3.3746

screened Coulomb repulsion U_ijji between MLWFs:
        1         2         3
   1    3.3746    0.4429    0.4429
   2    0.4429    3.3746    0.4429
   3    0.4429    0.4429    3.3746

screened Coulomb repulsion U_ijij between MLWFs:
        1         2         3
   1    3.3746    0.4429    0.4429
   2    0.4429    3.3746    0.4429
   3    0.4429    0.4429    3.3746 

averaged interaction parameter
screened Hubbard U =    3.3746   -0.0000
screened Hubbard u =    2.3385    0.0000
screened Hubbard J =    0.4429   -0.0000
N.B.: The frequency point can be set by OMEGAMAX in the INCAR. For instance to evaluate the CRPA interaction matrix at eV, add
 OMEGAMAX = 10

to the INCAR and restart VASP. In contrast, adding following two lines to the INCAR

 OMEGAMAX = 10 
 NOMEGAR = 0 

tells VASP to calculate the interaction on the imaginary frequency axis at . This can be used to evaluate at a specific Matsubara frequency point.

In addition, the bare Coulomb interaction matrix is calculated for a high VCUTOFF and low energy cutoff ENCUTGW and written in that order to the OUTCAR file. Look for the lines similar to:

spin components:  1  1

bare Coulomb repulsion V_iijj between MLWFs:
        1         2         3
   1   16.3485   15.0984   15.0984
   2   15.0984   16.3485   15.0984
   3   15.0984   15.0984   16.3485

bare Coulomb repulsion V_ijji between MLWFs:
        1         2         3
   1   16.3485    0.5351    0.5351
   2    0.5351   16.3485    0.5351
   3    0.5351    0.5351   16.3485

bare Coulomb repulsion V_ijij between MLWFs:
        1         2         3
   1   16.3485    0.5351    0.5351
   2    0.5351   16.3485    0.5351
   3    0.5351    0.5351   16.3485

averaged bare interaction
bare Hubbard U =   16.3485   -0.0000
bare Hubbard u =   15.0984   -0.0000
bare Hubbard J =    0.5351    0.0000

CRPA calculation with spacetime Algorithm

Note that the same frequency grid is used as for ALGO=RPA (RPA correlation energy calculation) and can not be changed directly. To calculate the CRPA interaction for a set of automatically chosen imaginary frequency points use once again the PBE wavefunction as input

cp WAVECAR.DIAG WAVECAR
cp WAVEDER.DIAG WAVEDER

Currently, this step requires uses the WANPROJ file from previous step, no wannier90.win file is necessary.

Select the space-time CRPA algorithm with following file:

SYSTEM = SrVO3             # system name
ISMEAR = 0                 # Gaussian smearing
NCSHMEM = 1                # switch off shared memory for chi
ALGO = CRPAR               # Switch on CRPA on imaginary axis
NBANDS = 96                # CRPA needs many empty states
PRECFOCK = Fast            # fast mode for FFTs
NTARGET_STATES = 1 2 3     # exclude wannier states 1 - 3 in screening
NCRPA_BANDS = 21 22 23     # remove bands 21-23 in screening, currently required for space-time algo
NOMEGA = 12                # use 12 imaginary frequency points
NTAUPAR = 4                # distribute 12 time points into 4 groups
Mind: Versions 6.2.0 - 6.4.2 do not read wannier90.win files for CRPA calculations. To run this tutorial successfully with these versions add following lines to INCAR
NUM_WANN = 3 
WANNIER90_WIN = "
num_bands=   96

# PBE energy window of t2g states (band 21-23)
dis_win_min = 6.4
dis_win_max = 9.0

begin projections
 V:dxy;dxz;dyz
end projections
"

Run VASP and make a copy of the output file

cp OUTCAR OUTCAR.CRPAR

After a successful run, the interaction values are written to the OUTCAR file. Here is the result for the first frequency point:

spin components:  1  1, frequency:    0.0000    0.2248

screened Coulomb repulsion U_iijj between MLWFs:
        1         2         3
   1    3.3798    2.3436    2.3436
   2    2.3436    3.3798    2.3436
   3    2.3436    2.3436    3.3798

screened Coulomb repulsion U_ijji between MLWFs:
        1         2         3
   1    3.3798    0.4433    0.4433
   2    0.4433    3.3798    0.4433
   3    0.4433    0.4433    3.3798

screened Coulomb repulsion U_ijij between MLWFs:
        1         2         3
   1    3.3798    0.4433    0.4433
   2    0.4433    3.3798    0.4433
   3    0.4433    0.4433    3.3798

averaged interaction parameter
screened Hubbard U =    3.3798   -0.0000
screened Hubbard u =    2.3436    0.0000
screened Hubbard J =    0.4433   -0.0000
N.B.: The number of frequency points should be large enough to guarantee for an accurate Fourier transformation of the CRPA polarizability matrix from the imaginary time to imaginary frequency domain. See ACFDT/RPA calculations for more information.

Downloads

CRPA_of_SrVO3.tgz

Back to the main page.