Debian Codegraph @

examples/all_atom/force_field_OPLSAA/NIPAM_polymer+water+ions/run.in.nvt

raw
1 # PREREQUISITES:
2 #
3 # 1) You must use moltemplate.sh to create 4 files:
4 # system.data system.in.init system.in.settings system.in.charges
5 # (Follow the instructions in README_setup.sh,
6 # or run the file as a script using ./README_setup.sh)
7 # 2) You must minimize the system beforehand using "run.in.min".
8 # 3) You must equilibrate the system at constant pressure using "run.in.npt".
9 # This will create the file "system_after_npt.data" which this file reads.
10
11 # ------------------------------- Initialization Section --------------------
12
13 include "system.in.init"
14
15 # ------------------------------- Atom Definition Section -------------------
16
17 read_data "system_after_npt.data"
18
19 # OPLSAA atom charges are stored in a separate file.
20 # Load that file now:
21
22 include "system.in.charges"
23
24 # ------------------------------- Settings Section --------------------------
25
26 include "system.in.settings"
27
28 # ------------------------------- Run Section -------------------------------
29
30
31 print "---------------------------------------------------------------------------"
32 print "First, use Langevin dynamics to randomize the initial shape of the molecules"
33 print "(This is not really necessary, but it seems to speed up equilibration.)"
34 print "---------------------------------------------------------------------------"
35
36 # Give each atom a random initial velocity consistent with a system at 300K.
37 velocity all create 300.0 12345
38
39
40 print "---------------------------------------------------------------------------"
41 print "--- Now continue the simulation using a Nose-Hoover Thermostat/Barostat ---"
42 print "---------------------------------------------------------------------------"
43
44 dump 1 all custom 5000 traj_nvt.lammpstrj id mol type x y z ix iy iz
45 fix fxnvt all nvt temp 300.0 300.0 500.0 tchain 1
46
47 timestep 2.0
48 run 2000000
49 thermo 500
50 #thermo_modify flush yes
51
52 write_data system_after_nvt.data