Omniadisce

Computational physics 15.3: When to stop

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

  • Keep a copy of the potential before a sweep: old = V.copy()
  • Find the biggest change in one sweep: np.max(np.abs(V - old))
  • Relax until the change is below a tolerance, with a limit on the sweeps
  • Explain why the error can be much bigger than the tolerance
  • Work out the field from the potential, E = (V[6] - V[5]) / h, and check it against V/d

Who it is for: Anyone who has done lesson 15.2, and lesson 10.3 (a tolerance) and 10.5 (`while ... and n < 50`).

The steps

  1. How much did this sweep change?
  2. The biggest change
  3. Why a copy?
  4. Stop when the change is small
  5. Relax until it settles
  6. A small change, a small error?
  7. How far off?
  8. Choosing the tolerance
  9. The field from the potential
  10. The field between the plates
  11. Stopping honestly

Discussion 0 comments

Log in to join the discussion.

× Enlarged view