While the element of powering the generator might be different, they all tend to work in much the same manner. The fuel, whether it is diesel or a battery, allows the onboard motor to start. This creates mechanical energy in the generator, which then gets turned into electrical energy that you will be able to use. No matter the size of the generator, the basic premise and concept is the same.