espressomd-users
[Top][All Lists]
Advanced

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

Re: [ESPResSo] Re: Radius of Gyration


From: Olaf Lenz
Subject: Re: [ESPResSo] Re: Radius of Gyration
Date: Mon, 10 Dec 2007 09:07:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.8pre) Gecko/20071022 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

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

Hi!

Axel Arnold wrote:
> Apart from that, calculating a meaningful radius of gyration is non-trivial 
> in 
> your case. You cannot simply use the folded coordinates to calculate the rg, 
> because your cluster could also be located across a boundary. With folded 
> coordinates, that would look like two smaller clusters at the box boundaries.

I don't think that the problem is that hard. I see at least three
possible ways to solve the problem with not too much effort: on the VMD
level, on the ESPResSo level, or a combination using both.

1. Within VMD, you can use the pbctools plugin (which is part of VMD
since 1.8.6). Using the plugin, you can easily wrap all coordinates into
a unit cell which is centered around a particle (index 13 in this case):

        pbc wrap -sel "index 13"

If the compound does not stretch more than half the system size, this
will solve your problem.
When you have done that, you need to compute the radius of gyration. To
do that, you can either implement it within VMD (shouldn't be too hard),
or you can try to somehow write the coordinates to a file, read them
into ESPResSo and use it to compute the radius of gyration.

2. Alternatively, you can do the wrapping within ESPResSo and directly
use the analyze-command to compute the radius of gyration. To implement
the wrapping, you can try to go along the lines of the "pbcwrap" command
in the file "pbcwrap.tcl" in the attached plugin archive.
I think it would be pretty useful, if we had a Tcl proc that does the
wrapping in ESPResSo, therefore: if you implement it in ESPResSo, please
send us the resulting code that we can include it!
After December 15th, I would be willing to help.

Olaf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXPOttQ3riQ3oo/oRAgt7AJ4qyWziHn2jj3jPOrAXVjw7Ov8Y8ACgiTwd
4vMZpKavWza8ZkPqiSjeZ2k=
=Uty3
-----END PGP SIGNATURE-----

Attachment: pbctools-2.1.tar.gz
Description: GNU Zip compressed data


reply via email to

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