espressomd-users
[Top][All Lists]
Advanced

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

Re: [ESPResSo-users] referring to stored configs separately


From: Olaf Lenz
Subject: Re: [ESPResSo-users] referring to stored configs separately
Date: Tue, 26 Mar 2013 10:26:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

On 03/26/2013 10:14 AM, Koen Nickmans wrote:
> thanks for your fast response! What I am referring to only involves
> the particle coordinates. So for example rather than use "analyze
> <rg>" on all stored configurations I would like to use "analyze rg"
> for each stored configuration separately, at the Tcl level. Is this
> really not possible?

We do not have a function for that, as it may not do what people
expect. However, it is really simple to write such a function in Tcl.
I haven't tested it, but it should look something like this:

foreach config [analyze configs] {
  set pid 0
  foreach {x y z} $config {
    part $pid pos $x $y $z
    incr pid
  }

  # do whatever you like with this configuration
  # .
  # .
  # .
}

- -- 
Dr. rer. nat. Olaf Lenz
Institut für Computerphysik, Allmandring 3, D-70569 Stuttgart
Phone: +49-711-685-63607
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFRaakACgkQtQ3riQ3oo/rUTQCfaRRm8KJQe9tL+CGcxOGoBQs0
R1wAoLf5rMglnLFBBLmJypOCIZltb4w9
=13zW
-----END PGP SIGNATURE-----



reply via email to

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