User Tools

Site Tools


exercises:2014_ethz_mmm:nudged_elastic_band

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
exercise:nudged_elastic_band [2014/02/20 14:49] oschuettexercises:2014_ethz_mmm:nudged_elastic_band [2020/08/21 10:15] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Nudged Elastic Band ====== ====== Nudged Elastic Band ======
-In this exercise you will compute the energy profile for a simple reaction in a planar cluster of 7 Ar atoms, by using the NEB method. \\+In this exercise you will compute the energy profile for a simple reaction in a planar cluster of 7 Ar atoms, by using the NEB method.
  
-The NEB method requires at least the starting and the ending configuration between which the path is to be computed.\\ +The NEB method requires at least the starting and the ending configuration between which the path is to be computed. In addition is good to add a guess of the intermediate configuration. This is useful in particular when two or more reaction paths are possible and you want to compute the activation energy of a determined path. By adding the desired intermediate configuration, you giude the optimization trough the path of interest. The intermediate configuration is anyway not deifnitive, and will be optimized by the  NEB algorithm.
-In addition is good to add a guess of the intermediate configuration. This is useful in particular when two or more three reaction paths are possible and you want to compute the activation energy of a determined path. By adding the desired intermediate configuration, you giude the optimization trough the path of interest. The intermediate configuration is anyway not deifnitive, and will be optimized by the  NEB algorithm. \\+
  
-The aim of this exercise is to compute the activation energy required for bringing  atom 2 (dark blue) in the center of the cluster. \\ +The aim of this exercise is to compute the activation energy required for bringing  atom 2 (dark blue) in the center of the cluster.
-In 2D, there are at least two ways for doing so: \\ +
  
-A- Direct exchange with the central atom (PATH1): +In 2D, there are at least two ways for doing so
-{{ :exercise:neb_path1.gif |}} +
  
-B- Coordinated rotation of three atoms untill atom 2 is in the center(PATH2): +^  Path 1  ^  Path 2  ^ 
-{{ :exercise:neb_path2.gif |}}+|  Direct exchange with the central atom  |  Coordinated rotation of three atoms  | 
 +|  {{neb_path1.gif|}}  |  {{neb_path2.gif|}}  |
  
-===== Path1: direct exchange ===== 
  
-1Save the following commented CP2K input file to a file named ''neb1.inp''+===== Path 1: direct exchange ===== 
 + 
 +=== 1. Step === 
 +Save the following commented CP2K input file to a file named ''neb1.inp''
          
 <code - neb1.inp> <code - neb1.inp>
Line 42: Line 42:
     &END     &END
     &REPLICA                ! coordinates of the satting configuration (REQUIRED: has to be the first one in the input)     &REPLICA                ! coordinates of the satting configuration (REQUIRED: has to be the first one in the input)
-      Ar        -0.0000000000        0.0000000000       -0.0000000000 +     &COORD 
-      Ar         3.8030201671       -0.0000003430       -0.0000000000 +             -0.0000000000        0.0000000000       -0.0000000000 
-      Ar        -3.8030201671        0.0000003430        0.0000000000 +              3.8030201671       -0.0000003430       -0.0000000000 
-      Ar         1.9019125593        3.2944696295       -0.0000000000 +             -3.8030201671        0.0000003430        0.0000000000 
-      Ar         1.9019119654       -3.2944699726        0.0000000000 +              1.9019125593        3.2944696295       -0.0000000000 
-      Ar        -1.9019119654        3.2944699726        0.0000000000 +              1.9019119654       -3.2944699726        0.0000000000 
-      Ar        -1.9019125593       -3.2944696295        0.0000000000+             -1.9019119654        3.2944699726        0.0000000000 
 +             -1.9019125593       -3.2944696295        0.0000000000 
 +      &END 
     &END REPLICA     &END REPLICA
     &REPLICA                ! intermediate configuration     &REPLICA                ! intermediate configuration
-      Ar         2.215467       -0.734540        0.000000 +     &COORD 
-      Ar         2.144383        0.900403        0.000000 +              2.215467       -0.734540        0.000000 
-      Ar        -3.803020        0.000000        0.000000 +              2.144383        0.900403        0.000000 
-      Ar         1.901913        3.294470       -0.000000 +             -3.803020        0.000000        0.000000 
-      Ar         1.901912       -3.294470        0.000000  +              1.901913        3.294470       -0.000000 
-      Ar        -1.901912        3.294470        0.000000 +              1.901912       -3.294470        0.000000  
-      Ar        -1.901913       -3.294470        0.000000+             -1.901912        3.294470        0.000000 
 +             -1.901913       -3.294470        0.000000 
 +     &END
     &END REPLICA     &END REPLICA
     &REPLICA                ! ending configuration (REQUIRED: has to be the last one in the input)     &REPLICA                ! ending configuration (REQUIRED: has to be the last one in the input)
