Total Work out of Three Bodies (Thermodynamics)
The problem is:
Having three bodies with thermal capacities (C) as sources of heat to a heat machine, what is the maximum work I can extract from this system, given that the bodies are at temperatures T3, T2 and T1 (T3>T2>T1), leaving them at an equal final temperature?
I tackled this problem by assuming that the amount of heat I can extract from each body is:
Now, I'm not sure if I'm breaking the second law of thermodynamics by totally converting heat into work. This is where I'm kind of stuck.
So, if anyone can help me figure out how to solve this and other type-like problems, it'd be great.
Thank you :)