An inviscid mixing toy.

L. F. Rossi
Department of Mathematical Sciences
University of Delaware


Welcome! Come on in and play!

You do not have to know about mathematics or fluid dynamics to have some fun with fluids. I wrote a more primitive applet a long time ago to demonstrate inviscid mixing in a simple rotating fluid. Many enjoyed playing with it, and I promised to refine the project one day. Well, that was many years ago. This year, I spent a few hours updating the code and adding more educational features to it. I hope you enjoy it.


What you need.

This applet requires a Java 2 plugin. Most browsers will offer to grab one for you if you do not have one already.


What is here:

In the applet below, you can see two small square windows and some sliders.




What to do:

I wrote this applet to demonstrate inviscid mixing, but you can do whatever you want with it. Here are some ideas.

For curious science geeks:

It's hard to mix without diffusion, so you might argue that no mixing goes on here.  In fact, if you reverse any flow field in these experiments, you can reverse the mixing effect.  This goes contrary to anyone who has every stirred cream into their coffee.  There are two important mixing processes that are relevant to this discussion.
Inviscid mixing greatly enhances molecular diffusion.  Diffusion works well over very short distances but terribly over moderate distances.  Effective inviscid mixing can intermingle the passive quantity among the bulk fluid so that the distances are very small.  Then, molecular diffusion can act quickly to mix the two together.  This is why it is not enough to simply add cream to coffee... it must be stirred if you hope to enjoy it right away.

For curious computer geeks:

Feel free to take this applet, play with it, modify it and use it on your own web site.  It's not pretty.  I just coded it up for fun.  If you do take it, you must abide by the terms of the GNU Public License.  (Essentially, this means you need to keep the code open.)  The applet accepts two parameters.  One is NPARTICLES that places an upper limit on total number of markers that can be released into the fluid.  The second parameter is POLYN which sets the order of the polynomial used for the velocity profile.  I use a Lagrange polynomial interpolant on a uniform mesh for the radial velocity profile, so POLYN is the total number of interpolation points.

The source.


rossi@math.udel.edu