OETorsionParams
Attention
This API is currently available in C++ and Python.
class OETorsionParams : public OEMolPotential::OEInteractParams
The OETorsionParams class defines generic torsion parameters used in any force field which has torsion term.
- The following methods are publicly inherited from OEInteractParams:
- The OETorsionParams class defines the following public methods:
Constructors
OETorsionParams(bond: OEBondBase, atom1: OEAtomBase,
atom2: OEAtomBase, type: int) -> OETorsionParams
OETorsionParams(arg2: OETorsionParams) -> OETorsionParams
Constructor and copy constructor. Constructs an OETorsionParams object for a middle bond passed as the first argument and two terminal atoms (second and third arguments).
GetAtomIndex1
GetAtomIndex1() -> int
Returns atom index of the first atom for a torsion for which the instance of OETorsionParams was created.
GetAtomIndex2
GetAtomIndex2() -> int
Returns atom index of the second atom for a torsion for which the instance of OETorsionParams was created.
GetAtomIndex3
GetAtomIndex3() -> int
Returns atom index of the third atom for a torsion for which the instance of OETorsionParams was created.
GetAtomIndex4
GetAtomIndex4() -> int
Returns atom index of the forth atom for a torsion for which the instance of OETorsionParams was created.
IsValid
IsValid() -> bool
IsValid(pred: OEUnaryAtomPred) -> bool
IsValid(pred: OEUnaryBondPred) -> bool
Methods which check if an instance of the OETorsionParams class was created for the torsion to be included in force field calculation. First method is checking if the above instance was correctly constructed, while two remaining methods provide predicates which test if atoms (second method) and a middle bond (third method) belong to that instance.
IsTorsion
IsTorsion(atom1: OEAtomBase, atom2: OEAtomBase, atom3: OEAtomBase,
atom4: OEAtomBase) -> bool
Used to check if 4 atoms passed as arguments belong to the current OETorsionParams instance.