cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Undefined variable

rbijker
1-Newbie

Undefined variable

Hello,

After a few hours of searching the web to finally get my calculation done. I don't have find a reason why I get the error undefined variable.

Can you please help me out with this?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:LucMeekes)

Then you will need to sort out your units. You only provide units for alpha1, so you will run into a units problem.

Be sure to provide consistent units for all of your parameters, or provide none at all.

And finally your problem is reasonably straightforward, you don't need a solve-block:

Success!
Luc

View solution in original post

3 REPLIES 3
LucMeekes
23-Emerald III
(To:rbijker)

You get the undefined value's because they're actually not 'defined'.

While you (probably) can put the expressions for dmax, alpha1 etc. in the 'guess values' section, you MUST describe them as assignments, not as constraints.

Change the solid '=' to an assignment ':=' for dmax through T3 and I think it will work. I cannot check, because I'm limited to Prime express.

Of course the two constraints for Phi must be written with a solid '=', that's OK in your sheet.

Success!
Luc

LucMeekes
23-Emerald III
(To:LucMeekes)

Then you will need to sort out your units. You only provide units for alpha1, so you will run into a units problem.

Be sure to provide consistent units for all of your parameters, or provide none at all.

And finally your problem is reasonably straightforward, you don't need a solve-block:

Success!
Luc

Luc thank you for you're help!

Top Tags