A basic thermodynamic problem in the dynamic interaction between vortices and defects