Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

Issue with Solve Block in Mathcad Prime 9

MD_14506269
2-Explorer

Issue with Solve Block in Mathcad Prime 9

I was trying to convert a mathcad 15 file to mathcad prime 9, but I get an error in solving for this variable I placed all my guess values and constraints but it still does not work. Refer to the pictures with the solve block and how it was performed in mathcad 15.Mathcad 15 how it was performedMathcad 15 how it was performedMathcad prime 9.0 error in solve blockMathcad prime 9.0 error in solve block

 
ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:MD_14506269)

Main problem was that you used a literal index on xi while you should have used a vector matrix index.

grafik.png

 

Another problem was an error in the second solve block equation of the first solve block.

 

Details see in attached Prime 9 file

View solution in original post

6 REPLIES 6
Werner_E
25-Diamond I
(To:MD_14506269)

I guess you can spot the difference

grafik.png     grafik.png 

can't you?

 

You have a system of three equations and three variables you provide guess values for. 

So you also have to solve for all these three variables, not just for one!

Otherwise Prime would use the guess values for x.na and fc and tries to find a solution for fs which fulfills all three equations and obviously can't find such a solution.

I originally performed it the way that you are telling me but, refer to the photo below, I got the same error and from videos that I saw I believed this was the correct way to solve in prime.

Mathcad Prime Error2.png

 
Werner_E
25-Diamond I
(To:MD_14506269)

 

You may try to assign CTOL a larger value to increase the chance that the integrals converge.

Setting it to a smaller (10^-7) value than 10^-3 as you did decreases the chance.

 

So why don't you attach both sheets here, the MC15 and the P9 sheet.

Depending on the way you attach and the browser you use you may need to pack them into a zip archive to be allowed to attach them.

Just modified the CTOL value and it did not change the issue. I do not have the mathcad 15 file for the original but I attached the pdf for that as well as the sheet for P9.

Werner_E
25-Diamond I
(To:MD_14506269)

Main problem was that you used a literal index on xi while you should have used a vector matrix index.

grafik.png

 

Another problem was an error in the second solve block equation of the first solve block.

 

Details see in attached Prime 9 file

Thank you for the help now I know for next time! Yes I was going to fix the second solve block after I was able to get the first solve block to work.

Announcements


Top Tags