[Top][All Lists]

[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


referring to this (quite old) thread:

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,

reply via email to

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