espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ESPResSo-users] Getting particle position


From: Paul Peterson
Subject: [ESPResSo-users] Getting particle position
Date: Tue, 7 Apr 2015 16:18:19 +0200

Hi,

referring to this (quite old) thread:

https://lists.gnu.org/archive/html/espressomd-users/2010-06/msg00023.html

I try to get a particle position writing:
set ppos [part $pid print pos]
but I don't know how to address the coordinate values in the ppos variable.
When I print it out it looks correct (3 coordinate values are displayed) but when I try to address, for example, the x coordinate with ppos(1), Tcl complains that ppos is not an array. What should I do then?
Would be grateful for any suggestion,
Paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]