Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periodic boundary conditions #16

Open
thamnos opened this issue Aug 22, 2017 · 3 comments
Open

periodic boundary conditions #16

thamnos opened this issue Aug 22, 2017 · 3 comments

Comments

@thamnos
Copy link
Collaborator

thamnos commented Aug 22, 2017

Hello,

I am getting worried that the periodic boundary condition / minimum image convention might not be taken into account. I have a box of water (cubic, 66AA side length) and calculate the incoherent intermediate scattering function I(Q,t). For Q below \sim 0.5\AA^{-1}, it does not decay to 0.
My trajectory is a LAMMPS-generated DCD file where the atom positions are wrapped to stay within the box. The behaviour of I(Q,t) seems to indicate that particles are trapped in a finite volume, i.e. the box.
Looking through the code, I can't see anywhere where sassena unwraps the trajectory. I think this would be necessary, right? Not only are atoms "confined to the simulation box" now, also the particles close to the border of the box perform huge jumps from one end to the other whilst actually only moving a tiny distance across the border.
For pair correlations it's probably a bit trickier since the structure changes if the molecules "flow apart", so it's not possible to just unwrap the coordinates (on the contrary, if given unwrapped coordinates, one would have to wrap them first, I guess). But are we taking correlations between atoms at opposite ends of the simulation box (and therefore close to each other across the box boundary) properly into consideration?

Cheers,
Sebastian.

@jmborr
Copy link

jmborr commented Aug 22, 2017 via email

@thamnos
Copy link
Collaborator Author

thamnos commented Sep 1, 2017

When you say "coherent scattering", do you mean the coherent intermediate scattering function I(Q,t) or the coherent static structure factor S(Q)?

@jmborr
Copy link

jmborr commented Sep 1, 2017

The problem affects both, since S(Q) is just I(Q,t=0), right?
codecogseqn
The second term involves subtraction of two real-lattice vectors, so it's just zero unless Q is a reciprocal-lattice vector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants