Skip to main content

ts_connectivity()

The bonds of a TS, from reactant-side and product-side geometries.

Usage

Source

ts_connectivity(
    reactant_geometry,
    product_geometry,
)

Both geometries are in the TS atom order. Each side’s bonds come from connectivity; a bond on both sides is present throughout, one on the reactant side only is breaking, and one on the product side only is forming.

Examples

    >>> import amchi
    >>> from types import SimpleNamespace
    >>> # H + H2 -> H2 + H
    >>> reactant = SimpleNamespace(
    ...     symbols=["H", "H", "H"],
    ...     coordinates=[[0, 0, 0], [0.74, 0, 0], [3, 0, 0]],
    ... )
    >>> product = SimpleNamespace(
    ...     symbols=["H", "H", "H"],
    ...     coordinates=[[0, 0, 0], [2.26, 0, 0], [3, 0, 0]],
    ... )
    >>> connectivity = amchi.ts_connectivity(reactant, product)
    >>> connectivity.breaking, connectivity.forming
(((0, 1),), ((1, 2),))