24小时热门版块排行榜    

查看: 2201  |  回复: 14

wujiandongde

木虫 (小有名气)


[交流] 【求助成功】split_dos分割DOSCAR的问题

各位大侠,有熟悉split_dos的帮帮忙啊,我看了一下split_dos的程序,对于DOS1、DOS2。。。貌似输出的是ene S   Py   Pz ,侯老师的教程里说第一列为能量,第二三四列是s、p、d态的分波态值。小弟糊涂了。。。下面是部分程序:
Atomic projected DOS
            if [ $nspin -eq 2 ]; then
                sed -n ''$start','$end' p' $dosfile | awk '{printf "%12.8f %12.8f %12.8f %12.8f %12.8f %12.8f %12.8f \n", $1+(-1)*'$efermi', $2, -1*$3, $4, -1*$5, $6, -1*$7}' >> DOS$i            else
            sed -n ''$start','$end' p' $dosfile | awk '{printf "%12.8f %12.8f %12.8f %12.8f \n", $1+(-1)*'$efermi', $2, $3, $4 }' >> DOS$i
            fi               

        else
哪位有好用的split_dos,请给我链接或传我一份,多谢!!!

[ Last edited by wujiandongde on 2011-3-24 at 08:56 ]
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

» 抢金币啦!回帖就可以得到:

查看全部散金贴

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingmou

金虫 (著名写手)


wujiandongde(金币+2): 2011-03-23 17:48:28
貌似输出的是ene S   Py   Pz

你为什么这么认为呢?
2楼2011-03-23 16:46:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ice_rain

铁杆木虫 (正式写手)



wujiandongde(金币+2): 2011-03-23 17:47:49
zzy870720z(金币+1): 谢谢提示 2011-03-24 08:22:26
split_dos 只能输出spd,不能给出分波,所以你用的时候小心,
3楼2011-03-23 17:00:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


引用回帖:
Originally posted by bingmou at 2011-03-23 16:46:03:
貌似输出的是ene S   Py   Pz

你为什么这么认为呢?

split_dos程序里有这么一段
sed -n ''$start','$end' p' $dosfile | awk '{printf "%12.8f %12.8f %12.8f %12.8f %12.8f %12.8f %12.8f \n", $1+(-1)*'$efermi', $2, -1*$3, $4, -1*$5, $6, -1*$7}' >> DOS$i
另外,分出来的dos加起来小于总的DOS
4楼2011-03-23 17:49:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingmou

金虫 (著名写手)


★ ★
wujiandongde(金币+2): 2011-03-23 19:10:34
zhang668(金币+2): 多谢指导 2011-03-23 20:34:34
引用回帖:
Originally posted by wujiandongde at 2011-03-23 17:49:44:
split_dos程序里有这么一段
sed -n ''$start','$end' p' $dosfile | awk '{printf "%12.8f %12.8f %12.8f %12.8f %12.8f %12.8f %12.8f \n", $1+(-1)*'$efermi', $2, -1*$3, $4, -1*$5, $6, -1*$7} ...

你应该仔细看看源代码和对应的文件格式。原本的split_dos(我不知道你的从哪里来的,原版的是从vtstscript来的)是没有办法处理Px Py Pz的,只有 s p d f. $2,$3就是s, $4,$5就是p, $6,$7就是d

你可以在版面搜索split_dos,我以前修改过一个版本可以处理分波的

[ Last edited by bingmou on 2011-3-23 at 20:14 ]
5楼2011-03-23 18:27:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingmou

金虫 (著名写手)


6楼2011-03-23 18:33:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


引用回帖:
Originally posted by bingmou at 2011-03-23 18:33:15:
http://muchong.com/bbs/viewthread.php?tid=2440708&pid=2322307&page=1#pid2322307

多谢高手指点啊!!!
7楼2011-03-23 19:12:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


