This defines the direction of work, W , to be energy transfer from the working system to the surroundings, indicated by a positive term. Taking the direction of heat transfer Q to be into the working fluid and assuming a reversible process, the heat is