How to solve this in SMath

How to solve this in SMath - Messages

#1 Posted: 4/13/2024 2:19:39 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: 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 KiB) downloaded 32 time(s).
1 users liked this post
⚜ Kenny Lemens, P.E. ᵂᴵ 4/25/2024 5:12:00 AM
#2 Posted: 4/14/2024 2:13:09 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Mathcad Prime 9
Catenary-G-fixed.pdf (789 KiB) downloaded 52 time(s).
#3 Posted: 4/15/2024 3:56:22 AM
overlord

overlord

547 likes in 1330 posts.

Group: 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 KiB) downloaded 38 time(s).
1 users liked this post
Valery Ochkov 4/15/2024 6:49:00 PM
#4 Posted: 4/16/2024 6:01:25 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 KiB) downloaded 31 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Valery Ochkov 4/16/2024 12:16:00 PM
#5 Posted: 4/16/2024 12:16:47 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

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

#6 Posted: 4/17/2024 6:05:12 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 Posted: 4/18/2024 6:38:51 PM
ioan92

ioan92

171 likes in 102 posts.

Group: 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 users liked this post
Valery Ochkov 4/18/2024 9:09:00 PM
#8 Posted: 4/19/2024 7:13:06 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 Posted: 4/20/2024 1:14:35 AM
ioan92

ioan92

171 likes in 102 posts.

Group: 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 users liked this post
Valery Ochkov 4/20/2024 2:46:00 AM
#10 Posted: 4/20/2024 3:37:23 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: 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 users liked this post
ioan92 4/22/2024 5:12:00 AM
#11 Posted: 4/20/2024 4:21:36 PM
ioan92

ioan92

171 likes in 102 posts.

Group: 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 Posted: 4/20/2024 4:33:14 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

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

#13 Posted: 4/20/2024 4:48:57 PM
ioan92

ioan92

171 likes in 102 posts.

Group: 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 Posted: 4/21/2024 12:41:21 AM
StvMath

StvMath

35 likes in 56 posts.

Group: 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 KiB) downloaded 23 time(s).
2 users liked this post
ioan92 4/21/2024 12:54:00 AM, Valery Ochkov 4/21/2024 1:31:00 AM
#15 Posted: 4/21/2024 1:38:23 AM
ioan92

ioan92

171 likes in 102 posts.

Group: 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 Posted: 4/21/2024 1:43:12 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: 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 KiB) downloaded 23 time(s).



See please Figures in my article
http://twt.mpei.ac.ru/ochkov/Chain.pdf
1 users liked this post
ioan92 4/21/2024 3:57:00 AM
#17 Posted: 4/21/2024 2:09:35 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

The dotted lines are a phantom continuation of the catenary.
If G=0 we have one line.
G-0-1000.png
1 users liked this post
ioan92 4/21/2024 2:44:00 AM
#18 Posted: 4/21/2024 2:17:25 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

See please Figures in this article too
http://twt.mpei.ac.ru/ochkov/catenary.pdf
G-Photo.png
1 users liked this post
ioan92 4/21/2024 2:45:00 AM
#19 Posted: 4/21/2024 3:59:45 AM
StvMath

StvMath

35 likes in 56 posts.

Group: 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 users liked this post
ioan92 4/21/2024 3:59:00 PM
#20 Posted: 4/21/2024 9:05:30 AM
overlord

overlord

547 likes in 1330 posts.

Group: 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]
  • New Posts New Posts
  • No New Posts No New Posts