Grasshopper

algorithmic modeling for Rhino

Sine Wave Along a Curve, Attractor Points to Vary Amplitude & Frequency Along Curve

I would like to create a sine wave that follows a curve, where the frequency of the sine wave can vary at specified points. The variation of frequency can be controlled by user input as only a limited amount of points will be needed.

(right) To the right is a sketch of the desired outcome.

For now, I am only interested in this as a 2d curve to use for a circulation diagram, but it is a nice representation of energy dissapation that could be used in other ways.

(below) This is the definition I'm using for the Sine wave following a specified curve, but cannot figure out how to alter the Amp & Freq at only specified points. (attached)

Views: 6959

Attachments:

Replies to This Discussion

Hello Karl,

wow, what a challange! Have a look at my attempt. Its not perfect yet, because where the 2 frequencies meet, it should blend seamlessly, but I think its a good starting point.

I also used a much simpler (ie. faster) way to calculate the points using just vectors and no planes.

Hope it helps!

Attachments:

That is a challenge, and I'm not happy with this solution. Much too discontinuous.

Attachments:

Here is my contribution, I interpolate a curve at the top of each inflexion (max and min) of the curve. You have to feed the number of inflexions you want, the amplitude and the frequency multiplier. 

Nice - getting closer! Do you mind sharing your .gh file?

I forgot file !

I think I have an error. Not enough check !

Attachments:

I change the interpolate function, because I needed an interpolate but not to get the y giving the x but getting the x for a y given. I use curve intersection to do that. There must be a simpliest way. 

Attachments:

He just needs to implement FM in GH. It's an intermediate function.

Attachments:

This turned out to be much more advanced than I realized, and a bit beyond me. I am still deciphering the definitions you've created. They were good enough for my current needs, but I hope to continue refining this as I learn more. I appreciate all the help!

Karl,

Were you trying to do FM synthesis waves in GH? If so, check the wiki.

Hi Bohmwave,

I've looked at you image, but couldn't figure out what you meant and how to recreate your results. I'm particularly interested in the purple curve... Could you post your grasshopper file? Thanks so much!

see adjacent comment. Purple curve is 1st derivative of green one. it plots the points of green curve's zero-crossing as max-min, and max-min as zero crossings.

http://www.grasshopper3d.com/forum/topics/sine-wave-along-a-curve-a...

Bohmwave,

Perhaps I was, though not consciously. At the time I just needed it as a graphic tool to show intensity of pedestrian traffic. Your solution here looks great though, I am interested in applying this to other form-making processes.

Could you share some more insight for how to create FM Synthesis Waves? A link to the 'wiki' or your definition?

Thank you

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service