| main page | 3 degree-of-freedom! |
| Smart Pendulum ! |
|---|
Catch & Move the Knob or the BallHow does it work?d²f 2 dR df g ---- = - ( - ---- + visc ) --- - -- sinf dt² R dt dt Rwhere
The solution implements 4-th order Runge-Kutta method for differential equations. But in case of short confidence interval (if for instance you decide to state Viscosity as 1000 !) the solution is an integral of similar equation but with pure angle instead of its sine - so called mathematical pendulum. You may set gravity and viscosity directly in special fields, but remember to scale gravity! Whether you set it as 9.81 m/sec² you would see rather "quick" oscillation because of short rope. Numerical performances of pendulum oscillations:
By the way, what you think the pendulum would do if you set the negative gravity or viscosity ? CommentsWhy 60 milliseconds?Screen refreshing in Windows can not be faster then 1193180 / 216 times per second. (1193180 Hz is the quartz oscillator frequency). That's why repainting shouldn't be more often then every 0.055 seconds. Mathematical - is the same pendulum but with f instead of sin(f) in its differential equation. This approximation simplifies the solution greatly and we can get the explicit formula of oscillation. I placed the value of Period (mathem.) just for estimating the calculation error that we could make deciding to approximate our real pendulum with the mathematical one. Want free Windows-based version of this module? Write me !
|