Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
geometry_optimization_optg [2023/07/19 07:35] – [Geometry optimization (OPTG)] wernergeometry_optimization_optg [2024/01/08 13:24] (current) – external edit 127.0.0.1
Line 19: Line 19:
 When analytical gradients are available for the optimized energy these will be used. See section [[energy gradients#analytical energy gradients|analytical energy gradients]] for a list of methods with analytical gradients. Otherwise the gradient will be computed numerically from finite energy differences. Normally, the last computed ground-state energy is used. But the ''VARIABLE'' directive or option can be used to optimize, e.g., Davidson corrected energies, excited states, or counterpoise corrected energies. When analytical gradients are available for the optimized energy these will be used. See section [[energy gradients#analytical energy gradients|analytical energy gradients]] for a list of methods with analytical gradients. Otherwise the gradient will be computed numerically from finite energy differences. Normally, the last computed ground-state energy is used. But the ''VARIABLE'' directive or option can be used to optimize, e.g., Davidson corrected energies, excited states, or counterpoise corrected energies.
  
-By default the program repeats in each geometry optimization step those commands in the input that are needed to compute the last energy. For example, for MP2 gradients the commands HF and MP2 are needed. The MP2 gradients will then be computed automatically. Variables set by these programsas e.g. ''ENERGY'', are set as usual in each optimization step. In addition, there is a variable ''OPTSTEP'', which is incremented in each optimization step. Its initial value is zero. To save the results of the initial energy calculation, one can use, e.g.,+By default the program repeats in each geometry optimization step those commands in the input that are needed to compute the last energy //and// any ''variable=value'' assignments in between the last energy calculation and the ''OPTG'' command. For example, for MP2 gradients the commands HF and MP2 are needed. The MP2 gradients will then be computed automatically. Variables set by these programs ase.g.''ENERGY'', are set as usual in each optimization step. In addition, there is a variable ''OPTSTEP'', which is incremented in each optimization step. Its initial value is zero. To save the results of the initial energy calculation, one can use, e.g.,
  
 ''hf\\ ''hf\\
Line 77: Line 77:
  
  
-There are many further options, but only the following may sometimes be relevant:+There are many further options, but only the following may be sometimes relevant:
  
 ''OPTC:''  ''OPTC:'' 
Line 97: Line 97:
   * ''ITYPE=0'' - standard molecular optimization (default)   * ''ITYPE=0'' - standard molecular optimization (default)
   * ''ITYPE=1'' - optimization of molecule reacting/adsorbed on model surface   * ''ITYPE=1'' - optimization of molecule reacting/adsorbed on model surface
-  * ''ITYPE=2'' - optimization of molecular clusters+  * ''ITYPE=2'' - optimization of molecular clusters (see below)
  
 ''ICONS:''  ''ICONS:'' 
   * ''ICONS=0'' - full optimization (no constraints, default)   * ''ICONS=0'' - full optimization (no constraints, default)
   * ''ICONS=1'' - constrained optimization using Lagrange multipliers (default if constraints are given see [[geometry optimization (OPTG)#Constraint optimisations using the PQS optimizer|constraint optimisations using the PQS optimizer]])   * ''ICONS=1'' - constrained optimization using Lagrange multipliers (default if constraints are given see [[geometry optimization (OPTG)#Constraint optimisations using the PQS optimizer|constraint optimisations using the PQS optimizer]])
-  * ''ICONS=2'' - constrained optimization using Penalty functions+  * ''ICONS=2'' - constrained optimization using penalty functions
  
 +''Cluster optimizations:''
 +
 +Cluster optimizations use inverse distance coordinates for intermolecular degrees of freedom.
 +
 +  * ''MOLECULES=[//n1,n2,n3,...//]'' - For cluster optimisations. The molecules must come one after the other in the geometry input. //''n1'', ''n2'',...// are the number of atoms in each molecule. The sum of these must be equal to the total number of atoms. This option sets automatically ''ITYPE=2''
 + 
 +  * ''CUTOFF=//value//'' - Distance cutoff for intermolecular coordinates in Angstrom. The program will generate inverse distance coordinates for between all atoms of different molecules, unless the distance is larger than this value. Default: 5 Angstrom.
 +
 +  * ''SCALE=//value//'' - Scaling factor for inverse distance coordinates. Typical values are between 1 and 10. Default is 1.0
 +
 +Unfortunately, according to our current limited experience, the cluster optimization in pqsopt is neither well working in the original PQS program nor in Molpro and should therefore be used with care.
 + 
 +''Optimizations with z-matrix input:''
 +
 +By default, optimizations with z-matrix geometry input are done with the old RF optimizer, and only the active variables in the z-matrix are optimised (cf. [[geometry optimization (OPTG)#Defining active geometry parameters (ACTIVE)|Defining active geometry parameters]]). It is possible, however, to force pqs optimization by giving the optg option ''PQS'' or ''METHOD=PQS''. In this case, all cartesian coordinates will be optimised, and in each iteration the new structure is back-transformed to the z-matrix. If the z-matrix contains constants, these may change and will be overwritten. If the same variable is used in several places of the z-matrix and the corresponding new parameters are not the same, the variable is only kept in the first place, and the further ones are overwritten by the new fixed parameters. The updated z-matrix is printed in the log-file in each iteration.
 ==== Constraint optimisations using the PQS optimizer ==== ==== Constraint optimisations using the PQS optimizer ====