Znn3bq.jpeg
±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 708  |  »Ø¸´: 3
¡¾½±Àø¡¿ ±¾Ìû±»ÆÀ¼Û1´Î£¬×÷ÕßxirainbowÔö¼Ó½ð±Ò 1 ¸ö
µ±Ç°Ö÷ÌâÒѾ­´æµµ¡£

[×ÊÔ´] ¡¾·ÖÏí¡¿SCF is slow or does not converge

     ÒÔÏÂÄÚÈÝÀ´×ÔÎҵIJ©¿Í£ºhttp://blog.sina.com.cn/s/blog_5f15ead20100cw4d.html

     Yesterday, I try to optimize graphene ribbon by using PWscf. Unfortunately, at the beginning, I failed. When I went over the .out file, I found the reason: scf does not converge within after 100 iterations. This is the first time I met this kind of failure. In the end, I add nbnd from 8 to 12, then scf can converge within 30 iterations.

   I find some useful tip to deal with scf converge failure. I got the following content in "User¡¯s Guide for Quantum-ESPRESSO(version 3.2)"

        "Reduce mixing beta from the default value (0.7) to ∼ 0.3 − 0.1 or smaller. Try the mixing mode value that is more appropriate for your problem. For slab geometries used in surface problems or for elongated cells, mixing mode=¡¯local-TF¡¯ should be the better choice, dampening ¡°charge sloshing¡±. You may also try to increase mixing ndim to more than 8 (default value). Beware: the larger mixing ndim, the larger the amount of memory you need.
      If the above doesn¡¯t help: verify if your system is metallic or is close to a metallic state, especially if you have few k-points. If the highest occupied and lowest unoccupied state(s) keep exchanging place during self-consistency, forget about reaching convergence. A typical sign of such behavior is that the self-consistency error goes down, down, down, than all of a sudden up again, and so on. Usually one can solve the problem by adding a few empty
bands and a broadening.

        Specific to US PP: the presence of negative charge density regions due to either the pseudization procedure of the augmentation part or to truncation at finite cutoff may give convergence problems. Raising the ecutrho cutoff for charge density will usually help, especially in gradient-corrected calculations."

   In brief, there are 6 kinds of tips.

    1: reduce mixing beta from default value (0.7) to 0.3 to 0.1 to smaller. I think wavefunction(3)=mixing_bata*wavefunction(2)+(1-mixing_bata)wavefunction(1). Wavefunction(1) is the first guess_wavefunction,Wavefunction(2) is the calculated wavefunction,Wavefunction(3) is the next iteration guess_wavefunction. The smaller mixing_beta is, the more similar following guess_wavefunction Wavefunction(3) is with the first guess_wavefunction Wavefunction(1).

     2: change mixing mode. For slab condition, local-TF is first option.

     3: change mixing ndim from default value (8) to bigger value at the cost of larger memory.

     4: adding empty bands and a broadening for matallic or close to metallic state. A typical sign of metalllic state is that the scf error goes down, down, down, then all of a sudden up again. This is just what I met.

     5: raising the ecutrho cutoff for charge desity for US PP condition.

I find the tips about scf convergence in slab calculation. Some of them is universal.

        In a long slab, sometimes it is harder for the runs to converge. There are a number of steps you can take. First, make sure all of the output files from the previous run are deleted (filewfc, etc..) between each run. Second, try lowering the beta parameter. The beta parameter sets the charge mixing between different iterations. Third set the ¡°niter¡± parameter to a higher number (it defaults to 50). So a line such as ¡°niter=200¡±. Fourth, check the convergence of the surface energy (do the actual calculation for the full surface energy, don¡¯t just look at energies of slabs). Do you really need that big of a vacuum size or that long of a cell? The bigger your vacuum and slab, the more problems you will have with convergence.

[ Last edited by xirainbow on 2009-7-18 at 09:53 ]
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

watermall

½ð³æ (СÓÐÃûÆø)


Good job£¡
2Â¥2009-07-18 10:01:03
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zhangfan2192

½ð³æ (ÖøÃûдÊÖ)


¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
thanks for your sharing
3Â¥2009-07-18 10:16:19
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

¡ï¡ï¡ï¡ï¡ï ÎåÐǼ¶,ÓÅÐãÍÆ¼ö

