Debian Codegraph @

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

raw
1 # PREREQUISITES:
2 #
3 # You must use moltemplate.sh to create 3 files:
4 # system.data system.in.init system.in.settings
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 # ------------------------------- Settings Section --------------------------
17
18 include "system.in.settings"
19
20 # ------------------------------- Run Section -------------------------------
21
22
23 # -- minimization protocol --
24
25 thermo_style custom step temp ke pe etotal epair ebond eangle edihed press vol
26 thermo 50
27 minimize 1.0e-4 1.0e-6 100000 400000
28
29 # -- simulation protocol --
30
31 timestep 1.0
32
33 print "---------------------------------------------------------------------------"
34 print "First, use Langevin dynamics to randomize the initial shape of the molecules"
35 print "(This is not really necessary, but it seems to speed up equilibration.)"
36 print "---------------------------------------------------------------------------"
37
38 # Give each atom a random initial velocity consistent with a system at 300K.
39 velocity all create 300.0 12345
40
41 fix fxlan all langevin 300.0 300.0 120 123456 # temp: 300 K
42 fix fxnph all nph iso 50.0 50.0 1000.0 # pressure: 50 atm
43 thermo 100
44 run 2000
45 unfix fxlan
46 unfix fxnph
47
48 print "---------------------------------------------------------------------------"
49 print "--- Now continue the simulation using a Nose-Hoover Thermostat/Barostat ---"
50 print "---------------------------------------------------------------------------"
51 dump 1 all custom 1000 traj_npt.lammpstrj id mol type x y z ix iy iz
52 # temperature: 300 K, pressure: 50 atm
53 fix fxnpt all npt temp 300.0 300.0 100.0 iso 50.0 50.0 1000.0 drag 1.0
54 thermo 100
55 #thermo_modify flush yes
56
57 run 100000
58
59 write_data system_after_npt.data