We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
catenary (Read 1653 times)
catenary
May 2nd, 2008, 2:08pm
 
looking for some nice code for simulating a cable catenary, thinking of using particle sim. but new to the stuff, anyone?

preferably catenary must resemble real world catenary

Re: catenary
Reply #1 - Mar 22nd, 2009, 3:03pm
 
Hi,
I am also looking for any advice in both visuallising catenaries and deriving values.
for the current project I am specifying a number (100+) catenaries by their width(w) and fall(f), and from this I need the length and a formula that can be rendered.
Also to begin with the catenary start points are assumed to be level.
At present I am using Mathematica, but just decided to have a look if anyone in processing has got any advice.

I am an artist, self taught in programming and mathematics and would dearly appreciate any help offered to assist me on my torturous path.
John
Re: catenary
Reply #2 - Mar 23rd, 2009, 12:29am
 
Could be easily done by using the trear physic lib.
The cloth example is close to what you want

http://www.cs.princeton.edu/~traer/cloth/

Re: catenary
Reply #3 - Mar 23rd, 2009, 1:21am
 
Thankyou Cedric,
I will look through cloth.pde
J
Re: catenary
Reply #4 - Mar 23rd, 2009, 1:42am
 
Is it true there is no mention of Cosh (hyperbolic function) or exponential series here?
Did you code this piece?
J
Re: catenary
Reply #5 - Mar 23rd, 2009, 1:54pm
 
Nope i didnt, its just an example of the traer physics librarie you can find here : http://www.cs.princeton.edu/~traer/physics/

you can easily connect X particles with springs and get your catenaries... you can then define the strenght, gravity etc to change its behavior
Re: catenary
Reply #6 - May 22nd, 2009, 12:49pm
 
I'm having trouble running the physics.jar file in the libraries folder of the processing sketchbook(I'm placing it inside the "processing" application package. I have other libraries working fine that I have placed there, but the traer physics library will not run/it cannot find it.

The error is as follows:
"The package 'physics' does not exist. You might be missing a library."

It seems like an easy fix may be to slightly alter the syntax or place it a specific way in the libraries folder, but I have not been able to figure it out.

Any help would be great! thanks

devin
Re: catenary
Reply #7 - May 22nd, 2009, 12:50pm
 
also I am running on mac os x 10.5
Page Index Toggle Pages: 1