I wonder if it is possible to read outputs from plate elements only for the parts that are currently displayed in Output.
I have a model for a circular shaft in Plaxis3D for which I want to hide some parts of the plate sections. I am interested in reading the rest of the plate outputs, which are currently shown in Plaxis3D Output. I used Python scripting command getresults() but it doesn't seem to provide an option for reading parts of the plate elements. I know that using x-, y-, and z-coordinates can help conditionally constrain the results and allow me to read data in a linear section or data contained in a box. But this is not sufficient for my task as I want to hide some other plate elements when reading out the data as well.
I would appreciate it if anyone can help!
Kind regards,
Luan
BAUER Spezialtiefbau
Dear Luan,
The API is not aware of visualisation changes when you query results. Consider that when you run a command to retrieve the values, you are accessing the data files via the command line.
A different approach would be to query results based on their object names for which you will know which is active and which is not.
For example, the following command will give the results for all plates:
getresults Phases[-1] ResultTypes.Plate.Utot "node"
But this one only for Plate_1_1
getresults Plate_1_1 Phases[-1] ResultTypes.Plate.Utot "node"
For more information check the examples in our Command reference (under Help menu) or in the Scripting reference.
Thank you, Stefanos, for the answer! The same issue arises when one wants to read the resulting forces along the interface. Plaxis API doesn't seem to differentiate between a negative interface and a positive interface.
Usually, I use the following Python code like this to read what I want in the interface.
Could you please let me know how to specify it to read only the NegativeInterface_1?
Thanks,
There is no difference between positive and negative interfaces for PLAXIS; they are both Interface elements.
The approach I usually take is to use the name of the object, e.g. NegativeInterface_1 in the getresults command.
You can find examples in our Command reference on how to do this.
In short:
getresults NegativeInterface_1 Phases[-1] ResultTypes.Inteface.InterfaceEffectiveNormalStress "node"