引用回帖:
Originally posted by bingmou at 2011-03-23 18:33:15:
http://muchong.com/bbs/viewthread.php?tid=2440708&pid=2322307&page=1#pid2322307

您好!那对于LORBIT = 11的DOS来说,是不是分割出来会有19列?
8楼2011-03-23 21:06:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingmou

金虫 (著名写手)


wujiandongde(金币+4): 2011-03-23 21:48:39
是………………
9楼2011-03-23 21:46:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


zzy870720z: 如果问题解决,请帮忙把标题求助修改为求助成功,谢谢合作 2011-03-24 08:23:07
引用回帖:
Originally posted by bingmou at 2011-03-23 21:46:12:
是………………

总算明白了,多谢指点,刚才仔细看看一下你改过的split_dos,我用的lorbit=11所以。。。
10楼2011-03-23 21:48:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


引用回帖:
Originally posted by bingmou at 2011-03-23 18:33:15:
http://muchong.com/bbs/viewthread.php?tid=2440708&pid=2322307&page=1#pid2322307

您好!最近计算DOS又遇到了问题,想请您帮忙了,计算DOS时出现了警告WARNING: stress and forces are not correct
我的INCAR如下:
SYSTEM =
PREC = Normal
ISTART=1
ICHARG=11
ENMAX = 500  ! maximum of ENMAX for B and N
ALGO = Fast  ! electronic relaxation
ISMEAR = -5 ; SIGMA = 0.2  ! Gaussian smearing, -5 for tetrahedron method
IBRION=-1
ISPIN = 2 !magnetic system
LDAU = .TURE.
LDATYPE = 2
LDAUL =-1  2   -1  -1 -1
LDAUU = 0  3    0   0  0
LDAUJ = 0  1    0   0  0
LDAUPRINT = 0

LREAL = Auto ! real space projection for a large system
              ! remove this for an accurate calculation
LORBIT=11
EMIN=-15
EMAX=15
NEDOS=3000
不知道哪里设置的有问题,多谢!
11楼2011-04-11 12:18:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingmou

金虫 (著名写手)


引用回帖:
Originally posted by wujiandongde at 2011-04-11 12:18:20:
您好!最近计算DOS又遇到了问题,想请您帮忙了,计算DOS时出现了警告WARNING: stress and forces are not correct
我的INCAR如下:
SYSTEM =
PREC = Normal
ISTART=1
ICHARG=11
ENMAX = 500  ! maxi ...

出了问题请先google。
12楼2011-04-11 17:55:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


引用回帖:
Originally posted by bingmou at 2011-04-11 17:55:15:
出了问题请先google。

就是因为没有google到才找高手啊。。。
13楼2011-04-11 19:07:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingmou

金虫 (著名写手)


★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
franch(金币+2): 谢谢指点 2011-04-11 20:19:38
为什么我搜第一个就给出这个呢:
It makes no sense to keep the charge density constant (ICHARG-11)
and relax the ions (ISIF=2, IBRION=1) at one time. Actually, as you set NSW=0,
the positions are not updated anyway, and hence you can ignore that warning.
In your case I would prepare 2 separate INCAR files,
1) for the ionic relaxations (ICHARG not set)
2) for the post-processing after the structure is relaxed (ICHARG=11, NSW=0, but IBRION and ISIF not set )
from:http://cms.mpi.univie.ac.at/vasp-forum/forum_viewtopic.php?4.714
14楼2011-04-11 20:03:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wujiandongde

木虫 (小有名气)


引用回帖:
Originally posted by bingmou at 2011-04-11 20:03:41:
为什么我搜第一个就给出这个呢:
It makes no sense to keep the charge density constant (ICHARG-11)
and relax the ions (ISIF=2, IBRION=1) at one time. Actually, as you set NSW=0,
the positions are  ...

多谢了,看来是我没有仔细看这个帖子啊,是可以忽略这个警告的么?多谢指点了!!!
15楼2011-04-11 21:19:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wujiandongde 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见