xnn.ffnn.models.gfnfflib.Topology#
- class xnn.ffnn.models.gfnfflib.Topology(z, pos, charge=0, cell=None)[source]#
Bases:
object- wrap#
lattice shifts that wrap the given positions into the cell
- ring3#
atoms of three-membered rings
- mo#
their rings do not count for angles and torsion ends
- Type:
N and O atoms bonded to a metal
- ring(*atoms, tors=False)[source]#
Size of the smallest ring of up to six atoms that the ring lists show for the atoms: a bond sees the lists of its two atoms, an angle (centre first) those of its centre and its ends, a torsion every kept ring; 0 when such a smallest ring passes through a metal, an H (in a molecule), a two-neighbour or hypervalent halogen or an S with three or more neighbours, or when two of the atoms share an eta metal.
- ring_sizes(*atoms)[source]#
Sizes of the rings holding all the atoms of a torsion, as the ring lists of its four atoms show them.
- pi_degree(i)[source]#
Neighbours of a pi atom that count in its electron contribution and Hueckel diagonal: a metal does not count for an sp or sp2 N, O or S, except for an N with a one-neighbour O, nor for an sp3 O or S with two other neighbours; a hypervalent halogen does not count for a two-neighbour sp2 O, nor a four-neighbour B for an sp or sp2 N.