Making a user-defined curve from equation
Making a user-defined curve from equation
(OP)
Hello all,
I hope someone will be able to help me with this. I want to create a parametric curve of a 2D logarithmic spiral, ultimately to create an extruded body out of it.
The equation of this curve is given by:
In polar coordinates:
r = a*e^(b*theta)
or
theta = (1/b)*ln(r/a)
In parametric form:
x(t) = r(t)*cos(t) = a*e^(b*t)*cos(t)
y(t) = r(t)*sin(t) = a*e^(b*t)*sin(t)
where "a" and "b" are constants.
I want to be able to manually "orient" the spiral (t) -> (t + phi) and bring it into a sketch using Existing Curves and also to close the spiral. I guess the way to do this is Insert > Curve > Helix... > Radius Method: Use Law > etc.
It would be best to be able to input the parametric equation of the spiral as an expression(s) but after having not used NX full-time for several years, I've gotten quite rusty.
Thanks very much in advance for any help!
I hope someone will be able to help me with this. I want to create a parametric curve of a 2D logarithmic spiral, ultimately to create an extruded body out of it.
The equation of this curve is given by:
In polar coordinates:
r = a*e^(b*theta)
or
theta = (1/b)*ln(r/a)
In parametric form:
x(t) = r(t)*cos(t) = a*e^(b*t)*cos(t)
y(t) = r(t)*sin(t) = a*e^(b*t)*sin(t)
where "a" and "b" are constants.
I want to be able to manually "orient" the spiral (t) -> (t + phi) and bring it into a sketch using Existing Curves and also to close the spiral. I guess the way to do this is Insert > Curve > Helix... > Radius Method: Use Law > etc.
It would be best to be able to input the parametric equation of the spiral as an expression(s) but after having not used NX full-time for several years, I've gotten quite rusty.
Thanks very much in advance for any help!





RE: Making a user-defined curve from equation
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: Making a user-defined curve from equation
I also made up an Excel sheet where I can vary the parameters and visualize the results out of an X-Y table.
Regards,
Dave.
RE: Making a user-defined curve from equation
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: Making a user-defined curve from equation
I'm reading up some more on the logarithmic spiral function. Seems there are a couple of different forms in cartesian coordinates. Is there a way to do a law curve in polar coordinates? Or using increment indexes, i.e.:
x_ij = x_ij-1 + (increment_i)*((ln(W/(2*pi)))*x_ij-1 - y_ij-1)
y_ij = y_ij-1 + (increment_i)*((ln(W/(2*pi)))*y_ij-1 + y_ij-1)
Thanks again!
RE: Making a user-defined curve from equation
Now keep in mind that in the terminology of NX 'Law Curves', the variable 't' is the parameter which gets evaluated (from 0 to 1) and the user has no real control over its value as it's used by the Law Curve function itself to drive the evaluation.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: Making a user-defined curve from equation
The following image was not created by me but I posted it as a [ img link. for image on following site http://bignico.wordpress.com/
None of my images have that cool shading and shadow effect, At least not yet.
"It's not the size of the Forum that matters, It's the Quality of the Posts"
Michael Cole
Boston, MA
CSWP, CSWI, CSWTS
Follow me on !w¡#$%
@ TrajPar - @ Shweep
= ProE = SolidWorks
RE: Making a user-defined curve from equation
xt = a*exp(b*t)*cos(Num*360*t)
yt = a*exp(b*t)*sin(Num*360*t)
Two problems I'm encountering (sorry if these may seem very trivial - my last full-time use was when the original NX was current...):
1) I cannot seem to bring in the spiral geometry into a sketch. I tried what I remembered - In a sketch, Insert > Curve from Curves > Existing Curves - but am not able to select the spiral.
2) To close the spiral to be able to extrude, I am thinking of either creating two spirals and making an outside arc that's tangent to both to make a continuous shape or permit discontinuities at the intersection of the two spirals at two specifically chosen polar angles (the final shape will actually be two spiral halves that come together with a ~1mm gap. In the first case, no solution can seem to be found for an outside arc, only inside. The second case just needs me to spend some time with some math and my Excel sheet to determine the parameters a, b and Num for each of the two spirals where the x and y coordinates are coincident at the chosen theta and (cross my fingers) be able to trim the two spirals to make one closed shape... John, does my logic make any sense?
Thanks again!
RE: Making a user-defined curve from equation
Insert -> Recipe Curve -> Project Curve...
...to effectively 'add' (if the 'Associative' option is toggled ON) a Law Curve to the Sketch, in that editing the original 'feature' curve will cause the Sketch to update.
As for using a single sprial curve to create a SOLID body, try using the Extrude function with the 'Offset' option set to give it some 'thickness'.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: Making a user-defined curve from equation
Looked at your example as I am having problems, "Invalid spine or law function data" with a similar law curve I am trying to create for the involute of an internal spline between the minor diameter and the form diameter. See the attached for the relevant expressions.
I am at a loss, but suspect the error is because several of the expressions used in the parametric equations have units (in, radians) even though the parametric equations themselves are unitless.
RE: Making a user-defined curve from equation
Note that I tired to test your expressions and I also get the same error, however without seeing a simple format for the two equations it will be difficult to see where the problem might be.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.