This repository contains a collection of Python scripts for automating the extraction and processing of geotechnical data from PLAXIS models. The scripts are designed to streamline the workflow for analyzing cross-section results, strut forces, wall forces, settlements, and more. They provide functionalities for batch processing of multiple models.
To use the scripts in this repository, you need to have Plaxis 2D installed on your machine.
Open the Python interpreter in Plaxis Input or Output (depending on input automation or result extraction automation) to start using the scripts:
-
StrutForceAutomation
- Extracts strut forces within a specified range of x-coordinates from the PLAXIS model.
-
WallForceAutomation
- Retrieves and processes wall forces, merging data where applicable.
-
PlotImage
- Exports an image of the current PLAXIS model, focusing on displacement results.
-
SettlementAutomation
- Extracts settlement data at specified levels and x-coordinates.
-
BatchExtractSettlement_Simple
- Processes multiple PLAXIS models to extract settlement data along a specified y-level.
-
BatchExtractStrutForce_Simple
- Extracts strut forces from multiple PLAXIS models and prints the results for each phase.
-
BatchExtractWallForce_Simple
- Extracts wall forces for each phase and prints the maximum and minimum values for each force component.
-
BatchCalculate
- Automates the calculation process for a batch of PLAXIS models, saving each model after calculation.
- Users can input multiple file paths separated by commas, and the script will process each model in sequence. Calculation times for individual models and the total processing time are displayed.
-
SectionVaryAlongXY
- Prompts the user to input parameters for varying a cross-section along the x or y direction.
- Extracts and prints the minimum and maximum normal stresses for specified phases.
-
Section_StageByStage
- Extracts and prints minimum and maximum total normal stresses for each phase along a specified cross-section.
-
Rearrange_pdf
- Rearranges pages of a PDF file based on the order specified in a text file.
-
RunThis
- Automates the extraction of both strut and wall forces, and optionally generates a plot image.
-
RunSingle
- Processes a single PLAXIS file, extracting forces and optionally generating a plot image.
-
RunAllInFolder
- Processes all PLAXIS files in a specified folder, extracting forces and optionally generating plot images.
This project was created by Kinen Ma.