Debian Codegraph @

examples/all_atom/force_field_OPLSAA/ethylene+benzene/run.in.npt

raw
1 # PREREQUISITES:
2 #
3 # 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
8 # ------------------------------- Initialization Section --------------------
9
10 include "system.in.init"
11
12 # ------------------------------- Atom Definition Section -------------------
13
14 read_data "system.data"
15
16 # OPLSAA atom charges are stored in a separate file.
17 # Load that file now:
18
19 include "system.in.charges"
20
21 # ------------------------------- Settings Section --------------------------
22
23 include "system.in.settings"
24
25 # ------------------------------- Run Section -------------------------------
26
27
28 # -- minimization protocol --
29
30 minimize 1.0e-4 1.0e-6 100000 400000
31
32 # -- simulation protocol --
33
34 timestep 1.0
35
36 print "---------------------------------------------------------------------------"
37 print "First, use Langevin dynamics to randomize the initial shape of the molecules"
38 print "(This is not really necessary, but it seems to speed up equilibration.)"
39 print "---------------------------------------------------------------------------"
40
41 # Give each atom a random initial velocity consistent with a system at 300K.
42 velocity all create 300.0 12345
43
44 # Run a short simulation using a Langevin thermostat (for improved stability).
45 fix fxlan all langevin 300.0 300.0 120 123456 # temp: 300 K
46 fix fxnph all nph iso 150.0 150.0 1000.0 # pressure: 150 atm
47 run 2000
48 unfix fxlan
49 unfix fxnph
50
51 print "---------------------------------------------------------------------------"
52 print "--- Now continue the simulation using a Nose-Hoover Thermostat/Barostat ---"
53 print "---------------------------------------------------------------------------"
54 dump 1 all custom 1000 traj_npt.lammpstrj id mol type x y z ix iy iz
55 # temperature: 300 K, pressure: 150 atm
56 fix fxnpt all npt temp 300.0 300.0 100.0 iso 150.0 150.0 1000.0 drag 1.0
57 thermo 100
58 #thermo_modify flush yes
59
60 run 100000
61
62 write_data system_after_npt.data