CarnotEngine Simulation