Package ffx.openmm
Class CustomNonbondedForce
java.lang.Object
ffx.openmm.Force
ffx.openmm.CustomNonbondedForce
Custom Non-bonded Force.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExclusion
(int particle1, int particle2) Add an exclusion.void
addGlobalParameter
(String name, double value) Add a global parameter.void
addInteractionGroup
(IntSet group1, IntSet group2) Add an interaction group.void
addParticle
(DoubleArray parameters) Add a particle to the force.void
Add a per particle parameter.void
destroy()
Destroy the force.void
setCutoffDistance
(double off) Set the cutoff distance.void
setNonbondedMethod
(int method) Set the nonbonded method.void
setSwitchingDistance
(double switchingDistance) Set the switching distance.void
setUseSwitchingFunction
(int useSwitchingFunction) Flag to contol use of a switching function.Methods inherited from class ffx.openmm.Force
getForceGroup, getForceIndex, getName, getPointer, setForceGroup, setForceIndex, setName, usesPeriodicBoundaryConditions
-
Constructor Details
-
CustomNonbondedForce
-
-
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.
-