Message Boards Message Boards

0
|
7611 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 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

Thanks for reply, but I am not sure I understand why is this so.

Mr. Blinder presumes that you use in 2D a point source for diffusion, so the problem has (for a homogenous material) radial symmetry and he mentions the radial form of the Laplacian, the angle does not matter because of the radial symmetry. You can use Mathematica to find out the form of the Laplacian in diverse co-ordinate systems. Symmetry is always an important point in reducing computational complexity of problems, you know.

POSTED BY: Udo Krause
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

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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract