Stav dette: Thermodynamics of flowing systems