**Moderators:** MelissaB, kgudger, Ray Trent, Moderators

3 posts
• Page **1** of **1**

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**Occupation:**Student: 7th Grade**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

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.

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.

Heinz Hemken

Mentor

Science Buddies Expert Forum

Mentor

Science Buddies Expert Forum

- hhemken
- Expert
**Posts:**266**Joined:**Mon Oct 03, 2005 3:16 pm

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

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

3 posts
• Page **1** of **1**

Return to Grades 6-8: Math and Computer Science

Users browsing this forum: No registered users and 1 guest