Validate Simscape Double Pendulum model with Lagrange Matlab Code

7 views (last 30 days)
I am modelling a wing with folding wingtips using Simscape Multibody and I made a code to validate my results using the Lagrangian method. Howerer, when plotting the angular displacements, there is an offset between the Simscape result and Lagrange. When creating the model, I did not consider any damping and all the initial conditions are 0.
Does anyone have any idea why there is this offset? Thank you.

Answers (1)

Steve Miller
Steve Miller on 25 Nov 2022
Theta2 starts deviating noticeably within the first 0.1 seconds, and Theta1 shows deviations right away as well. The general behavior is quite similar. Could it be that the gravitational constant is not identical in these two analyses? Share the files and we could look further.
--Steve

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!