Kinematically exact curved and twisted strain-based beam