Global Functions

opstool.load_ops_examples(name)[source]

Run the pre-built OpenSeesPy model examples in this package.

Parameters:

name: str,

Optional, “ArchBridge”, “ArchBridge-2”, “CableStayedBridge”, “SuspensionBridge”, “TrussBridge”, “Frame3D”, “Frame3D-2”, “GridFrame”, “Shell3D”, “Dam-Brick”, “Igloo-Brick”, “Pier-Brick”, “DamBreak”, “FiberSection”.

Example

>>> load_ops_examples("SuspensionBridge")

Returns:

None

opstool.add_ops_hints_file()[source]

Add opensees.pyi file to the OpenSeesPy package directory. This file can help you better with type hints and code completion.

Example

>>> add_ops_hints_file()
opstool.run_model(filepath)[source]

Run your OpenSees model python file.

Parameters

filepath: str

OpenSees model python file path.

Example

>>> file_path = 'model.py' # in the current directory
>>> # file_path = "path/to/your/model.py"
>>> run_model(file_path)

Returns

None

opstool.print_version()[source]