The mechanical work of steam is converted to electrical energy by a generator.