Transient analysis of Cosserat rod theory by least-square finite element method