It is a generalization of the concept of mechanical work in mechanics .
As such , thermodynamic work is a generalization of the concept of mechanical work in mechanics .