Release of energy stored in either a battery or a capacitor.