Package ffx.openmm
Class CustomExternalForce
java.lang.Object
ffx.openmm.Force
ffx.openmm.CustomExternalForce
- Direct Known Subclasses:
RestrainPositionsForce
Custom External Force.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticle
(int index, DoubleArray particleParameters) Add a particle to the force.void
addPerParticleParameter
(String parameterName) Add per particle parameter.void
destroy()
Destroy the force.Methods inherited from class ffx.openmm.Force
getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
CustomExternalForce
OpenMM CustomExternalForce constructor.- Parameters:
energy
- The energy expression.
-
-
Method Details
-
addPerParticleParameter
Add per particle parameter.- Parameters:
parameterName
- The parameter name.
-
addParticle
Add a particle to the force.- Parameters:
index
- The particle index.particleParameters
- The particle parameters.
-
destroy
public void destroy()Destroy the force.
-