Critical velocity of a load moving on a beam supported by a foundation of finite depth