There are two possibilities to implement a color field in a fluid code. One can treat color like the density, i.e. the color variable obeys a conservation law like the density
| (D.1) |
In this case will exactly behave like density if density and color have the same initial value.
On the other hand one can treat it like a specific quantity obeying a conservation law like
| (D.2) |
In this case we see, that if is spatially constant at a time , i.e. , , it will stay constant forever
| (D.3) | ||||
| (D.4) | ||||
| (D.5) | ||||
| (D.6) |