A steam engines' primary function is to convert energy from heat into mechanical energy. This process relies on the growth of water vapor as it is heated. The fundamental components of a steam engine include: a boiler, which produces high-pressure steam; a cylinder where the steam drives a piston; and a connecting rod that delivers the piston's mo