vmd.topology.adddihedral

vmd.topology.adddihedral()

Add a dihedral between four atoms with the given indices. No checking for duplicate dihedrals is performed.

Parameters:
  • i (int) – Index of first atom
  • j (int) – Index of second atom
  • k (int) – Index of third atom
  • l (int) – Index of fourth atom
  • molid (int) – Molecule ID to add dihedral in. Defaults to top molecule.
  • type (str) – Angle type. Can be from output of topology.getangletypes(), or can define a new angle type. Defaults to None
Returns:

(int) New number of dihedrals defined in system