Skip to content

tufailmab/RH2ABA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RH2ABA: Automated IGES Import and Assembly in Abaqus

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.

Features

  • Automated IGES Import: Detects all .iges files 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.

Usage Instructions

  1. Clone or download the repository: RH2ABA.
  2. Place your .iges files in the same directory as the script.
  3. Create a text file Socket Joint Coordinates.txt containing the x, y, z coordinates for the reference point (in a single line, e.g., {0.0, 10.5, 5.2}).
  4. Run the script inside Abaqus CAE using the Python interpreter embedded in Abaqus:
    abaqus cae noGUI=RH2ABA.py
  5. 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.

Example Files

  • Included in the repository are example .iges files demonstrating solid and wire geometries.
  • The Socket Joint Coordinates.txt example file shows how to provide coordinates for the reference point.
  • All generated parts and assembly variations can be opened directly in Abaqus CAE.

Requirements

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.

Video Demonstration

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

License

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 Information

  • Developer: Your Name
  • Contact: WhatsApp
  • Note: This tool is open-source. Contributions, bug reports, and improvements are welcome.

About

This repository contains the Abaqus Python script for automated IGES import and assembly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages