You can check out the following URL
http://www.taftan.com/thermodynamics/HENGINE.HTM

Or type heat engine and/or refrigerator at google search engine