This class implements a nonbonded interaction between pairs of particles typically used along with AmoebaGeneralizedKirkwoodForce as part of an implicit solvent model.
More...
List of all members.
Detailed Description
This class implements a nonbonded interaction between pairs of particles typically used along with AmoebaGeneralizedKirkwoodForce as part of an implicit solvent model.
To use it, create an AmoebaWcaDispersionForce object then call addParticle() once for each particle. After a particle has been added, you can modify its force field parameters by calling setParticleParameters(). This will have no effect on Contexts that already exist unless you call updateParametersInContext().
Constructor & Destructor Documentation
Member Function Documentation
addParticle(self, radius, epsilon) -> int
Set the force field parameters for a WCA dispersion particle.
- Parameters:
-
radius | (double) radius |
epsilon | (double) epsilon |
- Returns:
- (int) index of added particle
getAwater(self) -> double
getDispoff(self) -> double
getNumParticles(self) -> int
Get the number of particles
Get the force field parameters for a WCA dispersion particle.
- Parameters:
-
particleIndex | (int) the particle index |
- Returns:
- (double) radius
-
(double) epsilon
Set the force field parameters for a WCA dispersion particle.
- Parameters:
-
particleIndex | (int) the particle index |
radius | (double) radius |
epsilon | (double) epsilon |
Update the per-particle parameters in a Context to match those stored in this Force object.
This method provides an efficient method to update certain parameters in an existing Context without needing to reinitialize it. Simply call setParticleParameters() to modify this object's parameters, then call updateParametersInContext() to copy them over to the Context.
The only information this method updates is the values of per-particle parameters. All other aspects of the Force are unaffected and can only be changed by reinitializing the Context.
usesPeriodicBoundaryConditions(self) -> bool
Returns whether or not this force makes use of periodic boundary conditions.
- Returns:
- (bool) true if nonbondedMethod uses PBC and false otherwise
Reimplemented from Force.
Member Data Documentation
Reimplemented from Force.
The documentation for this class was generated from the following file: