Package ffx.potential.openmm
Class OpenMMCustomNonbondedForce
java.lang.Object
ffx.potential.openmm.OpenMMForce
ffx.potential.openmm.OpenMMCustomNonbondedForce
-
Field Summary
Fields inherited from class ffx.potential.openmm.OpenMMForce
forcePointer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclusion(int particle1, int particle2) Add an exclusion.voidaddGlobalParameter(String name, double value) Add a global parameter.voidaddInteractionGroup(OpenMMIntSet group1, OpenMMIntSet group2) Add an interaction group.voidaddParticle(OpenMMDoubleArray parameters) Add a particle to the force.voidAdd a per particle parameter.voiddestroy()Destroy the force.voidsetCutoffDistance(double off) Set the cutoff distance.voidsetNonbondedMethod(int method) Set the nonbonded method.voidsetSwitchingDistance(double switchingDistance) Set the switching distance.voidsetUseSwitchingFunction(int useSwitchingFunction) Flag to contol use of a switching function.Methods inherited from class ffx.potential.openmm.OpenMMForce
constructForce, getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
OpenMMCustomNonbondedForce
-
-
Method Details
-
addGlobalParameter
Add a global parameter.- Parameters:
name- The parameter name.value- The parameter value.
-
addPerParticleParameter
Add a per particle parameter.- Parameters:
name- The parameter name.
-
addParticle
Add a particle to the force.- Parameters:
parameters- The particle parameters.
-
addInteractionGroup
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.
-