Electricity is generated from primary energy sources through conversion processes and distributed as electrical power. It can be produced using various methods that exploit electromagnetic induction, the photoelectric effect, thermoelectric and piezoelectric effects, and chemical reactions. Common devices like generators, solar cells, thermocouples, piezoelectric cells, and batteries are used to convert different forms of energy into electrical current based on these underlying principles and effects. Electricity then flows through circuits, with the characteristics of current, voltage, and resistance following relationships defined by Ohm's law.