Validate Simscape Double Pendulum model with Lagrange Matlab Code

7 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Steve Miller
Steve Miller el 25 de Nov. de 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

Categorías

Más información sobre Assembly en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by