How to solve this in SMath

How to solve this in SMath - Сообщения

#1 Опубликовано: 13.04.2024 14:19:39
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

Catenary-G-fixed (1).gif

I finally took a ride along this road with my granddaughter. On the way, I was not thinking about the beauty of Moscow, but about how to solve this problem at SMath.

Lujniki.gif

Mathcad 15
Catenary-G-fixed.xmcd (58 КиБ) скачан 32 раз(а).
1 пользователям понравился этот пост
⚜ Kenny Lemens, P.E. ᵂᴵ 25.04.2024 05:12:00
#2 Опубликовано: 14.04.2024 14:13:09
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

Mathcad Prime 9
Catenary-G-fixed.pdf (789 КиБ) скачан 52 раз(а).
#3 Опубликовано: 15.04.2024 03:56:22
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

I could make it to Minimize() but that is a problem exceeds me.
If anyone can solve it as in mathcad, later parts can be implemented too.
Some can solve Minimum of a single variable function with derivation of it.
I don't know how to do it with more than 1 variables as in your example.

Regards

catenary_G.sm (43 КиБ) скачан 38 раз(а).
1 пользователям понравился этот пост
Valery Ochkov 15.04.2024 18:49:00
#4 Опубликовано: 16.04.2024 06:01:25
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

This solution is not really animated but has a slider to change the position of the suspended load.
The solution is unreliable at the endpoints. The procedure is Newton-Raphson with approximated gradient.
Each new iteration uses the result of the previous one as initial guess. This is done using absolute variables. Just follow the instructions to properly initialize the procedure.

2024-04-15 22_11_13-SMath Solver - [Seilbahn5a.sm_].png
Seilbahn5a.sm (60 КиБ) скачан 31 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Valery Ochkov 16.04.2024 12:16:00
#5 Опубликовано: 16.04.2024 12:16:47
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

The solution is unreliable at the endpoints.
Sorry - not only
Martin-Bug.png

#6 Опубликовано: 17.04.2024 06:05:12
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Yes, that is dependent on how fast you move the slider, small steps usually produce good solutions. Note that the procedure just performs a single Newton iteration. To improve the solution, press F9 (recalculate). I forgot to mention this. Yet, this still does not always work.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#7 Опубликовано: 18.04.2024 18:38:51
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: User

Hi Valery, Hi Everybody,

I think that it could be possible to deal with the problem as a structural equilibrium one, using a FEM technique. The drawing and the animation are details after having the right results.

It seems that the rope is considered as inextensible; an approximation not always accepted.
The proposed dimensions let us think more to a sort of toy than to a technical object as that from the photo.

However, this does not represent a too high difficulty for looking for a solution. In fact, for each X given abscissa value, there is to obtain the Y ordinate value for the nacelle position. In each (X;Y) nacelle position, the force’s equilibrium must be assured. This is the way to determine the Y for each given X. The traction rope must assure the missing force to fix the nacelle in a position. Without knowing the traction rope data, the problem is not enough defined (?).
Another variable could be the length of one of the two segments of the cable...

If I understand, the proposed problem includes some input features and data as:
• A unique nacelle rolling with a pulley on the carrying rope (???) : G=10 g.
• A carrying rope : dX = 10cm; dY = 7cm; L = 15cm; gc = 5g/cm; Gc = 15cm x 5g/cm = 75g.
• A traction rope: undefined as geometry and its end support positions. (???) Its behavior is unclear for me …

An equillibrium possibility:
2024-04-18 17_12_38-Poulie Valery.pptx - PowerPoint.png

Best regards,
Ioan

Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
1 пользователям понравился этот пост
Valery Ochkov 18.04.2024 21:09:00
#8 Опубликовано: 19.04.2024 19:13:06
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

In the given system there is no traction rope. There is a single rope which runs in an endless loop. There are several ways to parametrize the system. You can use the cable length on either side of the nacelle, or as I did, the fraction of the total length.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#9 Опубликовано: 20.04.2024 01:14:35
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: User

Thank you, Martin, for your information.

I asked if the animation introduced by Valery concerns a real technical problem like in his photo or is a simple mathematical abstract discussion.

Perchance, I’m familiar enough with cable’s analysis focusing on the engineering use. Next, I’ll point some basics, as I understand them now. I’m grateful for any eventual critics or suggestions.

From the practical viewpoint, there are two main families of cable transportation application:
* Using one alone cable with the cabins sealed on it:

