A steam engine is a heat engine that performs mechanical work using steam as its working fluid. In simple terms, the steam engine uses the expansion principle of chemistry, where heat applied to water tranforms the water to steam and then pushes a piston ( cylinder ). This pushing force is then transformed, by way of a connecting rod and turbine wheel, into rotational force for work.
Steam engines are external combustion engines, where the working fluid is separated from the combustion products. Non- combustion heat sources such as solar power, nuclear power or geothermal energy may be used. The ideal thermodynamic cycle used to analyze this process is called the Rankine cycle. In the cycle, water is heated and changes into steam in a boiler operating at a high pressure. When expanded using pistons or turbines mechanical work is done. The reduced-pressure steam is then exhausted to the atmosphere, or condensed and pumped back into the boiler.
In general usage, the term steam engine can refer to either complete steam plants (including boilers etc.) such as railway steam locomotives and portable engines, or may refer to the piston or turbine machinery alone, as in the beam engine and stationary steam engine.