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

updated so that bonding to dummy atoms are removed in the 3D viewer #349

Closed ChiCheng45 closed 5 months ago

ChiCheng45 commented 5 months ago

Description of work Although the covalent radii of dummy atoms are zero the bonding determination in the 3d viewer may still bond them if they are close enough to other atoms. I have updated the bonding determination so that bond to dummy atoms are never made.

To test Convert a trajectory with dummy atoms e.g. the water_with_velocities from MDANE-Examples DL_POLY. Load the trajectory and uncheck the atoms in the visible objects group. There should not be a bond between the oxygen and dummy atoms.

Before image

After image

MBartkowiakSTFC commented 5 months ago

Just a question: do you think that there would be any advantage to checking the atom properties only once (that is, getting the covalent radii and NOT the atoms types) and then using only those with a non-zero covalent radius? It may be that, since you improved the performance of accessing the atoms properties, it does not really matter from the point of view of execution time. It might matter for people who like to define their own atom types and would like to add new dummy types - assuming that such users exist.