Skip to main content

angles()

List bond angles.

Usage

Source

angles(
    geo,
    amat,
)

Parameters

geo: Geometry

Geometry.

amat: ArrayLike
Adjacency matrix.

Returns

np.ndarray

Sorted rows [z1, z2, z3, theta] with theta in radians, z2 the

central atom, and z1 <= z3, shape (nangles, 4).

Examples

    >>> import autogeom
    >>> geo = autogeom.Geometry(
    ...     symbols=["O", "H", "H"],
    ...     coordinates=[[0, 0, 0], [1, 0, 0], [0, 1, 0]],
    ...     charge=0,
    ...     spin=0,
    ... )
    >>> a = autogeom.angles(geo, autogeom.adjacency_matrix(geo))
    >>> a.shape
(1, 4)
    >>> round(float(a[0][-1]), 6)
1.570796