24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1675  |  回复: 13
【奖励】 本帖被评价6次,作者csfn增加金币 5
当前主题已经存档。
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

csfn

荣誉版主 (知名作家)


[资源] CHGCAR三维图的做法(于ms中实现)

记得前面有虫子提过关于dmol电荷密度解释的问题。另外,有一些朋友也想解决对vasp的电荷三维化的问题。
这里,帖出一个关于dmol电荷密度例子的解释。
想解决vasp三维化问题的朋友,也可以考虑下。只要把chgcar用程序简单转化成grd格式,即可以在ms中进行三维化观察,非常漂亮,方便.
Example GRD file:
Each .grd file begins with a title, which is the descriptive of the volumetric field. A typical title would be "DMol3 total electron density".

The second line of each file contains a FORTRAN format descriptor of the data as written by the program that generated it. This format is typically (1p,e12.5).

The third line specifies the volume of space containing the data to be plotted: the cell lengths a, b, and c in angstroms, followed by the cell angles α, β, and γ. The unit cell is the size of the grid used for plotting. By convention, the first axis, a, is taken to be parallel to the Cartesian x axis.

The fourth line indicates the number of grid spaces in each direction, a, b, and c.

The fifth line contains seven integers indicating which index varies the fastest and the location of the Cartesian origin relative to the edges of the volumetric data.

The first integer in the fifth line must be 1, corresponding to a, or 3, corresponding to b. The fastest varying index cannot be c.

The next six integers in the fifth line indicate the number of grid spaces to the left and right of the origin in directions a, b, and c.

The subsequent lines contain the actual data. If the number of spaces indicated on line 4 are Na, Nb, and Nc, then there will a total of (Na+1) x (Nb+1) x (Nc+1) data points.

Below is a sample .grd file.

DMol3 total electron density            
(1p,e12.5)  
   9.000   8.200   9.400  90.000  90.000  90.000
   45   41   47
    1  -23   22  -20   21  -22   25
0.00000E+00
0.00000E+00
2.57683E-13
1.43774E-12
2.01988E-10
8.71334E-10
1.28986E-09
1.11599E-09
4.72026E-10
1.59762E-11
2.83878E-12
...

[ Last edited by wuchenwf on 2009-6-13 at 23:08 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

y1ding

铁杆木虫 (著名写手)



wuchenwf(金币+1):thank you
CHGCAR直接用vaspview画就可以
想好看一点,用v2xsf+Xcrysden处理好了。
3楼2008-05-16 23:05:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 14 个回答

wuchenwf

荣誉版主 (职业作家)


★★★★★ 五星级,优秀推荐

不错 正要学习呢
2楼2008-05-16 20:09:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

q68

铁杆木虫 (著名写手)


★★★★★ 五星级,优秀推荐

就喜欢这种经验交流!
4楼2008-05-17 12:44:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ztwang

铜虫 (小有名气)


引用回帖:
Originally posted by y1ding at 2008-5-16 23:05:
CHGCAR直接用vaspview画就可以
想好看一点,用v2xsf+Xcrysden处理好了。

下了一个vaspview,但总是编译不成功CINCLUDE  LIBS,怎么设?谢谢!!
gcc /usr/X11R6/bin  -c -o ds3.o ds3.c
In file included from ds3.c:18:
ds3.h:26:21: error: GL/glut.h: No such file or directory
In file included from glw.h:24,
                 from ds3.h:29,
                 from ds3.c:18:
5楼2008-05-20 09:42:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
☆ 无星级 ★ 一星级 ★★★ 三星级 ★★★★★ 五星级
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求材料调剂,一志愿郑州大学289分 +15 硕星赴 2026-04-03 15/750 2026-04-04 01:01 by userper
[考研] 调剂 +8 JLLLLLLLLLL 2026-04-03 8/400 2026-04-03 22:06 by 无际的草原
[考研] 一志愿郑州大学材料与化工085600,求调剂 +17 吃的不少 2026-04-02 17/850 2026-04-03 21:48 by qlm5820
[考研] 求调剂 +3 wos666 2026-04-03 3/150 2026-04-03 21:36 by lbsjt
[考研] 332求调剂 +8 @MZB382400 2026-03-28 8/400 2026-04-03 19:31 by lijunpoly
[考研] 考研调剂 +8 不爱喝饮料 2026-04-03 8/400 2026-04-03 16:40 by Mistake-J
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +9 哇呼哼呼哼 2026-04-02 9/450 2026-04-03 12:05 by 1753564080
[考研] 316求调剂 +14 舟自梗 2026-04-01 18/900 2026-04-03 10:28 by linyelide
[考研] 303求调剂 +3 一色清羽 2026-04-02 4/200 2026-04-03 10:22 by 蓝云思雨
[考研] 311求调剂一志愿合肥工业大学 +15 秋二十二 2026-03-30 15/750 2026-04-03 10:19 by linyelide
[考研] 296求调剂 +4 sdhu 2026-04-02 4/200 2026-04-02 21:29 by baoball
[考研] 一志愿北京科技大学085601材料工程英一数二初试总分335求调剂 +8 双马尾痞老板2 2026-04-02 9/450 2026-04-02 14:45 by 5896
[考研] 求调剂,一志愿 南京航空航天大学 ,080500材料科学与工程学硕,总分289分 +11 @taotao 2026-03-29 11/550 2026-04-02 10:04 by realme321
[考研] 11408 321分求调剂 +3 huchun12138 2026-03-30 4/200 2026-04-01 22:48 by guanxin1001
[考研] 353求调剂 +4 拉钩不许变 2026-04-01 4/200 2026-04-01 18:10 by 记事本2026
[考研] 材料调剂 +11 一样YWY 2026-03-31 11/550 2026-04-01 11:35 by wangjy2002
[考研] 335求调剂 +3 321* 2026-03-31 4/200 2026-04-01 00:00 by 321*
[考研] 材料工程085601数二英一335求调剂 +5 双马尾痞老板2 2026-03-31 5/250 2026-03-31 19:07 by Wang200018
[考研] 一志愿南昌大学324求调剂 +6 hanamiko 2026-03-29 6/300 2026-03-31 16:35 by hypershenger
[考研] 0703化学321分求调剂 +10 三dd. 2026-03-30 11/550 2026-03-30 19:24 by markhwc
信息提示
请填处理意见