You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inlinevoidadd_kinetic_energy(Particle const &p1) {
if (p1.p.is_virtual)
return;
...
// Note that rotational degrees of virtual sites are integrated// and therefore can contribute to kinetic energy
#ifdef ROTATION
if (p1.p.rotation) {
...
The situation is actually more complicated, because this depends on the virtual sites
parameters. Maybe VirtualSites::m_have_quaternion should be dropped in favor of
obeying the rotation flag of the virtual particle. Also there is of course no test.
The text was updated successfully, but these errors were encountered:
Fixes#3596.
This is a fix closest to the existing behavior. I think there should be a discussion here how
to handle active/inactive degrees of freedom, and if this should be consistent between
translation and rotation, and how it should interact with the virtual sites relative feature.
Description of changes:
- Don't drop rotational kinetic energy of virtual particles.
From
energy_inline.hpp
:The situation is actually more complicated, because this depends on the virtual sites
parameters. Maybe
VirtualSites::m_have_quaternion
should be dropped in favor ofobeying the rotation flag of the virtual particle. Also there is of course no test.
The text was updated successfully, but these errors were encountered: