Package ffx.potential.openmm
Class OpenMMForce
java.lang.Object
ffx.potential.openmm.OpenMMForce
- Direct Known Subclasses:
AmoebaCavitationForce
,AmoebaGeneralizedKirkwoodForce
,AmoebaMultipoleForce
,AmoebaTorsionTorsionForce
,AmoebaVDWForce
,AmoebaWcaDispersionForce
,OpenMMAndersenThermostat
,OpenMMCMMotionRemover
,OpenMMCustomAngleForce
,OpenMMCustomBondForce
,OpenMMCustomCentroidBondForce
,OpenMMCustomCompoundBondForce
,OpenMMCustomExternalForce
,OpenMMCustomGBForce
,OpenMMCustomNonbondedForce
,OpenMMHarmonicBondForce
,OpenMMMonteCarloBarostat
,OpenMMNonbondedForce
,OpenMMPeriodicTorsionForce
OpenMM Force.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.sun.jna.ptr.PointerByReference
The forcePointer is allocated and deallocated by classes that extend OpenMMForce. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenMMForce
constructForce
(OpenMMEnergy openMMEnergy) Construct an OpenMM Force from an OpenMMEnergy.int
Get the force group.int
Get the force index.getName()
Get the name of the force.com.sun.jna.ptr.PointerByReference
Get the pointer to the OpenMM Force.void
setForceGroup
(int forceGroup) Set the force group.void
setForceIndex
(int forceIndex) Set the force index.void
Set the name of the force.boolean
Check if the force use periodic boundary conditions.
-
Field Details
-
forcePointer
protected com.sun.jna.ptr.PointerByReference forcePointerThe forcePointer is allocated and deallocated by classes that extend OpenMMForce.
-
-
Constructor Details
-
OpenMMForce
public OpenMMForce()
-
-
Method Details
-
getPointer
public com.sun.jna.ptr.PointerByReference getPointer()Get the pointer to the OpenMM Force.- Returns:
- The pointer to the OpenMM Force.
-
constructForce
Construct an OpenMM Force from an OpenMMEnergy.- Parameters:
openMMEnergy
- The OpenMMEnergy.- Returns:
- An OpenMM Force.
-
setForceGroup
public void setForceGroup(int forceGroup) Set the force group.- Parameters:
forceGroup
- The force group.
-
getForceGroup
public int getForceGroup()Get the force group.- Returns:
- The force group.
-
setName
Set the name of the force.- Parameters:
name
- The name of the force.
-
getName
Get the name of the force.- Returns:
- The name of the force.
-
setForceIndex
public void setForceIndex(int forceIndex) Set the force index.- Parameters:
forceIndex
- The force index.
-
getForceIndex
public int getForceIndex()Get the force index.- Returns:
- The force index.
-
usesPeriodicBoundaryConditions
public boolean usesPeriodicBoundaryConditions()Check if the force use periodic boundary conditions. This is a virtual method that must be implemented by classes that extend OpenMMForce.- Returns:
- True if the force uses periodic boundary conditions.
-