abaqustools
Python tools for generating, running, and post-processing Abaqus finite-element models.
Features
kw
- Generate Abaqus
.inpfiles efficiently. - Write common Abaqus keywords for beam-oriented structural models.
- Create beam joints with user-defined stiffness for six degrees of freedom.
abq
- Run Abaqus jobs from Python.
- Check input files for duplicate nodes and elements.
odbexport
- Export static and modal-analysis results from Abaqus ODB files.
- Write text and HDF5 output.
- Export displacements, node coordinates, section forces, natural frequencies, generalized mass, element sets, and other result data.
post
- Assemble and label result images for reports and presentations.
- Available as an optional plotting feature.
Installation
Install the package from PyPI:
python -m pip install abaqustools
Install the optional image and plotting dependencies when using abaqustools.post:
python -m pip install "abaqustools[plotting]"
The package requires Python 3 or later. Running Abaqus jobs and reading ODB files also requires a compatible Abaqus installation and its Python modules.
Usage
Import the main modules from the package:
from abaqustools import abq, kw, odbexport
Create part and node keywords in an Abaqus input file:
import numpy as np
from abaqustools import kw
nodes = np.array([
[1, 0.0, 0.0, 0.0],
[2, 5.0, 0.0, 0.0],
])
with open("model.inp", "w", encoding="utf-8") as output:
kw.part(output, "beam")
kw.node(output, nodes, "beam_nodes")
kw.partend(output)
Run an Abaqus input file:
from abaqustools import abq
abq.runjob(
foldername="path/to/model",
inputname="model.inp",
cpus=4,
)
Export modal results from an ODB file:
from pathlib import Path
from abaqustools import odbexport
odbexport.export.modal(
folder_odb="path/to/results",
jobname="model",
folder_save="path/to/export",
folder_python=str(Path(odbexport.__file__).parent),
)
More complete scripts are available in the example/ and odbexport_example/
directories.
Abaqus compatibility
Functions that launch Abaqus or import odbAccess, abaqusConstants, and other
Abaqus modules must run in an environment where those modules are available.
Pure input-file generation and validation utilities can run in standard Python.
Compatibility depends on the Python version bundled with the installed Abaqus release. If a particular Abaqus release causes a problem, please include its exact version when opening an issue.
Dependencies
Core dependencies are NumPy, h5py, and putools. Image composition and plotting additionally require Matplotlib and Pillow.
Contributing and support
Bug reports and proposed improvements are welcome through the GitHub issue tracker. When reporting an Abaqus-related problem, include the Abaqus version, Python version, operating system, and a minimal input example when possible.
The package is also available on PyPI.
License
This project is licensed under the GNU General Public License, version 3 or later.
See LICENSE for the full terms.
Metadata
Release files for abaqustools 2.36
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| abaqustools-2.36.tar.gz | 63.3 kB | Without provenance | Details for abaqustools-2.36.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| abaqustools-2.36-py3-none-any.whl | Python 3 | none | any | Details for abaqustools-2.36-py3-none-any.whl |
Total release size: 114.9 kB
Release files / abaqustools-2.36.tar.gz
| Download URL | abaqustools-2.36.tar.gz |
|---|---|
| Size | 63.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e6e1e3ed71b4e6ac3e36bc9912340d227fb2922067d093ad18708fcc8ab2971
|
|
BLAKE2b-256 checksum How to use checksums |
e4be40605bc223a8a9fda17a6335a340e6c3db6ea783f2f4a1490a5bd7d665c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / abaqustools-2.36-py3-none-any.whl
| Download URL | abaqustools-2.36-py3-none-any.whl |
|---|---|
| Size | 51.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0e7055ada811e55ab3586a0ad9169d26cadc049b50d7249a1adae5a6bf359f5
|
|
BLAKE2b-256 checksum How to use checksums |
f4b587814a6d6032ab849fef251c74cf1f850d12b32c950b07e8c5b112f74855
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for abaqustools 2.36
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.