Topology¶
-
class
sknano.core.atoms.mixins.Topology(*atoms, size, id=0, type=0, parent=None, check_operands=True)[source] [edit on github][source]¶ Bases:
sknano.core.meta.BaseClass,sknano.core.strings.TabulateMixinBase
Atomtopology class.Parameters: Raises: TypeError– ifatomsis not a list ofAtomobjects or anAtomsobject.ValueError– if len(atoms) !=size.
Attributes
atom_idsTopology.atomsids.atomsAtomsinTopologyCollection.centroidcentroidofTopology.atoms.fmtstrFormat string. measureMeasure of topology. strainStrain in measure. Methods
compute_measure()Compute topological measure from Topology.atoms.compute_strain(m0)Compute topological strain in Topology.measure.rotate(**kwargs)Rotate the Topologyby rotating theatoms.todict()Return dictof constructor parameters.Attributes Summary
atom_idsTopology.atomsids.atomsAtomsinTopologyCollection.centroidcentroidofTopology.atoms.measureMeasure of topology. strainStrain in measure. Methods Summary
compute_measure()Compute topological measure from Topology.atoms.compute_strain(m0)Compute topological strain in Topology.measure.rotate(**kwargs)Rotate the Topologyby rotating theatoms.todict()Return dictof constructor parameters.Attributes Documentation
-
atom_ids¶ Topology.atomsids.
-
atoms¶
-
centroid¶ centroidofTopology.atoms.
-
measure¶ Measure of topology.
-
strain¶ Strain in measure.
Methods Documentation
-
compute_measure()[source] [edit on github][source]¶ Compute topological measure from
Topology.atoms.
-
compute_strain(m0)[source] [edit on github][source]¶ Compute topological strain in
Topology.measure.Parameters: m0 ( float) –Returns: Return type: float
-
todict()[source] [edit on github][source]¶ Return
dictof constructor parameters.