CompuCell3d manual and Tutorial Version 2



Download 6.67 Mb.
Page64/66
Date26.04.2018
Size6.67 Mb.
#46944
1   ...   58   59   60   61   62   63   64   65   66


Now all that we need to do is to shift back by same vector that brought cell to (approximately) center of the lattice.



We are almost done. We still have to check if is inside the lattice. If this is not the case we need to shift it back to the lattice but now we are allowed to use only a vector whose components are multiples of lattice dimensions (and we can safely restrict to +1 and -1 multiples of the lattice dimmensions) . For example we may have:

where , , are dimensions of the lattice.

There is no cheating here. In the lattice with periodic boundary conditions you are allowed to shift point coordinates a vector whose components are multiples of lattice dimensions.



All we need to do is to examine new center of mass position and form suitable vector .



Download 6.67 Mb.

Share with your friends:
1   ...   58   59   60   61   62   63   64   65   66




The database is protected by copyright ©ininet.org 2024
send message

    Main page