We consider optimal control of a parabolic differential equation, modeling one-dimensional fluid flow through a soil-packed tube in which a contaminant is initially distributed. A fluid is pumped through the tube to remove the contaminant. The convective velocity due to the fluid pumping is the nonlinear control action. The goal is to minimize a performance criterion which is a combination of the total contaminant at the final time and the cost of the control. The optimal control is characterized by an optimality system.