I'm looking for project ideas for my final year dissertation for a computing degree. Here is the study (A double pendulum model of tennis strokes. Rod Cross. Uni of Sydney, 2006) - http://www.physics.usyd.edu.au/~cross/PUBLICATIONS/49.%20TennisDPend.pdf. My matlab files and spreadsheet files are linked at the bottom of the post.
My goal was to investigate a link between arm length/mass and the angular velocity/swingspeed of a forehand, mapped by a pendulum .
I've looked into this before, but I wasn't able to solve the calculus. I'm a fairly strong coder but I'm terrible with calculus. I've coded the pendulum in an executable matlab code, but the angular velocity peaks too early in time, making the pendulum swing too fast, suggesting there is an issue with the formulas. Is there any other pendulums that I could use, that are solvable.
I've put all ODE's into a spreadsheet. The author doest state which numerical method was used. So I implemented the formulas using the RK4 method, to try and investigate the formulas, and why the velocity is rising too early. It's not made clear in the paper how L2, M2, h2 and I2 are calculated. It's also not mentioned whether the hand was included in the calculations for the lower pendulum, which would really complicate it, as h2 and the moment of inertia could differ, depending on the position of the hand on the grip, the mass distribution of the hand and the size of the hand.
I also tried to replicate the results from this study , which is based on the same equations from Rod Cross' study to see if that helped - https://arxiv.org/pdf/1505.01916.pdf . I had the exact same problem of the chart looking similar but rising too high, too early. .https://arxiv.org/pdf/1505.01916.pdf. I emailed the authors of both studies to check what method/timestep they used, but never heard back. I also asked whether the hand was included.
Matlab files are here - https://ufile.io/f/s3jmi
Spreadsheet is here. - https://drive.google.com/file/d/1uzjtXV2bweHj7ADU47lX3NaNEX7mZPEK/view?usp=sharing
Seems like the author in the first paper is using standard Newtonian analysis.
(EDIT: If you get sick of pendula, too, you can always look at masses on springs.)
Not sure if I'll get downvoted for this move, but I will paste some code below that solves and plots (in real time) the double pendulum using the RK4 method. Problem is, it's QB64 code, which you're welcome to attain and run yourself - but I'm sure you want the equations (just for comparison to your own) more than the program. Here it all is in context: