A discrete numerical model for single walled carbon nanotubes