Vasplib Cheatsheet

vasplib 快捷命令一览

vasplib

vasplib 和第一性原理计算对接,Tools function

bandplot

Dependence POSCAR KPOINTS EIGENCAR DOSCAR
直接画能带图

1bandplot();

间接画能带图

1EIGENCAR = EIGENVAL_read();
2bandplot(EIGENCAR);

调整能量范围

1bandplot(EIGENCAR,[-3,3]);

指定颜色(键值对)

1bandplot(EIGENCAR,[-3,3],'Color','r');

指定依赖的POSCAR和KPOINTS(键值对)

1bandplot(EIGENCAR,[-3,3],'Color','r','KPOINTS','KPOINTS','POSCAR','POSCAR');

画多个能带

1bandplot({EIGENCAR1,EIGENCAR2},[-3,3]);
2%% or
3[fig,ax] = bandplot(EIGENCAR1,[-3,3]);
4[fig,ax] = bandplot(EIGENCAR2,[-3,3],'fig',fig,'ax',ax);

bandcompare

比较两个能带

1vasplib.bandplot(EIGENCAR1,EIGENCAR2,[-3,3]);

export .svg

(输出向量图) 600 指像素 temp为文件名

1set(gcf,'Renderer','Painters'); print(gcf,'-dsvg','-r600','temp.svg')

export .png

(输出位图) 600 指像素 temp为文件名

1export_fig temp.png -r600

pbandplot

直接画投影能带图(vaspkit 213)

Dependence POSCAR KPOINTS EIGENCAR DOSCAR PBAND_X.dat

1pbandplot();
2%% or
3vasplib.pbandplot();

在有WEIGHTCAR(和EIGENCAR结构一致)的情况下 画投影能带图

1vasplib.pbandplot(WEIGHTCAR,EIGENCAR,'Ecut',[-3,3]);

调整能量范围

1bandplot(EIGENCAR,[-3,3]);

指定颜色(键值对)

1bandplot(EIGENCAR,[-3,3],'Color','r');

指定依赖的POSCAR和KPOINTS(键值对)

1bandplot(EIGENCAR,[-3,3],'Color','r','KPOINTS','KPOINTS','POSCAR','POSCAR');

dosplot(TO BE MODIFIED)

直接画分波态密度(vaspkit 111 113)

Dependence tdos.dat PDOS_X.dat

1dosplot();

不看d轨道

1dosplot('d',false);

gen .win .in (TO BE MODIFIED)

生成 wannier90 wt symmetry 模版文件

Dependence POSCAR KPOINTS EIGENCAR DOSCAR

spinless

1init_v2w(0);

spinful

1init_v2w(0);

判断能带选择区间

1init_v2w('check',true);

快速生成,以选取石墨一炔12个$p_z$轨道为例

1init_v2w('Projector_list',ones(1,18));

POSCAR_read

Dependence POSCAR
读取POSCAR信息

1POSCAR_read;
2%% or
3[Rm,sites,Atom_name,Atom_num]=POSCAR_readin();

plot BZ

1vasplib.BZplot(Rm);

More

Dependence KPOINTS

1vasplib.BZplot(Rm,'KPOINTS','KPOINTS');

HR

Construction

SKTB

POSCAR 需要特别的设置,详见POSCAR 设置:vasplib_POSCAR

Dependence POSCAR

Modification

Solve

HK

Htrig

Oper


200 Words|This article has been read times