Maxwell-Boltzmanm Distribution of Velocities


NOTE: To best view this applet, extend the browser window horizontally



Instructions


Initialization of velocities for N particles:

  1. Generate Random Numbers: Generate 3N random numbers from a normal distribution with zero mean and unit variance.
  2. Generate Velocities: Multiply these random numbers by sqrt(kT/m) to obtain the x, y, and z components of velocities for the N particles, where k is Boltzmann's constant, m is the mass of the particles, and T is the desired temperature.
  3. Plot F(vi).
  4. Plot F(v).