目录

Quantum Espresso

misaraty 更新 | 2024-10-28
前言
Quantum Espresso是使用较为广泛的第一性原理计算软件。

安装与运行

Linux环境

运行环境
CentOS-7-x86_64-DVD,Intel® Parallel Studio XE 2020。
  1. 下载EPW-5.8.0/version 7.3 of Quantum-ESPRESSO

  2. QE+EPW安装1

1
2
tar xvfz q-e-qe-7.3.tar.gz && cd q-e-qe-7.3 && ./configure
make epw

          或,QE安装

1
2
./configure --prefix=/opt/ohpc/pub/apps/qe-7.3
make all
  1. 修改.bashrc
1
2
3
export PATH=$PATH:/opt/ohpc/pub/apps/q-e-qe-7.3/bin
# export PATH=$PATH:/opt/ohpc/pub/apps/qe-7.3/bin
source .bashrc

Windows环境

警告
Quantum Espresso Windows最后版本号是qe-5.3.0,但链接已失效。
运行环境
Windows10
  1. 下载
  1. 依次安装qe-5.2.1-64bit-mpich2.exedotNetFx35_WX_9_x86_x64.exempich2-1.4.1p1-win-x86-64.msi

  2. 新建C:\Users\m\Desktop\qe_si\scf.in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
&CONTROL
    calculation = "scf"
    max_seconds =  8.64000e+04
    pseudo_dir  = "C:\Program Files\Quantum ESPRESSO 64-bit 5.2.1-mpich2/pseudo"
    outdir = "./temp"
/

&SYSTEM
    a           =  5.46873e+00
    degauss     =  1.00000e-02
    ecutrho     =  1.00000e+02
    ecutwfc     =  2.50000e+01
    ibrav       = 1
    nat         = 8
    ntyp        = 1
    occupations = "smearing"
    smearing    = "gaussian"
/

&ELECTRONS
    conv_thr         =  1.00000e-06
    electron_maxstep = 200
    mixing_beta      =  7.00000e-01
    startingpot      = "atomic"
    startingwfc      = "atomic+random"
/

K_POINTS {automatic}
 2  2  2  0 0 0

ATOMIC_SPECIES
Si     28.08550  Si.pz-vbc.UPF

ATOMIC_POSITIONS {angstrom}
Si      0.000000   0.000000   0.000000
Si      4.101546   4.101546   1.367182
Si      0.000000   2.734364   2.734364
Si      4.101546   1.367182   4.101546
Si      2.734364   0.000000   2.734364
Si      1.367182   4.101546   4.101546
Si      2.734364   2.734364   0.000000
Si      1.367182   1.367182   1.367182

  1. 打开cmd
1
pw <scf.in> scf.out

输入文件

原子坐标写法

Quantum Espresso的输入文件*.in中原子坐标有两种等价写法。

1
2
3
ulimit -s unlimited #与FFLAGS = -heap-arrays 64等价
mpirun -n 2 pw.x <relax.in> relax.out
mpirun -n 2 pw.x <relax.in> relax.out & #后台运行
  • 写法一
1
2
3
4
5
6
7
&SYSTEM
ibrav = 0,
celldm(1) = 1.8897268777743552,
ATOMIC_POSITIONS {crystal}
!POSCAR数据
CELL_PARAMETERS {alat}
!POSCAR数据
  • 写法二
1
2
3
4
5
6
7
&SYSTEM
ibrav = 0,
!celldm(1) = 1.8897268777743552,
ATOMIC_POSITIONS {crystal}
!POSCAR数据
CELL_PARAMETERS {angstrom}
!POSCAR数据
警告
但只有写法一可以被XCrysDen正确识别。

示例

赝势

pslibrary

pslibrary是Quantum Espresso官方推荐的赝势。

  1. 下载pslibrary.1.0.0.tar.gz

  2. 安装,

1
2
3
tar -zxvf pslibrary.1.0.0.tar.gz
PWDIR='/root/soft/qe6.4.1' #修改QE_path
./make_all_ps
  1. 运行,
1
mpirun -n 2 pw.x <relax.in> relax.out

SSSP

在官方的推荐赝势中,比较流行的还有Standard solid-state pseudopotentials (SSSP)

文档


  1. To install EPW-5.8.0 ↩︎