User Tools

Site Tools


howto:geometry_optimisation

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
geometry_optimisation [2014/02/03 11:24] – remove spaces in code text oschuetthowto:geometry_optimisation [2022/12/21 13:28] oschuett
Line 1: Line 1:
-====== Introduction ======+====== How to run Geometry Optimisation ======
  
 +===== Introduction =====
 This tutorial is designed to illustrate how to relax the structure This tutorial is designed to illustrate how to relax the structure
 of a system (without changing the cell dimensions) using ''CP2K''. We of a system (without changing the cell dimensions) using ''CP2K''. We
Line 16: Line 17:
 tutorial [[converging_cutoff|Converging the CUTOFF and REL_CUTOFF]]). tutorial [[converging_cutoff|Converging the CUTOFF and REL_CUTOFF]]).
  
-====== Input Files ======+DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is an extrapolation technique. DIIS was developed by Peter Pulay in the field of computational quantum chemistry with the intent to accelerate and stabilize the convergence of the Hartree–Fock self-consistent field method.
  
 +
 +Note that the ''ALPHA'' and ''NBUFFER'' parameters might have to be reduced to avoid a  [[https://github.com/cp2k/cp2k/issues/2360|bad condition number]].
 +
 +===== Input Files =====
 The input file for a geometry calculation is shown below: The input file for a geometry calculation is shown below:
  
Line 101: Line 106:
   &END CONSTRAINT   &END CONSTRAINT
 &END MOTION &END MOTION
- </code>+</code>
  
 The reader should already be familiar with the [[http://manual.cp2k.org/trunk/CP2K_INPUT/GLOBAL.html|''GLOBAL'']] and The reader should already be familiar with the [[http://manual.cp2k.org/trunk/CP2K_INPUT/GLOBAL.html|''GLOBAL'']] and
Line 109: Line 114:
 <code cp2k> <code cp2k>
 RUN_TYPE GEO_OPT RUN_TYPE GEO_OPT
- </code>+</code>
  
 In this example, we note that we have chosen diagonalisation of the In this example, we note that we have chosen diagonalisation of the
Line 136: Line 141:
   &END CG   &END CG
 &END GEO_OPT &END GEO_OPT
- </code>+</code>
  
 The [[http://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/GEO_OPT.html#desc_TYPE|''TYPE'']] keyword sets whether the geometry optimisation is for The [[http://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/GEO_OPT.html#desc_TYPE|''TYPE'']] keyword sets whether the geometry optimisation is for
Line 167: Line 172:
   &END FIXED_ATOMS   &END FIXED_ATOMS
 &END CONSTRAINT &END CONSTRAINT
- </code>+</code>
  
 We can add constraints to atomic movements by using the [[http://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/CONSTRAINT.html|''CONSTRAINT'']] We can add constraints to atomic movements by using the [[http://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/CONSTRAINT.html|''CONSTRAINT'']]
Line 179: Line 184:
 <code cp2k> <code cp2k>
 LIST 1 2 3 ... N LIST 1 2 3 ... N
- </code>+</code>
  
 The numbers to the right of ''LIST'' are the list of atomic indices, The numbers to the right of ''LIST'' are the list of atomic indices,
Line 187: Line 192:
 so that the water molecule will not move around while its structure so that the water molecule will not move around while its structure
 is being relaxed. is being relaxed.
-====== Results ====== 
  
 +
 +===== Results =====
 The example is run using the serial version of the ''CP2K'' binaries: The example is run using the serial version of the ''CP2K'' binaries:
  
 <code> <code>
 cp2k.sopt -o H2O.out H2O.inp & cp2k.sopt -o H2O.out H2O.inp &
- </code>+</code>
  
 After the job has finished, you should obtain the following files: After the job has finished, you should obtain the following files:
Line 215: Line 221:
 <code> <code>
 cp2k.sopt -o H2O.out H2O-1.restart & cp2k.sopt -o H2O.out H2O-1.restart &
- </code>+</code>
  
 You can of course also use ''H2O-1.restart'' as a template for writing You can of course also use ''H2O-1.restart'' as a template for writing
Line 251: Line 257:
  Conv. for gradients        =                   NO  Conv. for gradients        =                   NO
 --------------------------------------------------- ---------------------------------------------------
- </code>+</code>
  
 The above output segment states that at the end of geometry The above output segment states that at the end of geometry
Line 284: Line 290:
  Conv. in RMS gradients                      YES  Conv. in RMS gradients                      YES
 --------------------------------------------------- ---------------------------------------------------
- </code>+</code>
  
 which clearly shows all criteria have been satisfied. which clearly shows all criteria have been satisfied.
Line 342: Line 348:
  
 ENERGY| Total FORCE_EVAL ( QS ) energy (a.u.):              -17.164634771108034 ENERGY| Total FORCE_EVAL ( QS ) energy (a.u.):              -17.164634771108034
- </code>+</code>
  
howto/geometry_optimisation.txt · Last modified: 2024/01/15 09:23 by oschuett