compute_T¶
-
sknano.core.structures.
compute_T
(*Ch, bond=None, length=True, **kwargs)[source] [edit on github][source]¶ Compute length of nanotube unit cell |T| in Å.
|T|=√3|Ch|dR=√3a√n2+m2+nmdR=3aCC√n2+m2+nmdRParameters: - *Ch –
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: If
length
isTrue
, then return the length of unit cell in Å.If
length
isFalse
, return the componets of the translation vector as a 2-tuple of ints (t1, t2).Return type: float or 2-tuple of ints
- *Ch –