Catenary Script
All  1-11  12-13

Previous
Next
 From:  bemfarmer
4454.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.

EDITED: 8 Nov 2012 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
4454.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:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-11  12-13