Skip to content

OpenSeesMatlabTool

utils.OpenSeesMatlabTool ¤

Bases: handle

OpenSeesMatlabTool Utility interface for OpenSeesMatlab.

OpenSeesMatlabTool groups general-purpose helpers that do not belong directly to the command, pre-processing, analysis, post-processing, or visualization interfaces. Users normally access this class through the utils property of an OpenSeesMatlab object:

1
2
  opsmat = OpenSeesMatlab();
  opsmat.utils.loadExamples("Frame3D");

The current utility interface provides example-model loading. Loaded examples are executed against the same OpenSees command interface stored in opsmat.opensees, so subsequent calls to opsmat.post, opsmat.vis, and opsmat.anlys operate on the loaded model.

Example
1
2
3
4
5
  opsmat = OpenSeesMatlab();
  opsmat.utils.loadExamples("Frame3D");

  modelInfo = opsmat.post.getModelData();
  h = opsmat.vis.plotModel();

Methods:

  • loadExamples

    Load a bundled example model into the active OpenSees interface.

loadExamples ¤

(modelName: string)

Load a bundled example model into the active OpenSees interface.

loadExamples dispatches to demos.loadExamples and builds the selected demonstration model using obj.parent.opensees. After an example is loaded, the model can be inspected, analyzed, post-processed, or visualized through the same OpenSeesMatlab object.

Syntax
1
obj.loadExamples(modelName)

Input arguments:

  • modelName (string) –

    Name of the example model to load. Supported values are:

    • "Frame3D"
    • "ArchBridge"
    • "ArchBridge2"
    • "CableStayedBridge"
    • "SuspensionBridge"
    • "TrussBridge"
    • "Dam"
Example
1
2
3
4
5
opsmat = OpenSeesMatlab();
opsmat.utils.loadExamples("Frame3D");

opsmat.post.getModelData();
opsmat.vis.plotModel();