Non-linear dynamics of curved beams. Part 1: Formulation