Solitary waves on nonlinear elastic rods. I