Omniadisce

Computational physics 15.2: Averaging again and again: relaxation

Lesson Beginner

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

  • Work out every inside point's average at once: V[1:-1] = (V[:-2] + V[2:]) / 2
  • Put a sweep in a loop and run many sweeps
  • Watch the potential relax from a guess to the straight line
  • Explain why the middle point stays 0 for the first few sweeps
  • See that the answer doesn't depend on the guess, given enough sweeps

Who it is for: Anyone who has done lesson 15.1, and lessons 14.2 and 14.3 (slices of an array).

The steps

  1. Every average at once
  2. One sweep
  3. Again and again
  4. Two sweeps
  5. Five sweeps
  6. News travels one point per sweep
  7. Watch it relax
  8. Where does it end?
  9. Does the guess matter?
  10. A different guess
  11. What relaxes?

Discussion 0 comments

Log in to join the discussion.

× Enlarged view