Debian Codegraph @

examples/all_atom/force_field_explicit_parameters/nanotube+water/run.in.nvt

raw
1 # PREREQUISITES:
2 #
3 # You must use moltemplate.sh to create 3 files:
4 # system.data system.in.init system.in.settings
5 # (You do not need to run LAMMPS to equilibrate the system before
6 # using this file.)
7
8 # ----------------------------- Initialization Section --------------------
9
10 include "system.in.init" # specify the style of force field used
11
12
13 # ----------------------------- Atom Definition Section -------------------
14
15 read_data "system.data" # load atom coordinates and topology
16
17
18 # ----------------------------- Settings Section --------------------------
19
20 include "system.in.settings" # load the force field parameters
21
22 # Use "neigh_modify" to turn off calculation of interactions between immobilized
23 # atoms. (Note: group "cGraphene" was defined in the file "system.insettings")
24
25 neigh_modify exclude group Cgraphene Cgraphene
26
27 # ----------------------------- Run Section -------------------------------
28
29
30
31 # Only the Cgraphene atoms are immobile.
32 group mobile subtract all Cgraphene
33
34 # (Note: The "Cgraphene" group was defined in system.in.settings.)
35
36
37 # -- simulation protocol --
38
39
40 print "--------- beginning simulation (using fix nvt) ---------"
41
42 dump 1 all custom 1000 traj_nvt.lammpstrj id mol type x y z ix iy iz
43
44 thermo_style custom step temp pe etotal press vol epair #ebond eangle edihed
45 thermo 500 # time interval for printing out "thermo" data
46
47 # Integrate the equations of motion:
48 fix fxMoveStuff mobile nvt temp 300.0 300.0 100.0
49
50 # The next two lines recalculate the temperature
51 # using only the mobile degrees of freedom:
52
53 compute tempMobile mobile temp
54 fix_modify fxMoveStuff temp tempMobile
55
56
57 timestep 2.0
58 run 5000000
59
60 write_data system_after_nvt.data
61