Simulating magnetic nanotubes using a chain of ellipsoid-rings model with a magnetization reversal process by fanning rotation.