Starting from this QAs I'm in trouble with the application of Clausius's inequality to a system undergoing an irreversible transformation. As explained in the book "Fundamental of Engineering ...

Clausius's inequality for a quasi-static system transforming irreversibly – physics.stackexchange.com
CarloC
