# Does conservation of energy for unsteady ideal fluid hold?

1. Mar 5, 2012

### dEdt

My text was able to show that for an ideal (incompressible and inviscid) and steady fluid in a gravitational field, the energy density $E=\frac{1}{2}\rho u^2 + \rho\chi+P$ is constant for any fluid element, where $\chi$ is the gravitational potential. That is
$$\frac{DE}{Dt}=\frac{\partial E}{\partial t} + \mathbf{u}\cdot\nabla E=0$$.Does this hold for an unsteady ideal fluid? If not, what causes the change in the mechanical energy of the fluid element?

2. Mar 5, 2012

### Jano L.

Hello dEdt,
beware, energy density is $\epsilon = \frac{1}{2}\rho u^2 + \rho\chi$. Pressure does not contribute to energy density. For example, consider incompressible liquid; there can great pressure in it but no work is required to produce it, since it does not change its volume. The equation you wrote is supposed to mean that the right-hand side is constant along the streamline, even if the fluid is moving. This is true for incompressible liquid without friction. For compressible liquid there is enthalpy density there instead of pressure.

Jano

3. Mar 5, 2012

5. Mar 6, 2012

### dEdt

I don't see the problem with recognizing two sources of potential energy, one from gravity and the other from pressure. In your example, $K+\int{\rho ghdV} + \int{\rho ghdV}$ is conserved if $K+\int{\rho ghdV}$ is conserved, because h doesn't change. In other situations, such as in unsteady flow, where the total gravitational potential energy changes, it is only the first expression that is conserved, because although the walls of the container (ie the source of the pressure) don't do any work, pressure does do work when the fluid expands, which is the only time gravitational potential energy will ever change.

At any rate, you can frame my original question this way: in steady, ideal flow, there's a mysterious quantity $E=\frac{1}{2}\rho u^2+\rho\chi+P$ which is conserved for any fluid element. Is this quantity still conserved in unsteady ideal flow?

6. Mar 6, 2012

### Jano L.

Think of it this way. Energy is defined in terms of work. How much work do you need to fill a tank of height $h$ and base area $S$ with water (density $\rho$), if the water is initially in the lake at the same level as the base of the tank?

This work defines energy of the system. You can calculate this by adding the small amount of work needed to raise the level of the water by $\Delta h$. You will see the work is $\frac{1}{2} S\rho gh$ which defines the total energy of the system. There is no trace of pressure energy, precisely because the liquid is incompressible and it does not take any work to increase the pressure in the liquid.

To your question: in nonstationary flows the expression is not constant.

If the nonstationary flow is potential (means $\mathbf v = \nabla\phi$), the equation reads

$$\frac{\partial \phi}{\partial t} + \frac{1}{2}v^2 +\chi + p/\rho = f(t)$$

for some function $f(t)$.

7. Mar 6, 2012

### dEdt

Okay, I've understood. Thanks for taking the time to explain.

8. Mar 7, 2012

### Jano L.

Glad to be of help,
Jano