There are two types of electrical generators - AC and DC generators. AC generators, also called alternators, convert mechanical energy into alternating electrical energy, while DC generators produce direct current. Electric motors operate by using a current in a loop of conductor to generate opposing Lorentz forces on opposite sides of the loop, causing the loop to rotate. Alternating current has a root mean square (RMS) value which is the maximum value divided by the square root of two and is used to calculate average power in a resistive circuit with AC.