ÓÅÐãÍÆ¼ö
4Â¥2009-07-19 20:50:41
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ xirainbow µÄÖ÷Ìâ¸üÐÂ
¡î ÎÞÐǼ¶ ¡ï Ò»ÐǼ¶ ¡ï¡ï¡ï ÈýÐǼ¶ ¡ï¡ï¡ï¡ï¡ï ÎåÐǼ¶
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 338Çóµ÷¼Á +6 wxygxsaaaaa 2026-04-06 6/300 2026-04-08 01:14 by BruceLiu320
[¿¼ÑÐ] Çó¿¼ÑвÄÁϵ÷¼Á +3 ²Ä»¯Àî¿É 2026-04-07 3/150 2026-04-08 00:21 by JourneyLucky
[¿¼ÑÐ] 313Çóµ÷¼Á +3 Ê®Áùʰ½ 2026-04-07 3/150 2026-04-07 23:20 by lbsjt
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©2£¬²ÄÁÏÓ뻯¹¤308Çóµ÷¼Á +16 ÐܶþÏëÉϰ¶ 2026-04-04 17/850 2026-04-07 14:58 by BruceLiu320
[¿¼ÑÐ] ÐŹ¤Ëù11408 340·Ö ±¾¿ÆÎ÷°²½»´ó×Ô¶¯»¯ +3 moontrek 2026-04-06 3/150 2026-04-07 09:56 by chongya
[˶²©¼ÒÔ°] 0856²ÄÁÏ»¯¹¤Çóµ÷¼Á£¬Ò»Ö¾Ô¸211£¬³õÊԳɼ¨349 +4 ½­»´±±Ô 2026-04-05 4/200 2026-04-06 22:44 by chenzhimin
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +5 СÁõͬѧ߹߹ 2026-04-06 5/250 2026-04-06 18:34 by sherry_1901
[¿¼ÑÐ] 301Çóµ÷¼Á +7 ϸ°ûÏà¹Øµ°°× 2026-04-03 7/350 2026-04-06 11:47 by lijunpoly
[¿¼ÑÐ] 288Çóµ÷¼Á£¬Ò»Ö¾Ô¸»ªÄÏÀí¹¤´óѧ071005 +6 ioodiiij 2026-04-04 6/300 2026-04-05 10:09 by guoweigw
[¿¼ÑÐ] ¿É¿çרҵµ÷¼Á +3 ÖÜµÄµÃµØ 2026-04-04 6/300 2026-04-04 22:21 by barlinike
[¿¼ÑÐ] µ÷¼Á +11 JLLLLLLLLLL 2026-04-03 11/550 2026-04-04 22:21 by hemengdong
[¿¼ÑÐ] Çóµ÷¼Á +3 ũҵ¹¤³ÌÓëÐÅÏ¢¼ 2026-04-04 3/150 2026-04-04 12:19 by Éá¶øºóµÃ
[¿¼ÑÐ] ²ÄÁÏרҵ383Çóµ÷¼Á +8 ¹ùÑôÑôÑô³É 2026-04-03 8/400 2026-04-04 10:29 by Rednal.
[¿¼ÑÐ] Çóµ÷¼Á£¬Ò»Ö¾Ô¸±±¾©ÖÐÒ½Ò©´óѧ +3 СС´ï²»Áï 2026-04-02 3/150 2026-04-03 22:55 by ³åʸêÄÐÇÍÅ
[¿¼ÑÐ] 301Çóµ÷¼Á +14 A_JiXing 2026-04-01 14/700 2026-04-03 18:31 by lsÁõ˧
[¿¼ÑÐ] 274Çóµ÷¼Á +9 ˳Àí³ÉÕÅ 2026-04-03 10/500 2026-04-03 15:10 by °¡¿¡£¡
[¿¼ÑÐ] 326·ÖÇóµ÷¼Á +3 ÓÚÊǺõÄØ 2026-04-01 5/250 2026-04-03 14:23 by ÓÚÊǺõÄØ
[¿¼ÑÐ] ²ÄÁÏ¿¼Ñе÷¼Á +10 Gs´óÍõ 2026-04-02 10/500 2026-04-03 09:47 by ÒÅÍüÏûʧµÄž™
[¿¼ÑÐ] 312Çóµ÷¼Á +4 ÉÞÔÂÉ« 2026-04-02 5/250 2026-04-03 08:21 by fangshan711
[¿¼ÑÐ] ÄÜÔ´¶¯Á¦ µ÷¼Á +3 ²»ÆÆ²»Á¢0 2026-04-02 3/150 2026-04-02 12:46 by ffffjjjj
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û