PLAXIS 2019, CONNECT Edition and later
Since PLAXIS 2D 2019, the Input program has an improved way of modelling soil layers. As an addition to the “Modify Soil Layers” window, the soil stratigraphy is now also available in the model explorer under “Stratigraphy”. The “Boreholes” group is now also moved here. Users can, for example, change the layer thickness or top and bottom depths directly via the Model explorer, instead of only relying on the “Modify Soil Layers” window. The changes are also reflected in the command line, giving users who use Python scripting a better structure to access the soil layers information in the model.
With the new PLAXIS 2019 implementation, we have introduced a new item called Stratigraphy which is split into two parts: Boreholes and Soil layers:
- Under the Borehole group, all the different boreholes are stored with some relevant information (e.g. location of the borehole, water head etc).
- Under the Soil layers group, the horizontal soil layers are stored with their height for the different boreholes.
The Python script below shows how to return a list of dictionaries with the following relevant info: soil layer's name, top, bottom and thickness.
When using this code for 2D's Tutorial Lesson 2, this will be the result:
Soil layer in previous PLAXIS versions
In older versions (e.g. PLAXIS 2D 2018, 3D 2018) the information was only stored in the
In each borehole, the information is stored for the different soil layers and their height. The Python script below returns a list of dictionaries with the relevant info: the soil layer's name, top, bottomand thickness.
The Soillayers will be sorted top-down.
The script uses the re module for regular expressions.
The first example was made with PLAXIS 2D 2019.00 using Python 3.4.x.
The above examples are made with PLAXIS 2D 2017.00 and PLAXIS 3D 2016.02 using Python 3.4.x.