| 查看: 2188 | 回复: 11 | ||
天迹浪涯金虫 (小有名气)
|
[求助]
求解,在用vasp脚本计算晶格常数时得到的结果一样
|
|
|
我用的INCAR 文件general: SYSTEM = fcc Si ISTART = 0 ; ICHARG = 2 ENCUT = 240 ISMEAR = 0 ; SIGMAR = 0.1 和POSCAR文件fcc: 4.3 0.5 0.5 0.0 0.0 0.5 0.5 0.5 0.0 0.5 1 cartesian 0 0 0 KPOINTS文件K-Points 0 Monkhorst Pack 11 11 11 0 0 0 使用的脚本 #! /bin/bash BIN=~vw/bin/vasp rm WAVECAR for i in 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 ; do cat >POSCAR <<! fcc: $i 0.5 0.5 0.0 0.0 0.5 0.5 0.5 0.0 0.5 1 cartesian 0 0 0 ! echo "a= $i" ; $BIN E=`tail -1 OSZICAR` ; echo $i $E >>SUMMARY.fcc done cat SUMMARY.fcc 得到的结果是这样的 .5 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 3.6 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 3.7 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 3.8 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 3.9 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 4.0 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 4.1 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 4.2 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 4.3 1 F= -.48810251E+01 E0= -.48765216E+01 d E =-.900717E-02 SUMMARY.fcc lines 1-9/9 (END) 这样正常吗 |
» 猜你喜欢
拟解决的关键科学问题还要不要写
已经有8人回复
26申博
已经有3人回复
存款400万可以在学校里躺平吗
已经有22人回复
最失望的一年
已经有4人回复
国自然申请面上模板最新2026版出了吗?
已经有19人回复
请教限项目规定
已经有3人回复
基金委咋了?2026年的指南还没有出来?
已经有10人回复
基金申报
已经有6人回复
推荐一本书
已经有13人回复
疑惑?
已经有5人回复
5楼2017-07-27 09:39:26
★ ★
天迹浪涯(漫天飘雪代发): 金币+2, 谢谢交流 2017-07-27 11:28:29
天迹浪涯(漫天飘雪代发): 金币+2, 谢谢交流 2017-07-27 11:28:29
|
你不要在文件夹里面加上POSCAR,你的脚本就是用来产生POSCAR啊,你在放个POSCAR他不就只用4.3一个数值了,根本没循环 发自小木虫Android客户端 |
2楼2017-07-27 09:08:23
天迹浪涯
金虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 578.5
- 散金: 368
- 帖子: 183
- 在线: 55.5小时
- 虫号: 6931406
- 注册: 2017-07-10
- 性别: GG
- 专业: 凝聚态物性 II :电子结构
3楼2017-07-27 09:13:45
4楼2017-07-27 09:38:14
天迹浪涯
金虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 578.5
- 散金: 368
- 帖子: 183
- 在线: 55.5小时
- 虫号: 6931406
- 注册: 2017-07-10
- 性别: GG
- 专业: 凝聚态物性 II :电子结构
6楼2017-07-27 10:22:58
7楼2017-07-27 11:03:57
8楼2017-07-27 11:05:08
天迹浪涯
金虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 578.5
- 散金: 368
- 帖子: 183
- 在线: 55.5小时
- 虫号: 6931406
- 注册: 2017-07-10
- 性别: GG
- 专业: 凝聚态物性 II :电子结构
|
真是麻烦您了,这是运行后下面显示的./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory a= 5.2 ./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory a= 5.3 ./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory a= 5.4 ./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory a= 5.5 ./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory a= 5.6 ./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory a= 5.7 ./loop.sh: line 16: ~vw/bin/vasp: No such file or directory tail: cannot open `OSZICAR' for reading: No such file or directory 5.1 5.2 5.3 5.4 5.5 5.6 5.7 |
9楼2017-07-27 14:50:11
|
你把vasp执行文件放到主bin目录下,脚本里不用定义环境变量,直接time vasp,你这样可能是所在shell读不到,你可以把sh换成bash,用bash执行试试,参考侯老师的脚本 发自小木虫Android客户端 |
10楼2017-07-27 22:46:46













回复此楼