Lesson 10 of 15
Damped Oscillator
Damped Oscillator
Real oscillators lose energy to friction and air resistance. The damped oscillator adds a velocity-proportional damping term:
- : natural frequency (rad/s)
- (zeta): damping ratio (dimensionless)
Three Regimes
| Condition | Behavior |
|---|---|
| Underdamped: oscillates with decaying amplitude | |
| Critically damped: fastest return to 0 without oscillating | |
| Overdamped: slowly returns to 0 without oscillating |
As a System
Let :
Numerical Solution (Symplectic Euler)
a = -2*zeta*omega*v - omega**2 * x
v = v + h * a
x = x + h * v
Applications
- Suspension systems in cars (want for comfortable ride)
- Building dampers for earthquake resistance
- RLC circuits in electronics
- Atomic force microscopy cantilevers
Your Task
Implement damped_oscillator(omega, zeta, x0, v0, t_end, n). Return (x, v).
Pyodide loading...
Loading...
Click "Run" to execute your code.