Numerical Utilities#

Numerical interpolation and geometry utilities.

tmol.numeric.coord_dihedrals(a: Tensor[slice(None, None, None), 3], b: Tensor[slice(None, None, None), 3], c: Tensor[slice(None, None, None), 3], d: Tensor[slice(None, None, None), 3]) → Tensor[source]#

Dihedral angle in [-pi, pi] over the planes defined by {a, b, c} & {b, c, d}.

Calculate dihedral angle from four coordinate locations, using the “standard” torsion angle definition of two planes defined by the points {a, b, c} and {b, c, d}. For a four-atom bond definition, this corrosponds to rotation about the b-c bond.

Was this page helpful?

Was this page helpful?