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

    Molecule.bond¶

    Molecule.bond(inp_a, inp_b)¶

    Return the bond vector of a specified bond. The two inputs can either be atom indices or to vectoral positions.

    Parameters:
    inp_ainteger, list

    Either an atom id or a position vector

    inp_binteger, list

    Either an atom id or a position vector

    Returns:
    bondlist

    Bond vector

    Examples

    mol.bond(0, 1)
    mol.bond(*[0, 1])
    mol.bond([1, 0, 0], [0, 0, 0])
    

    Back to top

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