[code]I receive question related to this simulation as private message.
Good morning, professor.
I have been using a model like this for my students.
My students learn that the "starting point" is 300 K, 100 kPa, 1.00 L, and approximately 0.040 moles of gas. If we use air, we find that the "average velocity" is something like 450 m/s, not 100 m/s. why is there a discrepancy between this simulation and the value that I've calculated?
I assume you are talking about smulation at [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=25.0]Molecular Model for an Ideal Gas[/url]
The velocity of ideal gas depends on temperature and mass of the particle.
The average velocity for hydrogen atom will be much larger than average velocity for oxygen atom.
I did not specify temperature and mass of the particle in the simulation.
The simulation was designed to show relation between number of particle N, pressure P and Volume V.
You can ask student what is the initial temoerature if the simulation is for air.
The temperature of the simulation is related to velocity.
How to change the velocity so that it is can be used to simulate air at room temperature.
I just pick up simple number: N=200 P-50 V=100 without specify any unit for the above parameter.
In reality, there is more than 10[sup]19[/sup] particle in 1 cm[sup]3[/sup].
There is no way to add so many particle in the simulation.
The pressure is proportion to the number of objects on top of the movable piston.