Two Hand Golf Swing Model
Version 1.0.4 (68.4 MB) by
Dieter
This model simulates the golf swing and evaluates the effect that momentum has on the interaction forces at joints.
This is a two handed planar simulation of the golf swing featuring a flexible beam shaft. The model is used in a script to evaluate the effect of the effect of momentum and other passive components on the forces seen at the joints or "interaction forces".
To run the model, the "MASTER_SCRIPT_ZTCF_ZVCF_PLOT_GENERATOR.m" file can be run after loading the model contents into the main folder of Matlab drive. This will simulate the model many times implementing a killswitch that turns off joint torques at times throughout the swing and compiles the forces seen at joints when active joint torques are not applied. The results of this are termed the "ZTCF" which is short for Zero Torque Counterfactual. The results of this compilation are compared to the "BASE" results of the model, which do not feature killswitches. The differences are termed the "DELTA".
An additional model is then run termed the ZVCF. This places the model in the configuration that matches a given time but in a state where the segments have zero velocity. A constant torque is then applied that matches the joint torques at that point in time in the original BASE scenario. This represents the effect that the applied joint torques would have in generating interaction forces if velocity wasn't a factor.
Following this script, the plot generation function is run which generates a large amount of plots. For online functionality, a term "PauseTime" is set to 1 second in the main script. If working locally on a computer this can be set to zero so speed up the plotting time.
The results and model for each trial run are stored in a folder named "Model Output" in the main Matlab Drive folder.
Parameters for joint torque can be adjusted in the model workspace using the assignin function or directly in the model workspace using model explorer. There is a teal box in the RJM inputs page that allows for manipulation of model joint torques while still maintaining the same kinematics.
A simplified impact model and air resistance model can be turned on in the club subsystem. By default they are turned off. A rigid shaft option is included on the club subsystem as well.
Parameters of interest such as work, power, moments of force, equivalent couples, and velocities are calculated and compiled for each case.
The model can also be run by loading the "GolfSwing.slx" file without running the MASTER_SCRIPT.
Feel free to email any questions to dieterolson@gmail.com
Cite As
Dieter (2024). Two Hand Golf Swing Model (https://www.mathworks.com/matlabcentral/fileexchange/169071-two-hand-golf-swing-model), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
MatlabExchangeModelVerison1.0.4
MatlabExchangeModelVerison1.0.4/Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_Archived Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_Archived Scripts/Quiver Plot Generation/Quiver Plot Scripts from Workspace Table
MatlabExchangeModelVerison1.0.4/Scripts/_Archived Scripts/Quiver Plot Generation/Quiver Plots Scripts From Imported Excel Data
MatlabExchangeModelVerison1.0.4/Scripts/_Archived Scripts/Quiver Plot Generation/Quiver Plots Scripts From Imported Excel Data/Archive
MatlabExchangeModelVerison1.0.4/Scripts/_Archived Scripts/ZTCF Data Generation
MatlabExchangeModelVerison1.0.4/Scripts/_BaseData Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_Comparison Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_Comparison Scripts/Archive
MatlabExchangeModelVerison1.0.4/Scripts/_Data Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_Delta Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_ZTCF Scripts
MatlabExchangeModelVerison1.0.4/Scripts/_ZVCF Scripts
MatlabExchangeModelVerison1.0.4
Version | Published | Release Notes | |
---|---|---|---|
1.0.4 | Added crosshand grip option. Added some corrections in legend entry references on quiver plots. |
||
1.0.3 | Changed to a zipped file so the folders needed could be uploaded. |
||
1.0.2 | Added Matlab Drive link for Folders needed to get all of the files. |
||
1.0.1 | Added Scripts and Tables folders. |
||
1.0.0 |