The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Inconsistent Python Script Execution in Ansys Mechanical: Need Assistance! Reply To: Inconsistent Python Script Execution in Ansys Mechanical: Need Assistance!

mjmiddle
Ansys Employee

You shouldn't be using the following in an after_post callback:

solution.EvaluateAllResults()

This would evaluate results again which would run after_post again and get you stuck in an endless loop. The after_post callback is done immediately after all native results are evaluated, so there is no need to call this in your script anyway. All native results will be up-to-date at the time of this after_post callback.