## Diffusion in Solids

Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).

Moderators: MelissaB, kgudger, Ray Trent, Moderators

### Diffusion in Solids

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?
scienceman213

Posts: 2
Joined: Tue Sep 27, 2011 6:39 pm
Project Question: Computer Science, Mathematics, (Thinking in (Semi-)Circles: The Area of the Arbelos)
Project Due Date: November 28th
Project Status: I am just starting

### Re: Diffusion in Solids

scienceman213,

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

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.
Heinz Hemken
Mentor
Science Buddies Expert Forum
hhemken
Expert

Posts: 266
Joined: Mon Oct 03, 2005 3:16 pm

### Re: Diffusion in Solids

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-user/2011-January/028164.html

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

Posts: 30
Joined: Mon Jan 12, 2009 11:15 pm
Occupation: Electrical Engineer
Project Question: n/a
Project Due Date: n/a
Project Status: Not applicable