A direct-current (DC) generator is a rotating machine that supplies an electrical output with unidirectional voltage and current. ... The field is produced by direct current in field coils or by permanent magnets on the stator. The output, or armature, windings are placed in slots in the cylindrical iron rotor.