Examples for Quantum Espresso

From Wiki
Revision as of 15:50, 11 December 2017 by 10.0.7.16 (talk)
Jump to navigation Jump to search

Here are the input examples for a Quantum Espresso (QE) 6.1 for a H2O molecule in vacuum. The main program for single point calculations and geometry/cell optimisation is pw.x.

USPP.001_G_D2H2O.in

 &CONTROL
                 calculation = 'relax' ,
                restart_mode = 'from_scratch' ,
                  wf_collect = .true. ,
                      prefix = 'USPP.001_G_D2H2O' ,
                   verbosity = 'high' ,
               etot_conv_thr = 1.0D-9 ,
               forc_conv_thr = 1.0D-5 ,
                     tstress = .true. ,
                     tprnfor = .true. ,
                    !dipfield = .true. ,
                       nstep = 200 ,
 /
&SYSTEM
                      ibrav = 1,
                          A = 15 ,
                        nat = 3 ,
                       ntyp = 2,
                    ecutwfc = 40.0 , !J. Chem. Phys. 138, 194709
                    ecutrho = 320.0 ,!J. Chem. Phys. 138, 194709
                  input_dft = 'PBE' ,
                occupations = 'smearing' ,
                    degauss = 0.02 ,
                   smearing = 'gaussian' ,
                      nspin = 2 ,
    starting_magnetization(1) = 0.0,
    starting_magnetization(2) = 0.0,
                    vdw_corr = Grimme-D2, ! DFT-D2 dispersion correction
                       nosym = .true. !For isolated atom
            assume_isolated = 'makov-payne'
/
&ELECTRONS
           electron_maxstep = 800,
              conv_thr_init = 1e-4 ,
                   conv_thr = 1e-9 ,
                startingpot = 'atomic' ,
                startingwfc = 'random' ,
               adaptive_thr = .true. ,
                mixing_beta = 0.514,
            diagonalization = 'david' ,
/
&IONS
               ion_dynamics = 'bfgs' ,
           trust_radius_min =  1.D-5 ,
/
ATOMIC_SPECIES
   O   15.99990  O.pbe-van_ak.UPF
   H    1.00790  H.pbe-van_ak.UPF
ATOMIC_POSITIONS angstrom
O        4.960864866   4.932204696  10.000041372
H        5.926442340   5.064579477   9.999978448
H        4.592692795   5.834600215   9.99998018
K_POINTS Gamma

Before starting the calculation, you need to create two folder in your $HOME directory:

$HOME/espresso_pseudo where you put all you pseudo potentials (O.pbe-van_ak.UPF and H.pbe-van_ak.UPF)

$HOME/espresso_tmp is where all the outputs will be. Put all the .in and .lsf12 files there.

Then, edit in the files .lsf12 and replace

  1. $ -M hnguyen@iciq.es > your email

You can first submit the geometry optimisation job qsub USPP.001_2x2_D2H2O.lsf12

When it is done, it will create a human readable output USPP.001_2x2_D2H2O.out1 and a folder USPP.001_2x2_D2H2O for restart and postprecessing.


if you want to visualize the output of the geometry optimisation, you will need to load quantum espresso module:

module load quantum-espresso/6.1 and then type

pwo2xsf.sh -a USPP.001_2x2_D2H2O.out1 > USPP.001_2x2_D2H2O.out1.axsf This will create a file USPP.001_2x2_D2H2O.out1.axsf that can be opened with xcrysden.


You can, after the geometry optimisation, submit a PDOS calculation qsub USPP.001_2x2_D2H2O_LDOS.lsf12

When finished, it will create a directory in PDOS/USPP.001_2x2_D2H2O_LDOS containing all the projected DOS and the total DOS (USPP.001_2x2_D2H2O.pdos_tot) in text format. You can used your favourite program to plot the DOS.