 From Ampère's law one can conclude that the magnetic field within a coil of wire (also called a solenoid) is constant inside the coil and zero outside the coil.This property is useful in circuits to store energy within a magnetic field.Inductors resist change in currents, therefore it will produce a current opposing the change.