Galerkin–Ivanov transformation for nonsmooth modeling of vibro-impacts in continuous structures