Consider a one dimensional system with fluid in it. Mass and momentum balance equation of the system are (in the absence of external forces and assuming Newtonian behaviour valid for viscocity), \begin{eqnarray} \frac{\partial \rho}{\partial t} + \frac{\partial}{\partial x}(\rho u)= 0\\ \rho\frac{\partial u}{\partial t} = -c_s^2\frac{\partial \rho}{\partial x} + \nu\frac{\partial u}{\partial x^2} \end{eqnarray}
What is the total mechanical energy of the system? I would take energy as solely kinetic energy of the system.
\begin{eqnarray} E = \sum\frac{1}{2}\rho u^2 \end{eqnarray}
It seems that this definition is incorrect as if we start with a system of initial density variation $\rho(x,0) = \rho(x)$ and zero velocity everywhere $u(x,0)= 0$ then we start with zero kinetic energy and zero total energy. But from the mass and momentum balance equations it is clear that there will motion in fluid due to density variations. So we have higher energy than we started with.
What is wrong with definition of total energy I am assuming? which part of the energy should be taken into account?