Package ffx.potential.nonbonded
Class VanDerWaalsTornado
java.lang.Object
ffx.potential.nonbonded.VanDerWaals
ffx.potential.nonbonded.VanDerWaalsTornado
- All Implemented Interfaces:
LambdaInterface,MaskingInterface
The Van der Waals class computes Van der Waals interaction in parallel using a
NeighborList for P1 (no symmetry) Crystal systems.
The repulsive power (e.g. 12), attractive power (e.g. 6) and buffering (e.g. for the AMOEBA buffered-14-7) can all be specified such that both Lennard-Jones and AMOEBA are supported.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Nested Class Summary
Nested classes/interfaces inherited from class ffx.potential.nonbonded.VanDerWaals
VanDerWaals.LambdaFactors, VanDerWaals.LambdaFactorsOST -
Constructor Summary
ConstructorsConstructorDescriptionVanDerWaalsTornado(Atom[] atoms, Crystal crystal, ForceField forceField, double vdwCutoff) The VanDerWaalsTornado class constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleenergy(boolean gradient, boolean print) The energy routine may be called repeatedly.doubleGet the total Van der Waals potential energy.intGet the number of interacting pairs.voidSetter for the fieldatoms.voidsetCrystal(Crystal crystal) If the crystal being passed in is not equal to the current crystal, then some Van der Waals data structures may need to updated.toString()Methods inherited from class ffx.potential.nonbonded.VanDerWaals
applyMask, attachExtendedSystem, destroy, getAlpha, getBeta, getBuffer, getd2EdL2, getdEdL, getdEdXdL, getDoLongRangeCorrection, getExtendedSystem, getIntramolecularSoftcore, getLambda, getLambdaTerm, getMask12, getMask13, getMask14, getNeighborList, getNeighborLists, getNonbondedCutoff, getReductionIndex, getVDWForm, removeMask, setAtoms, setLambdaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ffx.potential.bonded.LambdaInterface
dEdLZeroAtEnds
-
Constructor Details
-
VanDerWaalsTornado
The VanDerWaalsTornado class constructor.- Parameters:
atoms- Atom array to do Van Der Waals calculations on.crystal- The periodic boundary conditions information.forceField- the ForceField parameters to apply.vdwCutoff- vdW cutoff.- Since:
- 1.0
-
-
Method Details
-
energy
public double energy(boolean gradient, boolean print) The energy routine may be called repeatedly.- Overrides:
energyin classVanDerWaals- Parameters:
gradient- If true, gradients with respect to atomic coordinates are computed.print- If true, there is verbose printing.- Returns:
- The energy.
- Since:
- 1.0
-
getEnergy
public double getEnergy()Get the total Van der Waals potential energy.- Overrides:
getEnergyin classVanDerWaals- Returns:
- The energy.
- Since:
- 1.0
-
getInteractions
public int getInteractions()Get the number of interacting pairs.- Overrides:
getInteractionsin classVanDerWaals- Returns:
- The interaction count.
- Since:
- 1.0
-
setAtoms
Setter for the fieldatoms.- Parameters:
atoms- an array ofAtomobjects.
-
setCrystal
If the crystal being passed in is not equal to the current crystal, then some Van der Waals data structures may need to updated. IfnSymmhas changed, update arrays dimensioned by nSymm. Finally, rebuild the neighbor-lists.- Overrides:
setCrystalin classVanDerWaals- Parameters:
crystal- The new crystal instance defining the symmetry and boundary conditions.
-
toString
- Overrides:
toStringin classVanDerWaals
-