NQCDynamics.jl
NQCDynamics.jl copied to clipboard
Consider constraints when sampling velocities
Currently we do not provide at all for constrained atoms in our simulations. However, when using an ase calculator with constraints, the forces are correctly set to 0, but the velocities may incorrectly have nonzero values if the distribution is not set up correctly.
To avoid this scenario we can add an extra DynamicalDistribution(...; fix=1:10)
keyword that will ensure the specified atoms have their initial velocities set to 0.
In the future we might want to think about a more formal way of including constraints throughout the code but this is a simple fix that'll work for a lot of cases.