The mass inside a local fluid element is conserved. Therefore we get the balance equation for the mass from the generalised continuity equation setting in the form
| (2.1) |
The momentum inside a local fluid element is . The change of the momentum with time is equal to the sum of the forces on the fluid element
| (2.2) |
Here we have restricted ourself to a viscous, selfgravitating fluid, so the sum of forces on each fluid element consists of
the thermodynamic pressure on the surface of the fluid element
| (2.3) |
the viscous force meaning the irreversible transfer of momentum due to friction between the surfaces of the fluid elements
| (2.4) |
the gravitational force, where for a selfgravitationg fluid is generated by the fluid itself (not only by the local fluid element, because gravity is a long-range force)
| (2.5) |
Using the generalized continuity equation (1.9) we can express the temporal change of each component of the momentum of a fluid element setting in the form
| (2.6) |
With the help of the continuity equation (2.1) we can write the momentum equation in the often used form called Euler equation
| (2.7) |
If we multiply equation (2.7) with the velocity , use and the continuity equation we get an equation for the kinetic energy of a local fluid element in conservation form
| (2.8) |
This equation shows us that locally the kinetic energy is not conserved (otherwise the right-hand side of the equation should be zero).
If we assume that each fluid element is in thermal equilibrium the first law of thermodynamics does hold locally and we can write for the internal energy of a fluid element55Why is there no gravitational effect on the internal energy? Can self-gravity be understood similar to Van-der-Waals forces? This would imply that the pressure of an ideal gas has to be reduced by some factor .
| (2.9) |
with and . Because and are understood as the average temperature and pressure in the fluid element, they can be moved out of the integral so that
| (2.10) |
with . If we take the time derivative of the internal energy we get
| (2.11) |
Because we assume local thermodynamic equilibrium and and the last two terms on the right hand side vanish. The other terms can be computed by using the Reynolds transport theorem and we get the balance equation for the internal energy of a fluid element
| (2.12) |
For investigating the conservation of the kinetic energy of the whole fluid we write using the Reynolds transport theorem (1.8)
| (2.13) |
The second term on the right hand side can be transformed with Gauss’s theorem to an integral over the surface of the whole fluid
| (2.14) |
The surface integral is zero because the velocity on the boundary of the fluid . Therefore we can write
| (2.15) |
Inserting the Euler equation (2.7) and using the continuity equation (2.1) and we can transform this to
| (2.16) |
The first term on the right hand side can be transformed with Gauss’s theorem to a surface integral. Again this surface integral is zero because on the surface of the fluid the velocity . So we are left with
| (2.17) |
which is the generalization of equation (16.2) from Landau and Lifschitz (1991) for general compressible fluids. So we see that the total kinetic energy for an ideal, compressible fluid is not conserved.
If we substitute the first term on the right hand side with the balance equation for internal energy (2.12) and again makes use of Gauss’s theorem we get the following expression
| (2.18) |
One might be tempted to the following conclusion, that
| (2.19) |
If then one requires that the total energy should be constant, one would come to the conclusion
| (2.20) |
This would lead to the statement that the total entropy of an ideal fluid () is not constant but dependent on the time derivative of the potential . But this is not true!
To get the right answer first notice that the potential energy of a selfgravitating system is not but . So in the statement above the definition of the total energy was wrong. The potential of a certain density distribution is the solution of the poisson equation
| (2.21) |
and therefore the potential energy of a selfgravitating system can be expressed as a double integral
| (2.22) |
If we now take the time derivative of this expression for the potential energy of a selfgravitating system
| (2.23) |
Here we used the abbreviation and . 66It is also important to note, that even for a timedependent potential the Greenfunction is not timedependent!
So we see that for a selfgravitating system
| (2.24) |
If we use this expression in (2.18) and use we get
| (2.25) |
Demanding that the total energy of the whole fluid should be conserved leads to the right expression for the time evolution of the total entropy
| (2.26) |
So total entropy is conserved for an ideal fluid, even if we take selfgravity into account77Nevertheless Penrose (Penrose, 1989) pointed out, that the entropy of a selfgravitating fluid should rise up to the point when all matter is collapsed to a black hole, see also Appendix Q.1..
For analyzing the dissipation of kinetic energy in a local fluid element we have to make the same calculations as we did to get equation (2.18), but without the assumption of on the boundary. Doing this we arrive at
| (2.27) |
If we identify the second, third and fourth term on the right hand side with the total time derivative of the entropy, the internal energy and the potential energy respectively we get
| (2.28) |
If we additionally assume that locally the same entropy equation holds as globally
| (2.29) |
or in differential form
| (2.30) |
we are led to the following balance equation for the total energy for a local fluid element
| (2.31) |
which is basically the sum of the three balance equations
| (2.32) | ||||
| (2.33) | ||||
| (2.34) |
If we do not include potential energy in the total energy but use instead we can write
| (2.35) |
which can be split into two balance equations
| (2.36) | ||||
| (2.37) |
where gravity is now just treated as a source in the balance equation of the kinetic energy.
One might recognize, that we didn’t mention selfgravity. In fact for the derivation of the energy equation (2.31) we assumed, that the potential energy of the local fluid element is not due to selfgravity but due to some external potential generated by the rest of the fluid. This assumption is valid in case the local fluid element does not contribute much to the global potential . This means, that
| (2.38) |
Because we know from the last chapter that the term transforms into in the selfgravity case we could implement a correction in (2.35), which accounts for a rising ”selfgravitiness” of a local fluid element like
| (2.39) |
Nevertheless a more practical solution for numerical simulations might be to refine the grid in such a way that the condition holds everywhere in the computational domain. 88Equivalent to the criterion described in this paragraph might be the so called Truelove criterion (Truelove et al., 1997).
Using the vector identity (M.2) we can express the euler equation (2.7) like
| (2.42) |
We can obtain an equation for the vorticity of the flow field by taking the curl of this form of the euler equation
| (2.43) |
If the time and space derivative of the velocity field commute, if the spatial derivatives of the velocity field commute99This is true if the velocity field is continuously differentiable twice and if the gravitational field can be expressed by (means as the gradient of a potential) we see that the second term on the left hand side and also the term due to gravity are zero. This is so because these terms are equivalent to the curl of a gradient of a scalar field which is a zero vector. So we get
| (2.44) |
The first term on the right hand side is zero again, because it is the curl of a gradient field and so we get as the vorticity equation 1010An equivalent equation would be an equation for the rotation tensor, because the rotation tensor is dual to the vorticity vector (also see appendix I). The advantage of formulating an equation for the rotation tensor would be, that the rotation tensor can be consistently defined in other dimensions than three and also in curved space. for some arbitrary fluid with
| (2.45) |
or in vector notation with
| (2.46) |
| (2.47) | ||||
| (2.48) | ||||
| (2.49) |
with Newtonian gravity (Poisson Equation):
| (2.50) |
and an equation of state dependent on the material of the fluid. 1111See Appendix A.
| (2.51) |
| (2.52) |
| (2.53) |