# PREREQUISITES: # # You must use moltemplate.sh to create 3 files: # system.data system.in.init system.in.settings # (You do not need to run LAMMPS to equilibrate the system before # using this file.) # ----------------------------- Initialization Section -------------------- include "system.in.init" # specify the style of force field used # ----------------------------- Atom Definition Section ------------------- read_data "system.data" # load atom coordinates and topology # ----------------------------- Settings Section -------------------------- include "system.in.settings" # load the force field parameters # Use "neigh_modify" to turn off calculation of interactions between immobilized # atoms. (Note: group "cGraphene" was defined in the file "system.insettings") neigh_modify exclude group Cgraphene Cgraphene # ----------------------------- Run Section ------------------------------- # Only the Cgraphene atoms are immobile. group mobile subtract all Cgraphene # (Note: The "Cgraphene" group was defined in system.in.settings.) # -- simulation protocol -- print "--------- beginning simulation (using fix nvt) ---------" dump 1 all custom 1000 traj_nvt.lammpstrj id mol type x y z ix iy iz thermo_style custom step temp pe etotal press vol epair #ebond eangle edihed thermo 500 # time interval for printing out "thermo" data # Integrate the equations of motion: fix fxMoveStuff mobile nvt temp 300.0 300.0 100.0 # The next two lines recalculate the temperature # using only the mobile degrees of freedom: compute tempMobile mobile temp fix_modify fxMoveStuff temp tempMobile timestep 2.0 run 5000000 write_data system_after_nvt.data