An alternator is an electrical generator that converts mechanical energy from a rotating shaft into electrical energy. It is used in automobiles, diesel-electric locomotives, ships, and power generation stations. There are different types of alternators based on their design, output power, speed of rotation, and cooling method. Common types include salient pole, cylindrical rotor, single phase, three phase, brushless, and turbo alternators. Automotive alternators charge the vehicle's battery and power electrical components. Locomotive alternators power traction motors on trains. Marine alternators are adapted for use on boats. Radio alternators were historically used to generate radio frequencies for transmissions.