Errors inputting formula for equation curve

Errors inputting formula for equation curve

dunleavy_liam
Explorer Explorer
398 Views
1 Reply
Message 1 of 2

Errors inputting formula for equation curve

dunleavy_liam
Explorer
Explorer

I'm trying to input this parametric equation as a curve in an inventor sketch:

x(t) = (1/sqrt((cos(t)/HorizontalDiameter)^2)+(sin(t)/VerticalDiameter)^2))+VentSlope*(t+StartAngle)+VentWidth+2*WallThickness)*cos(t)

 

y(t) = (1/sqrt((cos(t)/HorizontalDiameter)^2)+(sin(t)/VerticalDiameter)^2))+VentSlope*(t+StartAngle)+VentWidth+2*WallThickness)*sin(t)+Kvalue

 

HorizontalDiameter, VerticalDiameter, and KValue are all reference parameters with mm units. StartAngle is a reference angle with deg units. All other parameters are user based in mms

 

No matter what I do (Reformatting the equation such as VentSlope*t+VentSlope*StartAngle instead of VentSlope*(t+StartAngle), isolating parameters to convert units i.e. StartAngle from deg -> ul or VentSlope from mm -> ul, etc.) Inventor throws some kind of error, usually either "Expected units are length" or "The curve is irregular from parameter {a} to {b}"+"Generic problem caused by the equation". As shown in the image, when the curve is actually graphed, there are no issues, so it's not a mathematical error. How am I supposed to input this?

0 Likes
Accepted solutions (1)
399 Views
1 Reply
Reply (1)
Message 2 of 2

Alexander_Chernikov
Mentor
Mentor
Accepted solution

There are several errors with extra brackets, variable name (register) and units.

Equations that works:

x(t):

(1/sqrt((cos(t)/HorizontalDiameter)^2+(sin(t)/VerticalDiameter)^2)+VentSlope*(t+StartAngle / 1 deg)+VentWidth+2*WallThickness)*cos(t)

 

y(t):

(1/sqrt((cos(t)/HorizontalDiameter)^2+(sin(t)/VerticalDiameter)^2)+VentSlope*(t+StartAngle/1deg)+VentWidth+2*WallThickness)*sin(t)+KValue

Alexander_Chernikov_0-1713899605183.png

 

The file is added (in IV2023)

Do you find the posts helpful? "LIKE" these posts! | Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням!
Have your question been answered successfully? Click "ACCEPT SOLUTION" button. | На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ"

Олександр Черніков / Alexander Chernikov

EESignature

Facebook | LinkedIn

.