An electric current creates a magnetic field and a moving magnetic field will create a flow of charge.
A bar magnet produces magnetic fields the around it.
Magnetic fields also can be produce by an electric current in a wire.

Electromagnet is a temporary magnet. It is made by winding a coil of insulated wire round a soft iron core.

direction of the current flow. When we are drawing directions of magnetic fields and currents,
we use the symbol ⊙ and ⊗.
The symbol⊙ for an arrow that is coming out of the page and
the symbol⊗ for an arrow that is going into the page.
It is easy to remember the meanings of the symbols if you think of an arrow with a head and a
tail.

When the arrow is coming out of the page, you see the head of the arrow (⊙).
When the arrow is going into the page, you see the tail of the arrow (⊗).
There is a simple method of showing the relationship between the direction of the current flowing in a conductor and the direction of the magnetic field around the same conductor. The
method is called the Right Hand Rule.

