Skip to main content

opstool: Pre-Processing, Post-Processing, and Visualization for OpenSeesPy and OpenSees

pypi Downloads Documentation Status github stars GitHub License CodeFactor

opstool is a powerful and user-friendly package designed to simplify and enhance structural analysis workflows with OpenSees and OpenSeesPy. It provides advanced tools for preprocessing, postprocessing, and visualization, making structural simulations more efficient and accessible.

Installation

The package is still under development. To use, install opstool from opstool-PyPI:

pip install --upgrade opstool

The restriction on the python version mainly depends on openseespy, it is recommended that you use Miniconda or Anaconda Distribution to avoid library version incompatibilities.

After installing, open Anaconda Prompt to execute the following code:

conda create -n opensees python=3.12 numpy scipy pandas xarray notebook matplotlib
conda activate opensees
pip install openseespy
pip install opstool

image.png

  • The first line of code will create an environment called opensees and install Python 3.12 and libraries such as numpy, scipy, pandas, xarray, notebook, matplotlib, etc.
  • Please use conda activate opensees to activate the environment, and then you can install various third-party packages in the environment, such as pip install openseespy and pip install opstool.
  • You can also install the packages from anaconda / packages, such as conda install conda-forge::scikit-learn.

Document

Latest: See https://opstool-doc.readthedocs.io/en/latest/.

For v1.0.20 and earlier versions See https://opstool.readthedocs.io/en/v1.0.20/

[!TIP] Since an opstool version v1.0.1, the API and features have undergone significant changes and upgrades. As a result, it feels more like a new library, and you should take some time to familiarize yourself with the new interface usage.

Citing

If you use opstool in your work, please cite the following publication:

Yexiang Yan and Yazhou Xie. "opstool: A Python library for OpenSeesPy analysis automation, streamlined pre-and post-processing, and enhanced data visualization." SoftwareX 30 (2025): 102126. DOI: https://doi.org/10.1016/j.softx.2025.102126

Acknowledgements

I sincerely thank EOS for the Honorable Mention in Pre/Post-processing & Implementations at the 1st EOS OpenSees Research and Innovation Awards.

🎉 Announcing the Winners of the 1st EOS OpenSees Research and Innovation Awards! 🎉

Key Features

  1. Preprocessing Tools:
    • Fiber Section Meshing: Generate detailed fiber meshes for various geometries.
    • GMSH Integration: Import and convert Gmsh models, including geometry, mesh, and physical groups.
    • Unit System Management: Ensure consistency with automatic unit conversions.
    • Mass Generation: Automate lumped mass calculations.
  2. Postprocessing Capabilities:
    • Easy retrieval and interpretation of analysis results using xarray.
  3. Visualization:
    • Powered by Pyvista (VTK-based) and Plotly (web-based).
    • Nearly identical APIs for flexible visualization of model geometry, modal analysis, and simulation results.
    • Supports most common OpenSees elements.
  4. Intelligent Analysis:
    • Features like automatic step size adjustment and algorithm switching to optimize simulation workflows. See Smart Analysis.
    • Moment-Curvature Analysis: Generate moment-curvature curves for various sections.

Why Choose opstool?

  • Efficiency: Streamlines complex workflows, reducing time spent on repetitive tasks.
  • Flexibility: Provides nearly identical interfaces for different visualization engines.
  • Accessibility: Makes advanced structural analysis tools like OpenSeesPy more approachable to users of all levels.

opstool is actively evolving, with continuous additions of new features planned for the future. With opstool, you can focus on what matters most: understanding and solving your structural engineering challenges. Whether you are building models, visualizing results, or interpreting data, opstool is your go-to solution for OpenSeesPy workflows.

[!NOTE]
This project is a non-profit open-source initiative. Use at your own risk.

License

This software is published under the GPLv3 license.

Metadata

Release files for opstool 1.0.26

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opstool 1.0.26
File Size Uploaded
opstool-1.0.26.tar.gz 586.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opstool 1.0.26
File Interpreter ABI Platform
opstool-1.0.26-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / opstool-1.0.26.tar.gz

Download URL opstool-1.0.26.tar.gz
Size 586.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e4787d3796facd0c816adb28c1cf0b7b7d2613e62628adf1ef495b4a7aba4272
BLAKE2b-256 checksum
How to use checksums
2326e8402bff1826c311f8fd9bd11d3b202e21cf82217b2a33f738a869930b0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.4 Windows/11

Release files / opstool-1.0.26-py3-none-any.whl

Download URL opstool-1.0.26-py3-none-any.whl
Size 654.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dc4339dbe670cbf137e912e982f88a99173cf59dfc77f1e99b18461eb3b0f2b
BLAKE2b-256 checksum
How to use checksums
c7b820c2b4774b1dcbb638cd611972736dc64a32ca84b8618590b850d2b00334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.4 Windows/11

Release history Release notifications | RSS feed

This release

1.0.26 This release

2 release files

1.0.25

2 release files

1.0.24

2 release files

1.0.23

2 release files

1.0.22

2 release files

1.0.21

2 release files

1.0.19

2 release files

1.0.16

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

1 release file

0.0.4

2 release files

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page