Nonlinear flows along magnetic flux tubes: Mathematical structure and exact simple wave solutions