| 查看: 921 | 回复: 12 | |||
| 当前主题已经存档。 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
xiaowenzhi16铁杆木虫 (正式写手)
|
[交流]
【求助】如何显示3D spin density
|
||
|
请问VASP里的自旋密度如何显示为3D spin density 的电子云状的图像?用什么软件可以做到呢?? 谢谢 |
» 猜你喜欢
CSC & MSCA 博洛尼亚大学能源材料课题组博士/博士后招生|MSCA经费充足、排名优
已经有6人回复
天津大学招2026.09的博士生,欢迎大家推荐交流(博导是本人)
已经有4人回复
有时候真觉得大城市人没有县城人甚至个体户幸福
已经有8人回复
同年申请2项不同项目,第1个项目里不写第2个项目的信息,可以吗
已经有3人回复
退学或坚持读
已经有28人回复
面上项目申报
已经有3人回复
酰胺脱乙酰基
已经有9人回复
博士延得我,科研能力直往上蹿
已经有7人回复
面上基金申报没有其他的参与者成吗
已经有5人回复
遇见不省心的家人很难过
已经有22人回复
y1ding
铁杆木虫 (著名写手)
- 1ST强帖: 1
- 应助: 61 (初中生)
- 贵宾: 0.33
- 金币: 5959.3
- 散金: 1
- 红花: 21
- 帖子: 1884
- 在线: 491.1小时
- 虫号: 142265
- 注册: 2005-12-21
- 专业: 凝聚态物性 II :电子结构
4楼2009-05-14 09:21:53
xiaowenzhi16
铁杆木虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 7096.7
- 散金: 50
- 红花: 1
- 帖子: 564
- 在线: 311.7小时
- 虫号: 523628
- 注册: 2008-03-12
- 性别: GG
- 专业: 半导体物理
3楼2009-05-13 22:19:11
xiaowenzhi16
铁杆木虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 7096.7
- 散金: 50
- 红花: 1
- 帖子: 564
- 在线: 311.7小时
- 虫号: 523628
- 注册: 2008-03-12
- 性别: GG
- 专业: 半导体物理
5楼2009-05-14 10:14:22
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
xiaowenzhi16(金币+6,VIP+0):实在是太感谢啦。以后还要麻烦你的。 5-14 12:00
wuchenwf(金币+10,VIP+0):谢谢 5-14 23:01
xiaowenzhi16(金币+6,VIP+0):实在是太感谢啦。以后还要麻烦你的。 5-14 12:00
wuchenwf(金币+10,VIP+0):谢谢 5-14 23:01
|
给你一段我自己编的程序,提取电荷或自旋密度图 program readcharge4vasp !.............................................................. ! read density from name=CHG file of VASP !.............................................................. ! spin =0 - total charge \____ only for CHGCAR ! =1 - spin density / !.............................................................. character title*20,type_coodinates*20 integer :: natoms=0,NGX,NGY,NGZ,n=1,totalatoms=0,spin integer,allocatable :: ntypat( ![]() real*8 :: scale, basic_vectorx,basic_vectory,basic_vectorz real*8, allocatable :: grid(:,:, ![]() write(*,*)'Number of atom types in the unit cell' read(*,*) n write(*,*)'Charge density or spin density? (0 or 1)' read(*,*) spin allocate(ntypat(n)) open(unit=11,file='CHG') if (spin==0) then open(unit=12,file='Charge_Density.vasp') else if (spin==1) then open(unit=12,file='Spin_Density.vasp') end if read(11,'(A15)') title write(12,'(a15)') title read(11,*) scale write(12,"(F6.3)" scaledo i=1,3 read(11,*) basic_vectorx,basic_vectory,basic_vectorz write(12,'(3F13.7)')basic_vectorx,basic_vectory,basic_vectorz end do read(11,*) (ntypat(i),i=1,n) write(12,*) (ntypat(i),i=1,n) read(11,*) type_coodinates write(12,*) type_coodinates do i=1,n totalatoms=ntypat(i)+totalatoms end do do i=1,totalatoms read(11,*) x,y,z write(12,"(3F11.7)" x,y,zend do read(11,*) write(12,*) read(11,*) NGX,NGY,NGZ write(12,'(3I5)') NGX,NGY,NGZ allocate(grid(NGX,NGY,NGZ)) if (spin==1) then read(11,"(10E12.5E2)" (((grid(i,j,k),i=1,NGX),j=1,NGY),k=1,NGZ)read(11,*) else if (spin==0) then end if read(11,"(10E12.5E2)" (((grid(i,j,k),i=1,NGX),j=1,NGY),k=1,NGZ)write(12,"(10E13.5E2)" (((grid(i,j,k),i=1,NGX),j=1,NGY),k=1,NGZ)close(11) close(12) end 之后用vesta打开。 [ Last edited by 灯塔守望者 on 2009-5-14 at 12:18 ] |
6楼2009-05-14 11:25:56













回复此楼

scale