update gromacs/wham2d example for dialanine

This commit is contained in:
Daniel Bauer
2018-06-17 10:55:28 +02:00
parent e298515a63
commit 0cce09b213
6 changed files with 48 additions and 12 deletions

23
examples/data/sim.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
lambda1=$1
lambda2=$2
FOLDER="./tmp/simulations/sim_${lambda1}_${lambda2}"
if [ -f $FOLDER/topol.gro ]; then
echo "$FOLDER exists"
exit 0
fi
mkdir -p $FOLDER
cp data/plumed.dat $FOLDER
cp data/topol.tpr $FOLDER
sed -i -e "s/LAMBDA1/${lambda1}/g" $FOLDER/plumed.dat
sed -i -e "s/LAMBDA2/${lambda2}/g" $FOLDER/plumed.dat
cd $FOLDER
source /usr/local/gromacs/bin/GMXRC
gmx --quiet mdrun -deffnm topol -plumed plumed.dat -nsteps 100000 2>&1
cd ../..