Skip to main content

A fast and stateless interface to the OpenSees framework for finite element analysis.

Project description

opensees

PEER Logo

A fast and stateless interface to the OpenSees framework for finite element analysis.



Latest PyPI version PyPI Downloads

This is an experimental package that provides an optimized OpenSees Tcl interpreter, as well as a new set of Python bindings that is both idiomatic, and free of global state.

The package may be used as a drop-in replacement for both OpenSees.exe and OpenSeesPy (see Getting Started below), and generally provides a substantial performance boost. Project objectives include:

  • Performance The opensees package uses the experimental OpenSeesRT analysis kernel which eliminates reliance on global variables for state and memory management. New template classes in matrix/ allow for stack-allocated matrices and vectors and eliminate the need for static local variables which is leveraged to furnish substantial performance improvements. Switching Python scripts to use opensees typically results in a 4x to 5x performance boost.

  • Reliability The core OpenSees runtime has been redesigned so that all program state is encapsulated in user-instantiated classes, and global variables/singletons are avoided. This eliminates several preexisting vulnerabilities to inadvertent state corruption.

  • Semantics ...

Additional features include:

  • Convert OpenSeesPy scripts into equivalent Tcl files that can be used for faster processing or serialization. Unlike most conversion utilities, this conversion is done exactly and does not rely on hand-rolled parsing.

  • The package can be installed with pip for Python versions 3.7 - 3.12 on Linux, MacOS and Windows, but eigenvalue analysis is currently broken on Windows.

[!NOTE] This package is independent of the openseespy library, which is documented in the OpenSees documentation website.

This package is experimental and not yet intended for public use.

Getting Started

  • To start a Tcl interpreter run the shell command:

    python -m opensees
    
  • The opensees package exposes a compatibility layer that exactly reproduces the original OpenSeesPy functions, but does so without mandating a single global program state. To run OpenSeesPy scripts, just change the import:

    import openseespy.opensees
    

    to

    import opensees.openseespy
    

    For true stateless modeling, the Model class should be used instead of the legacy model function; documentation is under development.

See also:

  • osmg OpenSees Model Generator
  • sees Modern rendering library
  • mdof Optimized system identification library
  • sdof Optimized integration for single degree of freedom systems

For more projects by the STAIRlab, visit https://github.com/STAIRlab .

Support

OpenSeesRT Logo
PEER Logo Caltrans Logo BRACE2 Logo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

opensees-0.0.61-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

opensees-0.0.61-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

opensees-0.0.61-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

opensees-0.0.61-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

opensees-0.0.61-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

opensees-0.0.61-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page