ToolPythonBeginner
Eigenvalues with numpy.linalg: normal modes of coupled oscillators
- print(f"one glider on one spring: sqrt(k/m) = {np.sqrt(k / m):.3f} rad/s")
- omega = np.sqrt(w2) # rad/s
- f_exact = np.sqrt(k / m * np.array([2 - np.sqrt(2), 2, 2 + np.sqrt(2)])) / (2 * np.pi)
- D = K1 / np.sqrt(np.outer(m_co2, m_co2)) # K_ij / sqrt(m_i m_j)
- X = Q / np.sqrt(m_co2)[:, None] # back from q to displacements x
- D = stiffness([0, k_bond, k_bond, 0]) / np.sqrt(np.outer(mass, mass))
and 2 more lines in this tutorial