Package ffx.openmm

Class CustomNonbondedForce

java.lang.Object
ffx.openmm.Force
ffx.openmm.CustomNonbondedForce

public class CustomNonbondedForce extends Force
Custom Non-bonded Force.
  • Constructor Details

    • CustomNonbondedForce

      public CustomNonbondedForce(String energy)
  • Method Details

    • addGlobalParameter

      public void addGlobalParameter(String name, double value)
      Add a global parameter.
      Parameters:
      name - The parameter name.
      value - The parameter value.
    • addPerParticleParameter

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

      public void addParticle(DoubleArray parameters)
      Add a particle to the force.
      Parameters:
      parameters - The particle parameters.
    • addInteractionGroup

      public void addInteractionGroup(IntSet group1, IntSet group2)
      Add an interaction group.
      Parameters:
      group1 - The first group.
      group2 - The second group.
    • setNonbondedMethod

      public void setNonbondedMethod(int method)
      Set the nonbonded method.
      Parameters:
      method - The nonbonded method.
    • setCutoffDistance

      public void setCutoffDistance(double off)
      Set the cutoff distance.
      Parameters:
      off - The cutoff distance.
    • setUseSwitchingFunction

      public void setUseSwitchingFunction(int useSwitchingFunction)
      Flag to contol use of a switching function.
      Parameters:
      useSwitchingFunction - If 1, the switching function is used.
    • setSwitchingDistance

      public void setSwitchingDistance(double switchingDistance)
      Set the switching distance.
      Parameters:
      switchingDistance - The switching distance.
    • addExclusion

      public void addExclusion(int particle1, int particle2)
      Add an exclusion.
      Parameters:
      particle1 - The first particle.
      particle2 - The second particle.
    • destroy

      public void destroy()
      Destroy the force.