Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Law curve failed generation: atangent function

Status
Not open for further replies.

BourneWang

Mechanical
Feb 28, 2022
2
I'd like to generate a law curve in NX, formula could be referred as below:

t=0

x1=2*t

y1=t*t+2*t+1

alpha=atangent(x1/y1)

x2=sqrt(x1*x1+y1*y1)*cos(alpha)

y2=sqrt(x1*x1+y1*y1)*sin(alpha)

I want to plot x2, y2, but it not works, could anyone help me?

Thanks in advance.
 
Replies continue below

Recommended for you

All equations used by the Law curve X, Y and Z must use the "function of t". where NX will vary "t" between 0 and 1.
you can set Z to be "constant = 0" to "skip" that but the curve will still contain/ must have a Z value.

Does this help ?

Regards,
Tomas

Never try to teach a pig to sing. I wastes your time and it annoys the pig.:)
 
Fix the issue, replace with rtan!!!! It works, waiting SIEMENS engineer make some explanation about it.

t=0

x1=2*t

y1=t*t+2*t+1

alpha=deg(rtan(x1/y1))

x2=sqrt(x1*x1+y1*y1)*cos(alpha)

y2=sqrt(x1*x1+y1*y1)*sin(alpha)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor