
# The script for interactive-MDFF is almost identical with the script for a standard MDFF calculation
# just make sure these 4 lines are added at the end of the conf/namd file
IMDon		yes
IMDport		3000
IMDfreq		1
IMDwait		on

# to run on local machine. Enter (in terminal)
namd2 iMDFF-test.namd > iMDFF-test.log &

for Mac OS, enter to follow in terminal
~/Desktop/NAMD_2.8_MacOSX-x86_64-multicore/namd2 iMDFF-test.namd > iMDFF-test.log &

# the simulation won't run until the connection between NAMD and VMD is established
Open VMD, load up the system by entering 
	source demo.vmd

To establish connection between VMD and NAMD
	go to Extensions -> Simulation -> IMD Connect (NAMD)

enter the following information and run.
	Hostname = localhost
	Port = 3000


You should see the molecule started moving towards the density map and you can interactive with it by:
	go to Mouse -> Force -> Residue

Now click on a residue and assign a force to it by dragging your cursor toward the direction that you wish that residue to move.

Enjoy!