Package ffx.potential.parameters
Class VDWType
java.lang.Object
ffx.potential.parameters.BaseType
ffx.potential.parameters.VDWType
- All Implemented Interfaces:
Comparator<String>
@FFXProperty(name="vdw",clazz=java.lang.String.class,propertyGroup=PotentialFunctionParameter,description="[1 integer and 3 reals]\nProvides values for a single van der Waals parameter. The integer modifier, if positive,\ngives the atom class number for which vdw parameters are to be defined. Note that vdw parameters are given for atom classes, not atom types.\nThe three real number modifiers give the values of the atom size in Angstroms, homoatomic well depth in kcal/mole,\nand an optional reduction factor for univalent atoms.\n") @FFXProperty(name="vdw14",clazz=java.lang.String.class,propertyGroup=PotentialFunctionParameter,description="[1 integer and 2 reals]\nProvides values for a single van der Waals parameter for use in 1-4 nonbonded interactions.\nThe integer modifier, if positive, gives the atom class number for which vdw parameters are to be defined.\nNote that vdw parameters are given for atom classes, not atom types.\nThe two real number modifiers give the values of the atom size in Angstroms and the homoatomic well depth in kcal/mole.\nReduction factors, if used, are carried over from the vdw keyword for the same atom class.\n")
public final class VDWType
extends BaseType
implements Comparator<String>
The VDWType class defines van der Waals type for a normal interaction or a special 1-4
interaction.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Torsion modes include Normal or In-Plane -
Field Summary
Modifier and TypeFieldDescriptionint
The atom class that uses this van der Waals parameter.final double
The radius of the minimum well depth energy (angstroms).final double
Reduction factor for evaluating van der Waals pairs.final double
The minimum energy of the vdw function (kcal/mol). -
Constructor Summary
ConstructorDescriptionVDWType
(int atomClass, double radius, double wellDepth, double reductionFactor) van der Waals constructor.VDWType
(int atomClass, double radius, double wellDepth, double reductionFactor, VDWType.VDWMode vdwMode) van der Waals constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
radius
public final double radiusThe radius of the minimum well depth energy (angstroms). -
wellDepth
public final double wellDepthThe minimum energy of the vdw function (kcal/mol). -
reductionFactor
public final double reductionFactorReduction factor for evaluating van der Waals pairs. Valid range: 0.0 .GT. reduction .LE. 1.0 Usually only hydrogen atoms have a reduction factor. Setting the reduction to .LT. 0.0 indicates it is not being used. -
atomClass
public int atomClassThe atom class that uses this van der Waals parameter.
-
-
Constructor Details
-
VDWType
public VDWType(int atomClass, double radius, double wellDepth, double reductionFactor) van der Waals constructor. If the reduction factor is .LE. 0.0, no reduction is used for this atom type.- Parameters:
atomClass
- The atom class that uses this van der Waals parameter.radius
- The radius of the minimum well depth energy (angstroms).wellDepth
- The minimum energy of the vdw function (kcal/mol).reductionFactor
- Reduction factor for evaluating van der Waals pairs.
-
VDWType
public VDWType(int atomClass, double radius, double wellDepth, double reductionFactor, VDWType.VDWMode vdwMode) van der Waals constructor. If the reduction factor is .LE. 0.0, no reduction is used for this atom type.- Parameters:
atomClass
- The atom class that uses this van der Waals parameter.radius
- The radius of the minimum well depth energy (angstroms).wellDepth
- The minimum energy of the vdw function (kcal/mol).reductionFactor
- Reduction factor for evaluating van der Waals pairs.vdwMode
- The VDWMode to use.
-
-
Method Details
-
average
Average two VDWType objects.- Parameters:
vdwType1
- The first VDWType.vdwType2
- The second VDWType.atomClass
- The new atom class.- Returns:
- The new averaged VDWType.
-
parse
Construct a VDWType from multiple input lines.- Parameters:
input
- The overall input String.tokens
- The input String tokenized.- Returns:
- a VDWType instance.
-
parseVDW14
Construct a 1-4 VDWType from multiple input lines.- Parameters:
input
- The overall input String.tokens
- The input String tokenized.- Returns:
- a VDWType instance.
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
equals
- Specified by:
equals
in interfaceComparator<String>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode() -
toString
Basic toString method.
Nicely formatted van der Waals type.
-