OpenMM
|
Force objects apply forces to the particles in a System, or alter their behavior in other ways. More...
Public Member Functions | |
def | __init__ |
def | getForceGroup |
getForceGroup(self) -> int | |
def | setForceGroup |
Set the force group this Force belongs to. | |
def | usesPeriodicBoundaryConditions |
usesPeriodicBoundaryConditions(self) -> bool | |
def | __getstate__ |
def | __setstate__ |
def | __deepcopy__ |
def | __copy__ |
__copy__(self) -> Force | |
Public Attributes | |
this |
Force objects apply forces to the particles in a System, or alter their behavior in other ways.
This is an abstract class. Subclasses define particular forces.
More specifically, a Force object can do any or all of the following:
Forces may be organized into "force groups". This is used for multiple time step integration, and allows subsets of the Forces in a System to be evaluated at different times. By default, all Forces are in group 0. Call setForceGroup() to change this. Some Force subclasses may provide additional methods to further split their computations into multiple groups. Be aware that particular Platforms may place restrictions on the use of force groups, such as requiring all nonbonded forces to be in the same group.
def __init__ | ( | self, | |
args, | |||
kwargs | |||
) |
def __deepcopy__ | ( | self, | |
memo | |||
) |
def __getstate__ | ( | self | ) |
def __setstate__ | ( | self, | |
serializationString | |||
) |
def getForceGroup | ( | self | ) |
getForceGroup(self) -> int
Get the force group this Force belongs to.
def setForceGroup | ( | self, | |
group | |||
) |
Set the force group this Force belongs to.
group | (int) the group index. Legal values are between 0 and 31 (inclusive). |
def usesPeriodicBoundaryConditions | ( | self | ) |
usesPeriodicBoundaryConditions(self) -> bool
Returns whether or not this force makes use of periodic boundary conditions. This method should be overridden for all Force subclasses, or a OpenMM::OpenMMException will be thrown
Reimplemented in RPMDMonteCarloBarostat, RBTorsionForce, PeriodicTorsionForce, NonbondedForce, MonteCarloMembraneBarostat, MonteCarloBarostat, MonteCarloAnisotropicBarostat, HarmonicBondForce, HarmonicAngleForce, GBSAOBCForce, DrudeForce, CustomTorsionForce, CustomNonbondedForce, CustomManyParticleForce, CustomHbondForce, CustomGBForce, CustomExternalForce, CustomCompoundBondForce, CustomCentroidBondForce, CustomBondForce, CustomAngleForce, CMMotionRemover, CMAPTorsionForce, AndersenThermostat, AmoebaWcaDispersionForce, AmoebaVdwForce, AmoebaTorsionTorsionForce, AmoebaStretchBendForce, AmoebaPiTorsionForce, AmoebaOutOfPlaneBendForce, AmoebaMultipoleForce, AmoebaInPlaneAngleForce, AmoebaGeneralizedKirkwoodForce, AmoebaBondForce, and AmoebaAngleForce.
Reimplemented in RPMDMonteCarloBarostat, RBTorsionForce, PeriodicTorsionForce, NonbondedForce, MonteCarloMembraneBarostat, MonteCarloBarostat, MonteCarloAnisotropicBarostat, HarmonicBondForce, HarmonicAngleForce, GBSAOBCForce, DrudeForce, CustomTorsionForce, CustomNonbondedForce, CustomManyParticleForce, CustomHbondForce, CustomGBForce, CustomExternalForce, CustomCompoundBondForce, CustomCentroidBondForce, CustomBondForce, CustomAngleForce, CMMotionRemover, CMAPTorsionForce, AndersenThermostat, AmoebaWcaDispersionForce, AmoebaVdwForce, AmoebaTorsionTorsionForce, AmoebaStretchBendForce, AmoebaPiTorsionForce, AmoebaOutOfPlaneBendForce, AmoebaMultipoleForce, AmoebaInPlaneAngleForce, AmoebaGeneralizedKirkwoodForce, AmoebaBondForce, and AmoebaAngleForce.