Velocity of the center of mass for MD simulations

Click For Summary
SUMMARY

The discussion focuses on the calculation of the center of mass (COM) velocity in molecular dynamics (MD) simulations. It highlights the common practice of subtracting the average velocity from each atom's velocity to ensure the COM velocity is zero. The participants clarify that the mass-weighted average velocity is equivalent to the COM velocity, emphasizing the importance of using total mass rather than the number of atoms for accurate calculations. This understanding is crucial for accurate MD simulations.

PREREQUISITES
  • Understanding of molecular dynamics (MD) simulations
  • Familiarity with center of mass calculations
  • Knowledge of mass-weighted averages
  • Basic programming skills for implementing algorithms
NEXT STEPS
  • Research the implementation of center of mass calculations in MD software like GROMACS
  • Learn about mass-weighted averages in statistical mechanics
  • Explore the effects of velocity adjustments on MD simulation outcomes
  • Study the mathematical foundations of momentum conservation in MD simulations
USEFUL FOR

This discussion is beneficial for molecular dynamics researchers, computational chemists, and anyone involved in simulating physical systems who seeks to understand the implications of center of mass velocity adjustments in their simulations.

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
2K
  • · 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