Stress computation in a single-walled carbon nanotube under uniaxial tension