Thermodynamics and dynamics of flowing polymer solutions and blends