bursa-teleferik-hatti-koronaviruse-karsi-dezenfekte-edildi.jpg
Telecabines.jpg

* Using a couple of:
i. a carrying cable, on which the cabin(s) are rolling with pulleys and
ii. another traction cable for controlling the movements of cabin(s).

1024px-Teleadm1.jpg
Telecabines.jpg

From geometrical viewpoint, an inextensible catenary (cosh(x)) cable is a plan figure, enough defined by three geometrical data (e.g.: the two projections H and V and the developed length of the cable L).
From mechanical viewpoint it is necessary to know also the load (constant on the whole length of the cable) w.

These data are enough to establish its full geometry and also the 4 (3 distinct – the two horizontal reactions are equal) values of reactions on its length using one equation.

The problem in discussion here can be reduced to a couple of two elementary cables, linked to the point where the G force from the cabin is applied. For each position of the cabin fixed on the cable, there can be identified two elementary cables.

A solution to obtain the two coordinates of the cabin is (as Martin mentioned) to use as input variable the length of one of the two elementary cables and to deduct from the two equilibrium projections, the two coordinates of the cabin (X and Y). These can be used to draw (animate) the cabin’s position.
A parametric formulation is useful.

Once these hypotheses are accepted, the rest is nothing than some mathematical developments. I do not reproduce all the mathematics development here because I’m in a publishing progress with the subject of catenary and parabolic cable as well extensible as not extensible.

Best Regards,
Ioan
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
1 пользователям понравился этот пост
Valery Ochkov 20.04.2024 02:46:00
#10 Опубликовано: 20.04.2024 15:37:23
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

