Double pendulum - solving with energy and Simulink

Click For Summary
SUMMARY

The discussion focuses on solving the dynamics of a double pendulum using energy methods in Simulink. The user encounters difficulties when calculating second-order derivatives, particularly when the first-order derivative (velocity) is zero, causing the Simulink model to fail. The suggestion is made to utilize the Lagrangian formulation and the Euler-Lagrange equations to avoid division by zero issues. The user also references a resource for derivations related to the double pendulum.

PREREQUISITES
  • Familiarity with Simulink for modeling dynamic systems
  • Understanding of differential equations and their graphical representation
  • Knowledge of Lagrangian mechanics and Euler-Lagrange equations
  • Basic concepts of energy conservation in mechanical systems
NEXT STEPS
  • Research how to implement Lagrangian mechanics in Simulink
  • Explore techniques for handling singularities in dynamic simulations
  • Learn about the Euler-Lagrange equations and their application to multi-body systems
  • Investigate alternative methods for solving second-order differential equations without division by zero
USEFUL FOR

Mechanical engineers, control system designers, and students studying dynamics who are interested in modeling complex systems like double pendulums in Simulink.

aaddcc
Messages
9
Reaction score
0
Hi everyone,

I am trying to familiarize myself with Simulink by graphically drawing out differential equations, but ran into a snag with a double pendulum on a cart. Anyways, I neglect friction or other damping effects and say that

NfjXqjv.png

From there I simply just sum the energies, which ends up as:

BA9AeIJ.png

And then differentiating with respect to time ends up with:

OpX823N.png


This seemed fine to me, and I started creating my Simulink model. The way that works is I have a loop with each variable connecting to each other in a certain way (i.e. xddot = stuff, thetaddot = other stuff). The issue is, when solving for any of the second order derivatives it is necessary to divide by the first order derivative. For example, to solve for the acceleration of x it is necessary to divide by the velocity of x. What if the velocity happens to be zero? In that case my Simulink model fails.

I did it with energy because it seemed a lot easier. Is there any other way to isolate the variables without dividing by terms like velocity which could be zero?
 
It might be easier to form the Lagrangian and just use the Euler-Lagrange equations and put those differential equations in Simulink. I've done some Simulink models for control systems of inverted pendulums and haven't had any problems separating out the double derivatives in matrix form.

This link contains all the derivations, so hopefully you can just plug it in and get something:
http://scienceworld.wolfram.com/physics/DoublePendulum.html

Hope that helps!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 62 ·
3
Replies
62
Views
6K