OpenMM
 All Classes Namespaces Functions Variables Pages
CMMotionRemover Class Reference

This class prevents the center of mass of a System from drifting. More...

+ Inheritance diagram for CMMotionRemover:

Public Member Functions

def getFrequency
 getFrequency(CMMotionRemover self) -> int
 
def setFrequency
 setFrequency(CMMotionRemover self, int freq)
 
def __init__
 init(OpenMM::CMMotionRemover self, int frequency=1) -> CMMotionRemover init(OpenMM::CMMotionRemover self) -> CMMotionRemover init(OpenMM::CMMotionRemover self, CMMotionRemover other) -> CMMotionRemover
 
def __del__
 del(OpenMM::CMMotionRemover self)
 
- Public Member Functions inherited from Force
def __init__
 
def __del__
 del(OpenMM::Force self)
 
def getForceGroup
 getForceGroup(Force self) -> int
 
def setForceGroup
 setForceGroup(Force self, int group)
 
def __copy__
 
def __deepcopy__
 

Public Attributes

 this
 

Detailed Description

This class prevents the center of mass of a System from drifting.

At each time step, it calculates the center of mass momentum, then adjusts the individual particle velocities to make it zero.

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

init(OpenMM::CMMotionRemover self, int frequency=1) -> CMMotionRemover init(OpenMM::CMMotionRemover self) -> CMMotionRemover init(OpenMM::CMMotionRemover self, CMMotionRemover other) -> CMMotionRemover

Create a CMMotionRemover.

def __del__ (   self)

del(OpenMM::CMMotionRemover self)

Member Function Documentation

def getFrequency (   self)

getFrequency(CMMotionRemover self) -> int

Get the frequency (in time steps) at which center of mass motion should be removed

def setFrequency (   self,
  args 
)

setFrequency(CMMotionRemover self, int freq)

Set the frequency (in time steps) at which center of mass motion should be removed

Member Data Documentation

this

The documentation for this class was generated from the following file: