Double pendulum model and animation

Double pendulum model and animation - Is the model correct? - Messages

#1 Posted: 10/29/2025 9:15:19 AM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Hi friends!
Now I am on the forum again!
Anime2.sm (55.59 KiB) downloaded 60 time(s).
Anime2.png
But the model is not correct. See please Alvaro model!
Edited 10/30/2025 7:22:14 PM
#2 Posted: 10/29/2025 10:45:45 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,523 likes in 1,833 posts.

Group: Moderator

Using X-Y Plot

Anime2-xyplot.sm (57.84 KiB) downloaded 56 time(s).

Double pendulum model and animation.gif
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
sergio 10/29/2025 2:50:17 PM
#3 Posted: 10/29/2025 11:14:52 AM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Thanks, Слава!
Anime2-x-y-plot.png
Edited 10/29/2025 1:53:54 PM
1 users liked this post
Alvaro Diaz Falconi 10/30/2025 7:04:33 AM
#4 Posted: 10/29/2025 1:56:31 PM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User


Anime-x-y-plot.sm (18.24 KiB) downloaded 51 time(s).
And where here is a bug?
#5 Posted: 10/29/2025 2:01:44 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,523 likes in 1,833 posts.

Group: Moderator

Vector t must be defined below before the component.
The animation feature is still being developed when I have time for it.

image.png
Edited 10/29/2025 2:05:45 PM
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 10/30/2025 7:04:42 AM
#6 Posted: 10/29/2025 5:02:10 PM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Слава, а когда этот новая версия плагина появилась?
#7 Posted: 10/29/2025 6:19:29 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,523 likes in 1,833 posts.

Group: Moderator

Quote

Слава, а когда этот новая версия плагина появилась?


В конце лета.

image.png
Edited 10/29/2025 6:21:02 PM
Russia ☭ forever, Viacheslav N. Mezentsev
#8 Posted: 10/30/2025 7:07:54 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,072 likes in 1,733 posts.

Group: User

Hi. My approach to solving the double pendulum problem.

dp.gif

double_pendulum.sm (75.92 KiB) downloaded 85 time(s).

Best regards.
Alvaro.
3 users liked this post
Valery Ochkov 10/30/2025 7:45:32 AM, Вячеслав Мезенцев 10/30/2025 9:13:40 AM, sergio 10/30/2025 12:18:26 PM
#9 Posted: 10/30/2025 1:32:00 PM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Newton vs Lagrange
Pendulum-2.xmcd (119.12 KiB) downloaded 47 time(s).
Pendulum-2.gif
#10 Posted: 10/30/2025 6:31:11 PM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

My little edit
Pendulum-Animation-Correct.gif
1 users liked this post
Alvaro Diaz Falconi 10/31/2025 4:29:45 AM
#11 Posted: 10/30/2025 7:33:11 PM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Triple pendulum - see errors at the second haft of time interval.
Pendulum-3-for-SMath.xmcd (220.62 KiB) downloaded 46 time(s).
Pendulum-3-for-SMath.gif
Edited 10/30/2025 7:39:16 PM
1 users liked this post
Alvaro Diaz Falconi 10/31/2025 5:05:16 AM
#12 Posted: 10/31/2025 5:03:31 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,072 likes in 1,733 posts.

Group: User

Hi. Using pure SMath code to deduce the equations of motion from the Lagrangian, with the functions in this post: https://smath.com/en-US/forum/topic/AeeMSM/Using-differentials.

image.png

double_pendulum_lagrangian.sm (174.64 KiB) downloaded 45 time(s).

double_pendulum_lagrangian.pdf (503.4 KiB) downloaded 44 time(s).

Best regards.
Alvaro.
2 users liked this post
Valery Ochkov 10/31/2025 7:37:56 AM, sergio 10/31/2025 8:48:37 AM
#13 Posted: 10/31/2025 5:10:58 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,072 likes in 1,733 posts.

Group: User

Wrote

Triple pendulum - see errors at the second haft of time interval.



I no longer use Mathcad, except on rare occasions, when I rely on Mathcad version 11, which I consider the last decent version. So I can't see the triple pendulum file. And I suppose this is the situation for many SMath users who no longer have Mathcad readily available. But more than worrying about the conservation of energy, which seems to be a problem with the numerical method used, I'm more surprised to see how the future affects the past, since the animation shouldn't alter the trajectories already described by the particles as time passes.

This is my approach to the triple pendulum.

image.png

tp.gif

triple_pendulum_lagrangian.sm (135.01 KiB) downloaded 49 time(s).

triple_pendulum_lagrangian.pdf (248.09 KiB) downloaded 50 time(s).

Best regards.
Alvaro.
Edited 10/31/2025 6:13:23 AM
2 users liked this post
Вячеслав Мезенцев 10/31/2025 7:18:43 AM, Valery Ochkov 10/31/2025 7:38:10 AM
#14 Posted: 10/31/2025 7:35:30 AM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Wrote


I no longer use Mathcad,


See pls pdf
Pendulum-3-for-SMath.pdf (589.25 KiB) downloaded 46 time(s).
Edited 10/31/2025 7:38:52 AM
#15 Posted: 10/31/2025 8:37:45 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,072 likes in 1,733 posts.

Group: User

Wrote

See pls pdf


With those values:

image.png

tp2.gif

triple_pendulum_lagrangian.sm (159.26 KiB) downloaded 46 time(s).

Best regards.
Alvaro.
1 users liked this post
Valery Ochkov 10/31/2025 10:39:04 AM
#16 Posted: 10/31/2025 10:38:47 AM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Wrote

Wrote


I'm more surprised to see how the future affects the past, since the animation shouldn't alter the trajectories already described by the particles as time passes.
Best regards.
Alvaro.



For me too!
#17 Posted: 11/1/2025 1:52:48 AM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Wrote

Wrote

See pls pdf


With those values:
image.png
Best regards.
Alvaro.


One my plot:
Change of three types of energy of a swinging pendulum on an elastic suspension - SE - the spring energy
PKE-Energy.png
Edited 11/1/2025 1:55:02 AM
#18 Posted: 11/5/2025 7:01:02 AM
Valery Ochkov

Valery Ochkov

62 likes in 654 posts.

Group: User

Alvaro, hi!
Is it posibble to solve the single pendulun problem with Lagrangian and rkfixed but without the al_nleqsolve function?
Edited 11/5/2025 8:29:15 AM
  • New Posts
  • No New Posts