Page 1 of 1

Diffusion in Solids

Posted: Tue Sep 27, 2011 6:47 pm
by scienceman213
I want to do a project where i find the diffusion in solids using a computer program that i design. Could anybody help me with the diffusion equation and how to program it? :?

Re: Diffusion in Solids

Posted: Mon Oct 03, 2011 10:04 am
by hhemken
scienceman213,

This seems a bit advanced. I saw this forum where that exact issue is being discussed:

http://www.physicsforums.com/showthread.php?t=191812

The discussion sounds way above the 6-8 grade level. What are your calculus and programming skills? Have you ever written a program that solves differential equations? What approach did you have in mind? Here is a free/open source software package that might help:

http://freshmeat.net/search?q=diffusion ... mit=Search

although it may be a challenge to figure out (I did not look at it closely) and may be focused on something you don't really care about directly. You can also search with keyword sets such as:

"diffusion equation" program java
"diffusion equation" program python
"diffusion equation" program c++

Alternatively, you could take an entirely different approach and write a program that moves balls or circles around on a 2 dimensional surface at random, e.g. Brownian motion, with or without collision detection and see if it simulates diffusion in a realistic manner. You'll be able to vary how much each ball moves during each time stamp, how many time steps to simulate, output the simulation to an animation, and probably a few other things. If you have any experimental data you want to try and reproduce, you would in effect be trying to discover your own scientific model of diffusion.

Please let us know what you think.

Re: Diffusion in Solids

Posted: Thu Oct 06, 2011 8:13 pm
by LeungWilley
Hi Scienceman213,
One additional tools that could be useful to you is called SciPy. http://www.scipy.org/
This is a pretty powerful and free programming package that maybe of use for your experiment.

Some additional reference links on using this program to put in diffusion equation is as follows:
http://mail.scipy.org/pipermail/scipy-u ... 28164.html

Hope this helps. Please write back and let us how your plan is proceeding.
Good Luck!
Willey