Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I wrote a small program to simulate astro dynamics.
The program crashes (program terminate and disappear from screen) when I increase the number of iterations and celestial bodies.
No error message!
Can someone help? I can share my program.
Thanks
Serge
Solved! Go to Solution.
Here is the program attached. Make sure you disable auto calculation before opening the file.
There three variables highlighted in red with comments indicating the values you can try. there is more frequent crashes with high values for the Iteration variable.
Thanks
Then, share the worksheet, and let's see.
Luc
There is two algo for computing a trajectory
PEFRL and LeapFrog (Highlighted in RED)
If I increase Iteration from 300 to 3000 (Highlighted in RED) the program is likely to crash.
If I remove (delete) one or the other of the algo the program does not crash.
I’m running windows 10 and I have a RTX 2080 graphic card in my computer.
Thanks for looking at this issue.
You need to go here:
https://community.ptc.com/t5/Mathcad/Mathcad-prime-9-0-crashes-at-execution/td-p/920562
And attach your worksheet file.
Success!
Luc
Here is the program attached. Make sure you disable auto calculation before opening the file.
There three variables highlighted in red with comments indicating the values you can try. there is more frequent crashes with high values for the Iteration variable.
Thanks
There's no need to reply to people individually. Attaching once suffices. Anyway.
I've opened your file, and it shows your last calculation result, as is customary for Prime. No need to set autocalc off beforehand.
When I change the Delta_t from 3 days to 1 day, it recalculates and gives an error message on the plots for position and velocity below
The error message is:
You've used the chart component, which is the probable cause for this error. The chart component is a third party component that is badly integrated into Prime. While it allows to set a grid, it does not handle units, which to my opinion is a no-go. You're using no grid, so in the attached copy, I've changed the chart components to native plots. (There are ways to plot a grid into native plots, see e.g. https://community.ptc.com/t5/Mathcad/Bode-Plot-NaN-Complex-values-Error-and-Plot-Grid-Does-Not-Exist/m-p/830506/highlight/true#M203237 )
I've not experienced sudden crash of Prime at the combination of the following settings:
.
Success!
Luc
When I change Delta_t to 1 day I don't get any error or crash.
The same applies when I set the values of the other variables to the one you named.
BUT ... when I tried to save the sheet, I got a strange error message
Doing as advised (double clicking the left chart drawing) freezed Prime and made it inoperable for quite a while. Then after two minutes ore more I noticed the chart window in the background popping up. But it was inoperable, too, and it took again a long time before I was able to close that Chart UI. Closing it brought me back to Prime, but again no success in saving the sheet.
I did the same for the center Chart (velocity) - no success. As I could not be bothered wasting time doing so with the right chart (position), too, I deleted this chart and also the two charts at the top of the sheet. Again no success with saving the sheet.
Thanks Luc for looking at this case.
Here is the program attached. Make sure you disable auto calculation before opening the file.
There three variables highlighted in red with comments indicating the values you can try. there is more frequent crashes with high values for the Iteration variable.
Thanks
I still have issues with mathcad Prime 9 crashing all the time. It may be related to parameters inputs (highlighted in yellow on page 2 and page 8). Try different values. Sometime just editing makes the Mathcad crash without any message. I'm currently working on Mission to Moon on page 2. the result is shown in page 10.
Thanks for your help.