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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Finding symbolic solution for 18 unknowns in Prime 3.1

anton_didenko
5-Regular Member

Finding symbolic solution for 18 unknowns in Prime 3.1

Hello, dear Mathcad community! 

 

I am working with 18 equations and I need to get the result of 18 unknowns symbolically. 

I have searched through the PTC community and tutorials, but Mathcad is telling me about the error with undefined parameter in the function. Can you please help to figure that out? And is it possible to solve such many equations symbolically in Prime 3.1? 

ACCEPTED SOLUTION

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

Alas, (fully) symbolic appears to be beyond Mathcad capacity. The combination of many variables with 2nd order term may result in a problem exceeding 4th order, for which there is no symbolic solution possible in Mathcad.

But numerically you can get the values of all your output variables as a function of t:

LucMeekes_1-1613256584320.png

This is how it was set up:

LucMeekes_2-1613256642594.png

From there you can extract the variables as a function:

LucMeekes_3-1613256679379.png

Next you can plot them as shown above.

Oh, don't forget. I assumed that your x.J0 (and y.J0 and z.J0) knowns are on the 4th row (the one with index 3) of you HP matrix. The Prime file didn't (appear to) use these matrix elements. You forgot them?

 

Success!

Luc

 

View solution in original post

6 REPLIES 6
LucMeekes
23-Emerald III
(To:anton_didenko)

The very first thing you should do is check the labels of all your variables. Start with phi. Are all your phi's labelled the same? If one is labelled as a 'variable' and another is labelled '-' the symbolic processor may treat them as different variables.

 

Success!
Luc

If you want solve symbolical a system of equations try at first to solve one equation!

Sys.png

The reason you get this error is because you can't solve symbolically for variables which already have been assigned a value.

You have to clear those variables - either with "clear(...)" or at least with "clear.sym(...)" for symbolic calculations

Werner_E_0-1613082011260.png

I did this and now the region still fails (tried it with Prime 5) with  an "unknown error".
I might be worth to follow Luc's suggestion an label ALL variables the same (either all "Variable" or all "-"(automatic)). Don't forget the variables in the vector after "solve" !

 

image.pngimage.pngimage.pngimage.pngimage.pngimage.png

LucMeekes
23-Emerald III
(To:anton_didenko)

Alas, (fully) symbolic appears to be beyond Mathcad capacity. The combination of many variables with 2nd order term may result in a problem exceeding 4th order, for which there is no symbolic solution possible in Mathcad.

But numerically you can get the values of all your output variables as a function of t:

LucMeekes_1-1613256584320.png

This is how it was set up:

LucMeekes_2-1613256642594.png

From there you can extract the variables as a function:

LucMeekes_3-1613256679379.png

Next you can plot them as shown above.

Oh, don't forget. I assumed that your x.J0 (and y.J0 and z.J0) knowns are on the 4th row (the one with index 3) of you HP matrix. The Prime file didn't (appear to) use these matrix elements. You forgot them?

 

Success!

Luc

 

anton_didenko
5-Regular Member
(To:LucMeekes)

Hello, Luc! 

Thank you for your replies! I was pretty sure that this is not kind of the task to solve the way I was trying to 🙂

 

That is absolutely the result I was trying to get, Luc! I have tried it in Prime 3.1 and it worked! 

 

And about the 3'd row in the HP matrix... Yes, I missed it on purpose, since I am assuming that the upper point of the spring is the same as the upper point of the strut. But in the general case, you are right and we should consider the 3'd row also.

 

All the best, 

Anton

 

 

Announcements

Top Tags