Carnot Engine Simulation