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
Epsilon combining rule.static enum
Radius combining rule.static enum
Radius size in the parameter file (radius or diameter).static enum
Radius type in the parameter file (R-Min or Sigma).static enum
VDW Type.static enum
Torsion modes include Normal or In-Plane -
Field Summary
Modifier and TypeFieldDescriptionint
The atom class that uses this van der Waals parameter.static final double
The default delta parameter in Halgren’s buffered 14-7 vdw potential energy functional form.static final VDWType.EPSILON_RULE
The default epsilon combining rule.static final double
The default gamma parameter in Halgren’s buffered 14-7 vdw potential energy functional form.static final VDWType.RADIUS_RULE
The default radius combining rule.static final VDWType.RADIUS_SIZE
The default radius size.static final VDWType.RADIUS_TYPE
The default radius type.static final double
The default van der Waals scale factor for 1-2 (bonded) interactions.static final double
The default van der Waals scale factor for 1-3 (angle) interactions.static final double
The default van der Waals scale factor for 1-4 (torisonal) interactions.static final VDWType.VDW_TYPE
The default van der Waals functional form type.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
Modifier and TypeMethodDescriptionstatic VDWType
Average two VDWType objects.int
boolean
static Element
getXMLForce
(Document doc, ForceField forceField) Create an AmoebaVdwForce force node.int
hashCode()
static VDWType
Construct a VDWType from multiple input lines.static VDWType
parseVDW14
(String input, String[] tokens) Construct a 1-4 VDWType from multiple input lines.toString()
Write VDWType to OpenMM XML format.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
-
DEFAULT_GAMMA
public static final double DEFAULT_GAMMAThe default gamma parameter in Halgren’s buffered 14-7 vdw potential energy functional form.- See Also:
-
DEFAULT_DELTA
public static final double DEFAULT_DELTAThe default delta parameter in Halgren’s buffered 14-7 vdw potential energy functional form.- See Also:
-
DEFAULT_EPSILON_RULE
The default epsilon combining rule. -
DEFAULT_RADIUS_RULE
The default radius combining rule. -
DEFAULT_RADIUS_SIZE
The default radius size. -
DEFAULT_RADIUS_TYPE
The default radius type. -
DEFAULT_VDW_TYPE
The default van der Waals functional form type. -
DEFAULT_VDW_12_SCALE
public static final double DEFAULT_VDW_12_SCALEThe default van der Waals scale factor for 1-2 (bonded) interactions.- See Also:
-
DEFAULT_VDW_13_SCALE
public static final double DEFAULT_VDW_13_SCALEThe default van der Waals scale factor for 1-3 (angle) interactions.- See Also:
-
DEFAULT_VDW_14_SCALE
public static final double DEFAULT_VDW_14_SCALEThe default van der Waals scale factor for 1-4 (torisonal) interactions.- See Also:
-
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.
-
getXMLForce
Create an AmoebaVdwForce force node.- Parameters:
doc
- the Document instance.forceField
- the ForceField to collect constants from.- Returns:
- The AmoebaVdwForce force node.
-
toXML
Write VDWType to OpenMM XML format.
-