Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ......

20
B. Civalleri Options in geometry optimization The Minnesota Workshop on ab Initio Modeling in Solid State Chemistry with CRYSTAL Minneapolis, MN(U.S.A.) 9-14 July 2017 7

Transcript of Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ......

Page 1: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

B. Civalleri

Options in geometry optimization

The Minnesota Workshop on ab Initio Modeling in Solid State

Chemistry with CRYSTAL Minneapolis, MN(U.S.A.)

9-14 July 2017

7

Page 2: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

Geometry optimization input block

a-QUA (in. geom. expt.) CRYSTAL 0 0 2 154 0 0 16 4.916 5.4054 2 14 0.4697 0. 0. 8 0.4135 0.2669 0.1191 OPTGEOM Optional keywords END ENDG

E.g.: α-Quartz - hexagonal cell – RHF/STO-3G

Title Dimensionality of the system Crystallographic information (3D only) Space Group (Fm3m – 154) Shift of the origin Lattice parameters (hexagonal) Number of non equivalent atoms Atomic number and fractional coordinates Geometry optim. input block Optimization of cell and atomic positions End of geom. opt. input block End of geometry input section

Optional keywords are related to:

•  Modification of the algorithm (Initial Hessian, Hessian updating,…)

•  Convergence criteria and tolerances (TOLDEE, TOLDEX, TOLDEG)

•  Constrained geometry optimization

See CRYSTAL Tutorials (Geometry Optimization)

Page 3: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

Constrained geometry optimization Optimization in Cartesian/fractionary coordinates (default) 1. Fixing Cartesian coordinates (FRAGMENT) 2. Constant volume geometry optimization (CVOLOPT) 3. Fixing a lattice parameter (CRYDEF – FIXDEF) 4. Constant pressure geometry optimization (EXTPRESS) Optimization in redundant internal coordinates (INTREDUN) 1. Fixing a set of internal coordinates (FREEZINT) 2. Adding a new internal coordinate (DEFLNGS, …) 3. Fixing a given internal coordinate (LNGSFROZEN, …)

Page 4: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

FRAGMENT

Urea (expt.) STO-3G CRYSTAL 0 0 0 113 5.565 4.684 5 6 0.0 0.5 0.326 8 0.0 0.5 0.5953 7 0.1459 0.6459 0.1766 1 0.2575 0.7575 0.2827 1 0.1441 0.6441-0.0380 KEEPSYMM OPTGEOM FRAGMENT 2 9 13 END END

Title Dimensionality of the system Crystallographic information (3D only) Space Group (P4121 – 113) Lattice parameters (tetragonal) Number of non equivalent atoms Atomic number and fractional coordinates Keyword to preserve the symmetry Geometry optim. input block Keyword to optimize a fragment of the structure Number of atoms free to relax Labels of the atoms free to relax (see output) End of geometry optimization input block End of the geometry input section

E.g.: Urea bulk - tetragonal cell – RHF/STO-3G

Page 5: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

FRAGMENT – Exercise Exercise (α-Al2O3 surface relaxation)

Starting from results of Exercise 2 in the “Geometry optimization” tutorial, use FRAGMENT to perform a partial optimization of the first atomic layer and then first and second atomic layers

Compare the full relaxation run with the partial ones.

Which atomic layer gives the largest contribution to structure relaxation?

Page 6: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

CVOLOPT

a-QUA (in. geom. expt.) CRYSTAL 0 0 2 154 0 0 16 4.916 5.4054 2 14 0.4697 0. 0. 8 0.4135 0.2669 0.1191 OPTGEOM CVOLOPT END ENDG

E.g.: α-Quartz - hexagonal cell – constant volume optimization

Title Dimensionality of the system Crystallographic information (3D only) Space Group (Fm3m – 154) Shift of the origin Lattice parameters (hexagonal) Number of non equivalent atoms Atomic number and fractional coordinates Geometry optim. input block Keyword to run a constant volume opt. End of geom. optim. input block End of geometry input section

