tcl interface

From: C. Ecker (
Date: Thu Nov 13 2003 - 05:07:04 CST


I want to add forces during the simulation using the Tcl interface. There
appears to be a problem with loadcoords and loadforces:

proc calcforces {} {
       loadcoords p
        puts "length of array p : [array size p]"
        puts "the indices are: [array names p]"


gives the following output:

length of array p : 0
the indices are:

Obviously the coordinate array p is empty ! I am a dumb beginner with namd
and Tcl, but I think the script should work. I tried this with the files
from the namd tutorial (ubiquitin). I am using NAMD 2.5b1.


Humboldt-Universitaet zu Berlin
Institut fuer Physik
Physik von Makromolekuelen
Newtonstraße 15
D-12489 Berlin

fon: +49-30-2093 8030
fax: +49-30-2093 7632

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:37:08 CST