zhuminjie / OpenSeesPy

OpenSeesPy versions, doc, and pip
Other
177 stars 66 forks source link

Possible bug in drift recorder #138

Open volkanozsarac opened 5 months ago

volkanozsarac commented 5 months ago

Could it be possible that the drift recorder has a bug? It works for single iNode and jNode. However, it gives an error in the case of more than one iNodes and jNodes.

OK:

ops.recorder('Drift', '-file', drift_file_path, '-iNode', 10, '-jNode', 20, '-dof', 1, '-perpDirn', 3)

NOT OK:

ops.recorder('Drift', '-file', drift_file_path, '-iNode', 10, 20, '-jNode', 20, 30, '-dof', 1, '-perpDirn', 3)
WARNING: failed to get dof
WARNING failed to create recorder
Traceback (most recent call last):
  File "<string>", line 1, in <module>
opensees.OpenSeesError: See stderr output
mhscott commented 5 months ago

The drift recorder only takes a single I node and single J node. Does the Tcl version accept multiple I and J nodes like you've shown?

volkanozsarac commented 5 months ago

The drift recorder only takes a single I node and single J node. Does the Tcl version accept multiple I and J nodes like you've shown?

Yes, it worked for my trials with Tcl