Go Back   Science Forums Biology Forum Molecular Biology Forum Physics Chemistry Forum > General Science Forums > Physics Forum
Register Search Today's Posts Mark Forums Read

Physics Forum Physics Forum. Discuss and ask physics questions, kinematics and other physics problems.


particle motion simulation

particle motion simulation - Physics Forum

particle motion simulation - Physics Forum. Discuss and ask physics questions, kinematics and other physics problems.


Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-07-2004, 03:09 PM
Andrea
Guest
 
Posts: n/a
Default particle motion simulation



Hi,
I'm doing a Phd in physics. I must simulate the gas diffusion into a
porous glass. But I don't know the world of simulation so to start I
want to simulate a simple particle that move into a rectangle and at
the centre of one wall of the rectangle there is a narrow, long
rectangle that simulates one porous. Something like this:

-------------------------
| |
| ° |
| |
------------------------------- |
|_______________________________ |
| |
| |
| |
-------------------------

I want to do this with C++, or C. Is there someone that can give me
some example of code to doing that? I've trying to write the program
and if you want I can send it, but I think it doesn't work very well…
Thank you for the attention

Andrea
Reply With Quote
  #2  
Old 09-07-2004, 11:41 PM
N:dlzc D:aol T:com \(dlzc\)
Guest
 
Posts: n/a
Default particle motion simulation

cross posting to sci.chem:
"Andrea" <[Only registered users see links. ]> wrote in message
news:[Only registered users see links. ] m...


Reply With Quote
  #3  
Old 09-08-2004, 08:01 AM
Wilco Oelen
Guest
 
Posts: n/a
Default particle motion simulation

"N:dlzc D:aol T:com \(dlzc\)" <N: dlzc1 D:cox T:[Only registered users see links. ]> wrote in message news:<PGr%c.106366$4o.60805@fed1read01>...

I once wrote a simulation program in C, that simulated diffusion of
smoke through a wall with a number of holes in it. This simulation was
based on a cellular automaton of a size of approximately 1000*1000
cells. On modern computer hardware I expect this kind and size of
simulations can almost be done 'real time'. Smoke particles were
represented by a certain state for a cell. Motion was represented by
letting the 'smoke-state' move along the cells by interaction with
neighbours, according to simple random rules.

I used a book of Margolis on the subject, which contains very good
descriptions of different types of automata, and how they can be used
to simulate diffusion, flow of liquids and many other physical
phenomena. It is a mid-80's book. It is approximately 10 years ago I
did this. I'm not totally sure, but I think the book is the following:

Toffoli and Margolis "Cellular Automata Machines"

This book should be present in a well-assorted university library. The
internet also has many sites on cellular automata, just google
"cellular automata" or "margolis automaton".

The difficult - and interesting - part is to design the
state-transition rules, such that the massive parallel combination of
all discrete simple state transition rules statistically speaking
approaches the time-continuous rules of physics of a system,
consisting of a large number of particles.

Hope this helps a little bit.

Wilco
Reply With Quote
Reply

Tags
motion , particle , simulation


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FFiMP: Misconceptions about Special Relativity Jan Gooral Physics Forum 0 05-22-2008 02:53 PM
What is Gravity? sdr@sdrodrian.com Physics Forum 1 01-27-2008 02:53 PM
The Achilles Heel of String Theory. S D Rodrian Physics Forum 7 07-08-2006 02:40 PM
EXPLAINING TIME DILATION TomGee Physics Forum 24 11-18-2004 01:52 AM
21st Century Dynamics Donald G. Shead Physics Forum 5 08-14-2003 11:43 PM


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2005 - 2012 Molecular Station | All Rights Reserved
Page generated in 0.16603 seconds with 16 queries