Closed fekad closed 5 years ago
This is related to #144, so a similar fix of listing velo
as a property not to copy back to ASE would work. But perhaps we need a more general fix which tranposes any 3xN arrays. I’ll take a look.
I have taken a look now and can fix it easily.
If velocities were copied, they need to be converted to ase units or actually to momenta. There are back and forth converters implemented for this in quippy.convert
but I think the potential object should not be doing this, but the dynamics, which is indeed dong it.
Thanks @stenczelt - can you try for a general fix, since the same issue cam up with force
in #144
arrays not in _skip_keys
are now transposed and velocities are not updated by the potential object, should use atoms.get_velocities()
to obtain velocities, which is in ase units, can be converted to QUIP units with quippy.convert.velocities_ase_to_quip()
Thanks Tamas, looks good!
Thank you both for the quick fix! It works like a charm now.
It looks like the velocities ('velo' in ase's arrays dictionary ) stored in a transposed way.