vmd.topology.addangle

vmd.topology.addangle()

Add an angle between three atoms with given indices. No checking for duplicate angles is performed

Parameters:
  • i (int) – Index of first atom
  • j (int) – Index of second atom
  • k (int) – Index of third atom
  • molid (int) – Molecule ID to add angle to. 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) Index of new angle in system