Parabolas and better still catenaries

Started by samdavo, August 28, 2014, 02:24:24 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

On another thread, j-wetzel has posted a macro for drawing "conic" graphs.
http://forum.designcad.com/index.php?topic=5819.msg40946#new

It is easily twigged to draw parabolas (about a vertical axis),  (see macro below).

The challenge now is to make it draw catenaries :)
But with the fall-back of knowing that there is damn-all difference between them.

Note that we all drive past hundreds of catenaries every day ( assuming we have overhead power lines)  ...

Herewith the wikipedia thread "Catenary",  including the equation to the graph,
y = a cosh (x/a)
http://en.wikipedia.org/wiki/Catenary

Not only are there heaps of hanging chains, powerlines etc  but I add a screensnap with various arches (inverted catenaries), which are (also) all around us it seems. 

Mind you, there is also a comparison of a parabola and a catenary there.  And the difference appears to be trivial  (as per Gallileo's observations).

Finally an excerpt of one of Dr PR's (Phil's) drawings, where I imagine a parabola would be handy ( or a purist might want to use a catenary).   (I trust he doesn't mind me using this example).

Question is, it it worth developing this macro to draw catenaries instead of the approximations, parabolas?

samdavo

#1
PS  An anecdote (totally off topic).  I'm not sure how many out there have heard of an American physics professor, Julius Sumner Miller, who lived many years in Australia.  I met him at the airport in his later years, and introduced myself, saying how much I loved his science show on TV called "Why Is It So?".

He shook hands, then immediately pointed to a rope strung between two posts at the airport (to control the sheeple) - and asked "what shape is that son?"
I said as far as I knew it's a "ca-TEEN-ary"
Maybe I mumbled, or maybe he was a bit deaf, but he said "No son, that's not a parabola, it's a CAT-e-nary"!

But  (gee I love the internet, lol);    I google his name plus the word catenary, to see if I could find him talking about this curve,  and sure enough someone else has posted a similar anecdote!! 

Quote
https://www.facebook.com/pages/Crystal-Clear-Mathematics/297713893665887?sk=info

While remembering Professor Julius Sumner Miller, let me share a more personal anecdote. On one occasion (in 1978) when we were both teaching at a school in Sydney, we were discussing the form of hanging chains, cables and ropes. The curve is called a catenary. He used the US pronunciation and called it a 'kæt n ˌɛɹ i. I explained that I had always pronounced it kəˈtiːn.əɹi (the UK pronunciation). I remember that he expressed puzzlement over this, ovbiously having not heard it before.

The following day, he came up to me and told me that my pronunciation was also 'correct!' He had looked it up! Much to my shame, I had not. I was so impressed that a man of his stature and reputation took me seriously and had gone to the trouble of checking such a detail.

It left an indelible impression upon me and I now frequently refer to a dictionary, to the etymology of words ... and am constantly 'looking things up.'

samdavo

#2
Ideally I guess you would put in the coordinates of the two ends of the rope (or click two points), and specify the "drape" or sag at the centre below the (centrepoint of the) chord.

Then there are hammocks etc ...

samdavo

#3
ok
I've twigged that macro to draw a parabola between two points selected (after starting the macro),
with a drape (below the midpoint of the chord between them).
= drapecurve1.d3m

It will draw both the curve, and also the plane formed by all points of the parabola.
You can delete the plane later.
cheers
(watching a good movie in the background, so there might be some errors - hope not :) )

PS I am 100% confident that there are some clumsy lines in this program.
Quote
'drapecurve1.d3m draws a parabolic curve between two selected points
'starting at (sx,sy,sz)
'ending at (fx,fy,fz)
'with drape drp
'with points plotted at each end of n segments
'and draws the draped parabolic curve, and also the plane formed by it

sys(36)=0
Message "Set 2 points for ends of draped curve" 
SetPoint "Set 2 points for ends of draped curve", 2
pointval sx,sy,sz, 1 'store first point
pointval fx,fy,fz, 2 'store seconds point

