Thermodynamical derivation of a hydrodynamical model of unhomogeneous superfluid turbulence