BOPdesigner
Mechanical
- Nov 15, 2005
- 434
In NX 6 I am using a law curve to create a 2D planer spiral.
x(t) = (r0+r)+cos(n*360*t)
y(t) = (r0+r)+sin(n*360*t)
where r is a function of t and n is the number of turns in the spiral. z(t) in this case is 0
Now, I want to superimpose a sine wave on the spiral where the amplitude of the sine wave varies in z. I can to this but using the same equations for x and y and then just add a z(t)= A*sin(n*360*t) but the problem is this sine wave wavelength now varies as r increases from x and y. I want it to be constant along the length of the spiral. In otherwords, take the classice sine wave as a function of time, then wrap the straight line time axis into your spiral. I can't figure out which options to pick to make this curve. When I select the "by law curve" for the new subtype for the x and y and then specify my z as an equation subtype no curve gets created. Any Ideas?
x(t) = (r0+r)+cos(n*360*t)
y(t) = (r0+r)+sin(n*360*t)
where r is a function of t and n is the number of turns in the spiral. z(t) in this case is 0
Now, I want to superimpose a sine wave on the spiral where the amplitude of the sine wave varies in z. I can to this but using the same equations for x and y and then just add a z(t)= A*sin(n*360*t) but the problem is this sine wave wavelength now varies as r increases from x and y. I want it to be constant along the length of the spiral. In otherwords, take the classice sine wave as a function of time, then wrap the straight line time axis into your spiral. I can't figure out which options to pick to make this curve. When I select the "by law curve" for the new subtype for the x and y and then specify my z as an equation subtype no curve gets created. Any Ideas?