Useful to compute E vs V curves (e.g. for EoS)

Page 7: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

FIXDEF

a-QUA (in. geom. expt.) CRYSTAL 0 0 2 154 0 0 16 4.916 5.4054 2 14 0.4697 0. 0. 8 0.4135 0.2669 0.1191 OPTGEOM CRYDEF FIXDEF 1 0 2 0.0 0.0 END ENDG

E.g.: α-Quartz - hexagonal cell – fixing c lattice constant

Title Dimensionality of the system Crystallographic information (3D only) Space Group (Fm3m – 154) Shift of the origin Lattice parameters (hexagonal) Number of non equivalent atoms Atomic number and fractional coordinates Geometry optim. input block Setting crystallographic deformations Keyword to fix a given deformation Number of constraints Fixing c lattice constant End of geom. optim. input block End of geometry input section

Page 8: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

FIXDEF - Exercise

Exercise: (Fixing c lattice constant)

Use input for Ice XI from Exercise 1 in the “Geometry optimization” tutorial to run a geometry optimization by fixing the c lattice parameter.

Page 9: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

EXTPRESS Example: (MgO – under pressure)

EXTPRESS allows user to apply a given pressure to the system and optimize the structure. Pressure is given as Hartree/Bohr3 (1 Hartree/Bohr3 = 29421 GPa) E.g. OPTGEOM FULLOPTG EXTPRESS 0.001 END Modify the MgO input file to run the geometry optimization above. Try to run a series of calculations at different pressure (EOS)

Page 10: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN Ice Cmc21 setting expt. CRYSTAL 0 0 0 36 4.523 7.834066 7.367 5 8 0.00000 -0.33333 -0.4371 8 0.50000 -0.16667 -0.5629 1 0.50000 -0.16667 -0.6989 1 0.50000 -0.04490 -0.5182 1 0.18265 -0.27245 -0.4818 OPTGEOM INTREDUN ENDOPT END (ENDG)

E.g.: Ice - orthorombic cell – Fractionary vs Internal

Title Dimensionality of the system Crystallographic information (3D only) Space Group (36) Lattice parameters (orthorombic) Number of non equivalent atoms Atomic number and fractional coordinates Geometry optim. input block Full optimization of cell param.s and atoms in redundant internal coordinates End of geometry input section

Note: INTREDUN performs a full optimization of cell param. and atomic positions Before running the calculation it is better to run a test to check the consistency of the set of internal coordinates (keyword TESTREDU) Automatic generation of the internal coordinates depends on the definition of covalent radii (see keyword RAYCOV)

Page 11: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN - Exercise

Exercise: (Comparison between fractionary and internal coord.)

Use input for Ice XI from Exercise 1 in the “Geometry optimization” tutorial to run a geometry optimization in fractionary coordinates

(FULLOPTG) and in redundant internal coordinates (INTREDUN).

Page 12: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN - FREEZINT Example: (Ice - Freezing a set of internal coordinates)

Modify the previous input for Ice XI to freeze internal coordinates (keyword FREEZINT). This allows users to fix a set of internal coordinates according to the list of bonds, angles and torsions printed in the output file.

FREEZINT fix internal coord.s by specifying how many bonds, angles and torsions are frozen (in this order) according to the list.

E.g.

ATOMORDE OPTGEOM INTREDUN FREEZINT 3 8 0 END

Note that this corresponds to a rigid body geometry optimization. Repeat the exercise for crystalline urea.

Page 13: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN – LNGSFROZEN/ANGSFROZEN Example: (a-Quartz – rigid tetrahedra geom. optimization) Modify the previous input for α-Quartz to freeze given internal coordinates (keyword LNGSFROZEN and ANGSFROZEN). This allows users to fix a given internal coordinate by specifying the atoms that define the bond or the angle. If the specified internal coordinate does not exist, it is created, first, and then added on top of the list of coordinates. E.g. OPTGEOM INTREDUN ANGSFROZEN 4 5 1 -1 0 0 8 0 0 0 4 1 0 0 0 8 1 0 0 4 1 0 0 0 7 0 0 0 4 1 0 0 0 5 1 0 0 LNGSFROZEN 2 4 1 0 0 0 5 1 -1 0 0 END This corresponds to a rigid tetrahedra (SiO4) geometry optimization.