My students solve this problem at the intersection of mathematics, mechanics and computer science (STEM education - see
https://www.routledge.com/25-Problems-for-STEM-Education/Ochkov/p/book/9781032174624).
We take an inextensible cable of length L and with a known specific gravity (the mass of one meter of cable). We attach a load of known mass to this cable at a distance l from one end of the cable. Next, the cable with the load is attached at two points. It is necessary to determine the geometry of the cable sag and the force at the attachment points. Then you need to change the value of l from zero to L and create an animation.
I can do this in Mathcad, but I cannot do it in SMath. I turned to you for help.

1 пользователям понравился этот пост
ioan92 22.04.2024 05:12:00
#11 Опубликовано: 20.04.2024 16:21:36
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: User

Wrote

My students solve this problem at the intersection of mathematics, mechanics and computer science (STEM education - see
https://www.routledge.com/25-Problems-for-STEM-Education/Ochkov/p/book/9781032174624).
We take an inextensible cable of length L and with a known specific gravity (the mass of one meter of cable). We attach a load of known mass to this cable at a distance l from one end of the cable. Next, the cable with the load is attached at two points. It is necessary to determine the geometry of the cable sag and the force at the attachment points. Then you need to change the value of l from zero to L and create an animation.
I can do this in Mathcad, but I cannot do it in SMath. I turned to you for help.



OK – Now, you clearly defined the problem that you and your students had solved.

My question is: do you intend to associate your solution to a really technical situation, or it is only an abstract construction "game"?
,
From my understanding – if you fix the cable at its two ends, it is not clear how do generate, physically, the mass movement?
As I mention in my post #9, for such a case, there are introduced a pulley and a second cable for traction. If you solve the technical side of the problem in a different mode, how do assure the forces equilibrium?

In respect with your post #1 animation, what is not clear for me is: if red and blue continue the line is the problem’s unique cable, what is the physical meaning of the second (pointed) line?

Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#12 Опубликовано: 20.04.2024 16:33:14
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

The dotted lines are a phantom continuation of the catenary.
If G=0 we have one line.

#13 Опубликовано: 20.04.2024 16:48:57
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: User

Wrote

The dotted lines are a phantom continuation of the catenary.
If G=0 we have one line.



If the cable is fixed on its two ends, "the phantom" must be a cosh curve passing through this 2 same points ??? !!!
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#14 Опубликовано: 21.04.2024 00:41:21
StvMath

StvMath

35 сообщений из 56 понравились пользователям.

Группа: User

Here is my force-balance approach to this problem.

I divide the cable weight into a number of nodes equally distributed along the cable, then add the cable car weight to one of the nodes (the one nearest to the distance that it was added in the original catenary file here, though this can be changed as desired). The nodes are then assumed to be connected by weightless, inextensible links.
It took me some time to get the syntax right! I’ve no doubt an SMath expert could significantly improve the implementation.

CableCar.sm (44 КиБ) скачан 23 раз(а).
2 пользователям понравился этот пост
ioan92 21.04.2024 00:54:00, Valery Ochkov 21.04.2024 01:31:00
#15 Опубликовано: 21.04.2024 01:38:23
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: User

Hi StvMath,

I enjoy your solution, based on the discretization of the continuum.
As always with such an approach, the results are enough dependent on the input data values and decisions.

I played a little with your tool by introducing (“provoking it”) some limit situations, namely:
• a small or a null cable weight;
• a small or a null “cable car weight”.

Please try such cases and tell us your evaluations. Normally, in this way, some analytical results could be checked (?).

Once again, thanks for your interesting work,

Best regards,
Ioan

Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#16 Опубликовано: 21.04.2024 01:43:12
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

Wrote

Here is my force-balance approach to this problem.

I divide the cable weight into a number of nodes equally distributed along the cable, then add the cable car weight to one of the nodes (the one nearest to the distance that it was added in the original catenary file here, though this can be changed as desired). The nodes are then assumed to be connected by weightless, inextensible links.
It took me some time to get the syntax right! I’ve no doubt an SMath expert could significantly improve the implementation.

CableCar.sm (44 КиБ) скачан 23 раз(а).



See please Figures in my article
http://twt.mpei.ac.ru/ochkov/Chain.pdf
1 пользователям понравился этот пост
ioan92 21.04.2024 03:57:00
#17 Опубликовано: 21.04.2024 02:09:35
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

The dotted lines are a phantom continuation of the catenary.
If G=0 we have one line.
G-0-1000.png
1 пользователям понравился этот пост
ioan92 21.04.2024 02:44:00
#18 Опубликовано: 21.04.2024 02:17:25
Valery Ochkov

Valery Ochkov

55 сообщений из 633 понравились пользователям.

Группа: User

See please Figures in this article too
http://twt.mpei.ac.ru/ochkov/catenary.pdf
G-Photo.png
1 пользователям понравился этот пост
ioan92 21.04.2024 02:45:00
#19 Опубликовано: 21.04.2024 03:59:45
StvMath

StvMath

35 сообщений из 56 понравились пользователям.

Группа: User

Wrote

Hi StvMath,

I enjoy your solution, based on the discretization of the continuum.
As always with such an approach, the results are enough dependent on the input data values and decisions.

I played a little with your tool by introducing (“provoking it”) some limit situations, namely:
• a small or a null cable weight;
• a small or a null “cable car weight”.

Please try such cases and tell us your evaluations. Normally, in this way, some analytical results could be checked (?).

Once again, thanks for your interesting work,

Best regards,
Ioan



Hi Ioan,

Thanks for your comments.

I agree with you that the results are data dependent etc.
The discretisation I used was quite coarse, so I wouldn’t expect good agreement with analytical results in your limiting situations. Of course, a much finer discretisation could, in principle, be used. However, the current model is relatively slow (about 5 seconds on my laptop), and I don’t have the patience to wait for the results of a much finer discretisation!
The current model works ok when the cable car weight (G) is set to zero, but the Jacobian crashes if the specific weight (gc) is much below 0.5.

Of course, if SMath had its own Minimize (or Maximize) function we could just have copied Val Ochkov’s original Mathcad approach and saved ourselves the trouble of looking for an alternative method!!
1 пользователям понравился этот пост
ioan92 21.04.2024 15:59:00
#20 Опубликовано: 21.04.2024 09:05:30
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

Wrote

Of course, if SMath had its own Minimize (or Maximize) function


There is lbfgs function for Maxima, it can calculate Minimize.
If it could be implemented to SMath, Minimize problem can be solved.

Regards

(%i1) load("lbfgs";
(%o1)           /usr/share/maxima/5.47.0/share/lbfgs/lbfgs.mac
(%i2) f(x,y):=(x-y)/((x^2+5)*(y^2+5))+(x^2+y^2)/20000;
                                                    2    2
                                     x - y         x  + y
(%o2)               f(x, y) := ----------------- + -------
                                 2        2         20000
                               (x  + 5) (y  + 5)
(%i3) lbfgs(f(x,y),[x,y],[1,1],1e-10,[-1,0]);
(%o3)          [x = - 1.2860935388262762, y = 1.286093516249451]
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений