Generator or Large Battery Bank?
Dedicated electric generators on board boats are usually only reserved for large boats because of their weight and size. Unless there is a desire for large amounts of electricity such as for air conditioning, electric stoves, water heaters, or microwave ovens, they are generally not needed.
For “off-the-grid” situations generators can serve to charge the batteries but many times this function is left for the alternator from the engine and or solar panels.
Small 110v/220v appliances such as laptops can be run from small inverters that draw their electricity from the DC batteries by “inverting” the 12 or 24-volt DC electricity to 110v/220v AC electricity.
When it comes to large amounts of electricity requirements on a boat which is generally just air conditioning or perhaps clothes washing and drying, either a generator or a large Lithium-Ion battery bank must be onboard.
In many cases, a large Lithium-Ion battery bank can suffice to run air conditioning if the boat is plugged into shore power afterward to recharge the batteries. More recently higher powered alternators have become available, they run directly off the main propulsion engine to quickly recharge the Li-Ion battery bank. This removes the need for a dedicated and heavy generator.
This discussion of onboard lifestyle can get pretty deep so this is left as an introduction here and revisited in the Bareboat Charter Course where Lithium-Ion batteries are discussed more as an almost imperative solution for the off-grid energy-demanding boating lifestyle.