Since PLAXIS 2D 2015 and PLAXIS 3D AE, the Output program can also be accessed via REST HTTP / Remote Scripting API in order to retrieve calculation result data via a scripting interface.
Retrieving curve data is one of the possible options for data retrieval. In this example, we will retrieve the results and store these in a text file.
First, we will need to make sure that the current open PLAXIS Output program is accessible as Remote Scripting server. This can be achieved by activating the Remote scripting server via the Expert menu in the Output program.
For more information on how to do this follow the article about:
Using PLAXIS Remote scripting with the Python wrapper
Now we can retrieve the data. For this, we will use the command getcurveresults(). Since this command will only return one result value, the script will need to access each step id of the desired phases.
In the example below, the Python script stores a table in a file, and it will store the following columns, using the phase order as specified in the parameter:
- phase name
- step number
- u_y for Node A ( g_o.Nodes )
- u_y for Node B ( g_o.Nodes )
Note: You will need to store all steps during your calculation, otherwise it will not be possible to retrieve the time value for any of the unsaved steps.
Now we can make a call to this function in order to save a text file with this data for phases Phase_1 and Phase_2:
This data can then easily be used in spreadsheet programs to easily create charts or do other sorts of post-processing.
- To retrieve ΣMstage, use
- To retrieve Force Fx, Fy or Fz (for 3D), use , or respectively
- Time value parameters are named as following (see compatibility notes since 2D 2016):
- time interval for last step [in project time unit], use or , respectively
- reached total end time of phase or step [in project time unit], use or , respectively
- reached total dynamic time in seconds [dynamics only], use or , respectively
- To get this data per step, use . To get the phase final value, use .
This Python script runs with PLAXIS 2D CONNECT Edition v20 using Python 3.7.x.
The script was originally written for PLAXIS 2D 2017.00 using Python 3.4.x.