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.