Comprehensive studies on the modelling and numerical simulation of the mechanical behaviour under tension, bending and torsion of single-walled carbon nanotubes and their heterojunctions are performed. It is proposed to deduce the mechanical properties of the carbon nanotubes heterojunctions from the knowledge of the mechanical properties of the single-walled carbon nanotubes, which are their constituent key unit