Ah well, @PhysicsIsFun, you aren't going to believe a word I say, anyway. I'll stay away from your posts in future.
|
I already explained the usage of coordinates (in the other thread) and even asked you where it's wrong according to you. You never explained, you never asked, you just kept assuming... don't know why you are so mad now.
Ok, so imagine a box of length L.
My particles of radius R are positioned in this box, thus their position vectors
r lie in [-L/2, L/2]³, right?
The overlap condition for two spheres is given as |
r1-
r2|<2R.
Now, divide the positions by L.
Now we have coordinate vectors
s in [-1/2, 1/2].
We must write the overlap condition in these new coordinates:
|
r1-
r2|= |L
s1-L
s2|<2R
This is equivalent to |
s1-
s2|< 2R / L.
So my pos-vector is the collection of s-vectors. My overlap condition is simply the squared version of that equation.
Why doing all this?
Because the box of my system, its volume, is fluctuating in time! It does not stay constant. L is changing (--> the volume changes in a certain way so that the pressure can stay constant). If L gets larger, i.e. if the volume gets larger, all the particles are drawn away from each other (their realtive position inside of the volume must stay constant). If L gets smaller, the particles get pushed towards each other.
The advantage of my scaled coordinates
s in [-1/2, 1/2]³ is that they do not change, if L changes. Only the
r vectors change. And L. But the fraction, namely the
s vectors do not change. That's also the reason for the boundary conditions looking as they do.
So instead of calculating new
r vectors any time my L changes, I can work with constant
s vectors and only have to pass the new L to the overlap equation.
Does it make sense?