Package ffx.openmm

Class CustomExternalForce

java.lang.Object
ffx.openmm.Force
ffx.openmm.CustomExternalForce
Direct Known Subclasses:
RestrainPositionsForce

public class CustomExternalForce extends Force
Custom External Force.
  • Constructor Details

    • CustomExternalForce

      public CustomExternalForce(String energy)
      OpenMM CustomExternalForce constructor.
      Parameters:
      energy - The energy expression.
  • Method Details

    • addPerParticleParameter

      public void addPerParticleParameter(String parameterName)
      Add per particle parameter.
      Parameters:
      parameterName - The parameter name.
    • addParticle

      public void addParticle(int index, DoubleArray particleParameters)
      Add a particle to the force.
      Parameters:
      index - The particle index.
      particleParameters - The particle parameters.
    • destroy

      public void destroy()
      Destroy the force.