Bond¶
-
class
sknano.core.atoms.mixins.
Bond
(*args, order=None, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.mixins.Topology
Class representation of bond between 2
Atom
objects.Parameters: - end (origin,) –
- parent (Parent
Molecule
, if any.) – - id (
int
) – - order ({1, 2, 3, 5}) –
Attributes
atom1
An alias for origin
.atom2
An alias for end
.atom_ids
Topology.atoms
ids
.atoms
Atoms
inTopologyCollection
.bond
An alias for TopologyCollection.measure
.centroid
centroid
ofTopology.atoms
.end
Atom
2 inBond
.fmtstr
Format string. length
An alias for TopologyCollection.measure
.measure
Measure of topology. order
Bond order. origin
Atom
1 inBond
.strain
Strain in measure. unit_vector
Bond
unit_vector
.vector
Bond
Vector
.Methods
compute_measure
()Bond
length
.compute_strain
(m0)Compute topological strain in Topology.measure
.partner
(atom)Return Atom
bonded toatom
.rotate
(**kwargs)Rotate the Topology
by rotating theatoms
.todict
()Return dict
of constructor parameters.Attributes Summary
atom1
An alias for origin
.atom2
An alias for end
.bond
An alias for TopologyCollection.measure
.end
Atom
2 inBond
.length
An alias for TopologyCollection.measure
.order
Bond order. origin
Atom
1 inBond
.unit_vector
Bond
unit_vector
.vector
Bond
Vector
.Methods Summary
compute_measure
()Bond
length
.partner
(atom)Return Atom
bonded toatom
.todict
()Return dict
of constructor parameters.Attributes Documentation
-
bond
¶ An alias for
TopologyCollection.measure
.
-
length
¶ An alias for
TopologyCollection.measure
.
-
order
¶ Bond order.
-
unit_vector
¶
-
vector
¶ -
Bond
Vector
points fromBond.origin
toBond.end
.Note
Accounts for periodic boundary conditions if a
Crystal3DLattice
is assigned to theatoms
.
Methods Documentation
-
partner
(atom)[source] [edit on github][source]¶ Return
Atom
bonded toatom
.
-
todict
()[source] [edit on github][source]¶ Return
dict
of constructor parameters.