Guangcun's Blog分享 http://blog.sciencenet.cn/u/gcshan 哥伦比亚大学访问学者,香港城市大学校董 (2011-2012)

博文

INCAR文件中LREAL参数

已有 23635 次阅读 2014-3-6 01:15 |个人分类:科学札记|系统分类:科研笔记| VASP, LREAL


INCAR文件中LREAL参数


-----------------------------------------------------------------------------
|                                                                             |
|  ADVICE TO THIS USER RUNNING 'VASP/VAMP'   (HEAR YOUR MASTER'S VOICE ...):  |
|                                                                             |
|      You have a (more or less) 'large supercell' and for larger cells       |
|      it might be more efficient to use real space projection operators      |
|      So try LREAL= Auto  in the INCAR   file.                               |
|      Mind: If you want to do a very accurate calculations keep the          |
|      reciprocal projection scheme          (i.e. LREAL=.FALSE.)             |
|                                                                             |
-----------------------------------------------------------------------------

INCAR文件中LREAL参数是什么意思,应该如何设置。
现将这个参数和不同选择项意思列于下,供参考。

LREAL: Default= .FALSE.
 

LREAL是赝势的非局域部分用到的一个积分,其在倒格空间或者实空间都可以求值。这个
选项就是决定是在哪个空间里求。在倒格空间里,采用平面波基组求解,在实空间里,采
用积 分球求解。缺省是.FALSE,即不在实空间求。但效率会低一些。
 其他选项是 O or On,A or Auto 和.True.。
 On和.TRUE.的差别在于是否使用King-Smith算法优化,Auto则自动选择,推荐。

如在OUTCAR中出现如下字样
 -----------------------------------------------------------------------------
 
|                                                                
|
|  ADVICE TO THIS USER RUNNING 'VASP/VAMP' (HEAR YOUR MASTER'S VOICE ...):
|
|                                                                
|
|      You havea (more or less) 'large supercell' and for larger cells    
|
|      it mightbe more efficient to use real space projection operators    
|
|      So tryLREAL= Auto  in the INCAR   file.                        
|
|      Mind: Ifyou want to do an extremely accurate calculations keep the  
|
|     reciprocal projection scheme        (i.e. LREAL=.FALSE.)          
|
|                                                                
|
 -----------------------------------------------------------------------------
 
表明,选择LREAL选择为在倒格空间求解,这样的求解积分的方法对于大的晶包体系,会
影响计算效率,但不影响计算进度。可以根据需求选择LREAL参数项。


LREAL-tag (and ROPT-tag)LREAL = .TRUE. | .FALSE.          ROPT = [real array]


Default  
LREAL=.FALSE.



.FALSE.projection done in reciprocal space
.TRUE.projection done in real space,  (old, superseded by LREAL=O)
On or Oprojection done in real space,
 projection operators are re-optimized
Auto  or Aprojection done in real space,
 fully automatic optimization of projection operators
 no user interference required


Determines whether the projection operators are evaluated in real-space or in reciprocal space:The non local part of the pseudopotential requires the evaluation of an expression  $ .sum_{ij} D_{ij} .vert .beta_j>< .beta_i .vert.phi_{n{.bf k}}>$.The ``projected wavefunction character'' is defined as:

$.displaystyle .vspace*{1mm}
C_{in{.bf k}} = < .beta_i .vert.phi_{n{.bf k}}>$$.displaystyle =$$.displaystyle .frac{.Omega}{N_{.rm FFT}} .sum_{.bf r}< .beta_i.vert {.bf r}>< ...
...
.frac{.Omega}{N_{.rm FFT}} .sum_{.bf r}.beta({.bf r}) .phi_{n{.bf k}}({.bf r})$ 
 $.displaystyle =$$.displaystyle .sum_{.bf G}< .beta_i.vert {.bf k}+{.bf G}>< {.bf k}+{.bf G}.vert.phi_{n{.bf k}}>=
.sum_{.bf G}.bar.beta({.bf k}+{.bf G}) C_{{.bf G}n{.bf k}}.$ 


This expression can be evaluated in reciprocal or real space:In reciprocal space (second line)the number of operations scales with the size of the basis set (i.e.number of plane-waves). In real space (first line) theprojection-operators are confined to spheres around each atom. Therefore the number of operations necessary to evaluate one $ C_{in{.bf k}}$does not increase with the system size (usually the number of grid points within the cut-off-sphere is between 500 and 2000).  One of the major obstacles of the method working in real space is that the projection operatorsmust be optimized, i.e. all high frequency components must be removed fromthe projection operators. If this is not done 'aliasing' can happen(i.e. the high frequency components of the projection operators are aliasedto low  frequency components and a random noise is introduced).

Currently VASP supports three different schemes to remove the high frequency components from the projectors. LREAL = .TRUE. is the simplest one. If LREAL = .TRUE. is selected,the real space projectors which have been generated by the pseudopotential generationcode are used. This requires no user interference.For LREAL = On the real space projectors are optimized by VASP using an algorithm proposed by King-Smith et al.[47]. For LREAL = Auto a new scheme [48] is used which isconsiderably better (resulting in more localized) projector functionsthan the King-Smith et al. method. To fine-tune the optimization procedure the flag ROPT can be usedif LREAL = Auto or LREAL = On is used.

We recommend to use the real-space projection scheme for systems containingmore than 20 atoms. We also recommend to use only LREAL = Auto  (for version VASP.4.4 and newer releases) and LREAL = On  (for all other versions).Version 4.4 also supports the old mode LREAL= O toallow calculations that are fully compatible to VASP.4.3 (and VASP.3.2).The best performance is generally achieved with LREAL= Auto, butif performance is not that important you can also use LREAL=.TRUE. whichgenerally requires less user interference. You can skip therest of the paragraph, if you use only LREAL=.TRUE..

For LREAL = O and LREAL = Athe projection operators are optimized by VASPon the fly (i.e. on startup). Several flags influence the optimization

  • ENCUT (i.e. the energy cutoff), components beyond the energy cutoff are 'removed' from the projection operators.

  • PREC tag specifies how precise the real space projectorsshould be, and sets the variables ROPT  accordingly to the followingvalues:

    For LREAL = On

    PREC = Low700 points in the real space sphere (ROPT=0.67)
    PREC = Med1000 points in the real space sphere (ROPT=1.0)
    PREC = High1500 points in the real space sphere (ROPT=1.5)


    For LREAL = Auto

    PREC = Lowaccuracy $ 10^{-2}$ (ROPT=0.01)
    PREC = Medaccuracy 2 $ 10^{-3}$ (ROPT=0.002)
    PREC = Highaccuracy 2 $ 10^{-4}$ (ROPT=2E-4)
      


    These defaults can be superseded by the line

    ROPT = one_number_for_each_species in the INCAR file. For instance ROPT = 0.7 1.5 will set the number of real space points within the cutoff sphere for the first speciesto approximately 700, and that for the second species to 1500.In VASP.4.4 alternatively the ``precision'' of the operators can be specifiedwriting i.e.ROPT = 1E-3 1E-3 In that case the real space operators will be optimized foran accuracy of approximately 1meV/atom ($ 10^{-3}$). The ``precision'' mode works both for LREAL=On and LREAL=Auto (but to maintaincompatibility with older VASP versions it  is only selected if LREAL = Auto is specified in the INCAR file).The precision mode is generally switched on if the value for ROPTis smaller than 0.1. The ``precision'' mode and the conventional mode can be intermixed,i.e. it is possible to specifyROPT = 0.7 1E-3 in that case the number of real space points within the cutoff sphere for the first specieswill be approximately 700, whereas the real space projector functions for the secondspecies are optimized for an accuracy of approximately 1 meV.We recommend to use the ``precision'' mode  with a target accuracy of around$ 10^{-3}$ eV/atom if your version supports this.

    If you use the mode in which the number of grid points in the real space projection sphere is specified, you have to selectROPT carefully, especially if a hard species is mixed with a softspecies. In that case the following lines in the OUTCAR file mustbe checked (here is the output for LREAL = On, but that one forLREAL = Auto is quite similar )

    Optimization of the real space projectors maximal supplied Q-value = 12.85 optimization between [QCUT,QGAM] = [ 4.75, 9.51] = [ 6.33, 25.32] Ry Optimized for a Real-space Cutoff 2.30 Angstroem l X(QCUT) X(cont) X(QGAM) max X(q) W(q)/X(q) e(spline) 0 9.518 9.484 -.004 18.582 .11E-03 .16E-06 0 -2.149 -2.145 .001 3.059 .17E-03 .25E-06 1 8.957 8.942 .003 9.950 .14E-03 .34E-06 1 1.870 1.870 .001 1.837 .95E-03 .51E-06 2 3.874 3.866 .000 4.764 .15E-03 .68E-07 The meaning of QCUT and QGAM is explained in Sec. 11.5.6. The most important information is given in thecolumn W(q)/X(q) (respectively the column  W(low)/X(q) forLREAL = Auto).The values in these columns must  be as small as possible.If these values are too large, increase the ROPT tag from the default value.As a rule of thumb the maximum allowed value in this column is $ 10^{-3}$ for PREC = Med.(For  PREC = Low errors might be around $ 10^{-2}$ and for PREC = High errorsshould be smaller than $ 10^{-4}$). If  W(q)/X(q) is larger than $ 10^{-2}$ theerrors introduced by the real space projections can be substantial.In this case ROPTmust be specified in the INCAR file to avoidincorrect results. If the new precision mode is used in VASP.4.4 (ROPT$ <$ 0.1) thecode automatically selects the real-space cutoff  so that therequired precision is reached.

A few comments for non-experts and experts:Real space optimization (LREAL = .TRUE., LREAL = On or  LREAL = Auto)always results in a small (not necessarily negligible)error (the error is usually a constant energy shift for each atom). If you are interested in energy differences of a fewmeV use only calculations with the same setup (i.e. same ENCUT,PREC, LREAL and ROPT setting) forall calculations.For example, if you want to calculatesurface energies recalculate the bulk groundstate energy withexactly the same setting you are going to use for the surface. Another possibility is to relax the surface with real space projection, and to do one final total energy calculation with LREAL = .FALSE.  to get exact energies. Anyway, for PREC = Med, the errors introduced by the real spaceprojection are usually of the same order magnitude as those introduced by the wrap around errors.For PREC = High errors are usually less than $ 1 $meV. PREC = Lowshould be used only for high speed MD's,if computer resources are really a problem.





https://blog.sciencenet.cn/blog-417402-773434.html

上一篇:How to calculate Green's function
下一篇:单机4核 32位vasp并行安装
收藏 IP: 141.5.13.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-24 21:22

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部