Skip to the content.
Tutorial
Main Page
Section I
Geometry Optimization
Section II
PES Scan
Section III
Nudgded Elastic Band
Section IV
Vibrational Analysis
Section V
Dimer Method


II - Potential energy surface scan to explore a trial reaction coordinate


&GLOBAL
    RUN_TYPE GEO_OPT
...


In this section, we obtain both a TS guess and initial coordinates for the CI-NEB method:

same residue as all not within 15 of resname LIG
same residue as all not within 15 of (resname LIG or protein)


set sel [atomselect top "same residue as all not within 15 of (resname LIG or protein)"]
set outfile [open freeze.dat w]
puts $outfile [$sel get serial]
close $outfile


FIXED_ATOMS=(`cat freeze.dat`)
LIST_NUMBER=$(("${#FIXED_ATOMS[@]}"/100))
for i in `seq 0 1 "$LIST_NUMBER"`; do 
    echo -n "LIST "
    echo "${FIXED_ATOMS[@]:$(("$i"*100)):100}"
done > fixed_atoms.inc
&MOTION
    ...
    &CONSTRAINT
        &FIXED_ATOMS
            @INCLUDE fixed_atoms.inc
        &END FIXED_ATOMS
    ...


&FORCE_EVAL
    ...
    &SUBSYS
        ...
        &COLVAR
            &DISTANCE_FUNCTION
                ATOMS 2590 28386 7003 28388
                COEFFICIENT +1.0
            &END DISTANCE_FUNCTION
        &END COLVAR
        ...


&MOTION
    ...
    &CONSTRAINT
        &COLLECTIVE
            COLVAR 1
            INTERMOLECULAR TRUE
            TARGET [angstrom] TARGET_TAG
                &RESTRAINT
                    K [angstrom^-2*kcalmol] 50.0
                &END RESTRAINT
        &END COLLECTIVE
        ...


*Note that the restart file name from the last geometry optimization of the previous tutorial section has to be changed to SCAN_4.75-1.restart to be read as the first structure.

for i in `seq 4.50 -0.25 2.50`; do
        LAST_GEO=`echo "$i" + 0.25 | bc -l`
        cp scan.inp scan_"$i".inp
        sed -i 's/SCAN_TAG/SCAN_'"$i"'/g' scan_"$i".inp
        sed -i 's/RESTART_TAG/SCAN_'"$LAST_GEO"'-1.restart/g' scan_"$i".inp
        sed -i 's/TARGET_TAG/'"$i"'/g' scan_"$i".inp

        cp2k.popt -i scan_"$i".inp -o scan_"$i".out

        wait
done


&EXT_RESTART
    RESTART_FILE_NAME RESTART_TAG
    RESTART_DEFAULT .TRUE.
    RESTART_CONSTRAINT .FALSE.
    RESTART_COUNTERS .FALSE.
&END EXT_RESTART


./cp2k_energy_analysis.sh scan_*.out
Reverse order? (y/n)
y
| OUTPUT 	| GEOPT CYCLES 	| E_T/Hartree 		| E_QM+QMMM/Hartree 	| E_MM/Hartree 		| ΔE_T/kcal.mol-1 	| ΔE_QM+QMMM/kcal.mol-1 | ΔE_MM/kcal.mol-1 	|
scan_4.50.out 	 26 	-1101.562301145778292 	-269.45241047339886 	-832.109890672379432	0.000000000000000	0.000000000000000	0.000000000000000
scan_4.25.out 	 57 	-1101.561702718561946 	-269.45057143793144 	-832.111131280630506	0.375513078257115	1.153994755806050	-0.778481677548935
scan_4.00.out 	 68 	-1101.559579686170991 	-269.44767950284739 	-832.111900183323601	1.707715903581377	2.968684021047425	-1.260968117466047
scan_3.75.out 	 35 	-1101.554593173562125 	-269.44400306700533 	-832.110590106556795	4.836752565644793	5.275647511940075	-0.438894946295282
scan_3.50.out 	 74 	-1101.546967511229923 	-269.43752310212847 	-832.109444409101453	9.621855679101548	9.341825472169725	0.280030206931823
scan_3.25.out 	 48 	-1101.538629686861213 	-269.42986051759254 	-832.108769169268673	14.853840470467073	14.150097268465800	0.703743202001272
scan_3.00.out 	 68 	-1101.531628450303515 	-269.41916696488789 	-832.112461485415625	19.247116410422567	20.860301590633675	-1.613185180211108
scan_2.75.out 	 67 	-1101.531794161027847 	-269.41994863747573 	-832.111845523552117	19.143132930904237	20.369802041764075	-1.226669110859837
scan_2.50.out 	 158 	-1101.535725675905041 	-269.42372519260118 	-832.112000483303861	16.676107345465003	18.000013700544200	-1.323906355079197



Tutorial
Main Page
Section I
Geometry Optimization
Section II
PES Scan
Section III
Nudgded Elastic Band
Section IV
Vibrational Analysis
Section V
Dimer Method