POV-Ray : Newsgroups : povray.off-topic : Reaction/diffusion Server Time
6 Sep 2024 17:20:47 EDT (-0400)
  Reaction/diffusion (Message 1 to 5 of 5)  
From: Invisible
Subject: Reaction/diffusion
Date: 24 Oct 2008 08:30:57
Message: <4901c001@news.povray.org>
http://texturegarden.com/java/rd/

Some seriously interesting stuff happening in there. Now if I could just 
figure out the equations involved...

(One day I really must learn how to comprehend differential equations!)


Post a reply to this message

From: scott
Subject: Re: Reaction/diffusion
Date: 24 Oct 2008 09:28:21
Message: <4901cd75$1@news.povray.org>
> 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

From: Invisible
Subject: Re: Reaction/diffusion
Date: 24 Oct 2008 09:43:11
Message: <4901d0ef$1@news.povray.org>
scott wrote:

> I thought you were trying to simulate an organ pipe.

You know me - if there's a way to use mathematics to produce trippy 
visuals, it must be done! ;-)

> Still, I think 
> you'd have more chance making one from wood than getting a simulator 
> working that produces a recognisable organ sound :-)

Well, I suspect I'm doomed to fail either way, but hey! :-P

>> (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.

The hard part is FINDING THIS EQUATION! >_<

I've found several sites about this stuff, but none of them present a 
formula I can comprehend. Now that I have a working formula and I know 
what all the variables are supposed to be, I stand a chance...


Post a reply to this message

From: scott
Subject: Re: Reaction/diffusion
Date: 24 Oct 2008 09:48:36
Message: <4901d234$1@news.povray.org>
> The hard part is FINDING THIS EQUATION! >_<
>
> I've found several sites about this stuff, but none of them present a 
> formula I can comprehend. Now that I have a working formula and I know 
> what all the variables are supposed to be, I stand a chance...

Wikipedia has a more general form under the "Reaction Diffusion Equation" 
page, the U*V^2 + F... bits on the right side are specific, and the ones I 
posted are from the "Grey-Scott model".  I only know that because there was 
a chapter in GPU Gems where they implemented it :-)


Post a reply to this message

From: Invisible
Subject: Re: Reaction/diffusion
Date: 24 Oct 2008 09:54:18
Message: <4901d38a$1@news.povray.org>
scott wrote:

> Wikipedia has a more general form under the "Reaction Diffusion 
> Equation" page, the U*V^2 + F... bits on the right side are specific, 
> and the ones I posted are from the "Grey-Scott model".  I only know that 
> because there was a chapter in GPU Gems where they implemented it :-)

LOL! Yeah, everybody uses the Grey-Scott model, apparently. (Probably 
because it's the only one they can find equations for!)

Now we know what Doc Brown was yelling about all those times he said 
"Grey-Scott!" ;-)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.