Angle¶
-
class
sknano.core.atoms.
Angle
(*args, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.mixins.AngularTopology
Class representation of bond angle between 3
Atom
objects.Parameters: Raises: TypeError
– ifatoms
is not a list ofAtom
objects or anAtoms
object.ValueError
– if len(atoms) != 3.
Attributes
angle
An alias for Topology.measure
.atom1
An alias for lneighbor
.atom2
An alias for center
.atom3
An alias for rneighbor
.atom_ids
Topology.atoms
ids
.atoms
Atoms
inTopologyCollection
.bond_pairs
tuple
ofAngle
Angle.lbond
,Angle.rbond
.center
Atom
2 inAngle
.centroid
centroid
ofTopology.atoms
.fmtstr
Format string. lbond
Bond
fromcenter
->lneighbor
.lneighbor
Atom
1 inAngle
.measure
Measure of topology. rbond
Bond
fromcenter
->rneighbor
.rneighbor
Atom
3 inAngle
.strain
Strain in measure. Methods
compute_measure
()Compute the bond angle, which is the measure of an Angle
.compute_strain
(m0)Compute topological strain in Topology.measure
.rotate
(**kwargs)Rotate the Topology
by rotating theatoms
.todict
()Return dict
of constructor parameters.Attributes Summary
atom1
An alias for lneighbor
.atom2
An alias for center
.atom3
An alias for rneighbor
.bond_pairs
tuple
ofAngle
Angle.lbond
,Angle.rbond
.center
Atom
2 inAngle
.lbond
Bond
fromcenter
->lneighbor
.lneighbor
Atom
1 inAngle
.rbond
Bond
fromcenter
->rneighbor
.rneighbor
Atom
3 inAngle
.Methods Summary
compute_measure
()Compute the bond angle, which is the measure of an Angle
.todict
()Return dict
of constructor parameters.Attributes Documentation
-
bond_pairs
¶ tuple
ofAngle
Angle.lbond
,Angle.rbond
.
Methods Documentation
-
compute_measure
()[source] [edit on github][source]¶ Compute the bond angle, which is the measure of an
Angle
.Returns: Return type: float
-
todict
()[source] [edit on github][source]¶ Return
dict
of constructor parameters.