Skip to main content
1-Visitor
June 19, 2014
Question

Mathcad Prime multithreading

  • June 19, 2014
  • 2 replies
  • 4017 views

My company has recently gone over to Mathcad Prime due to most of our employees only needing to do basic calculations but I tend to need to use it for a wider range of uses but I still need to be using the same version as everyone else

At present I am working on a wave loading worksheet and need to integrate between two points to obtain the force on an object but I keep getting a message saying that it can not converge (even though it can solve the parts of the integration individually)

Naturally I tried to see what options I had and I noticed that I had the multithreading enabled so I thought I'd turn that off and now it can solve the worksheet. Then tried turning it on again and it couldnt solve the equation, then on and again it solved it

My question is what is going on with the multithreading and how it affects what it does when it integrates an expression?

I know multithreading allows use of more of the computers cores and lets multiple equations be solved at once but it also seems to prevent the mathcad from solving some integrations. (as it was able to solve some, but not others)

What other functions can't be used when you have multithreading enabled and what kind of mathcad sheets was multithreading designed for?

2 replies

1-Visitor
June 19, 2014

Very strange. With multi-threading turned on, Mathcad is able to calculate equations in parallel. However, it must respect the logical order, i.e. it must calculate definitions of variables before they are used so I would have expected Mathcad to converge to a solution in both cases.

Can you upload a worksheet?

HayleyW871-VisitorAuthor
1-Visitor
June 19, 2014

Unfortunately I wont be able to upload the sheet itself because of the content but it is basically the stokes wave theory (obtained from Fenton) to obtain velocities and accelerations of particles and using the Morrisons equations to integrate between the seabed and crest elevation to obtain a wave loading

Below is a screen shot of what happens though:

With multithreading on:

Defining+the+function+-+multithreading.PNG

With multithreading disabled:

Defining+the+function+working.PNG

Oddly enough, it gave a new error saying units werent compatible... not had that one before, usually it just says the converging error, but whatever the error says, it still is an error when I have multithreading enabled

HayleyW871-VisitorAuthor
1-Visitor
June 19, 2014

and a new error using the multithreading enabled:

Result2.PNG

Guess what the error message keeps changing (Moment is also an integrating equation but it is also multiplied by the distance).

hence why I asked my original questions, why can't it seem to solve a sheet when multithreading is enabled even though it can solve it when it is disabled

25-Diamond I
June 19, 2014

Looks like you found a bug you should report to PTC support!

HayleyW871-VisitorAuthor
1-Visitor
June 19, 2014

I understand that people may not be able to help without seeing the sheet, I was just wondering whether there was a known issue with multithreading or if people knew exactly how the multithreading option works that would cause an issue with functions such as integration

Thanks for everyones help, I guess PTC it is then

25-Diamond I
June 19, 2014

YOu could be able to reproduce the issue creating a dummy function but chances are the effect will not show then as is may have to do with the exact way your functions are defined.