Skip to main content

Live visual previewer for OpenSeesPy models

Project description

openseespy-viewer

Viewer for openseespy models. Monitors your model file(s) and produces a live 3D drawing that updates each time you save. Works with 2D/3dof and 3D/6dof models.

Installation

pip install openseespy-viewer

Or install from source:

pip install .

Usage

Python API:

from viewer import view

# Single file
view('my_model.py')

# Multiple files
view('nodes.py', 'elements.py', 'boundary.py')

# With custom style options
view('my_model.py', bg_colour='white', node_size=16, ele_width=3)

Command line:

# Basic usage
openseespy-viewer my_model.py

# Multiple files with custom refresh rate
openseespy-viewer nodes.py elements.py --refresh 1.0

# Or via python -m
python -m viewer my_model.py

Screenshots

Press S in the viewer window to save a screenshot. Screenshots are saved to the images/ folder with incrementing names (model_screenshot_001.png, model_screenshot_002.png, etc.). The counter resets each time you restart the viewer. This is useful for sharing your model with AI tools like Claude Code — just ask it to look at the screenshot.

Examples

Example usage gif

See the examples/ directory for sample model files.

Dependencies

pip install pyvista numpy watchdog

Feature wish-list

  • Plot nodes as they are saved in a watched script
  • Add node labels
  • Add support for elements
  • Add support for fixity conditions
  • Add support for variables and expressions in scripts
  • Add support for watching multiple files (for models made up of many files)
  • Add support for loads
  • Add support for nodes created within loop
  • Add support for 3D models
  • Add support for rotational dofs
  • Screenshot capture (press S in viewer)

Project details


Download files

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

Source Distribution

openseespy_viewer-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openseespy_viewer-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file openseespy_viewer-0.1.0.tar.gz.

File metadata

  • Download URL: openseespy_viewer-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for openseespy_viewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa02844afed544b5979c97bdc4bc5b808c00d2644134e30b8bd5f890b868ce3a
MD5 cf52b862d6e220a31d02d98d4f47138f
BLAKE2b-256 7d056a58d5ab30c3b98af2bd9551564c73e56df73b7a050c31c1765617f3ce46

See more details on using hashes here.

File details

Details for the file openseespy_viewer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openseespy_viewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 150175098028cd7e11d546d2966e5000890c4c97bcc4c6677e5dd9cc318b709d
MD5 5f518f8c8792b31943bdcb03d858214d
BLAKE2b-256 db975e083ff02aa71b21e50416858ba20f56bd3bcecc728df12e7889d7a839a3

See more details on using hashes here.

Supported by

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