Writing tcl code to Python

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
Sonice
Posts: 2
Joined: Sun Oct 03, 2021 4:00 am

Writing tcl code to Python

Post by Sonice »

I tried to convert a 3d general example available in OpenSees website into python using OpenSeesPy. On analysis, Python version is giving following errors:
1) ArpackSolver::Error with _saupd info = -9
Starting vector is zero.
WARNING DirectIntegrationAnalysis::eigen() - EigenSOE failed in solve()
WANRING failed to do eigen analysis
Traceback (most recent call last):
File "F:/C_OpenSees/Python_transfereed_ExactCopy/General_RC_Section_Exact.py", line 217, in <module>
eigenValues = ops.eigen(numEigen)
opensees.OpenSeesError: See stderr output

2) Analysis has also failed (-3).

I used Model viewer from openseesPy, and also from matlab code provided by D. Vamvatsikos, and both models (from tcl and python) are same. I even compared each values from print (tcl) and printModel (Python), and both are same. What could be the reason for the error in python code?

Thanks and Regards,
Sanish Bhochhibhoya
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Writing tcl code to Python

Post by mhscott »

The models are *not* the same! You probably forgot mass or something that will make the eigenvalue solver fail.
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Writing tcl code to Python

Post by mhscott »

Or you don't have proper constraints to prevent rigid body motion.
Post Reply