User Tools

Site Tools


exercises:2016_uzh_cmest:path_optimization_neb

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
Next revisionBoth sides next revision
exercises:2016_uzh_cmest:path_optimization_neb [2016/10/20 18:24] – [Visualize the trajectory] tmuellerexercises:2016_uzh_cmest:path_optimization_neb [2016/10/20 19:39] – [Vibrational analysis] tmueller
Line 177: Line 177:
 This may take a couple of hours. Continue with the exercises below once the calculation finishes. This may take a couple of hours. Continue with the exercises below once the calculation finishes.
  
-====== Visualize the trajectory ======+====== Visualize the trajectory and plot the energy curve ======
  
 When you take another peek at the input file you used to run the calculation, you will notice that we specified ''NUMBER_OF_REPLICA 8'', which means that CP2K will generate in total 8 beads (3 we specified in the ''&REPLICA'' sections, 5 will be generated automatically by interpolation). When you take another peek at the input file you used to run the calculation, you will notice that we specified ''NUMBER_OF_REPLICA 8'', which means that CP2K will generate in total 8 beads (3 we specified in the ''&REPLICA'' sections, 5 will be generated automatically by interpolation).
  
-You should therefore find 8 files named ''ethane_neb_aba-pos-Replica_nr_1-1.xyz''..''ethane_neb_aba-pos-Replica_nr_8-1.xyz'' in your exercise directory, containing the  optimization of each bead. To get the trajectory over the band, we extract the last frame (see the tip below) and write it into a separate file:+You should therefore find 8 files named ''ethane_neb_aba-pos-Replica_nr_1-1.xyz''..''ethane_neb_aba-pos-Replica_nr_8-1.xyz'' in your exercise directory, containing the  optimization of each bead. To get the trajectory over the band, we extract the last frame (see the tip below) and write it into a separate file named ''ethane_neb_aba_8r.xyz'':
  
 <code> <code>
Line 215: Line 215:
 </note> </note>
  
 +Since CP2K writes the energy in the comment line of each frame in the XYZ file (see tip above), we can extract the energy values for each bead directly from the newly generated ''ethane_neb_aba_8r.xyz'':
 +
 +<code>
 +awk '/E =/ {i=i+1; printf "%s %16.8f\n", i, $6}' ethane_neb_aba_8r.xyz
 +</code>
 +
 +Create a plot for this energy curve.
 +
 +====== Vibrational analysis ======
 +
 +To verify whether the point at the highest energy is actually a transition state, we will be doing a vibrational analysis.
 +
 +First identify the bead with the highest energy (see exercise above) and create a new XYZ file named ''ethane_neb_aba_TS.xyz'' with the respective coordinates (extracted from either the correct ''ethane_neb_aba-pos-Replica_nr_N-1.xyz'' file or the 'ethane_neb_aba_8r.xyz'').
 +
 +Use the following input file:
 +
 +<code - ethane_TS_va.inp>
 +&GLOBAL
 +  PROJECT ethane_TS_va
 +  RUN_TYPE NORMAL_MODES
 +  PRINT_LEVEL MEDIUM
 +&END GLOBAL
 +
 +&FORCE_EVAL
 +  METHOD Quickstep              ! Electronic structure method (DFT,...)
 +  &DFT
 +    BASIS_SET_FILE_NAME  BASIS_MOLOPT
 +    POTENTIAL_FILE_NAME  POTENTIAL
 +
 +    &POISSON                    ! Solver requested for non periodic calculations
 +      PERIODIC XYZ
 +    &END POISSON
 +    &SCF                        ! Parameters controlling the convergence of the scf. This section should not be changed. 
 +      SCF_GUESS ATOMIC
 +      EPS_SCF 1.0E-7
 +      MAX_SCF 300
 +    &END SCF
 +    &XC                        ! Parametes needed to compute the electronic exchange potential 
 +      &XC_FUNCTIONAL PBE
 +      &END XC_FUNCTIONAL
 +    &END XC
 +  &END DFT
 +
 +  &SUBSYS
 +    &CELL
 +      ABC 12. 12. 12.
 +      PERIODIC XYZ
 +    &END CELL
 +    &TOPOLOGY                    ! Section used to center the atomic coordinates in the given box. Useful for big molecules
 +      &CENTER_COORDINATES
 +      &END
 +      COORD_FILE_FORMAT xyz
 +      COORD_FILE_NAME  ./ethane_neb_aba_TS.xyz
 +    &END
 +    &KIND H
 +      ELEMENT H
 +      BASIS_SET DZVP-MOLOPT-GTH
 +      POTENTIAL GTH-PBE-q1
 +    &END KIND
 +    &KIND C
 +      ELEMENT C
 +      BASIS_SET DZVP-MOLOPT-GTH
 +      POTENTIAL GTH-PBE-q4
 +    &END KIND
 +  &END SUBSYS
 +&END FORCE_EVAL
 +
 +&VIBRATIONAL_ANALYSIS
 +  NPROC_REP 1
 +  DX 0.01
 +  FULLY_PERIODIC
 +  &PRINT
 +    &MOLDEN_VIB
 +    &END
 +    &CARTESIAN_EIGS
 +    &END
 +    &PROGRAM_RUN_INFO
 +      &EACH
 +        REPLICA_EVAL 1
 +      &END
 +      &END
 +  &END
 +&END
 +</code>
exercises/2016_uzh_cmest/path_optimization_neb.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1