24小时热门版块排行榜    

查看: 782  |  回复: 3
【奖励】 本帖被评价1次,作者xirainbow增加金币 1
当前主题已经存档。

[资源] 【分享】SCF is slow or does not converge

     以下内容来自我的博客: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 的主题更新
☆ 无星级 ★ 一星级 ★★★ 三星级 ★★★★★ 五星级
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 准备明年的基金了 +7 Tide man 2026-07-27 7/350 2026-08-02 16:43 by gltch
[公派出国] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 cBGhfJFuNMca 2026-08-02 9/450 2026-08-02 16:32 by jHcrHMhbKCFV
[考博] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 cBGhfJFuNMca 2026-08-02 15/750 2026-08-02 16:32 by jHcrHMhbKCFV
[博后之家] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 cBGhfJFuNMca 2026-08-02 15/750 2026-08-02 16:31 by jHcrHMhbKCFV
[考博] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 cBGhfJFuNMca 2026-08-02 13/650 2026-08-02 16:27 by jHcrHMhbKCFV
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 cBGhfJFuNMca 2026-08-02 19/950 2026-08-02 16:24 by jHcrHMhbKCFV
[公派出国] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 cBGhfJFuNMca 2026-08-02 15/750 2026-08-02 16:23 by jHcrHMhbKCFV
[考博] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 cBGhfJFuNMca 2026-08-02 19/950 2026-08-02 16:21 by jHcrHMhbKCFV
[基金申请] 面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇! +18 低垂的野花 2026-07-31 24/1200 2026-08-02 16:03 by swallowwh
[找工作] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 cBGhfJFuNMca 2026-08-02 12/600 2026-08-02 13:43 by jHcrHMhbKCFV
[找工作] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 cBGhfJFuNMca 2026-08-02 16/800 2026-08-02 13:34 by jHcrHMhbKCFV
[基金申请] 2026年国自然面上资助率 +15 布布和一二 2026-07-30 21/1050 2026-08-02 10:56 by iaeyuan
[教师之家] 基础研究怎么拉横向,学校到款任务越来越多,难以完成 拉横向,都有哪些途径啊 +8 锦衣卫寒战 2026-07-28 10/500 2026-08-02 10:00 by 锦衣卫寒战
[考博] 2027年申博 50+3 射雕英雄胜 2026-07-30 3/150 2026-08-02 09:36 by lfy8008
[高分子] HXDI做水性聚氨酯乳液,是不是特别容易出渣 15+3 yuyusuv 2026-07-29 3/150 2026-07-31 09:21 by huizingga
[基金申请] 系统今天又提示维护了,估计离放榜不远了 +11 winnerche 2026-07-29 15/750 2026-07-30 23:08 by jnhyjjm
[基金申请] 你们的时间戳变了吗 +3 archvillain 2026-07-30 4/200 2026-07-30 18:53 by levinzhwen
[有机交流] 产物和副产物价值比较 30+4 小汤02 2026-07-27 5/250 2026-07-30 12:44 by czyzsu
[基金申请] 这种情况还有戏吗 +5 drbart 2026-07-27 11/550 2026-07-29 05:50 by drbart
[基金申请] 同事接到电话了,我却没有 +4 1234567wang 2026-07-27 4/200 2026-07-28 10:11 by GOODLUCKER
信息提示
请填处理意见