u-anurag / vfo-docs

Documentation for vfo (Visualization for OpenSees)
https://vfo.readthedocs.io
1 stars 1 forks source link

Error in plot #2

Closed Ehsanf120 closed 1 year ago

Ehsanf120 commented 1 year ago

Hi, I am trying to plot the deformed shape of my model by I faced the error below:

Traceback (most recent call last): File "C:\Users\HAMAHANG\PycharmProjects\pythonProject\venv\lib\site-packages\vfo\vfo.py", line 598, in plot_deformedshape timeSteps, this_displacement_nodeArray = idbf._readNodeDispData(model,loadcase) ## Add eleClassTags to the Tcl data File "C:\Users\HAMAHANG\PycharmProjects\pythonProject\venv\lib\site-packages\vfo\internal_database_functions.py", line 325, in _readNodeDispData Disp = np.transpose(np.loadtxt(NodeDispFile, dtype=float, delimiter=None, converters=None, unpack=True)) File "C:\Users\HAMAHANG\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\npyio.py", line 1148, in loadtxt for x in read_data(_loadtxt_chunksize): File "C:\Users\HAMAHANG\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\npyio.py", line 995, in read_data raise ValueError("Wrong number of columns at line %d" ValueError: Wrong number of columns at line 9977

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\HAMAHANG\Desktop\CIVL 506, Performance-based Earthquake\Assignments\Submission 2\Python Code\Balloon\Balloon-monotonic-timoshenko.py", line 214, in vfo.plot_deformedshape(model="Balloon", loadcase='Monotonic',tstep=0,setview='xy') File "C:\Users\HAMAHANG\PycharmProjects\pythonProject\venv\lib\site-packages\vfo\vfo.py", line 602, in plot_deformedshape raise Exception(">>>> VFO ERROR: No node displacements from loadcase was found in "+model+"_ODB. Exiting 'plot_modeshape()' now. <<<<") Exception: >>>> VFO ERROR: No node displacements from loadcase was found in Balloon_ODB. Exiting 'plot_modeshape()' now. <<<<

I also checked the NodeDisp_All.out file in the load case folder (monotonic) and there was data saved in the file.

u-anurag commented 1 year ago

Was the analysis able to finish? If yes, add "wipe()" command at the end of the script to flush all the recorders.

Ehsanf120 commented 1 year ago

It worked! Thanks!