An Ideal Gas Is Just a Bunch of Balls. Here’s How to Model it in Python

<p>The Ideal Gas Law. It&rsquo;s covered in pretty much every middle school physical science class. It gives a relationship between pressure (P), temperature (T), volume (V) and amount of a gas (n). There are actually two versions of this model. Here&rsquo;s the way chemists like to write it.</p> <p>In SI units, R has a value of 8.314 J/K*mol. Physicists like to write it as:</p> <p>The difference is that N is the number of particles in the gas and k is the Boltzman constant (1.38 x 10^-23 J/K).</p> <p>Chemists like to think of a gas as a continuous fluid and physicists want to think of it as a bunch of discrete particles. Of course, in most situations it&rsquo;s easier to think of the gas as just one thing &mdash; but it&rsquo;s fun to treat it as a bunch of particles. So that&rsquo;s what we are going to do.</p> <p><a href="https://rjallain.medium.com/an-ideal-gas-is-just-a-bunch-of-balls-heres-how-to-model-it-in-python-e89bea3df39a"><strong>Read More</strong></a></p>
Tags: Bunch Balls