Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.8K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Advancing from 1D diffusion model to 2D and 3D

Posted 11 years ago

I have a sample of 1D diffusion model, and I wish to upgrade it to a 2D and than 3D.

Diffusion sample

I simply tried to add another coordinate in the code of my sample but from some reason it doesn't work.

enter image description here

Can someone tell what am I doing wrong? I uploaded both files, so I would appreciate if someone could give some advice on this one. Thanks

Attachments:
POSTED BY: Petar M
4 Replies
POSTED BY: Udo Krause

Make the following changes in the diffusion differential equation: For 1D -> 2D, make substitutions x -> r and d^2/dx^2 -> d^2/dr^2 + (1/r)d/dr For 1D -> 3D, x -> r and d^2/dx^2 -> d^2/dr^2 + (2/r)d/dr

POSTED BY: S M Blinder
Posted 11 years ago

Thanks, once again you step in to help. I have managed though to do this other way in the meantime, since I didn't understand the advice of Mr. Blinder completely, I did this diffusion with the use of Distribution of random walks. It worked just fine I think.

Anyway I very much appreciate your effort to help me.

Thanks once again to you and Mr. Blinder.

POSTED BY: Petar M
Posted 11 years ago

Thanks for reply, but I am not sure I understand why is this so. How would it look in code? r is radius? What is with diffusion constant? And also, I still don't understand why my solution is not working?

POSTED BY: Petar M
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard