Join free to take this lesson
Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.
11 steps · about 30 min
By the end you can
- State the Metropolis rule: a change down in energy is always made, one up by ΔW with chance e^(−ΔW/kT)
- Write e^x in NumPy: np.exp
- Make a change with a given chance: r < chance, with r = rng.random(N)
- Check that two levels end up in the ratio of the Boltzmann factor
Who it is for: Anyone who has done lesson 19.4, and physics lesson 20.3 (the Boltzmann factor, kT).
The steps
- A rule instead of collisions
- e^x in NumPy
- The chance of a step up
- Making a change with a chance
- A step down
- Two levels, 4000 molecules
- The Metropolis line
- A hotter gas
- Change the temperature
- Where they started
- Why a shortcut?
Discussion 0 comments
Log in to join the discussion.