-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNVT_generator.sh
More file actions
executable file
·52 lines (41 loc) · 1.4 KB
/
NVT_generator.sh
File metadata and controls
executable file
·52 lines (41 loc) · 1.4 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
#!/bin/bash
for i in $1
do
cat > NVTlammps0.in <<EOF
log "log0.log"
units metal
atom_style atomic
read_data "lammpsinit.data"
pair_style deepmd frozen_model.pb
pair_coeff
displace_atoms all random 0.02 0.02 0.02 4139$i units box
velocity all create $i 4154$i mom yes rot yes dist gaussian
timestep 0.2e-3
thermo 50
thermo_style custom step time ke pe etotal temp press density lx ly lz
fix finvt1 all nvt temp $i $i \$(100.0*dt)
dump NVTdump all custom 50 dump0.10fs.lammpstrj id type x y z ix iy iz vx vy vz fx fy fz mass
dump binDump4 all custom 4 dump0.0.8fs.bin id type x y z vx vy vz
run $2
write_restart final0.restart
write_data final0.data
EOF
cat > slurm_simulation0.pbs <<EOF
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=36
#SBATCH --time=11:59:00
#SBATCH --account=cmalosso
#SBATCH --partition=gpu2
#SBATCH --mem=63500
#SBATCH --job-name=$i.0NVT
#SBATCH --mail-user=cmalosso@sissa.it
#SBATCH --mail-type=ALL
source /home/dtisi/deepmd-tf2/moduli_anaconda.sh
cd \${SLURM_SUBMIT_DIR}
echo \$SLURM_SUBMIT_DIR
export OMP_NUM_THREADS=36
/opt/sissa/sissa-devtoolset7-openmpi-2.1.3/root/bin/mpirun -np 1 /home/dtisi/deepmd-tf2/lammps-master/src/lmp_mpi < NVTlammps0.in > NVTlammps0.out
EOF
done