Hello,
I'm trying to write a python script that will extract stress and displacement results from all nodes on a single chosen interface, but am having some trouble with getting results for the interface element, i've tried variations on the code below, but get the error as shown:
Code:
stress_results = g_o.getresults(phase,g_o.ResultTypes.Interface.InterfaceTotalNormalStress,'node')
(also not working: g_o.getresults(interface,phase,g_o.ResultTypes.Interface.InterfaceTotalNormalStress,'node') ((the structure of which works fine for extracting beam / embedded beam results)
Error (in PLAXIS):
!!!!> getresults 8 ResultTypes.Interface.InterfaceTotalNormalStress "node"Invalid parameters. Make sure that the specified parameters match the ones that are expected.
I know the above (when working) will get me node results for every interface in the model. Would there be a way to instruct it to only extract results from an interface with a certain reference?
As always, any help would be very much appreciated!
Kind regards
Maddie
Thanks you Stefanos. I thought of filtering by name but I couldn't get the name for each interface. It works when I call results for one Interface (PositiveInterface_1 for example) but when I call all the interfaces, I get "Interfaces". Do you have a suggestion ?
Hello again,
I meant that you should loop over all Interfaces.
This means that you would have first PositiveInterface_1_1, PositiveInterface_1_2 and so on and then NegativeInterface_1_1, NegativeInterface_1_2 and so on. There you can do your filtering.
That would be the first parameter of the getresults command as noted in the examples of the Command Reference, too.
Okay I understand. I've been avoiding this but I see that I have no choice. Thank you Stefanos, have a good day.