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

Postby scienceman213 » Tue Sep 27, 2011 6:47 pm

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

Re: Diffusion in Solids

Postby hhemken » Mon Oct 03, 2011 10:04 am


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
Science Buddies Expert Forum
Posts: 266
Joined: Mon Oct 03, 2005 3:16 pm

Re: Diffusion in Solids

Postby LeungWilley » Thu Oct 06, 2011 8:13 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:

Hope this helps. Please write back and let us how your plan is proceeding.
Good Luck!
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

Return to Grades 6-8: Math and Computer Science

Who is online

Users browsing this forum: No registered users and 1 guest