Hi,
When using a Python script to get results from a calculation, I use the function:
u1, uy_c = get_result(g_i.Phase_1) for a specific phase. For example within get_result() the method to obtain uy_c = float(g_o.getsingleresult(phase_o,g_o.ResultTypes.Soil.Uy,0,0)) . This works fine
I do this for multiple phases. However, the problem I run into is that sometimes this function/callable gives an answer, but if I open the model in Plaxis it says:
'Soil body seems to collapse. Please inspect Output results. Accuracy condition not reached in last step. [Error code: 111]'
Therefore, it will not calculate the next phase, which is correct in my opinion. But for uy_c I do obtain a value, but I want some error code or value which informs me about the Soil body collapse.
How can I obtain or call the value for the 'Soil body seems to collapse. Please inspect Output results. Accuracy condition not reached in last step. [Error code: 111]''? Which this value I can tell the script which creates output that the specific phase has failed.
Thank you in advance.
Hi Thijmen,
The phase result (error code) is stored in the Input program in the phase object. Two properties are interesting:
Output does not have this info.
The idea is that even for failed calculations we can see the results, so we can inspect what goes wrong, so that would be the reason you still get a value in your script.
I hope this solves it!
Kind regards,
Micha
Answer Verified By: Micha van der Sloot
Hi Micha,
This works perfect! Thanks a lot.