ConstantForceBetweenCentersOfMass

The ConstantForceBetweenCentersOfMass potential applies a constant force between the centers of mass of two sets of particles.

\[\mathbf{F} = F\hat{\mathbf{r}}\]

where:

  • \(F\) is the magnitude of the force

  • \(\hat{\mathbf{r}}\) is the unit vector pointing from the center of mass of set i to the center of mass of set j

The energy of this potential is:

\[U = -F \cdot r\]

where \(r\) is the distance between the centers of mass.


  • type: Set2, ConstantForceBetweenCentersOfMass

  • parameters: None

  • data: * idSet_i: int: Identifier for the first set of particles * idSet_j: int: Identifier for the second set of particles * force: real: Magnitude of the constant force \([force]\)

Example:

"constantForce":{
  "type":["Set2","ConstantForceBetweenCentersOfMass"],
  "labels":["idSet_i", "idSet_j", "force"],
  "data":[
    [0, 1, 10.0]
  ]
}

Note

This potential can be used to model constant attractive or repulsive forces between groups of particles, such as electrostatic interactions between charged objects.