Repeat the previous exercise for Ice by using LNGSFROZEN and ANGSFROZEN.

Page 14: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN – DEFLNGS/LNGSFROZEN Example: (α-Quartz – fixing internal coordinates)

LNGSFROZEN and ANGSFROZEN can be combined with DEFLNGS and DEFANGS, respectively. This allows user to define a new internal coordinate before fixing it. Note that the new coordinate appears on top of the list of internal coordinates E.g. OPTGEOM INTREDUN DEFLNGS 1 4 1 0 0 0 LNGSFROZEN 1 4 1 0 0 0 END Modify the α-Quartz input file to run the geometry optimization above. Exercise: Repeat the geometry optimization of crystalline urea by fixing the N-H bond lengths. Hint: add the N-H bond as new coordinates and then fix it.

Page 15: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN – SCANREDU Example: (Urea – scanning internal coordinates)

SCANREDU allows user to scan one (two) internal coordinate(s) while relaxing the rest of the structure. Selected internal coordinate(s) must be fixed and then the number of bonds (angles, dihedrals), maximum value and number of steps must be specified

E.g. Scanning CO bond OPTGEOM INTREDUN FREEZINT 1 0 0 SCANREDU 1 1.5 2 END

E.g. Scanning NH bonds OPTGEOM INTREDUN DEFLNGS 2 9 5 0 0 0 13 5 0 0 0 SCANREDU 1 1.2 2 SCANREDU 1 1.2 2 END

Modify the urea input file to run the geometry optimizations above.

Page 16: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTLMIXED This option allows to define internal coordinates without generating the whole set of redundant coordinates and so prevent from the explosion of the size of coordinate space.

Repeat the α-Quartz – fixing internal coordinates exercise using INTLMIXED instead of INTREDUN: E.g. OPTGEOM INTLMIXED LNGSFROZEN 1 4 1 0 0 0 END

Also you may try with SCANREDU exercise

Page 17: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

TS search: α-Quartz – β-Quartz phase transition (0K)

•  α-Quartz undergoes a displacive phase transition at high T (soft mode) •  At 0K, β-Quartz is not a minimum on the PES ⇒ phonon instability •  The associated eigenvector corresponds to a rotation of the SiO4 tetrahedra •  By following the eigenvector one arrives to the minimum (α-Quartz)

β-quartz

α-quartz

C. M. Zicovich-Wilson, unpublished

Page 18: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

TS search: α-Quartz – β-Quartz phase transition (0K)

•  TS search strategy based on an eigenvector-following algorithm in redundant internal coordinates •  Starting from α-Quartz the correct TS structure (β-Quartz) is obtained

C. M. Zicovich-Wilson, unpublished

Page 19: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN- TSOPT Example: (Quartz: alpha-beta phase transition)

TSOPT, PATHFOLLOW and FITTOPATH

OPTGEOM IntRedun TSOpt MaxTRadius .3 TrustRadius .1 PathFollow 11 FitToPath -12 40 END

Modify the alpha-Quartz STO-3G input

Page 20: Options in geometry optimization - unito.it · PDF fileOptions in geometry optimization ... RHF/STO-3G Title Dimensionality of the system Crystallographic information ... Fixing a

INTREDUN- TSOPT QUARTZ ALFA (init. geom.: expt.) STO-3G TS OPT TO BETA CRYSTAL 0 0 2 154 0 0 16 4.916 5.4054 2 14 0.4697 0. 0. 8 0.4135 0.2669 0.1191 OPTGEOM IntRedun TSOpt MaxTRadius .3 TrustRadius .1 PathFollow 11 FitToPath -12 40 END BASISSET STO-3G ScfDir Shrink 3 3 FMIXING 20 TOLDEE 7 END