for AT in -3.00 -2.75 -2.50 -2.25 -2.00 -1.75 -1.50 -1.25 -1.00 -0.75 -0.50 -0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +1.25 +1.50 +1.75 +2.00 +2.25 +2.50 +2.75 +3.00
do
cat >plumed$AT.dat << EOF
# vim:ft=plumed
phi: TORSION ATOMS=5,7,9,15
psi: TORSION ATOMS=7,9,15,17
# Impose an umbrella potential on CV 1 and CV 2 with a spring constant
# of 500 kjoule/mol at fixed points on the Ramachandran plot
restraint-phi: RESTRAINT ARG=phi KAPPA=250.0 AT=$AT
# monitor the two variables and the bias potential from the two restraints
PRINT STRIDE=10 ARG=phi,psi,restraint-phi.bias FILE=COLVAR$AT
FLUSH STRIDE=10
EOF
sed -e '2s/diala/diala'$AT'/g' -e '132s/plumed/plumed'$AT'/g' cp2k.inp > cp2k$AT.inp
sed '24s/'cp2k'/cp2k'$AT'/g' cp2k.pbs > cp2k$AT.pbs
qsub cp2k$AT.pbs
done
However, I have some problems with the post-processing process about the number 2.49. In the tutorial to run the iterative WHAM optimization and get a weight per frame we need to implement: python wham.py biases.dat 25 2.49. where 2.49 is the temperature in energy unit. The free energy profile along phi can be obtained after the following two step.
1. paste allphi.dat weights.dat | grep -v \# > allphi-w.dat.
2. python do_fes.py allphi-w.dat 1 -3.1415 3.1415 50 2.49 fes.dat.