Systems Driven Out Of Equilibrium With Energy Input At Interfaces Or Boundaries