Does force dump include constraint forces with SHAKE/RATTLE?

Good Morning,

I was curious if the forces that are dumped when you use SHAKE/RATTLE include the constraint forces? Looking at the source code there is this line which looks like it will be initialized to point to the global system forces (although I could not find that initialization). I know OpenMM does not include the constraint forces in their output but they also enact the constraints on the positions directly not through the forces like LAMMPS does.

I see this thread but I think that is a little different.

Thanks!

Yes.

The relevant line is this line

The relevant lines for that are:

1 Like