Compare the solution with angular position plot (Theta 1 and Theta 2) of a double pendulum simulation obtained from:
1. MapleSim;
2. SimMechanics;
3. MATLAB Hand Code;
Red colored link is link #1, Blue colored link is link #2. Simulate the double pendulum motion under the effect of gravity for 10 seconds. Initial position: Theta 1 = 0 deg, Theta 2 = 45 deg. Solver settings: Fixed time step solver (ode5 for MATLAB and SimMechanics), time step: 0.001s, Rel-tolerence: 1e-7, Abs-tolerence: 1e-7.
Solutions from these three methods are not the same in this 1st trial, which can be seen here:
http://www.youtube.com/watch?v=71QkGAEc6Cs
In this second trial, it is shown that the solution from all three methods (MapleSim, SimMechanics, and MATLAB Code) are identical visually, after fixing the error in the first trial:
http://www.youtube.com/watch?v=neOn_NvpC_M
The following video plot the angular positions (Theta 1 and Theta 2) of the double pendulum from all three solutions:
http://www.youtube.com/watch?v=pwJ6OGmDrBk
The following video shows the errors (root mean square error) between MapleSim vs MATLAB Code, and SimMechanics vs. MATLAB Code solution (though the differences is in the magnitude of 1e-11 and 1e-14):
http://www.youtube.com/watch?v=EMea6wxxCH4
More info:
http://www.eng.buffalo.edu/~llee3
http://www.youtube.com/lengfenglee
-----
Link to this comment:
All Comments (0)