XTB guide
Section | Content |
---|---|
1 | Preparation |
2 | XTB |
3 | Running |
Prep
- This guide will serve to help you do XTB calculations linked to Gaussian software.
- A script (xtb.sh) and two executables (genxyz and extderi) must be downloaded from gau_xtb. The code is written by Dr Tian Lu. He has made many other interesting computational chemistry programs too.
- The gau_xtb.zip file can be unzipped and transferred into Gadi. Remember to
chmod +x files
in order to make the executable files work. - Next download the precompiled version of XTB and transfer the compressed file into Gadi.
- After
tar xf xtb-200917.tar.xz
to extract the tarball you will find that it should containbin
andshare
- if it doesn’t you have downloaded the source files which you will need to compile yourself. - In home
/~
directorynano .bashrc
and add these lines:export PATH=$PATH:~/xtb-6.3.3/bin export XTBPATH=~/xtb-6.3.3/share/xtb export OMP_NUM_THREADS=4 export MKL_NUM_THREADS=4 export OMP_STACKSIZE=1000m ulimit -s unlimited
- Exit and
. .bashrc
XTB
- The calculations will use the parameter which is GFN2-xtb. This is a semi-empirical tight binding model which means it will take into account non-covalent interactions and is up a level from semi-empirical methods like PM6.
- Read more about the method here
- Since GFN2 is considered a semi-empirical qc method, it should be applicable to calculating large molecules like small proteins as the computational cost is lower than DFT methods like B3LYP.
- You can consider using this method to calculate and locate minimum of transition state structures first. It will give a good guess of the electronic structure before optimizing further with DFT. It is linked by gau_xtb program with Gaussian.
Running
- The script
xtb.sh
, and executable filesextderi
andgenxyz
have to be in the working folder. - In the keywords route the input gjf should have
external='./xtb.sh'
included. If frequency job is required, use the gaussianlink1
keyword. A typical optimization job:
%chk=mol.chk
%nprocshared=4
%mem=8GB
#p opt=nomicro external='./xtb.sh'
Mol opt by gfn2-xtb
0 1
(xyz cartesian)
--link1--
%chk=mol.chk
%nprocshared=4
%mem=8GB
#p freq external='./xtb.sh' geom=allcheck
<blank space>
- For TS and PES, change
opt=nomicro
toopt=(ts,calcfc,noeigen,nomicro)
oropt=(modredundant,maxcyc=20,nomicro)
.