sknano.structures.compute_T¶
-
sknano.structures.
compute_T
(*Ch, *, bond=None, length=True, **kwargs)[source][source]¶ Compute length of nanotube unit cell |T| in Å.
|T|=√3|Ch|dR=√3a√n2+m2+nmdR=3aCC√n2+m2+nmdRParameters: Either a 2-tuple of ints or 2 integers giving the chiral indices of the nanotube chiral vector Ch=na1+ma2=(n,m).
bond : float, optional
Distance between nearest neighbor atoms (i.e., bond length). Must be in units of Å. Default value is the carbon-carbon bond length in graphite, approximately aCC=1.42 Å
length : bool, optional
Compute the magnitude (i.e., length) of the translation vector.
Returns: float or 2-tuple of ints
If length is True, then return the length of unit cell in Å.
If length is False, return the componets of the translation vector as a 2-tuple of ints (t1, t2).