Omniadisce

Computational physics 12.7: Normal modes with np.linalg

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.

12 steps · about 30 min

By the end you can

  • Write the accelerations of coupled blocks as a = −M @ x
  • Test whether a shape is a normal mode: M @ p must be ω² times p
  • Use np.linalg.eigh(M) to get every mode's ω² and shape, and turn ω into a period
  • Find the modes of three blocks, and check one with an Euler–Cromer run

Who it is for: Anyone who has done lesson 12.6, and physics lesson 9.4 (a = −ω²x).

The steps

  1. The accelerations as a matrix
  2. A mode, in matrix language
  3. Test a shape
  4. Not a mode
  5. np.linalg.eigh, a ready-made tool
  6. Both modes at once
  7. From ω to a period
  8. The shape of a mode
  9. Three blocks
  10. Three modes
  11. Check a mode by simulation
  12. Trusting eigh

Discussion 0 comments

Log in to join the discussion.

× Enlarged view