-      Ar        3.8030201671       -0.0000003430       -0.0000000000 +      &COORD 
-      Ar        0.0000000000        0.0000000000       -0.0000000000 +              3.8030201671       -0.0000003430       -0.0000000000 
-      Ar       -3.8030201671        0.0000003430        0.0000000000 +              0.0000000000        0.0000000000       -0.0000000000 
-      Ar        1.9019125593        3.2944696295       -0.0000000000 +             -3.8030201671        0.0000003430        0.0000000000 
-      Ar        1.9019119654       -3.2944699726        0.0000000000 +              1.9019125593        3.2944696295       -0.0000000000 
-      Ar       -1.9019119654        3.2944699726        0.0000000000 +              1.9019119654       -3.2944699726        0.0000000000 
-      Ar       -1.9019125593       -3.2944696295        0.0000000000 +             -1.9019119654        3.2944699726        0.0000000000 
-    &END REPLICA+             -1.9019125593       -3.2944696295        0.0000000000 
 +       &END 
 +    &END REPLICA 
    &END BAND    &END BAND
 &END MOTION &END MOTION
Line 81: Line 87:
         &LENNARD-JONES         &LENNARD-JONES
           atoms  Ar Ar           atoms  Ar Ar
-          EPSILON 119.8 +          EPSILON    [K_e] 119.8 
-          SIGMA 3.401 +          SIGMA [angstrom]   3.401 
-          RCUT  25.0+          RCUT  [angstrom]  25.0
         &END LENNARD-JONES         &END LENNARD-JONES
       &END NONBONDED       &END NONBONDED
Line 115: Line 121:
 &END FORCE_EVAL &END FORCE_EVAL
 </code> </code>
- +=== 2. Step: Run CP2K ===
-\\ +
-2Run CP2K +
-\\+
 <code> <code>
 $ cp2k.popt -i neb1.inp -o neb1.out $ cp2k.popt -i neb1.inp -o neb1.out
 </code> </code>
  
-3For the NEB calcualtions, CP2k produces a few output files. The most important are:+=== 3. Step === 
 +For the NEB calcualtions, CP2k produces a few output files. The most important are:
  
-  * neb1.out : standard CP2K output file. It tells you whether that the calculation is completed. (See:[[exercise:single_point_calculation|Computation of the Lennard Jones curve for two Ar atoms]].Part I, Step 3)+  * neb1.out : standard CP2K output file. It tells you whether that the calculation is completed.\\ (See:[[single_point_calculation|Computation of the Lennard Jones curve for two Ar atoms]].Part I, Step 3)
   * neb1-pos-Replica_nr_XXX-1.xyz : those are the replica optimization trajectories. You get a trajectory for each replica.    * neb1-pos-Replica_nr_XXX-1.xyz : those are the replica optimization trajectories. You get a trajectory for each replica. 
   * neb1-BANDXXX.out : geometry optimization output for each replica.   * neb1-BANDXXX.out : geometry optimization output for each replica.
  
-4Checking the trajectory. \\  +=== 4. Step: Checking the trajectory === 
-Here is a short script to create a ''movie.xyz'' file showing the trajectory from starting to ending point. \\+Here is a short script to create a ''movie.xyz'' file showing the trajectory from starting to ending point.
 Use this procedure to make sure that the trajectory you obtain is the one you actaully want to study. The movie.xyz can be read by VMD. Use this procedure to make sure that the trajectory you obtain is the one you actaully want to study. The movie.xyz can be read by VMD.
 <code> <code>
Line 136: Line 140:
 </code> </code>
  
-5Generating the energy profile. \\ +=== 5. Step: Generating the energy profile === 
-Here is a short script to create an energy profile as  a function of the replica number. \\+ 
 +Here is a short script to create an energy profile as  a function of the replica number. 
 <code> <code>
-$ for a in 1 2 3 4 5 6 7 8 9 10 ; do grep ENERGY  neb1-BAND${a}.out | tail -n 1 | awk '{print '${a}',$9}' ; done +$ for a in 1 2 3 4 5 6 7 8 9 10 ; do grep ENERGY  neb1-BAND${a}.out | tail -n 1 | awk '{print '${a}',$9}' ; done > neb1_profile
 </code> </code>
