The first law of thermodynamics states that
$$\frac{D}{Dt}(K+U)=W+H,$$
where K is the kinetic energy, U is the internal energy, W is the power of the external forces and H is the heat flux. I have seen (in my textbook) how this was reduced to the local law
$$\rho\frac{De}{Dt}=\sigma:D-\nabla\cdot q+\rho\mathbb E,$$
where $\rho$ is the density, $e$ is the energy per unit mass, $\sigma$ is the stress tensor, $D$ is the rate of deformation tensor, $q$ is the heat flux vector, $\mathbb E$ is the internal heat generation per unit mass. And ":" is the double dot product.
I want to show that the above is equivalent to the following:
$$\rho\frac{D}{Dt}(e+\frac{v^2}{2})=\nabla\cdot(\sigma\cdot v)+\rho f\cdot v+\rho\mathbb E-\nabla\cdot q$$ Here, $v$ is the velocity and $f$ is the net body force per unit mass.
(The book is An Introduction to Continuum Mechanics by J. Reddy, a Cambrige edition.)