Curving dynamics of a freight wagon with one- and two-dimensional friction damping