Trying to simulate gas

  • Thread starter Tom83B
  • Start date
  • #1
47
0
Hi, I'm trying to simulate different expansions and processes in gas and I have 3 questions:

If the average distance, that a molecule goes without hitting another one is [itex]l[/itex] (by the way, could you please tell me what this distance is called in english?) and [itex]x[/itex] is the distance it's already passed without hitting another molecule, is the probability, that it hits a molecule at the current distance [itex](\frac{1}{2})^{x/l}[/itex]? (taken from the assumtion, that it passes the distance [itex]l[/itex] with a 50% probability)

Is it useful (/common practice) to distribute the velocities of the molecules correspondently with the Maxwell-Boltzmann distribution or can I just give every molecule the same, average speed?

How do I proceed with the collision of two molecules? From what I've heard I want to calculate the probability that it hits another one, get a random number from 0 to 1 and find out if it hit something. But what next? How do I choose the molecule that it has hit?
 

Answers and Replies

  • #2
Hepth
Gold Member
448
39

Related Threads on Trying to simulate gas

  • Last Post
Replies
6
Views
5K
Replies
0
Views
2K
Replies
8
Views
1K
  • Last Post
Replies
2
Views
16K
Replies
1
Views
3K
Replies
1
Views
2K
Replies
2
Views
1K
Replies
4
Views
2K
Replies
0
Views
2K
Replies
2
Views
811
Top