What is a coil of a wire that when carrying an electric current produces a magnetic field?

When a current carrying coil of water is running, creating an electric field, it is called a solenoid.