Velocity of the center of mass for MD simulations

In summary, when calculating the center of mass for an MD simulation, some codes subtract the average velocity from each atom's velocity to achieve a velocity of zero for the center of mass. However, there is confusion about whether the mass-weighted average velocity is equal to the center of mass velocity and how this helps understand the original question.
  • #1
xperrylinn
3
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
  • #2
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?
 
  • #3
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?
 
  • #4
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 Ibix

Related to Velocity of the center of mass for MD simulations

1. What is the center of mass in molecular dynamics simulations?

The center of mass is a point in space that represents the average position of all the particles in a given system. In molecular dynamics simulations, this point is used to track the overall movement and behavior of the system.

2. How is the velocity of the center of mass calculated in MD simulations?

The velocity of the center of mass is calculated by taking the average velocity of all the particles in the system. This can be done by summing up the individual velocities and dividing by the total number of particles.

3. Why is the velocity of the center of mass important in MD simulations?

The velocity of the center of mass is important because it can provide information about the overall movement and behavior of the system. It can also be used to calculate other important parameters, such as the system's momentum and kinetic energy.

4. What factors can affect the velocity of the center of mass in MD simulations?

The velocity of the center of mass can be affected by several factors, including the initial conditions of the system, the intermolecular interactions, and the presence of external forces. It can also be influenced by the size and shape of the simulation box.

5. How can the velocity of the center of mass be controlled in MD simulations?

The velocity of the center of mass can be controlled by adjusting the initial conditions of the system, such as the starting positions and velocities of the particles. It can also be controlled by applying constraints or external forces to the system, or by using advanced simulation techniques such as thermostats or barostats.

Similar threads

Replies
19
Views
1K
Replies
14
Views
1K
Replies
11
Views
1K
Replies
4
Views
1K
Replies
11
Views
1K
Replies
4
Views
1K
  • Atomic and Condensed Matter
Replies
1
Views
917
Replies
14
Views
2K
  • Electrical Engineering
Replies
2
Views
490
Back
Top