From 2b5bfab11442a8e5ba228747f21035bc219568ca Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Sun, 15 Dec 2024 22:14:24 +0800 Subject: [PATCH] update --- .../silicon/command.txt | 7 ++++ .../silicon/plot_bands.py | 30 +++++++++++++++ .../silicon/pp.bands.silicon.in | 13 +++++++ .../silicon/pw.bands.silicon.in | 38 +++++++++++++++++++ .../silicon/pw.scf.silicon_bands.in | 36 ++++++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 2021.05.07_Quantum_Espresso/silicon/command.txt create mode 100644 2021.05.07_Quantum_Espresso/silicon/plot_bands.py create mode 100644 2021.05.07_Quantum_Espresso/silicon/pp.bands.silicon.in create mode 100644 2021.05.07_Quantum_Espresso/silicon/pw.bands.silicon.in create mode 100644 2021.05.07_Quantum_Espresso/silicon/pw.scf.silicon_bands.in diff --git a/2021.05.07_Quantum_Espresso/silicon/command.txt b/2021.05.07_Quantum_Espresso/silicon/command.txt new file mode 100644 index 0000000..bb2b91a --- /dev/null +++ b/2021.05.07_Quantum_Espresso/silicon/command.txt @@ -0,0 +1,7 @@ +pw.x < pw.scf.silicon_bands.in > pw.scf.silicon_bands.out + +pw.x < pw.bands.silicon.in > pw.bands.silicon.out + +bands.x < pp.bands.silicon.in > pp.bands.silicon.out + +python plot_bands.py \ No newline at end of file diff --git a/2021.05.07_Quantum_Espresso/silicon/plot_bands.py b/2021.05.07_Quantum_Espresso/silicon/plot_bands.py new file mode 100644 index 0000000..58c54cc --- /dev/null +++ b/2021.05.07_Quantum_Espresso/silicon/plot_bands.py @@ -0,0 +1,30 @@ +import matplotlib.pyplot as plt +import numpy as np + +plt.rcParams["figure.dpi"]=150 +plt.rcParams["figure.facecolor"]="white" +plt.rcParams["figure.figsize"]=(8, 6) + +# load data +data = np.loadtxt('./si_bands.dat.gnu') + +k = np.unique(data[:, 0]) +bands = np.reshape(data[:, 1], (-1, len(k))) + +for band in range(len(bands)): + plt.plot(k, bands[band, :], linewidth=1, alpha=0.5, color='k') +plt.xlim(min(k), max(k)) + +# Fermi energy +plt.axhline(6.6416, linestyle=(0, (5, 5)), linewidth=0.75, color='k', alpha=0.5) +# High symmetry k-points (check bands_pp.out) +plt.axvline(0.8660, linewidth=0.75, color='k', alpha=0.5) +plt.axvline(1.8660, linewidth=0.75, color='k', alpha=0.5) +plt.axvline(2.2196, linewidth=0.75, color='k', alpha=0.5) +# text labels +plt.xticks(ticks= [0, 0.8660, 1.8660, 2.2196, 3.2802], \ + labels=['L', '$\Gamma$', 'X', 'U', '$\Gamma$']) +plt.ylabel("Energy (eV)") +plt.text(2.3, 5.6, 'Fermi energy') +plt.savefig('si_bands.jpg') +plt.show() \ No newline at end of file diff --git a/2021.05.07_Quantum_Espresso/silicon/pp.bands.silicon.in b/2021.05.07_Quantum_Espresso/silicon/pp.bands.silicon.in new file mode 100644 index 0000000..716fa34 --- /dev/null +++ b/2021.05.07_Quantum_Espresso/silicon/pp.bands.silicon.in @@ -0,0 +1,13 @@ +&BANDS + prefix = 'silicon' + outdir = './tmp/' + filband = 'si_bands.dat' +/ + +K_POINTS {crystal_b} +5 + 0.0000 0.5000 0.0000 20 !L + 0.0000 0.0000 0.0000 30 !G + -0.500 0.0000 -0.500 10 !X + -0.375 0.2500 -0.375 30 !U + 0.0000 0.0000 0.0000 20 !G \ No newline at end of file diff --git a/2021.05.07_Quantum_Espresso/silicon/pw.bands.silicon.in b/2021.05.07_Quantum_Espresso/silicon/pw.bands.silicon.in new file mode 100644 index 0000000..cbf5169 --- /dev/null +++ b/2021.05.07_Quantum_Espresso/silicon/pw.bands.silicon.in @@ -0,0 +1,38 @@ +&control + calculation = 'bands', + restart_mode = 'from_scratch', + prefix = 'silicon', + outdir = './tmp/' + pseudo_dir = '/opt/qe-7.3.1/pseudo' + verbosity = 'high' +/ + +&system + ibrav = 2, + celldm(1) = 10.2076, + nat = 2, + ntyp = 1, + ecutwfc = 50, + ecutrho = 400, + nbnd = 8 + / + +&electrons + conv_thr = 1e-8, + mixing_beta = 0.6 + / + +ATOMIC_SPECIES + Si 28.086 Si.pz-vbc.UPF + +ATOMIC_POSITIONS (alat) + Si 0.00 0.00 0.00 + Si 0.25 0.25 0.25 + +K_POINTS {crystal_b} +5 + 0.0000 0.5000 0.0000 20 !L + 0.0000 0.0000 0.0000 30 !G + -0.500 0.0000 -0.500 10 !X + -0.375 0.2500 -0.375 30 !U + 0.0000 0.0000 0.0000 20 !G \ No newline at end of file diff --git a/2021.05.07_Quantum_Espresso/silicon/pw.scf.silicon_bands.in b/2021.05.07_Quantum_Espresso/silicon/pw.scf.silicon_bands.in new file mode 100644 index 0000000..83581aa --- /dev/null +++ b/2021.05.07_Quantum_Espresso/silicon/pw.scf.silicon_bands.in @@ -0,0 +1,36 @@ +&CONTROL + calculation = 'scf', + restart_mode = 'from_scratch', + prefix = 'silicon', + outdir = './tmp/' + pseudo_dir = '/opt/qe-7.3.1/pseudo' + verbosity = 'high' +/ + +&SYSTEM + ibrav = 2, + celldm(1) = 10.2076, + nat = 2, + ntyp = 1, + ecutwfc = 50, + ecutrho = 400, + nbnd = 8, +! occupations = 'smearing', +! smearing = 'gaussian', +! degauss = 0.005 +/ + +&ELECTRONS + conv_thr = 1e-8, + mixing_beta = 0.6 +/ + +ATOMIC_SPECIES + Si 28.086 Si.pz-vbc.UPF + +ATOMIC_POSITIONS (alat) + Si 0.0 0.0 0.0 + Si 0.25 0.25 0.25 + +K_POINTS (automatic) + 8 8 8 0 0 0 \ No newline at end of file