Application | PLAXIS 2D |
Version | PLAXIS 2D 2024.2 and later |
Date created | 07 April 2025 |
Date modified | 07 April 2025 |
Original author | Stefanos Papavasileiou -
Technical Support Group
|
Keywords | PLAXIS, automation, Python, scripting, API, py, cookbook, embankment |
A road embankment is usually a long structure and lies on non-homogeneous subsoil conditions at different locations.
A plane strain (2D) model can be utilized to analyze different sections of the embankment and PLAXIS 2D can provide insights into settlements, slope stability, and other key results.
However, the creation of a large number of models can be a time-consuming process and repetitive work can be cumbersome, especially when similar cross sections are considered.
Figure 1. Variables used for embankment model geometry definition
Figure 2. Python solution for the creation of an embankment cross section in PLAXIS 2D
The Python scripts create a half-symmetric 2D model which creates the geometry based on user input. It considers the soil layers as well as the embankment information along with the loading conditions and consolidation time. The solution also covers the meshing and preparation of the necessary Staged construction phases which are set to perform a consolidation and a follow-up safety analysis.
The outcome of the script apart from the calculated PLAXIS 2D model is a report containing the key results for the performed analyses.
This Python script is originally based on a Python solution created for the purpose of handling the Automatically generated cross-sections of embankments (see link).
This script has been tested with PLAXIS 2D 2024.2 and Python 3.12.3.