And the case given by you is in the case of a moving charge but when a closed loop carrying current is placed in the magnetic field it experiences torque and we are also able to calculate the work done by the magnetic field in rotating the closed loop and that's why we associate potential energy...
@vanhees71
According to you magnetic field does no work then how it is able to store energy because to consume energy it is necessary to do work so how the energy stored in field can be used
i'm unable to clear my doubt regarding this matter.
when a magnetic field exert force on a moving charge the work done by it is 0.But bar magnet do work.And i read that magnetic field is a non conservative field so work done by it in a closed path is not 0.But in case of a moving charge it is 0 and magnetic field also store energy so it have the...