A
generator in electrical
circuit theory is one of two ideal elements: an ideal
voltage source, or an ideal
current source. These are two of the fundamental
elements in circuit theory. Real electrical generators are most commonly modelled as a non-ideal source consisting of a combination of an ideal source and a resistor. Voltage generators are modelled as an ideal voltage source in series with a resistor. Current generators are modelled as an ideal current source in parallel with a resistor. The resistor is referred to as the
internal resistance of the source. Real world equipment may not perfectly follow these models, especially at extremes of loading (both high and low) but for most purposes they suffice.