|
|
> http://texturegarden.com/java/rd/
>
> Some seriously interesting stuff happening in there. Now if I could just
> figure out the equations involved...
I thought you were trying to simulate an organ pipe. Still, I think you'd
have more chance making one from wood than getting a simulator working that
produces a recognisable organ sound :-)
> (One day I really must learn how to comprehend differential equations!)
What bit don't you understand about the reaction/diffusion equations?
There's nothing in there different to the wave equation.
In each cell, U and V are the amount of each chemical.
dU/dt = Du * L(U) - U*V^2 + F*(1 - U)
dV/dt = Dv * L(V) + U*V^2 - (F + k)*V
Du, Dv, k and F are constants. L(x) is the Laplacian operator, which you
know from the wave equation (2nd differential in each direction added
together).
So just calculate the right side of those equations, and that will tell you
how much U and V should change.
Seems simple enough to me to implement if you've done the wave equation.
Post a reply to this message
|
|