espressopp.interaction.GravityTruncated

This is an implementation of a truncated (cutoff) Gravity Potential

\[U = P \cdot \frac{m_1 \cdot m_2}{ \lvert p_1 - p_2\rvert}\]

where \(m_i\) is the mass of the i th particle, \(p_i\) its position and P a prefactor.

espressopp.interaction.GravityTruncated(prefactor, cutoff)
Parameters:
  • prefactor (real) – (default: 1.0)
  • cutoff – (default: infinity)
espressopp.interaction.VerletListGravityTruncated(vl)
Parameters:vl
espressopp.interaction.VerletListGravityTruncated.getPotential(type1, type2)
Parameters:
  • type1
  • type2
Return type:

espressopp.interaction.VerletListGravityTruncated.getVerletList()
Return type:A Python list of lists.
espressopp.interaction.VerletListGravityTruncated.setPotential(type1, type2, potential)
Parameters:
  • type1
  • type2
  • potential