PoreMS 0.3
  • API
  • Molecule
  • Pore
  • Workflow
  • Pore shape examples
  • Site
    • Page
        • Molecule.part_rotate
          • Molecule.part_rotate()
    • Molecule.part_rotate
      • Molecule.part_rotate()
    Source

    Molecule.part_rotate¶

    Molecule.part_rotate(bond, atoms, angle, zero)¶

    Rotate a set of specified atoms around a given bond as the rotation axis. First however the system needs to be set to zero. Therefore the atom id to define the new coordinate system must be given for the set of specified atoms. Normally this is the atoms that is on the end of the given bond axis.

    Parameters:
    bondlist

    List of two atom ids of the bond to be set as an axis

    atomsinteger, list

    List of atoms to be rotated (can also be one id)

    anglefloat

    Rotation angle

    zerointeger

    Atom id to define zero point of the new coordinate system

    Examples

    mol.part_rotate([0, 1], [1, 2, 3], 90, 0)
    

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.