This project provides a Python-based solution for importing multiple .iges files (developed via visual programming) into Abaqus, creating parts, generating assembly instances, and adding a reference point based on coordinates from a text file (which depends on the loading joint socket of the hydraulic jack). It automates repetitive tasks and ensures consistent setup for Abaqus simulations.
- Automated IGES Import: Detects all
.igesfiles in the directory and imports them into Abaqus. - Wire and Solid Detection: Automatically detects reinforcement/wire components (e.g., stirrups, ties, long bars) based on filename keywords.
- Part Creation: Creates Abaqus parts from IGES geometry with configurable settings for solid or wire parts.
- Assembly Instances: Generates independent instances of each part in the assembly for further modeling.
- Reference Point Import: Reads coordinates from a text file and creates a reference point in the assembly.
- Viewport Setup: Optimizes viewport display for quick visualization of parts and assembly.
- Clone or download the repository:
RH2ABA. - Place your
.igesfiles in the same directory as the script. - Create a text file
Socket Joint Coordinates.txtcontaining the x, y, z coordinates for the reference point (in a single line, e.g.,{0.0, 10.5, 5.2}). - Run the script inside Abaqus CAE using the Python interpreter embedded in Abaqus:
abaqus cae noGUI=RH2ABA.py - The script will:
- Create a fresh model database.
- Import all IGES files as parts.
- Create assembly instances of each part.
- Add the reference point at the specified coordinates.
- Display messages confirming success for each step.
- Included in the repository are example
.igesfiles demonstrating solid and wire geometries. - The
Socket Joint Coordinates.txtexample file shows how to provide coordinates for the reference point. - All generated parts and assembly variations can be opened directly in Abaqus CAE.
The script requires:
- Abaqus with Python scripting enabled.
- Python standard libraries:
os,glob,re.
No additional packages are required since it uses Abaqus CAE modules.
For a step-by-step video explanation of how this script works, watch the demo here: Generate Design Variations & Build Abaqus Model Automatically with Visual Programming
This project is licensed under the MIT License.
You are free to use, modify, and distribute this software under the MIT License. Please provide credit if you use this tool in your work.
- Developer: Your Name
- Contact: WhatsApp
- Note: This tool is open-source. Contributions, bug reports, and improvements are welcome.