VirtualSite¶
-
class
simtk.openmm.openmm.
VirtualSite
(*args, **kwargs)¶ A VirtualSite describes the rules for computing a particle’s position based on other particles. This is an abstract class. Subclasses define particular rules. To define a virtual site, create an instance of a VirtualSite subclass and then call setVirtualSite() on the System.
-
__init__
(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)getNumParticles
((self) -> int)Get the number of particles this virtual site depends on. getParticle
((self, particle) -> int)Get the index of a particle this virtual site depends on. -
getNumParticles
(self) → int¶ Get the number of particles this virtual site depends on.
-
getParticle
(self, particle) → int¶ Get the index of a particle this virtual site depends on.
Parameters: particle (int) – the particle to get (between 0 and getNumParticles()) Returns: the index of the particle in the System Return type: int
-
__delattr__
¶ x.__delattr__(‘name’) <==> del x.name
-
__format__
()¶ default object formatter
-
__getattribute__
¶ x.__getattribute__(‘name’) <==> x.name
-
__hash__
¶
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶
-