Skip to content

A lightweight, pure Python implementation of an OpenSeesPy command monitoring tool for capturing, recording, and analyzing OpenSees command execution processes.

License

Notifications You must be signed in to change notification settings

SeismoExt/OpsParser

Repository files navigation

OpenSeesParser (OpsParser)

Documentation Status PyPI version License: MIT Downloads Ask DeepWiki

OpenSeesParser (OpsParser) is a practical utility library designed for OpenSeesPy users, providing a series of convenient functions and tools to help users build and analyze structural models more efficiently.

Features

  • Simplifies the creation and management of OpenSeesPy models

Installation

pip install opsparser

Quick Start

import openseespy.opensees as old_ops from opsparser import OpenSeesParser # first hook all commands before your opensees code parser = OpenSeesParser(old_ops) parser.hook_all(debug = False) # Set debug = True to show parsing process ops = parser.enhance() # enhanced ops module with IDE hints # your OpenSeesPy Code # ... # get your model's info from opsparser import OpenSeesCommand as Command # Node Node = Command.NODE.instance node_dict = Node.nodes # node info # Materials Material = Command.MATERIAL.instance material_dict = Material.materials # material info # Elements Element = Command.ELEMENT.instance Element_dict = Element.Elements # Elements info # and many convient tools # like you can use newtag property for Node, Element, Material to get a unused tag Node.newtag Element.newtag Material.newtag # maybe 5 more continuous tags? Using `get_new_tags(start = 1)` Node.get_new_tags(5)

Examples

Check out the examples documentation for more usage examples, including modeling and analysis of bridges, frames, and other structures.

Documentation

Complete documentation is available at OpsParser Documentation, including:

Contributing

Contributions to the OpsParser project are welcome! Please participate through:

  1. Submitting issues and feature requests
  2. Contributing code improvements
  3. Sharing your experiences and examples using OpsParser

License

OpsParser is released under the MIT License.

About

A lightweight, pure Python implementation of an OpenSeesPy command monitoring tool for capturing, recording, and analyzing OpenSees command execution processes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages