Definition of Magnetic Energy:
The rate of energy change is found in the following way.
The surface integral term represents the amount of energy that
flows out
of the region through the surface, namely the Poynting flux. The volume
integral term represents dissipation, namely Joule heating.