Modelling the dynamics of a rectangular cantilever in a fluid