-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5_analysis.pbs
More file actions
57 lines (41 loc) · 1.46 KB
/
5_analysis.pbs
File metadata and controls
57 lines (41 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Glenn example batch script.
# see fwspider_tutor.pdf
# Everything else done prior to this
# because queue resources are not required
# negligible
#PBS -N wet_LargeBox
#PBS -j oe
#PBS -m ae
#PBS -M gfm12@case.edu
#PBS -l walltime=01:00:00
#PBS -l nodes=2:ppn=8
#PBS -S /bin/bash
set -vx
# loading the modules
module load fftw3
module load gromacs-4.5.5
# generate the .gro. The pdb is the mdrun input.
trjconv -5 [].trr -s [].pdb -o [].gro
# compute density
g_density -f [].gro -sl 500 -s [].tpr -o []density.xvg
# compute the surface parameter
# pass the filename as a variable into the surface parameter code
# by rewriting the file with a perl or pbs command
# OR.
# rewrite the surface parameter code to accept a flag with the filename
# as a variable. organize the filenames to be numbers between 1 and nmax (180?)
# then have the program rewrite the input.gro and output.bin, recompile, execute
# calculate the surface tension of the pressure tensor
# will need to observe the format of the g_energy output file and
# then should be able to do the data manipulation via the command line
# in gnuplot
# copying all files to nodes
pbsdcp *.* $TMPDIR
cd $TMPDIR
# PBS_O_WORKDIR refers to the directory from which the job was submitted.
cd $PBS_O_WORKDIR
# running the molecular dynamics
mpiexec mdrun_mpi -rdd 2.0 -s fws_em2.tpr -o fws_em.trr -c fws_b4pr.pdb -e em.edr -g em.log
# copying files back
pbsdcp -g fws_em.trr fws_b4pr.pdb em.edr em.log $PBS_O_WORKDIR
ls -al