Velocity of the center of mass for MD simulations

Click For Summary

Discussion Overview

The discussion revolves around the calculation of the center of mass in molecular dynamics (MD) simulations, specifically addressing the computational method of subtracting the average velocity from each atom's velocity to achieve a zero velocity for the center of mass. Participants explore the relationship between mass-weighted average velocity and the velocity of the center of mass.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • Some participants propose that subtracting the average velocity from each atom's velocity is intended to ensure the center of mass velocity is zero.
  • One participant questions how the computational method of subtracting average velocity achieves the goal of a zero center of mass velocity.
  • Another participant suggests that the mass-weighted average velocity is equivalent to the velocity of the center of mass, prompting further inquiry into this relationship.
  • One participant clarifies that the correct computation of a mass-weighted average involves dividing by the total mass rather than the number of atoms.

Areas of Agreement / Disagreement

Participants express differing views on the equivalence of mass-weighted average velocity and center of mass velocity, indicating that the discussion remains unresolved with multiple competing interpretations.

Contextual Notes

There are potential limitations in the assumptions made regarding the definitions of average velocity and center of mass, as well as the mathematical steps involved in the calculations, which remain unresolved.

xperrylinn
Messages
3
Reaction score
0
When calculating the center of mass for an MD simulation, I've seen a few codes that subtract the average velocity from each atoms velocity. I think the reasoning behind this is that you want the velocity of center of mass for the simulation to be zero, which I understand, but I don't understand computationally how subtracting the average velocity from each velocity achieves this.
 
Physics news on Phys.org
xperrylinn said:
When calculating the center of mass for an MD simulation, I've seen a few codes that subtract the average velocity from each atoms velocity. I think the reasoning behind this is that you want the velocity of center of mass for the simulation to be zero, which I understand, but I don't understand computationally how subtracting the average velocity from each velocity achieves this.
Can you see that the [mass-weighted] average velocity is equal to the velocity of the center of mass?
 
I don't see that. This is how I'm seeing it:

mass-weighted average velocity = (sum each atom's momentum) / (num atoms)

velocity center of mass = (sum of each atom's momentum) / (total mass)

And if they are equal, how does help me understand my original question?
 
xperrylinn said:
mass-weighted average velocity = (sum each atom's momentum) / (num atoms)
The correct way to compute a weighted average is to divide by the sum of the weights, not the count of items.
 
  • Like
Likes   Reactions: Ibix

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K