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.
- Simplifies the creation and management of OpenSeesPy models
pip install opsparserimport 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)Check out the examples documentation for more usage examples, including modeling and analysis of bridges, frames, and other structures.
Complete documentation is available at OpsParser Documentation, including:
Contributions to the OpsParser project are welcome! Please participate through:
- Submitting issues and feature requests
- Contributing code improvements
- Sharing your experiences and examples using OpsParser
OpsParser is released under the MIT License.