Angle¶
-
class
sknano.core.atoms.Angle(*args, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.mixins.AngularTopologyClass representation of bond angle between 3
Atomobjects.Parameters: Raises: TypeError– ifatomsis not a list ofAtomobjects or anAtomsobject.ValueError– if len(atoms) != 3.
Attributes
angleAn alias for Topology.measure.atom1An alias for lneighbor.atom2An alias for center.atom3An alias for rneighbor.atom_idsTopology.atomsids.atomsAtomsinTopologyCollection.bond_pairstupleofAngleAngle.lbond,Angle.rbond.centerAtom2 inAngle.centroidcentroidofTopology.atoms.fmtstrFormat string. lbondBondfromcenter->lneighbor.lneighborAtom1 inAngle.measureMeasure of topology. rbondBondfromcenter->rneighbor.rneighborAtom3 inAngle.strainStrain 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 Topologyby rotating theatoms.todict()Return dictof constructor parameters.Attributes Summary
atom1An alias for lneighbor.atom2An alias for center.atom3An alias for rneighbor.bond_pairstupleofAngleAngle.lbond,Angle.rbond.centerAtom2 inAngle.lbondBondfromcenter->lneighbor.lneighborAtom1 inAngle.rbondBondfromcenter->rneighbor.rneighborAtom3 inAngle.Methods Summary
compute_measure()Compute the bond angle, which is the measure of an Angle.todict()Return dictof constructor parameters.Attributes Documentation
-
bond_pairs¶ tupleofAngleAngle.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
dictof constructor parameters.