[Top][All Lists]

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

Re: [ESPResSo] Particle Positions

From: Torsten Stuehn
Subject: Re: [ESPResSo] Particle Positions
Date: Wed, 31 Mar 2010 17:39:46 +0200
User-agent: Thunderbird (X11/20090812)

Dear Samira,

the following commands will give you the x, y, and z coordinate
of particle number $i :

 set x [lindex [part $i print pos] 0]
 set y [lindex [part $i print pos] 1]
 set z [lindex [part $i print pos] 2]

The "part $i print $particle_property" command can take any of
the particle properties as argument (e.g. pos, v, f, mass, dip, ...)
The command "part $i" alone gives all properies of particle $i


samira jamalian wrote:
Dear all,

I am using the following command to get x, y and z position of a desired particle.

*set j [lindex [part $i] [findPropPos [part $i] pos]]*

Where i is the particle id

I can only receive the x component of the position. Could you help me with this problem?


This email was Anti Virus checked by Astaro Security Gateway.


ESPResSo mailing list

Dr. Torsten Stühn
MPI für Polymerforschung
Ackermannweg 10
55128 Mainz / Germany

Tel.  +49-(0)6131-379268
Fax +49-(0)6131-379100 EMail address@hidden

reply via email to

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