Linux系统p4vasp使用教程,科学网—图形化处理软件P4VASP学习2 - 叶小球的博文

关注:

1) DOS的画法

2) DOS的计算过程及结果文件中数据解读

3) 各种方法

xmgrace

p4vasp

python

需解决问题:

1) 采取p4vasp绘制能带图与态密度图不能匹配上,此时建议采用下面网址中提到的原始方法

2) dos、band中是否已扣除E-fermi需进一步核实

答:1) 经证实,采用p4vasp绘制的能带-态密度图与小脚本read-dos-band(费米能级采用的是scf中的)得到的保持一致,如下图所示。不一致的产生可能是操作失误。

2) p4vasp绘制的能带图中已自动扣除费米能级(费米能级采用的是dos、band-vasprum.xml中的),及费米能级自动设置为0.

5717d766c872e5312dfae70d5ce9316a.png

http://matplotlib.org/examples/pylab_examples/trigradient_demo.html

eadef8812424e2ff81de3d7960b75011.png

Calculation

In order to visualize the band structure in p4vasp, you will need to perform a corresponding calculation with VASP. There are several details that need to be considered:Use relaxed geometry.

Precalculate the charge density.

Inspect DOS with full k-points mesh.

Inspect band structure with selected strips of k-points.

Consider the right method forprojecting wave functions if you want projected DOS and band structure.

Example for this article can be found in Download/Examples: vasprun_ldos.xml.

Loading and 3D View

Visulaization will be explained on a PbTiO3 system. Thevasprun.xmlfile you can download here.Start p4vasp and open the file (select Open in toolbox or File/Load system from menu).After the file is opened, you should see PbTiO3 in the System selection in the upper part of the p4vasp window.You can show the 3d structure by pressing Show and adjust the view inControl.

pbtio3-view.png

DOS and Band structure

Select DOS+bands from the toolbar (or alternatively from menu Electronic/DOS + bands):

dosbands-icon.pngThis will open agraph showing the density of states (DOS):

pbtio3-dos.pngWaring about DOS: DOS is calculated from the k-points specified. DOS stemming from a strip of k-points will highly probable look differently from a DOS from a complete k-point mesh. Thus if you want to show DOS and band-structure, you will likely need to combine two different calculations.In all DOS/bandstructure graphs is the energy relative to the Fermi energy - i.e. the Fermi energy on the graph is zero.You can change between different modes (DOS / bandstructure) in graph menu Show:

dosbands-graph-show.pngshow DOS turns showing DOS on and off. This is mainly useful for projected DOS.

DOS: Shows the density of states. (Energy on x-axis, DOS on y-axis.

DOS (X-axis): Shows the density of states. (Axes are switched, i.e. DOS on x-axis, energy on y-axis).

Bands: Shows the band structure.

DOS and Bands: Shows DOS and band structure side by side.

Local DOS and band structure

Calculation of local projections of DOS and band structure depends on VASP settings. Please consult the VASP manual.Selecting Electronic/Local DOS+bands control from the menu will open a form, where you can add projected DOS and band structure to the graph:

electroniccontrolapplet.pngThis form controls display of both projected DOS and projected band structutre. It allows toselect and sum up projections on different atoms, orbitals and spin projections.In order to add a new projection do the following:Selecting atoms(s). You can do this by either pointing to atoms in 3d view and pressing space or by a selection language - e.g. "Pb" will select all lead atoms. Contributions on all selected atoms will be summed together.

(optional) Write description label, that will appear in the graph legend. If not specified, it will be filled automatically.

(optional) You can specify symbol color, type and size to be used for projected band structure.

Spin projection (only relevant if spin has been calculated).

Orbital projection: use checkboxes, select and deselect buttonsto select desired spherical harmonics projections (orbitals). Press Select all to sum up all orbital projections. Contributions on all selected spherical harmonics projections will be summed together.

Press Add new line.

Note, that graph will show DOS and/or band structure depending on what was selected in Show menu.

dosbands-graph-pb.png

在DOS图左上角有个graph,点这个选择export| 导出你需要的格式。一般我不会直接用它生成的图,我都是导成data格式,然后再origin或其他专业画图软件中画图。

printButton.png

emailButton.png

Atom selections are needed in several situations: in theStructure viewerfor showing/hiding atoms, for geometry manipulation and in the projectedDOSandband structure.

The easiest way to select/unselect atoms is to point to an atom inStructure viewerand press space.

This will select/unselect the atom under the mouse arrow.Selected atoms are in the 3d view marked by black spirals around the atom spheres. Each selection can be represented by a selection statement. As you select/unselect atoms in theSructure viewer, the selection statement is updated and it is shown in theSelectionfield:

The selection statement uses a simple mini-language for definig groups of atoms..

Selection language by example:Ca- shows all calcium atoms. Warning: the case matters, thuscaorCAwill not work.

2- select the second atom in the structure.【选择结构中的第二个原子】

2-5- select the atoms in the range from second to fifth (i.e. 2,3,4,5).  【选择结构中从第二个到第五个原子】

2--select every atom from the second one (2,3,4,5,6,...). 【选择第二个原子及其后的所有原子】

-5-select every atom up to the fifth (1,2,3,4,5). 【选择到第五个原子】

all- select all atoms.  【选择所有原子】

#1 - select all atoms of the 1st specie.   【选择第一种元素的所有原子】

Ca:1- select the first calcium atom (terms likeCa:2-5,Ca:2-,Ca:-5are also legal).

【选择第一个Ca原子】

#2:1- select the first atom of the second specie (terms like#2:2-5,#2:2-,#2:-5work as well).

【选择第二种原子的第一个原子】

C:3- Sc- select all carbon atoms starting from the third, and all scandium atoms. Terms can be joined together (separated by one or more spaces).【选择从第三个开始的所有碳原子核所有Sc原子】

如何画自旋向上和向下的局域态密度,

选择electronic 菜单中Local DOS +band control选项,输入考察的元素符号,例如先选d电子的spin up,点击add new line得spin up态密度,再选spin down ,同时勾选invert y axis,点击add new line,得d电子的spin down态密度;一次类推

能带结构:需用计算能带时产生的xml文件处理。

转载本文请联系原作者获取授权,同时请注明本文来自叶小球科学网博客。

链接地址:http://blog.sciencenet.cn/blog-567091-736149.html

上一篇:计算结果的图形化处理-从p4vasp谈起

下一篇:Useful tools for VASP users

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值