Take the 2-minute tour ×
Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. It's 100% free, no registration required.

I am a mathematician and am originally from the math side of stackexchange. I want to model the behaviour of a drop of ink diffusing in water. I dont want to simply use the diffusion equation $u_t(\mathbf{x},t)=D \triangledown^2u(\mathbf{x},t) $ because firstly it will produce a diffusion of the ink completely symmetrical in the $x$, $y$ and $z$ direction, secondly, it does not take into account the gravity producing a force (say in the $z$-direction) and lastly, it does not take into account the velocity of the moving ink particles and the different pressure at each point.

Now I would like (if possible) to create a program that will give a result that looks similar to the sort of chaotic diffusion we see in real life, possible by creating a non-symmetrical initial disturbance in the form of an inital velocity in the ink. What formulas should I be looking at in this case? Can I ignore some of the things I've mentioned above and still get a realistic result? Is it possibly true that the problems I've mentioned can be fixed by not taking $D$ to be constant but rather a function of the velocity, density and pressure and then using the formulas from fluid dynamics to find these at each position and time?

As I said, I am a mathematician and I apologize in advance for the possibility that there are silly errors in my question or that my limited understanding of physics makes this a non-sensical question all together. Any help would be greatly appreciated though!

share|improve this question

1 Answer 1

up vote 4 down vote accepted

If the drop is very much static (in still water) and of similar fluid properties to the water around it (so that the ink just labels some initial region), then this is the correct equation to use. If, however, you want to treat the ink as having distinct properties from the water, then you want the Navier-Stokes equations. Since you are interested in gravity, I assume you have a different density in mind for the ink, and probably a different viscosity as well.

Certainly turbulent fluids mix much faster than diffusion predicts. Generally, the mechanism by which this enhanced diffusion takes place is this: First, turbulent fluid flow, via nonlinear coupling term $(\mathbf{v}\cdot\nabla)\mathbf{v}$, creates smaller and smaller scale structures, i.e., fine layers of ink and water. Second, once these scales are small enough, diffusion is effectively fast, having only very small length scales to mix together. This depends on your system being unstable to perturbations, which depends a great deal on the geometry of your ink drop and the ink properties.

As a starting point, you could treat the two fluids as immiscible, asking how pure parcels of fluid disperse due to shear or the Rayleigh-Taylor instability. Many Navier-Stokes solvers have been written; this page provides a non-exhaustive list.

A more complex picture allows for true mixing, i.e., by diffusion. This can also be done, although it involves keeping track of the "ink density" and having a means of computing properties like density and viscosity of dilute ink. A simplistic approach might be to, at each time step, advance the fluid code, then apply a separate diffusion step, and then repeat, while keeping track of the ink density and the viscosity at each grid point.

share|improve this answer
    
Thanks a lot for your answer! So if I understand correctly I would at each step first apply the N-S equations to determine the velocity/density at each point. Then I use this distribution to determine the diffusion of the ink (diffusion eq) and so I can then find the ink density everywhere. Then I proceed to the next time step? –  Teun Verstraaten Feb 26 '13 at 22:08
    
That would be a simplistic approach. You'd have to do some work to characterize how inaccurate that approach might be. As a first attempt, this might be a good start. If you're trying to get something published, then you should be doing considerably more background reading and talking to experts in hydrodynamic simulation. –  KDN Feb 26 '13 at 23:13
    
Allright thanks a bunch! I am not at all looking to get anything published by the way. I did a project where we modeled the distributing of heat throughout a cake as it is being heated from the top using the heat/diffusion equation. But the result was a little bit boring. I just want some more practice with modelling and going for something a little bit more complex. Thanks! –  Teun Verstraaten Feb 27 '13 at 11:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.