Topology¶
-
class
sknano.core.atoms.
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.TabulateMixin
Base
Atom
topology class.Parameters: Raises: TypeError
– ifatoms
is not a list ofAtom
objects or anAtoms
object.ValueError
– if len(atoms) !=size
.
Attributes
atom_ids
Topology.atoms
ids
.atoms
Atoms
inTopologyCollection
.centroid
centroid
ofTopology.atoms
.fmtstr
Format string. measure
Measure of topology. strain
Strain in measure. Methods
compute_measure
()Compute topological measure from Topology.atoms
.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
atom_ids
Topology.atoms
ids
.atoms
Atoms
inTopologyCollection
.centroid
centroid
ofTopology.atoms
.measure
Measure of topology. strain
Strain 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 Topology
by rotating theatoms
.todict
()Return dict
of constructor parameters.Attributes Documentation
-
atom_ids
¶ Topology.atoms
ids
.
-
atoms
¶
-
centroid
¶ centroid
ofTopology.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
dict
of constructor parameters.