24小时热门版块排行榜     石溪大学接受考研调剂申请>

【调剂】北京石油化工学院2024年16个专业接受调剂
查看: 387  |  回复: 0
当前主题已经存档。

xirainbow

木虫 (正式写手)

[交流] 【分享】How to get G-vectors and eigenvectors

原帖网址:http://blog.sina.com.cn/s/blog_5f15ead20100gfrd.html

I am very interested in get the detailed information of basic vectors and their coefficients (that is wavefunction). The reason is very simple: basic vector and their coefficients are directly related with KS equation. Unfortunately, these dates are all stored in binary files. Although I can plot electronic density in Xcrysden, I can not get the wavefunction. Today, I notice a discussion in PWscf Forum, which is concerned with how to convert binary date to readable format. Although I still do not know the transformation detail,I know I can do it

     The following is quoted from PWscf Forum.      
in general you can convert all the .dat files from the $prefix.save directory (or subdirectories) into xml using the iotk conversion tool (which is linked in ~espresso/bin )
1: ~espresso/bin/iotk convert  file.dat  file.xml

I think this utility is particularly useful to understand which  and how are the data stored in the QE save directory.

Then, you can parse the xml file if you like.  My personal suggestion would be to do that only if you need this piece of
information for a very simple postprocessing code, because parsing xml from fortran, even if not impossible, is not simple...

Instead, I think the easiest way to go is to use the qexml library  (distributed with QE in ~espresso/PP/qexml.f90) which is exactly meant to provide tools to read (and in principles also write) QE datafiles...

The library must be initialized specifying the output directory, prefix,  and few other informations, and then it directly provides routines to read all the piece of data you need. Some examples about how to use it are given in the WanT code(www.wannier-transport.org); just grep qexml_ in the sources.

2:In terms of the usage of the library, you can have a look at a simple example at http://web.mit.edu/~ferretti/www/Test_QEXML.tgz instructions to compile, run and check the test are given inside the tarball.
There is a proble in the Makefile,
change the lines
$(espresso_home)/PP/qexml.o:
       cd $(espresso_home)/PP
       make qexml.o
into
$(espresso_home)/PP/qexml.o:
       cd $(espresso_home)/PP; make qexml.o
Then the code of Test_QEXML work well. But it only give a brief information about G-vector and eigenvector. Therefore, the full information can only be obtained by espresso/bin/iotk convert  file.dat  file.xml
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 xirainbow 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 想问一下有没有需要文章但是没时间带学生的研究生导师。 +11 lekinna 2024-04-19 21/1050 2024-04-20 10:29 by 安小樱
[论文投稿] 编辑返稿让改格式,这个时候能大修内容吗? +3 双倍好运锦鲤 2024-04-17 4/200 2024-04-20 09:54 by wuyuanzhao
[找工作] 事业单位还是大学好? +18 青萍之沫 2024-04-16 19/950 2024-04-20 08:46 by 小辰子
[考博] 申请24博士 材料/化工/环境 +4 满目_星辰 2024-04-17 4/200 2024-04-19 20:10 by 前行的道路
[论文投稿] 最近遇到这样一个问题 2+4 asd123gfa689 2024-04-18 10/500 2024-04-19 18:57 by asd123gfa689
[考博] 山东大学化学与化工学院刘磊课题组博士研究生招生启事 +3 sdorganic 2024-04-17 5/250 2024-04-19 17:04 by 368ghnf
[基金申请] 基金和生小孩 +33 Ausy 2024-04-15 35/1750 2024-04-19 16:21 by feng6531
[教师之家] 美国教授开除中国研究生:我就不该录取你! +7 苏东坡二世 2024-04-15 7/350 2024-04-19 16:20 by feng6531
[高分子] 聚酰胺650与环氧树脂e44固化 +3 yindingxin 2024-04-15 3/150 2024-04-19 13:55 by weilingdun
[有机交流] 紫外光谱 50+3 54胡 2024-04-17 3/150 2024-04-19 10:48 by Nanamiwww
[论文投稿] 发个文章,结果被某学报请的外审PUA了 +3 ziniu168 2024-04-18 8/400 2024-04-18 21:40 by xli1984
[考研] 267求调剂 +3 工科材料267 2024-04-15 3/150 2024-04-18 19:45 by lature00
[考研] 本科211 277分求调剂 +3 0854通信工程 2024-04-18 4/200 2024-04-18 09:11 by 花花平头哥
[论文投稿] MDPI初审7天,是不是被拒 20+6 applegirl5762 2024-04-15 8/400 2024-04-17 08:49 by bobvan
[考研] 332求调剂 +3 木叶下1999 2024-04-16 5/250 2024-04-17 00:56 by angeliar
[考研] 求调剂 +4 鹿萌月yy 2024-04-15 5/250 2024-04-16 16:16 by chenweiwade
[考研] 294求调剂 +3 694062003 2024-04-15 4/200 2024-04-16 15:01 by 邹邹哈哈
[考研] 296求调剂 +3 Cclocomotive 2024-04-16 4/200 2024-04-16 10:04 by 19862091
[考研] 334求调剂 +4 学药救人 2024-04-14 4/200 2024-04-15 15:05 by hunanzang
[考研] 化学、材料类最后调剂机会!!! +3 加油努力就好 2024-04-14 10/500 2024-04-15 09:05 by 任pen
信息提示
请填处理意见