what is the purpose of the primary windings of a transformer
Transformer AÂ varying current in the transformer's primary winding creates a varying magnetic flux in the transformer core and a varying magnetic field impinging on the secondary winding. This varying magnetic field at the secondary winding induces a varying EMF or voltage in the secondary winding due to electromagnetic induction. The primary and secondary windings are wrapped around a core of infinitely high magnetic permeability[e] so that all of the magnetic flux passes through both the primary and secondary windings. With a voltage source connected to the primary winding and load impedance connected to the secondary winding, the transformer currents flow in the indicated directions. (See also Polarity.)
Electromagnet The main advantage of an electromagnet over a permanent magnet is that the magnetic field can be quickly changed by controlling the amount of electric current in the winding. However, unlike a permanent magnet that needs no power, an electromagnet requires a continuous supply of current to maintain the magnetic field.