Thermodynamics of Fluids Under Flow