A steam engines' primary function is to convert thermal energy into motion. This process relies on the expansion of water vapor as it is heated. The fundamental components of a steam engine contain: a boiler, which produces high-pressure steam; a cylinder where the steam acts upon a piston; and a connecting rod that transmits the piston's motion t