Application | PLAXIS 2D PLAXIS 3D |
Version | PLAXIS 2D 2024.2 and later PLAXIS 3D 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, py, cookbook, mesh, coarseness, refine |
In PLAXIS the density of the generated finite element mesh plays an important role in the numerical analysis of your geotechnical projects. Often, multiple iterations are required to find the optimal configuration of global and local refinements.
Selecting an area to apply the local refinements is typically an effective way to achieve this.
This Python scripts provides the workflow of creating a bounding box which will be used to apply local refinements (.CoarsenessFactor). The bounding box can be specified either by directly providing coordinates or by drawing the necessary geometry in the PLAXIS canvas.
The tool will automatically identify the objects that fall within the bounding box and apply the factor you provide. You can continue refining the model using the tool or undo your last action.
This script has been tested with PLAXIS 2D and 3D 2024.2 and Python 3.12.3.