introducontoiqmol:partiiopenshell.usc.edu/chem545/lectures2014/iqmol-intro-i.pdf · iqmol youtube...

58
1 Introduc)on to IQmol: Part I Shirin Faraji, Ilya Kaliman, and Anna Krylov

Upload: others

Post on 20-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

1

Introduc)on  to  IQmol:  Part  I  !!!

Shirin  Faraji,  Ilya  Kaliman,  and  Anna  Krylov  

!

Page 2: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Resources

2

Written by Dr. Andrew Gilbert !

Keep yourself up to date with IQmol website: http://iqmol.org !

IQmol Youtube channel: IQmol now has its own Youtube channel

Page 3: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Building  molecules

3

Open IQmol, the molecule building screen looks like this:

Page 4: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Main  build  tools

4

Build Mode

Build Elements (periodic table)

Add Hydrogens

Add Fragments (pre-build molecules)

Minimize Energy (classical forcefield)

Page 5: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Building    molecules

5

Click the “Build Element” : periodic table pops-up:

Page 6: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Selec)ng  atom

6

Select an atom, for example Oxygen: O Click in the blue screen area to place the Oxygen atom

Page 7: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Add  Hydrogen  

7

Click the “Add Hydrogens” button:

Page 8: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Classical  minimizer

8

Click the “Minimize Energy” button to get a more realistic structure

Energy of the current structure

Page 9: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

9

Build —> Select Force Field : allows you to choose different force field

Classical  minimizer

Page 10: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Pre-­‐build  molecules  

10

Pre-build molecule library (“Add Fragments” button) contains various molecules that can be used to build more complex molecules

Page 11: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Click on the “Add Fragment” button , then choose amino_acids/L-lysine.

11

Pre-­‐build  molecules  

Page 12: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Click the “Add Fragment” button again, choosing the same molecule. Hold CTRL and the right mouse button (two fingers on Mac Trackpad) and drag the highlighted molecule – the screen should now look like this:

12

Pre-­‐build  molecules  

Page 13: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Manipula)on  Mode

13

Click on the “Manipulate” mode !

Use left mouse button to rotate Use right mouse button to translate

Page 14: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Select  Mode

Click on the “Select” mode !

Click on atoms to select them Click anywhere on the main window to deselect atoms Press “Alt” and the right mouse (two fingers on Mac Trackpad) button to move the group

of selected atoms

Page 15: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Measuring  bond  length,  angles,  and  dihedrals

15

Click  the  select  bu6on  

 Select  2,  3  or  4  atoms  as  necessary    

 the  measured  bond  length,  angle  or  dihedral  is  displayed  in  the  bo6om  corner:

The  bond  angle  is  displayed  here

Page 16: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

16

Performing  Q-­‐Chem  calcula)ons  Example  1:  H2O  

!

!

Prerequisite: Consult IQmol-Server-Setup tutorial

Page 17: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

17

!• Build molecule, clean-up (force-field opt-n), check symmetry (symmetrize molecule) • Optimize B3LYP/6-31G* • Play with changing the view of the molecule, move it around, zoom • Use ‘Select’ feature to measure bonds and angles • Look at MOs: HOMO, HOMO-1; LUMO • Run FREQ job, look at vibrations (click versus double-click)

H2O

Page 18: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

18

Building  up/Check  symmetry

Page 19: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Performing  Q-­‐Chem  

19

! Calculation —> Q-chem Setup; Open Q-chem User Interface (QUI) input editor

Page 20: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

QUI

20

QUI has 2 windows

Details of the calculation Preview of the input file

Page 21: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

QUI

21

There are 2 windows in “Computational details” section

Basic setup

Advanced calculations

Page 22: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

SePng  up  the  job  type,  method,  basis  set  

22

Page 23: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

23

SePng  up  the  job  type,  method,  basis  set  

Page 24: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

24

SePng  up  the  job  type,  method,  basis  set  

Page 25: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

H2O:  Op)miza)on  and  Frequency

25

Take H2O molecule and perform “Optimization” and “Frequency” analysis First optimization:

Page 26: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Use add button to submit multiple jobs within on input file: such and optimization and frequency to be performed subsequently

Read the geometry from the previous calculation

New job starts

26

H2O:  Op)miza)on  and  Frequency

Page 27: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Input  edi)ng

27

One can manually modify the input preview !!

$rem section

Page 28: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Saving  input  file  

28

Save the input on a disk: File —> save as Use .inp for name of the input file !

Page 29: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

29

Give  a  name  and  remember  it.

SubmiPng  job  to  HPC

Page 30: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

30

- Use default queue on HPCC; - Leave the rest of settings unchanged. !For advanced users: - To run Q-Chem in parallel (openmp), change the number in CPUs (consult the manual to see which types of jobs are openmp-parallelized); - for MPI-parallel, you will need to tweak the settings in the previous page; - Memory and scratch settings are not impor tan t he re , bu t fo r op t ima l performance you may need to tweak these settings in the Q-Chem input file, especially for advanced calculations. Consult the manual before doing so!