dx = fx - sx
dy = fy - sy
dz = fz - sz
Lxz = dx * dx + dz * dz
Lxz = sqrt(Lxz) ' the length of line as projected on the XZ plane
if Lxz = 0 then
Message "Line between Points must have a non-zero projection on XZ plane" 
end
end if

INPUT "Enter the drape of the parabola at its midpoint:  ",  drp
INPUT "Enter the number of segments, n (default is 12, max is 100):  ",  n
if n = 0 then n = 12 'in case n is accidentally set at zero
p = n + 1 'number of points

dx = dx / n
dy = dy / n
dz = dz / n
dxz = Lxz / n

' Allocate storage for the points.
Dim X(101), Y(101), Z(101)
For i = 1 to p
m = i - 1
X(i) = sx + m * dx
Z(i) = sz + m * dz
drpi = (m - n / 2)^2 / (n / 2)^2 * drp - drp
y(i) = sy + m * dy + drpi
next i

>CURVE
  {
   For i = 1 to p
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
   }

>PLANE
  {
   For i = 1 to p
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
   }

END

samdavo

#4
PS
I am assuming that noone is sufficiently pedantic to want the catenary rather than the parabola.  The maths of the catenary are a bit hairy. (Another nice math I've got myself into).   (edit - but feel free to amend the macro to also draw a catenary :) )

Just as an aside, Wiki claims that the Golden Gate cables are actually a parabola, given that the weight of the deck is so much heavier than the self-weight of the cables. 

But it also gives this graph comparing parabola and catenary (trivial, especially if less than 45 degrees).

"Comparison of a catenary (black dotted curve) and a parabola (red solid curve) with the same span and sag."
http://en.wikipedia.org/wiki/Catenary

i.e. black = heavy cable compared to deck  (eg simple rope-strand bridge)
red = heavy deck compared to cable (eg Golden Gate)
PS a hair's breadth between them.


prl

#5
Well, Sam.  If you provide the weight of the cable, horizontal distance between supports and how much force you are applying horizontally at the supports (affects sag or give me the sag, I'll compute force), then I'll draw the catenary in DesignCAD. 




Dr PR

Sam,

You are right about catenaries in my image. Ships have lots of ropes and cables, and all have catenaries. However, I don't bother to model an exact catenary - or even a parabola. I just use the "Curve" (C) function with three points, one at each end and one in the exact center.

All of the catenaries on the ship are pretty shallow, either in lifelines or in cables that are under load. I suppose you could calculate the catenary for the cables, but they mostly were under heavy load and were almost straight, so the sag was probably no more than the cable diameter.

Lifelines are a different matter. They were chain strung between stanchions, with relatively heavy brass hook assemblies at the ends of the chains (they were not equal weight at all points between the end attachments). They were wrapped with canvas and painted. It is extremely unlikely that the different materials acting together produced a pure catenary.

The line between boat davits in the image you posted is another example, but it also carries bundled "manlines" that served as safety lines as the boat was lowered (each man held onto a manline in case the davits failed and the boat fell into the water). The weight of these unevenly spaced bundles of rope would change the shape from a pure catenary.

Furthermore, the exact shape of the curve would change as the ship rolled, so there was no fixed catenary for any of these lines. Since it is of no importance that I draw the exact curve (whatever it was) I just used the simple curve.

Phil
DesignCAD user since 1987

samdavo

#7
Quote from: prl on August 30, 2014, 07:19:17 AM
Well, Sam.  If you provide the weight of the cable, horizontal distance between supports and how much force you are applying horizontally at the supports (affects sag or give me the sag, I'll compute force), then I'll draw the catenary in DesignCAD.

prl,
Reading through that Wiki article, I note that they claim that
y = a (cosh (x / a),
where cosh is the hyperbolic cosine function.

and (more importantly for this comment) that "All catenary curves are similar to each other, having eccentricity = √2. Changing the parameter a is equivalent to a uniform scaling of the curve.[30]"

Hence one could presumably draw a single catenary, and scale it in the x OR y directions   (edit make that zoom it in both x AND y directions, so that curvature doesn't change) - to fit between any two points (tying the rope off at an appropriate length at each end). 

Anyway, I might (edit - pretty unlikely now I think about it) check out a similar macro to the one above, with the following parameters :-
end points (x1, y1)  and (x2,y2)
and sag,  s;
(I suspect it would be easier if the sag was measured below the lower support point, rather than the drape in the parabola macro, which was measured below the centrepoint of the chord - but I'm guessing).

As I say above, probably easier to draw a catenary, and scale it (and maybe move it horizontally) in X and Y directions until it fits.

For your interest, there are a couple of gif files there discussing "eccentricity" of conic curves:-

http://en.wikipedia.org/wiki/Eccentricity_(mathematics)#mediaviewer/File:Ellipse_and_hyperbola.gif

http://en.wikipedia.org/wiki/Eccentricity_(mathematics)#mediaviewer/File:Cubic_surface.gif


samdavo

#8
Quote from: Dr PR on August 30, 2014, 11:00:35 AM
The line between boat davits in the image you posted is another example, but it also carries bundled "manlines" that served as safety lines as the boat was lowered (each man held onto a manline in case the davits failed and the boat fell into the water). The weight of these unevenly spaced bundles of rope would change the shape from a pure catenary.
Ahh, I wondered what those bundles were.  Thanks.
(PS looks like the women on board were hanging out their stockings) :)

I also notice this comment about anchor chains :-
QuoteThe catenary produced by gravity provides an advantage to heavy anchor rodes. An anchor rode (or anchor line) usually consists of chain or cable or both. Anchor rodes are used by ships, oilrigs, docks, floating wind turbines, and other marine equipment which must be anchored to the seabed.
When the rode is slack, the catenary curve presents a lower angle of pull on the anchor or mooring device than would be the case if it were nearly straight. This enhances the performance of the anchor and raises the level of force it will resist before dragging. To maintain the catenary shape in the presence of wind, a heavy chain is needed, so that only larger ships in deeper water can rely on this effect. Smaller boats must rely on the performance of the anchor itself.[29]

So if the current is from left to right at 5 knots,
and the wind is from right to left at 10 knots, gusting to 20 knots,
and the swell is running at 10 feet peak to trough,
and the ship weighs 20,000T
and the bouyant weight of the anchor chain is 1 T per metre,
then what is the shape of the anchor chain exactly 20 minutes after you drop it?
:)
(PS assume you own initial boundary conditions).

(This is a bit like the problem of analysing a multi-storey multi-mode building in an earthquake, when the EQ signature ( eg El Centro, or Kobe) is fed into the program, and the various modes all behave with their own frequencies etc etc  - but I digress).

PS Conclusion,
You're right, a simple circular curve is close enough for the davit manline rope.

prl

#9
Quote from: samdavo on August 30, 2014, 02:33:30 PM
Reading through that Wiki article, I note that they claim that
y = a (cosh (x / a),
where cosh is the hyperbolic cosine function.

In a more practical application when dealing with cables with some weight per foot, the horizontal force applied at the ends of the cable will determine the cable shape (and sag).  Of course, a nearly straight cable has much higher tension in it than a cable with a significant sag when spanning between the same two points.  Kind of obvious, the tension force goes to infinity to get a straight cable.

Example attached.  Distance between points is 200 ft.  First cable has a 100 lb horizontal force at the support.  Second cable as a 50 lb horizontal force at the support.  Both are catenaries.

samdavo

#10
Quote from: samdavo on August 30, 2014, 02:33:30 PM
"All catenary curves are similar to each other, having eccentricity = √2. Changing the parameter a is equivalent to a uniform scaling of the curve.[30]"

Hence one could presumably draw a single catenary, and scale it in the x OR y directions to fit between any two points (tying the rope off at an appropriate length at each end). 

PS They show three catenary curves there.
I have traced them and scaled zoomed them, and find that each can be (approx) represented by parts of others, (2 cents).

(edit), and yes, the scaling appears to have something to do with "a" (as Wiki says) (a serious thumb-nail at arms length check).
 

samdavo

Quote from: prl on August 30, 2014, 03:49:08 PM
Example attached.  Distance between points is 200 ft.  First cable has a 100 lb horizontal force at the support.  Second cable as a 50 lb horizontal force at the support.  Both are catenaries.
prl
sure, you can define it in terms of
a) endpoints (span and relative heights), and
b) the ratio of tensile force (T) to weight per unit length (w), i.e T/w ratio ;
eg with T/w = 1000 you get one shape, and 2000 you get another (as you have shown); 

rather than 
A) the endpoints and
B) the sag (however you want to define that) ;
Either will define the shape.

But the weight per foot will not change the shape, PROVIDED you have the same length of rope (or steel cable, or ...) between the same two points;   i.e. in this case, the Tension in the steel cable will be twice, assuming twice the weight per foot, but same shape. (think I'm right there).

I believe I was wrong when I said you could scale any generic curve  in x OR y directions. and I believe you have to scale in both (i.e. selection zoom rather than differential selection scale). 

In summary,  Thanks for the accurate catenary curves, and I believe one could pick a segment of either to sort any such curve.   cheers

samdavo

PS
If you call your curves A and B,
then those curves from Wiki can be "zoomed to fit when juxtaposed".

Their curve called a = 0.5 is a length of 120 (in the attached dcd).

I find I can zoom that curve (either up or down) to get both/either of your curves A or B.
I imagine you can calculate "a" for graphs A or B, but I am suggesting instead to just copy bits of the graphs as and when an accurate catenary is required,

Or otherwise use a parabola :)

Dr PR

Sam,

Although there may be a catenary in the anchor chain, it has no significance for anchoring a ship. Most lubbers assume the anchor holds the ship in position. It doesn't - it just holds the end of the anchor chain in place. It is the weight of the anchor chain that actually holds the ship in place.

Ships normally anchor in harbors or river channels where the water depth is pretty shallow - less than 100 ft. The length of the anchor chain is much longer than this. For example, the cruiser I was on had a 1020 foot long anchor chain, and almost all of it was payed out when we anchored. So if we anchored in 50 feet of water we had about 900 feet of chain on the bottom.

The anchor weighed 13,000 pounds and the chain weighed 60,000 pounds, or 73,000 pounds total. Interestingly, calculations on the blueprints show that the anchor handling system was designed to lift only about 50,000 pounds, or a maximum of 360 feet - only about 1/3 of the length of the chain. So we couldn't anchor in more than about 300 feet of water.

Consequently, the catenary was only a relatively short part of the chain and the rest was horizontal on the bottom. When there was little current the weight of the catenary would pull the ship so the chain hung straight down all the way to the bottom, except perhaps for a small curve between the vertical and horizontal parts. Strong currents would move the ship, pulling on the chain and lifting some of it off the bottom, and this is when there was a catenary.

That's your seamanship trivia for the day.

Phil
DesignCAD user since 1987

samdavo

#14
Thanks Phil.
Some good points. Clearly you work in the big league.

But having done a bit of yachting in the Pacific, (typically 60 footers), one thing I do know is that anchors can become caught in coral reefs - and at 100 odd feet, it is necessary to carry Scuba gear to free them.  We tore the bowspit off one boat trying to free one anchor chain that had become wrapped around and around a series of 30 foot high coral "heads" - northern Fiji :) -  front stay flying loose in the breeze - jury rigged a new one (bowspit) overnight - without access to CAD btw)