From: Olaf Lenz (lenzo_at_mpip-mainz.mpg.de)
Date: Tue Oct 27 2009 - 08:26:08 CDT

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

Hi!

Gustavo Gust wrote:
> Using pbwithin I get more oxygen atoms around MOL than using within.
> The difference is big in some cases.
> I have to take in account the periodical boundary conditions, but using
> pbwithin or within is confusing me.

"within" will only select atoms in the primary image of the system,
"pbwithin" will also select atoms in the periodic images. It does not,
however, modify the coordinates - they will still be the coordinates of
the atom in the primary image, so if you want to compute distances, you
need to take into account the periodic boundary conditions manually.

Olaf
- --
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFK5vTwtQ3riQ3oo/oRAsrYAJ0ValefihChj9QDQ+rO7EE+qhQjzQCeInjp
Q7vKlQTHEaW2OZgs2ietco0=
=MzU9
-----END PGP SIGNATURE-----