ISISNeutronMuon / MDANSE

MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
https://www.isis.stfc.ac.uk/Pages/MDANSEproject.aspx
GNU General Public License v3.0
20 stars 4 forks source link

[BUG] Unexpected behaviour with fold coordinates into box option #372

Closed ChiCheng45 closed 4 months ago

ChiCheng45 commented 5 months ago

Description of the error When I use fold coordinates into box I expect the atomic coordinates to be located inside the unit cell so that in fractional coordinates it will have a position between 0 to 1 for all three axes. However with the fold coordinates into box option MDANSE moves the atomic coordinates so that it will have a position in fractional coordinates of -0.5 to 0.5 for all three corordinates.

without folding image

with folding image

Suggested fix With the fold coordinates into box option selected all atoms should have a position between 0 to 1 in fractional coordinates for all three axes.