Simulation of Steam Engines