Joule's law state that the internal energy of a perfect gas is a function of the temperature only, i.e.
u=f(t)