MoI discussion forum
MoI discussion forum

Full Version: Catenary Script

Show messages: All  1-9  10-13

From: Michael T. (MICTU_UTCIM)
23 Mar 2012   [#10] In reply to [#9]
Just downloaded it bemfarmer, I'll give it a spin.

Thanks,

Michael T.
From: Michael T. (MICTU_UTCIM)
23 Mar 2012   [#11] In reply to [#9]
That did the trick bemfarmer. Works great in v2 now!

Michael T.
From: bemfarmer
26 Mar 2012   [#12]
Note: this is an Unofficial script, by an amateur programmer...
The script works pretty good. It needs an adjustment to "aGuess" if the two points are close together, "relative" to the arclength S.
Values of .1 to .5 seem good in that situation. Some additional code to assist NewtonRaphson may be in order.

Here is an updated script which will Also accept points with different z values.
Gravity is still in the -y direction. The two points cannot be vertically one above the other.

Also attached the rambling PDF about catenaries, which has been edited numerous times, but may still have errors...

Just added in a coordinate frame, using previous explainations of Michael, to temporarily rotate the x-axis about the new parallel y-axis, which effectively converts
the z coordinates to zero, so that the prior Catenary2PtXY code is re-used.

Changing the direction of gravity, or finding S given "a," have not been done.
From: bemfarmer
20 Feb 2018   [#13]
Here is the old simple catenary script which seems to have been deleted sometime.
Removed an extraneous line of code which MoI4 picked up as an error.
Works for MoI3 and MoI4Feb2018beta.
- Brian

Attachments:
_Catenary.zip


Show messages: All  1-9  10-13