Nonlinear finite element analysis.
Project description
opensees
Nonlinear finite element analysis.
opensees
is a Python package that provides an intuitive API for nonlinear
finite element analysis, implemented in C++ through the OpenSees framework.
OpenSees features state-of-the-art finite element formulations and solution
algorithms, including mixed formulations for beams and solids, over 200 material models, and an
extensive collection of continuation algorithms to solve highly nonlinear
problems.
The opensees
package supports interactive post processing via the
sees
package.
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.
This package is experimental and not yet intended for public use.
Features
- Performance Switching Python scripts to use
opensees
typically results in a 4x to 5x performance boost. - Interactive Tasks: Easily return stiffness, mass, and damping matrices as NumPy arrays and join meshes without duplicate nodes and constraints.
- Extensive Modeling Library: State-of-the-art element formulations with over 200 material models to choose from.
- Continuation Algorithms: Robust algorithms for solving highly nonlinear problems.
- Intuitive and Reliable 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.
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. OpenSeesPy can be installed by running the following command:pip install opensees[py]
Getting Started
The opensees
package can be installed into a Python environment
in the standard manner. For example, using pip
:
pip install opensees
There are several ways to use the opensees
package:
-
To execute Tcl procedures from a Python script, just create an instance of the
opensees.tcl.Interpreter
class and call itseval()
method:interp = opensees.tcl.Interpreter() interp.eval("model Basic -ndm 2") interp.eval("print -json")
-
To start an interactive interpreter run the shell command:
python -m opensees
To quit the interpreter, just run
exit
:opensees > exit
-
The
opensees
package exposes a compatibility layer that exactly reproduces the 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.openseesrt
For true stateless modeling, the
Model
class should be used instead of the legacymodel
function; documentation is under development.
Development
To compile the project see help/compiling
See also
osmg
OpenSees Model Generatorsees
Modern rendering librarymdof
Optimized system identification librarysdof
Optimized integration for single degree of freedom systems
For more projects by the STAIRlab, visit https://github.com/STAIRlab .
Support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for opensees-0.1.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c93cf66e5d300f4c5d38050fd1556d4f0a8ceb1b7b78f7720f7f1387018a12aa |
|
MD5 | 245ca758a019af92a0ae315ae3361ffc |
|
BLAKE2b-256 | a562618c76332676a2f647caf13ba96d90c534fca941d0e58365041051c8bb3b |
Hashes for opensees-0.1.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1252e379676b2dc4cc76a459a6730d936dc133e904360c7d05d3d1f04b5db9 |
|
MD5 | 205050bdae8e06e3c8f9d557cb4b697d |
|
BLAKE2b-256 | d1a473e94a81ef687b8cd07a6976791d0a2b2224af9ea923a44ec9474c8751c7 |
Hashes for opensees-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd2de9adc5033933a0788d37b97e06e26d36e787fb007b58466d91402bc967f |
|
MD5 | 4c5be568be4e8df322a6a7d7bc3d200a |
|
BLAKE2b-256 | 7d9c31d16eb21c1d6da28bd0b0cf08a0df6a9c9da4c79a589e684865f031765f |
Hashes for opensees-0.1.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488c4f55b5b17fb3dadafc06d1a28efd480c6da1f9960ced06e8e09db07393b4 |
|
MD5 | 523d3a77929dbf554e886c672dad45ed |
|
BLAKE2b-256 | ce7ae6c00a36ee73db81179931924172eb599166e96dcd875b415a206aef54a0 |
Hashes for opensees-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08d34ee32c1edeea8341b22d46eeb7dd5652a07cf1bd626e2fbfbba6469ef6a6 |
|
MD5 | cc1199d6c8d4679b8bba2127ae73395f |
|
BLAKE2b-256 | fa1941ed78b4106e9d47830f1d346a77311d0c00c99f001c16c7c3be6364f774 |
Hashes for opensees-0.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922c1655d95a35ed5e8abd69eb9af37d3d8ff85de786008e1e9a255298250f88 |
|
MD5 | 60ca0efea5cfcb961263cd2b4ff54a2c |
|
BLAKE2b-256 | 27edf04aa6953155874f2e22c99d8eeaa39c1ef17d4a012509a62485848fb612 |
Hashes for opensees-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b067525d3c9f59a532ddd13f71eb8a1cd76bc555ffe91d064df034605d0c3f93 |
|
MD5 | b6d23e335d67b8b8618213d33c39857d |
|
BLAKE2b-256 | aa7f0f68fb61d899d9b703f9842dc9ebee7a909bd8a3cbcc2ae5ba693cf22c40 |
Hashes for opensees-0.1.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de6a908d80db15206c0bec62b4f0e2950c385316885c670b6eadb41bf0c3b28d |
|
MD5 | f11fb3d8555f8e4931e4b48c57b3f672 |
|
BLAKE2b-256 | dad26a09e6605f6ae9110166b0e3e639fb7fcdd50486959932605fd31c6333ad |
Hashes for opensees-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f11012fbc8298dff27fc11cab8d0b9d94839ea900b1ffd187fafeda260eda38 |
|
MD5 | 64db1433e6059d5587896c4d19c4c7c9 |
|
BLAKE2b-256 | 2b1f0c6022976a8da1e6f9ebb78d962b598d5f37ac0458b273a8aa7565115a5a |