- #1
Jason D.
- 6
- 0
Hi everyone,
I know that in P=nRT/v
R = 8.314 m3*Pa/mol*k
Now, when you are trying to calculate P, if you have volumn in m3 on the bottom, everything cancels out and you are left with Pa.
I've just developed a simulator which simulates particle motion over time and calculates pressure in a box. The box however is in 2D, not 3D, so I only have m2 on the bottom. The number's I'm getting are roughly correct with the ideal gas law, but are all off by a factor 1000 or 10000 for some reason. I can't see this factor being a coincidence, I think it's because of the m3, m2 difference but am unsure of how to calculate R for m2, or why it would be 0.008314 (e.g. a factor of 1000) for m2.
If you have any suggestions, let me know! Thanks.
Jason
(PS: I had to do the simulator as a project. Not sure if this this qualifies it as a "homework" question or not).
I know that in P=nRT/v
R = 8.314 m3*Pa/mol*k
Now, when you are trying to calculate P, if you have volumn in m3 on the bottom, everything cancels out and you are left with Pa.
I've just developed a simulator which simulates particle motion over time and calculates pressure in a box. The box however is in 2D, not 3D, so I only have m2 on the bottom. The number's I'm getting are roughly correct with the ideal gas law, but are all off by a factor 1000 or 10000 for some reason. I can't see this factor being a coincidence, I think it's because of the m3, m2 difference but am unsure of how to calculate R for m2, or why it would be 0.008314 (e.g. a factor of 1000) for m2.
If you have any suggestions, let me know! Thanks.
Jason
(PS: I had to do the simulator as a project. Not sure if this this qualifies it as a "homework" question or not).