Choosing  queue  

Page 31: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Job  Status

31

Check the job status by selecting: “Calculation —>Job Monitor”

Page 32: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

32

Check the job status by selecting: “Calculation —>Job Monitor”

Monitoring  submiVed  job

Page 33: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

33

Job status is displayed in a new window:

use  leD  mouse  bu6on  to  select  the  job

use  right  mouse  bu6on  to  see  this  menu

kill  the  job  by  selecFng  this  opFon

Monitoring  submiVed  job

Page 34: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

34

Job  is  finished

Page 35: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

35

Note:  Must  be  the  same  name  as  the  folder  you  have  created  while  submiPng  the  job

Copy  files  to  your  laptop

If they do not match, you will get “no valid data found in …” error message. The files are actually OK and are copied to you laptop. You can open them individually with “Open…” command.

Page 36: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

AYer  you  copied  files  to  your  laptop  

36

Golden   star   shows   that   it   is  copied  properly  !Click  the  checkbox  !

Page 37: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Analyzing  Output:  Op)miza)on

37

After the calculations has completed, open the .out (output) with iQmol. The example here is H2O after optimization and frequency analysis.

Click the small arrow next to the checkbox to see various calculated properties

Clicking   the   arrow   next   to  Geometr ies   g ives   the  calculated   energy   at   every  step  of  opFmizaFon

Page 38: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Analyzing  Output:  Frequencies

38

Clicking the arrow next to Frequencies gives the calculated frequencies and displaced vectors for each frequency (for H2O: 3N-6=3 vibrational frequencies)

Double click at each value to animate the vibration

Page 39: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Analyzing  Output:  Orbitals,  Density,  Spin  Density  ,…

39

Must add GUI = 2 in the $ rem section (IQmol does it by default) Open .Fchk file to see orbitals, density, spin density and so on. Click at Surfaces and a window pops-up

Page 40: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

40

Select orbital Select the relevant orbital (default: HOMO) Select the quality you want Click calculate !!!!

click the arrow next to Surfaces to see the orbitals one by one by clicking the checkbox of the corresponding orbital (do not forget to uncheck the old one)

Use “Manipulation” mode to better see the orbital ! To save the screen: File —> Save Picture

Analyzing  Output:  Orbitals,  Density,  Spin  Density  ,…

Page 41: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

41

Select different properties to be calculated; spin density, density, and so on….

Analyzing  Output:  Orbitals,  Density,  Spin  Density  ,…

Page 42: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

42

Performing  Q-­‐Chem  calcula)ons  Example  2:  CH2O  (Formaldehyde)    

!

Page 43: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Formaldehyde  

43

!• Build molecule, clean-up (force-field opt-n), check symmetry (symmetrize molecule) • Optimize wB97X-D/6-31+G* • Play with changing the view of the molecule, move it around, zoom • Use ‘Select’ feature to measure bonds and angles • Look at MOs: HOMO, HOMO-1, LUMO • Run FREQ job, look at vibrations (click versus double-click) • Advanced: Run NBO analysis, look at NBO charges and bond orders

Page 44: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Building  up/Check  symmetry

44

Page 45: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

CH2O  Op)miza)on

45

Page 46: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

CH2O  Frequency  

46

Page 47: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

SubmiPng  job  to  HPC

47

Page 48: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Choosing  queue  

48

Page 49: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Monitoring  submiVed  job

49

Page 50: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

50

Monitoring  submiVed  job

Page 51: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Job  is  finished

51

Page 52: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Copy  files  to  your  laptop  

52

Page 53: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Analyze  the  output

53

click  checkbox

Page 54: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Op)miza)on  cycles

54

Page 55: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Frequencies

55

3N-­‐6=  6  vibraFonal  frequency

Page 56: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

Measuring  parameters

56

Use “Select” mode to choose a bond, angle, torsion, …

Page 57: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

HOMO-­‐LOMO  orbitals

57

Must add GUI = 2 in the $ rem section (IQmol does it by default) Open .Fchk file to see Orbitals, Density, Spin density and so on. Click at Surfaces and a window will pops-up

Page 58: IntroducontoIQmol:PartIiopenshell.usc.edu/chem545/lectures2014/IQmol-Intro-I.pdf · IQmol Youtube channel: IQmol now has its own Youtube channel. Building*molecules 3 Open IQmol,

58

Select Orbital Select the relevant orbital (default: HOMO) Select the quality you want Click calculate !!!

Click the arrow next to Surfaces to see the orbitals one by one by clicking the checkbox of the corresponding orbital (do not forget to uncheck the old one)

Use Manipulation Mode to better see the orbital ! To save the screen: File —> Save Picture

HOMO-­‐LOMO  orbitals