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
|
|
|
|
(I.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
|
|
|
|
(I.2) |
In this case we see that if is spatially constant at a time , i.e.
, , it will stay constant forever
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|