Power output from an irreversible heat engine with a nonuniform working fluid.