-The energy profile will be printed on screen. Any plotting program should be able to handle it. 
  
-===== Path2: Coordinated rotation =====+The energy profile will be stored in the file ''neb1_profile''. Any plotting program should be able to visualize it, e.g. gnuplot: 
 + 
 +<code> 
 +$ echo "plot 'neb1_profile' w l; pause mouse" |  gnuplot 
 +</code> 
 + 
 +===== Path 2: Coordinated rotation =====
 Here is the input file for the PATH2. Here is the input file for the PATH2.
 Following the same procedure as above, you can obtain a trajectory and an energy profile. Following the same procedure as above, you can obtain a trajectory and an energy profile.
Line 170: Line 180:
       &END       &END
     &END     &END
-    &REPLICA                 +    &REPLICA     
-Ar        -0.0000000000        0.0000000000       -0.0000000000 +     &COORD              
-Ar         3.8030201671       -0.0000003430       -0.0000000000 +        -0.0000000000        0.0000000000       -0.0000000000 
-Ar        -3.8030201671        0.0000003430        0.0000000000 +         3.8030201671       -0.0000003430       -0.0000000000 
-Ar         1.9019125593        3.2944696295       -0.0000000000 +        -3.8030201671        0.0000003430        0.0000000000 
-Ar         1.9019119654       -3.2944699726        0.0000000000 +         1.9019125593        3.2944696295       -0.0000000000 
-Ar        -1.9019119654        3.2944699726        0.0000000000 +         1.9019119654       -3.2944699726        0.0000000000 
-Ar        -1.9019125593       -3.2944696295        0.0000000000 +        -1.9019119654        3.2944699726        0.0000000000 
 +        -1.9019125593       -3.2944696295        0.0000000000  
 +     &END
     &END REPLICA     &END REPLICA
-    &REPLICA                 +    &REPLICA  
-Ar        3.8030201671       -0.0000003430       -0.0000000000 +     &COORD                 
-Ar        1.9019125593        3.2944696295       -0.0000000000 +        3.8030201671       -0.0000003430       -0.0000000000 
-Ar       -3.8030201671        0.0000003430        0.0000000000 +        1.9019125593        3.2944696295       -0.0000000000 
-Ar        0 0 0 +       -3.8030201671        0.0000003430        0.0000000000 
-Ar        1.9019119654       -3.2944699726        0.0000000000 +        0 0 0 
-Ar       -1.9019119654        3.2944699726        0.0000000000 +        1.9019119654       -3.2944699726        0.0000000000 
-Ar       -1.9019125593       -3.2944696295        0.0000000000+       -1.9019119654        3.2944699726        0.0000000000 
 +       -1.9019125593       -3.2944696295        0.0000000000 
 +      &END
     &END REPLICA     &END REPLICA
-    &REPLICA                 +    &REPLICA  
-Ar         1.9019125593        3.2944696295       -0.0000000000 +     &COORD                
-Ar         0 0 0 +         1.9019125593        3.2944696295       -0.0000000000 
-Ar        -3.8030201671        0.0000003430        0.0000000000 +         0 0 0 
-Ar         3.8030201671       -0.0000003430       -0.0000000000 +        -3.8030201671        0.0000003430        0.0000000000 
-Ar         1.9019119654       -3.2944699726        0.0000000000 +         3.8030201671       -0.0000003430       -0.0000000000 
-Ar        -1.9019119654        3.2944699726        0.0000000000 +         1.9019119654       -3.2944699726        0.0000000000 
-Ar        -1.9019125593       -3.2944696295        0.0000000000                                                          +        -1.9019119654        3.2944699726        0.0000000000 
 +        -1.9019125593       -3.2944696295        0.0000000000     
 +      &END                                                      
     &END REPLICA     &END REPLICA
    &END BAND    &END BAND
Line 210: Line 226:
         &LENNARD-JONES         &LENNARD-JONES
           atoms  Ar Ar           atoms  Ar Ar
-          EPSILON 119.8 +          EPSILON    [K_e] 119.8 
-          SIGMA 3.401 +          SIGMA [angstrom]   3.401 
-          RCUT  25.0+          RCUT  [angstrom]  25.0
         &END LENNARD-JONES         &END LENNARD-JONES
       &END NONBONDED       &END NONBONDED
exercises/2014_ethz_mmm/nudged_elastic_band.1392907758.txt.gz · Last modified: 2020/08/21 10:14 (external edit)